/* ============ SHARED STYLES — Pierrot & Róża ============ */
:root {
  --bg: #ffffff;
  --bg-2: #f3f5fa;
  --ink: #0a1530;
  --ink-2: #2c3a5c;
  --muted: #6c7590;
  --accent: #1e3a8a;
  --accent-deep: #0f2461;
  --accent-soft: #b5c4e9;
  --accent-tint: #e6ecf7;
  --line: rgba(10, 21, 48, 0.11);
  --line-strong: rgba(10, 21, 48, 0.30);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.serif { font-family: "Source Serif 4", Georgia, serif; font-weight: 400; letter-spacing: -0.005em; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 32px; }

/* announce */
.announce {
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  padding: 9px 0;
  text-align: center;
  letter-spacing: 0.01em;
}
.announce strong { color: var(--accent-soft); margin-right: 8px; font-weight: 500; letter-spacing: 0.02em; }
.announce .dot { display: inline-block; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; margin: 0 14px 1px; vertical-align: middle; }

/* nav */
.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.92);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  gap: 32px;
}
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand-mark { width: 48px; height: 48px; background: url('pierrot-logo.jpg') center/contain no-repeat; border-radius: 4px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text .serif { font-family: "Source Serif 4", Georgia, serif; font-weight: 500; font-size: 20px; letter-spacing: -0.005em; }
.brand-text small { font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 5px; font-weight: 500; }

nav.primary { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
nav.primary a {
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-2);
  padding: 10px 14px;
  border-radius: 8px;
  position: relative;
  transition: color 0.15s ease, background 0.15s ease;
}
nav.primary a:hover { color: var(--ink); background: var(--bg-2); }
nav.primary a.active { color: var(--ink); }
nav.primary a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--accent);
}
.menu-toggle { display: none; }

/* footer */
footer.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: 80px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-brand-row { display: flex; align-items: center; gap: 16px; }
.footer-mark { width: 56px; height: 56px; background: url('pierrot-logo.jpg') center/contain no-repeat; border-radius: 4px; flex-shrink: 0; }
.footer-bot a { color: rgba(255,255,255,0.65); border-bottom: 1px solid rgba(255,255,255,0.25); transition: color 0.2s, border-color 0.2s; }
.footer-bot a:hover { color: var(--accent-soft); border-color: var(--accent-soft); }
.footer-brand .serif { font-family: "Source Serif 4", Georgia, serif; font-weight: 500; font-size: 28px; line-height: 1; letter-spacing: -0.01em; }
.footer-brand small { display: block; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-top: 10px; font-weight: 500; }
.footer-brand p { margin-top: 24px; font-size: 14px; color: rgba(255,255,255,0.65); max-width: 32ch; line-height: 1.6; }
.footer-col h5 { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin: 0 0 18px; font-weight: 500; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col li { font-size: 14px; color: rgba(255,255,255,0.85); }
.footer-col a:hover { color: var(--accent-soft); }

.reg-data {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  padding: 24px 0;
}
.reg-item { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.reg-item.wide { grid-column: span 2; }
.reg-item.wide .v { white-space: nowrap; }
.reg-item .k { font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.reg-item .v { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--bg); }
.reg-item .v.active::before { content: "● "; color: #3b82f6; }
.footer-bot { padding-top: 28px; display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,0.5); flex-wrap: wrap; gap: 16px; }

/* mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 80;
  background: var(--bg);
  display: none;
  flex-direction: column;
  padding: 96px 32px 40px;
  overflow-y: auto;
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.01em;
  line-height: 1.3;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.mobile-drawer a:hover { color: var(--accent); }
.mobile-drawer .close {
  position: absolute;
  top: 22px; right: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  display: grid; place-items: center;
  cursor: pointer;
  font-size: 18px;
}
body.menu-open { overflow: hidden; }

@media (max-width: 1280px) {
  nav.primary a { padding: 10px 11px; font-size: 12px; letter-spacing: 0.04em; }
}
@media (max-width: 1100px) {
  nav.primary { display: none; }
  .menu-toggle {
    display: inline-flex;
    width: 44px; height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: transparent;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--ink);
    transition: all 0.2s;
  }
  .menu-toggle:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
}
@media (max-width: 860px) {
  .footer-top, .reg-data { grid-template-columns: 1fr; gap: 30px; }
  .container { padding: 0 20px; }
}

/* ============ KONTAKT ============ */
.contact-wrap { padding: 70px 0 110px; }
.contact-intro {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin: 0 0 50px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: border-color 0.2s, box-shadow 0.25s;
}
.contact-card:hover { border-color: var(--line-strong); box-shadow: 0 12px 28px -16px rgba(10,21,48,0.15); }
.contact-card.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.contact-card.primary .card-label { color: rgba(255,255,255,0.55); }
.contact-card.primary .card-title { color: var(--bg); }
.contact-card.primary .row .v { color: var(--bg); }
.contact-card.primary .row .v a { color: var(--accent-soft); border-color: rgba(181,196,233,0.50); }
.contact-card.primary .row .v a:hover { color: var(--bg); border-color: var(--bg); }
.contact-card.primary .row .k { color: rgba(255,255,255,0.5); }
.contact-card.primary hr { border: 0; border-top: 1px solid rgba(255,255,255,0.18); margin: 4px 0; }

.contact-card .card-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-card .card-label .num {
  font-family: "IBM Plex Mono", monospace;
  background: var(--accent);
  color: white;
  padding: 3px 9px;
  border-radius: 2px;
  font-size: 10px;
}
.contact-card.primary .card-label .num { background: var(--accent-soft); color: var(--ink); }
.contact-card .card-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}
.contact-card .card-title em { color: var(--accent); font-style: normal; }
.contact-card.primary .card-title em { color: var(--accent-soft); }

.contact-card hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }

.contact-card .row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  align-items: baseline;
}
.contact-card .row .k {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-card .row .v { font-size: 15px; color: var(--ink); line-height: 1.5; }
.contact-card .row .v a { color: var(--accent); border-bottom: 1px solid var(--accent-soft); transition: all 0.2s; }
.contact-card .row .v a:hover { color: var(--ink); border-color: var(--ink); }
.contact-card .row .v strong { font-weight: 500; color: var(--ink); display: block; margin-bottom: 2px; }
.contact-card.primary .row .v strong { color: var(--bg); }
.contact-card .row .v .sub { color: var(--muted); font-size: 13px; margin-top: 2px; display: block; }
.contact-card.primary .row .v .sub { color: rgba(255,255,255,0.55); }

.contact-card .person {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--bg-2);
  border-radius: 6px;
}
.contact-card .person .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 500;
  font-size: 16px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact-card .person .pmeta { display: flex; flex-direction: column; gap: 2px; }
.contact-card .person .pmeta .pname { font-size: 14.5px; font-weight: 500; color: var(--ink); }
.contact-card .person .pmeta .pphone { font-family: "IBM Plex Mono", monospace; font-size: 12.5px; color: var(--accent); letter-spacing: 0.04em; }
.contact-card .person .pmeta .pphone:hover { color: var(--ink); }

/* maps grid */
.maps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 860px) { .maps-grid { grid-template-columns: 1fr; } }
.map-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.map-tile .map-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.map-tile .map-head .label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.map-tile .map-head .label strong { color: var(--ink); font-weight: 500; }
.map-tile .map-head a {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
  transition: all 0.2s;
}
.map-tile .map-head a:hover { color: var(--ink); border-color: var(--ink); }
.map-tile iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  border: 0;
  filter: grayscale(0.35) contrast(0.96);
  transition: filter 0.3s;
}
.map-tile iframe:hover { filter: none; }

.map-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/6;
  background: var(--bg-2);
  position: relative;
  display: grid;
  place-items: center;
}
.map-card::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(10,21,48,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,21,48,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.map-card .map-pin {
  position: relative;
  z-index: 1;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  border: 1px dashed var(--line-strong);
  padding: 12px 18px;
  border-radius: 3px;
}

/* ============ RODO / SIMPLE TEXT PAGE ============ */
.text-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 32px 120px;
}
.text-page .info-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 48px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
@media (max-width: 640px) {
  .text-page { padding: 50px 20px 80px; }
  .text-page .info-card { flex-direction: column; padding: 32px 24px; gap: 24px; }
}
.text-page .info-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 500;
  font-size: 22px;
}
.text-page .info-body { flex: 1; }
.text-page .info-body .lead {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 28px;
  letter-spacing: -0.005em;
}
.text-page .info-body .iod-name {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.1;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.text-page .info-body .iod-role {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 22px;
}
.text-page .info-body .iod-mail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 15px;
  color: var(--ink);
  transition: all 0.2s;
}
.text-page .info-body .iod-mail:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.text-page .info-body .iod-mail .ico {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.text-page .info-body .iod-mail:hover .ico { color: var(--accent-soft); }

/* ============ PRACA / FORM ============ */
.form-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 0 100px;
}
.form-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 48px;
}
@media (max-width: 720px) { .form-card { padding: 32px 24px; } }
.form-card .form-eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.form-card h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 500;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
}
.form-card .form-intro { color: var(--ink-2); margin: 0 0 36px; font-size: 15.5px; line-height: 1.6; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.form-field label .req { color: var(--accent); }
.form-field input,
.form-field textarea,
.form-field select {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 16px;
  width: 100%;
  transition: border-color 0.15s, background 0.15s;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--bg);
}
.form-field textarea { min-height: 130px; line-height: 1.55; }

.file-field {
  position: relative;
  border: 1.5px dashed var(--line-strong);
  border-radius: 6px;
  padding: 22px 20px;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.file-field:hover { border-color: var(--ink); background: var(--bg); }
.file-field input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-icon {
  width: 40px; height: 40px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.file-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.file-meta strong { font-size: 14px; color: var(--ink); font-weight: 500; }
.file-meta span { font-size: 12px; color: var(--muted); }
.file-meta strong.has-file { color: var(--accent); }

.consent-row { display: flex; gap: 12px; align-items: flex-start; padding-top: 4px; }
.consent-row input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}
.consent-row label { font-family: "IBM Plex Sans", sans-serif; font-size: 13px; line-height: 1.5; color: var(--ink-2); cursor: pointer; text-transform: none; letter-spacing: normal; font-weight: 400; }

.form-actions { margin-top: 32px; display: flex; justify-content: flex-end; }
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--ink);
  color: var(--bg);
  padding: 18px 36px;
  border-radius: 999px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 8px 22px -10px rgba(10,21,48,0.4);
}
.btn-submit:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(30,58,138,0.5); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* note under form */
.form-note {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 0 100px;
}
.form-note-inner {
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.form-note h3 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
  font-weight: 500;
}
.form-note p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.65;
  margin: 0 0 14px;
}
.form-note p strong { color: var(--ink); font-weight: 500; }
.form-note a { color: var(--accent); border-bottom: 1px solid var(--accent-soft); }
.form-note a:hover { border-color: var(--accent); }
.form-note .rodo-clause {
  background: var(--bg-2);
  border-left: 3px solid var(--accent);
  padding: 20px 22px;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.65;
  font-style: italic;
}

/* success state */
.form-success {
  text-align: center;
  padding: 50px 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-2);
  display: none;
}
.form-success.show { display: block; }
.form-success .check {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  font-size: 28px;
}
.form-success h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 500;
  font-size: 28px;
  margin: 0 0 10px;
}
.form-success p { color: var(--ink-2); margin: 0; }

/* ============ PROJECTS PAGE ============ */
.page-hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--line);
}
.page-hero .crumb { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.page-hero .crumb a:hover { color: var(--accent); }
.page-hero h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 500;
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
  max-width: 22ch;
}
.page-hero h1 em { color: var(--accent); font-style: normal; }
.page-hero p { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 64ch; margin: 28px 0 0; }

/* region filter (matching screenshot — but in our muted palette) */
.region-filter {
  padding: 70px 0 30px;
  text-align: center;
}
.region-filter .filter-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 500;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 38px;
  text-wrap: balance;
}
.region-filter .tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.region-tab {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background-color: transparent;
  border: 1.5px solid var(--line-strong);
  color: var(--ink-2);
  padding: 14px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.region-tab:hover { border-color: var(--ink); color: var(--ink); }
.region-tab.active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 8px 18px -10px rgba(30,58,138,0.5);
}

/* projects grid */
.projects-section { padding: 30px 0 110px; }
.projects-count {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin: 30px 0 50px;
}
.projects-count strong { color: var(--accent); font-weight: 500; }
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 380px));
  gap: 24px;
  justify-content: start;
}
@media (max-width: 1100px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .project-grid { grid-template-columns: 1fr; } }

.project-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease;
  text-decoration: none;
  color: inherit;
}
.project-card.hidden { display: none; }
.project-card:hover { border-color: var(--line-strong); box-shadow: 0 12px 28px -16px rgba(10,21,48,0.18); transform: translateY(-2px); }
.project-card .banner {
  aspect-ratio: 16/9;
  background: var(--bg-2);
  position: relative;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
}
.project-card .banner::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent 0 16px, rgba(10,21,48,0.035) 16px 17px);
}
.project-card .banner.has-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.project-card .banner.has-image::before { display: none; }
.project-card .banner.has-image .code { display: none; }
.project-card .banner .code {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 500;
  font-size: 38px;
  line-height: 1;
  color: var(--ink);
  position: relative;
  z-index: 1;
}
.project-card .banner .code em { color: var(--accent); font-style: normal; }
.project-card .region-badge {
  position: absolute;
  top: 14px; left: 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(10,21,48,0.85);
  color: var(--bg);
  padding: 4px 10px;
  border-radius: 2px;
  z-index: 2;
}
.project-card .status-badge {
  position: absolute;
  bottom: 14px; right: 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}
.project-card .status-badge.live::before { content: ""; width: 6px; height: 6px; background: #3b82f6; border-radius: 50%; }
.project-card .status-badge.archived { background: rgba(10,21,48,0.7); color: var(--bg); }
.project-card .status-badge.archived::before { content: ""; width: 6px; height: 6px; background: var(--muted); border-radius: 50%; }

.project-card .body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.project-card .meta {
  display: flex; gap: 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px; color: var(--muted); letter-spacing: 0.04em;
}
.project-card .meta .sep { color: var(--line-strong); }
.project-card h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}
.project-card h3 em { color: var(--accent); font-style: normal; }
.project-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}
.project-card .body p.cofin { font-size: 12.5px; color: var(--muted); font-style: italic; }
.project-card .body .partner {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.project-card .foot {
  margin-top: auto;
  padding-top: 18px;  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.project-card .foot .tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.project-card .foot .arrow {
  width: 32px; height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  display: grid; place-items: center;
  transition: all 0.2s;
  font-size: 16px;
}
.project-card:hover .foot .arrow { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.empty-state {
  padding: 80px 30px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--bg-2);
}
.empty-state h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 500;
  font-size: 28px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.empty-state p { color: var(--ink-2); margin: 0; max-width: 50ch; margin-left: auto; margin-right: auto; }


/* ============ COOKIE BANNER ============ */
.cookie-banner {
  position: fixed;
  inset: auto 16px 16px 16px;
  z-index: 200;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 24px 48px rgba(10,21,48,0.18), 0 4px 12px rgba(10,21,48,0.08);
  padding: 18px 22px;
  max-width: 920px;
  margin: 0 auto;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.3s ease;
}
.cookie-banner.open { transform: translateY(0); opacity: 1; }
.cookie-banner-inner {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-text { flex: 1 1 360px; min-width: 0; }
.cookie-text strong {
  font-family: "Source Serif 4", serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}
.cookie-text p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.cookie-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-text a:hover { color: var(--accent-deep); }
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.btn-cookie {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  transition: all 0.2s;
  letter-spacing: 0.01em;
}
.btn-cookie:hover { border-color: var(--ink); }
.btn-cookie.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-cookie.primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
@media (max-width: 640px) {
  .cookie-banner { inset: auto 8px 8px 8px; padding: 16px; }
  .cookie-actions { width: 100%; }
  .btn-cookie { flex: 1; }
}


/* ============ LEGAL TEXT PAGES ============ */
.page-hero-lead {
  margin-top: 18px;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
}
.text-page.legal { padding: 56px 0 96px; }
.text-page.legal article {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}
.text-page.legal h2 {
  font-family: "Source Serif 4", serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 40px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.text-page.legal h2:first-child { margin-top: 0; }
.text-page.legal h3 {
  font-family: "Source Serif 4", serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 24px 0 10px;
}
.text-page.legal p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
}
.text-page.legal ul {
  margin: 0 0 20px;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
}
.text-page.legal ul li { margin-bottom: 6px; }
.text-page.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.text-page.legal a:hover { color: var(--accent-deep); }
.text-page.legal strong { color: var(--ink); font-weight: 600; }
.legal-meta {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============ COOKIES TABLE ============ */
.cookies-table {
  margin: 12px 0 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  font-size: 13.5px;
}
.cookies-row {
  display: grid;
  grid-template-columns: 1.2fr 2.2fr 1.4fr 1.1fr;
  gap: 16px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  line-height: 1.5;
}
.cookies-row:first-child { border-top: none; }
.cookies-row.head {
  background: var(--bg-2);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}
.cookies-row code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  background: var(--accent-tint);
  color: var(--accent-deep);
  padding: 2px 6px;
  border-radius: 3px;
  word-break: break-all;
}
@media (max-width: 720px) {
  .cookies-row { grid-template-columns: 1fr; gap: 4px; }
  .cookies-row.head { display: none; }
  .cookies-row > div::before {
    display: block;
    font-family: "IBM Plex Mono", monospace;
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2px;
  }
  .cookies-row > div:nth-child(1)::before { content: "Nazwa"; }
  .cookies-row > div:nth-child(2)::before { content: "Cel"; }
  .cookies-row > div:nth-child(3)::before { content: "Czas"; }
  .cookies-row > div:nth-child(4)::before { content: "Typ"; }
  .cookies-row > div { margin-bottom: 8px; }
}


/* ============ ACCESSIBILITY PAGE ============ */
.acc-meta {
  margin: 0 0 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.acc-meta-item {
  padding: 14px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-2);
}
.acc-meta-item:nth-child(2n) { border-right: none; }
.acc-meta-item:nth-last-child(-n+2) { border-bottom: none; }
.acc-meta-item .k {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.acc-meta-item .v {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 14.5px;
  color: var(--ink);
}
.acc-meta-item .v a { color: var(--accent); }
@media (max-width: 640px) {
  .acc-meta { grid-template-columns: 1fr; }
  .acc-meta-item { border-right: none; }
  .acc-meta-item:not(:last-child) { border-bottom: 1px solid var(--line); }
}

.acc-contact-card {
  margin: 14px 0 24px;
  padding: 20px 24px;
  background: var(--accent-tint);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.acc-contact-card strong {
  font-family: "Source Serif 4", serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}
.acc-contact-card span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.acc-contact-card a {
  color: var(--accent);
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 2px;
  width: fit-content;
}
.acc-contact-card a:hover { color: var(--accent-deep); }


/* ============ ACCESSIBILITY: SKIP LINK + FOCUS ============ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 4px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(10,21,48,0.25);
  transition: top 0.2s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Visible focus indicator for all interactive elements — WCAG 2.4.7 */
*:focus { outline: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline-offset: 0;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(30,58,138,0.18);
}
.project-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* sr-only — visually hidden, available to screen readers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
