/* FRSP — propozycja designu v1 */

:root {
  --paper: #faf6f0;
  --paper-2: #f3ece2;
  --card: #ffffff;
  --ink: #1f1a1b;
  --ink-2: #5a5254;
  --ink-3: #6f6668;
  --line: #e6ddd2;
  --brand: #8c1d2f;
  --brand-ink: #6e1524;
  --brand-soft: #f5e4e3;
  --accent: #e0a23a;
  --deep: #2a1519;
  --deep-2: #3a1d23;
  --on-deep: #f6eee8;
  --on-deep-2: #c9b7b4;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(42, 21, 25, .06), 0 8px 24px -12px rgba(42, 21, 25, .18);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);

  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Public Sans", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 700;
}
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font: 600 16px/1 var(--f-body); text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn svg { width: 18px; height: 18px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--brand); text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--f-display); font-size: 20px; letter-spacing: -0.01em; }
.brand-text span { font-size: 12px; color: var(--ink-2); max-width: 220px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 10px 14px; border-radius: 999px;
  text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.nav-cta { margin-left: 8px; }
.nav-links .nav-cta a.btn-primary { color: #fff; background: var(--brand); }
.nav-links .nav-cta a.btn-primary:hover { background: var(--brand-ink); }
.nav-cta .btn { padding: 11px 18px; font-size: 15px; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle svg { width: 20px; height: 20px; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav-cta { margin: 16px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; padding: 15px; }
  .brand-text span { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(40px, 5.2vw, 66px); margin: 20px 0 22px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-2); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 36px;
  margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line);
}
.hero-facts dt { font-family: var(--f-display); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.hero-facts dd { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }

.hero-visual { position: relative; }
.hero-photo {
  aspect-ratio: 4 / 4.4;
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden; background: var(--paper-2);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-ring {
  position: absolute; width: 38%; aspect-ratio: 1; border-radius: 50%;
  background: var(--brand); top: -6%; right: -8%; z-index: -1;
}
.hero-dot {
  position: absolute; width: 14%; aspect-ratio: 1; border-radius: 50%;
  background: var(--accent); bottom: 18%; left: -5%;
}
.hero-card {
  position: absolute; left: -8%; bottom: -6%;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 20px; display: flex; gap: 14px; align-items: center; max-width: 330px;
  text-decoration: none;
}
.hero-card .pill { flex: none; }
.hero-card strong { display: block; font-size: 15px; line-height: 1.3; }
.hero-card span { font-size: 13px; color: var(--ink-2); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2f9e5b; box-shadow: 0 0 0 3px #2f9e5b33; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; width: 100%; margin: 0 auto; }
  .hero-card { left: 0; right: 0; margin: 0 auto; bottom: -24px; max-width: 92%; }
  .hero-ring { right: -4%; }
  .hero-dot { left: -2%; }
}
@media (max-width: 520px) {
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-facts div:last-child { grid-column: span 2; }
}

/* ---------- Sections ---------- */
section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(32px, 4.2vw, 52px); margin-top: 14px; }
.section-head p { color: var(--ink-2); font-size: 18px; max-width: 520px; }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; } }

/* About strip */
.about { background: var(--paper-2); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); }
.about h2 { font-size: clamp(30px, 3.6vw, 44px); margin-top: 14px; }
.about-body p + p { margin-top: 16px; }
.about-body p { color: var(--ink-2); }
.about-body p:first-child { font-size: 20px; color: var(--ink); line-height: 1.5; }
.roots { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.roots span {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  font-size: 14px; font-weight: 500;
}
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

/* Offer */
.audience { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 28px; }
.audience b { font-size: 14px; color: var(--ink-2); font-weight: 600; margin-right: 6px; }
.audience span { padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }

.offer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.offer-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px 26px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.offer-card:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); transform: translateY(-3px); box-shadow: var(--shadow); }
.offer-head { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 14px; margin-bottom: 2px; border-bottom: 1px solid var(--line); }
.offer-icon { flex: none; color: var(--brand); margin-top: 1px; }
.offer-icon svg { width: 26px; height: 26px; display: block; }
.offer-card h3 { font-size: 22px; }
.offer-card p { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 1040px) { .offer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .offer-grid { grid-template-columns: 1fr; } }

.offer-cta {
  margin-top: 24px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between;
  padding: 22px 28px; border-radius: var(--radius); background: var(--brand-soft);
}
.offer-cta p { font-weight: 500; }

/* EU projects (dark) */
.eu { background: var(--deep); color: var(--on-deep); }
.eu .eyebrow { color: var(--accent); }
.eu .section-head p { color: var(--on-deep-2); }
.eu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.eu-card {
  position: relative; overflow: hidden;
  background: var(--deep-2); border-radius: var(--radius); padding: 32px 28px 28px;
  display: flex; flex-direction: column; gap: 14px; min-height: 340px;
  border: 1px solid rgba(255,255,255,.06);
}
.eu-card .num {
  font-family: var(--f-display); font-size: 15px; font-weight: 600; color: var(--on-deep-2);
}
.eu-card .program {
  align-self: flex-start; padding: 6px 12px; border-radius: 999px;
  background: rgba(224, 162, 58, .14); color: var(--accent);
  font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.eu-card h3 { font-size: 26px; color: #fff; }
.eu-card p { color: var(--on-deep-2); font-size: 15.5px; }
.eu-card .link-arrow { color: #fff; margin-top: auto; }
.eu-card::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%;
  border: 28px solid rgba(255,255,255,.04);
}
@media (max-width: 900px) { .eu-grid { grid-template-columns: 1fr; } .eu-card { min-height: 0; } }
.eu-note { margin-top: 28px; color: var(--on-deep-2); font-size: 15px; }
.eu-note a { color: #fff; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.quote {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; display: flex; flex-direction: column; gap: 22px; position: relative;
}
.quote:first-child { background: var(--brand); color: #fff; border-color: var(--brand); }
.quote:first-child blockquote { font-size: 22px; }
.quote:first-child figcaption span { color: #f1d3d3; }
.quote blockquote { margin: 0; font-family: var(--f-display); font-size: 19px; line-height: 1.35; letter-spacing: -0.01em; font-weight: 500; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.quote .avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper-2); color: var(--brand); font-weight: 700; font-family: var(--f-display);
}
.quote:first-child .avatar { background: rgba(255,255,255,.16); color: #fff; }
.quote figcaption strong { display: block; font-size: 15px; }
.quote figcaption span { font-size: 13.5px; color: var(--ink-2); }
.quote .mark { font-family: var(--f-display); font-size: 64px; line-height: .6; height: 28px; opacity: .35; }
.placeholder-tag {
  position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 6px; background: #fff4d6; color: #7a5600; letter-spacing: .02em;
}
@media (max-width: 960px) { .quotes { grid-template-columns: 1fr; } }

/* Team */
.team { background: var(--paper-2); }
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.person { display: flex; flex-direction: column; gap: 14px; }
.person-photo {
  aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--line);
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: saturate(.92); transition: transform .4s; }
.person:hover .person-photo img { transform: scale(1.03); }
.person h3 { font-size: 20px; }
.person .role { font-size: 14.5px; color: var(--ink-2); margin-top: 4px; line-height: 1.45; }
.person .mail { font-size: 14px; color: var(--brand); text-decoration: none; font-weight: 500; word-break: break-all; }
.person .mail:hover { text-decoration: underline; }
@media (max-width: 1040px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; } .person h3 { font-size: 17px; } }

/* News teaser + news page */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post {
  display: flex; flex-direction: column; gap: 14px; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.post:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-img { aspect-ratio: 16 / 9; background: var(--paper-2); overflow: hidden; }
.post-img img { width: 100%; height: 100%; object-fit: cover; }
.post-img.empty { display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.post-img.empty svg { width: 48px; height: 48px; opacity: .6; }
.post-body { padding: 4px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); }
.post h3 { font-size: 21px; line-height: 1.2; }
.post p { font-size: 15px; color: var(--ink-2); }
.post .link-arrow { margin-top: auto; font-size: 15px; }
@media (max-width: 960px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .news-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 20px; }
.contact-info {
  background: var(--deep); color: var(--on-deep); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px);
  display: flex; flex-direction: column; gap: 28px;
}
.contact-info h3 { font-size: 15px; font-family: var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.contact-info address { font-style: normal; font-size: 19px; line-height: 1.5; color: #fff; }
.contact-info a { color: #fff; }
.contact-people { display: grid; gap: 14px; }
.contact-person { padding: 16px 18px; border-radius: var(--radius-sm); background: var(--deep-2); }
.contact-person small { display: block; color: var(--on-deep-2); font-size: 13px; margin-bottom: 4px; }
.contact-person strong { display: block; font-size: 17px; color: #fff; }
.contact-person a { font-size: 15px; color: var(--on-deep); text-decoration: none; margin-right: 14px; }
.contact-person a:hover { text-decoration: underline; }

.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); display: grid; gap: 18px; }
.form h3 { font-size: 28px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 15px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--paper);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); background: #fff; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-ok { display: none; color: #2f7d4f; font-weight: 600; }
.form.sent .form-ok { display: block; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }

.map { margin-top: 20px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 380px; background: var(--paper-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) sepia(.08); }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: var(--on-deep-2); padding: 64px 0 32px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer .brand-text strong { color: #fff; }
.site-footer .brand-text span { color: var(--on-deep-2); }
.site-footer .brand img { background: #fff; border-radius: 50%; }
.site-footer h4 { font-family: var(--f-body); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-about p { margin-top: 18px; max-width: 320px; }
.foot-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-size: 13.5px;
}
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Subpages ---------- */
.page-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 48px); }
.page-hero h1 { font-size: clamp(40px, 6vw, 68px); margin-top: 16px; }
.page-hero p { margin-top: 18px; color: var(--ink-2); font-size: 19px; max-width: 640px; }
.crumbs { font-size: 14px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button {
  font: 500 15px var(--f-body); padding: 9px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
}
.filters button:hover { border-color: var(--ink-3); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.post-featured { display: grid; grid-template-columns: 1.2fr 1fr; margin-bottom: 20px; }
.post-featured .post-img { aspect-ratio: auto; min-height: 340px; }
.post-featured .post-body { padding: clamp(24px, 4vw, 44px); justify-content: center; }
.post-featured h3 { font-size: clamp(26px, 3vw, 36px); }
.post-featured p { font-size: 17px; }
@media (max-width: 820px) { .post-featured { grid-template-columns: 1fr; } .post-featured .post-img { min-height: 0; aspect-ratio: 16/9; } }
.post[hidden] { display: none; }

.pager { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pager a, .pager span {
  min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; display: grid; place-items: center;
  border: 1px solid var(--line); text-decoration: none; font-weight: 600; background: var(--card);
}
.pager span { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* BIP */
.bip-grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.bip-nav { position: sticky; top: 100px; display: grid; gap: 4px; }
.bip-nav a { padding: 11px 16px; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink-2); font-weight: 500; }
.bip-nav a:hover { background: var(--paper-2); color: var(--ink); }
.bip-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.bip-block + .bip-block { margin-top: 20px; }
.bip-block h2 { font-size: 26px; margin-bottom: 20px; }
.kv { display: grid; grid-template-columns: 260px 1fr; margin: 0; }
.kv dt, .kv dd { padding: 13px 0; border-top: 1px solid var(--line); margin: 0; }
.kv dt { color: var(--ink-2); font-size: 15px; }
.kv dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.docs { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.docs th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: 0 0 10px; font-weight: 600; }
.docs td { padding: 13px 0; border-top: 1px solid var(--line); }
.docs td:first-child { font-family: var(--f-display); font-weight: 700; font-size: 18px; width: 90px; }
.docs a { color: var(--brand); font-weight: 600; text-decoration: none; margin-right: 18px; white-space: nowrap; }
.docs a:hover { text-decoration: underline; }
.docs .missing { color: var(--ink-3); font-style: italic; }
.doc-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--paper); text-decoration: none; font-weight: 600; }
.doc-link:hover { background: var(--brand-soft); color: var(--brand); }
@media (max-width: 860px) { .bip-grid { grid-template-columns: 1fr; } .bip-nav { position: static; grid-auto-flow: column; overflow-x: auto; } .bip-nav a { white-space: nowrap; } }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; } .kv dd { border-top: 0; padding-top: 0; } }

/* Utility */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Artykuł ---------- */
.article-hero { padding: clamp(32px, 5vw, 64px) 0 0; }
.article-hero .post-meta { margin: 22px 0 18px; font-size: 14px; }
.article-hero h1 { font-size: clamp(36px, 5.4vw, 64px); max-width: 920px; }
.article-lead { margin-top: 22px; font-size: clamp(18px, 1.8vw, 21px); color: var(--ink-2); max-width: 720px; line-height: 1.55; }
.article-cover {
  margin: clamp(32px, 4vw, 48px) 0 0; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 21 / 9; background: var(--paper-2);
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
@media (max-width: 640px) { .article-cover { aspect-ratio: 4 / 3; } }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 6vw, 88px); align-items: start; padding-top: clamp(40px, 5vw, 64px); }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } }

.prose { max-width: 68ch; font-size: 18px; line-height: 1.7; }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-size: clamp(26px, 2.6vw, 32px); margin-top: 48px; }
.prose a { color: var(--brand); text-underline-offset: 3px; }
.prose strong { color: var(--ink); }

.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.role-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 18px 20px; }
.role-card b { display: block; font-family: var(--f-display); font-size: 19px; letter-spacing: -0.01em; margin-bottom: 6px; }
.role-card span { display: block; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 640px) { .roles { grid-template-columns: 1fr; } }

.callout {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px;
  margin-top: 28px; padding: 26px 28px; border-radius: var(--radius);
  background: var(--deep); color: var(--on-deep);
}
.callout strong { display: block; color: #fff; font-family: var(--f-display); font-size: 22px; letter-spacing: -0.01em; }
.callout span { color: var(--on-deep-2); font-size: 15.5px; }
.callout .btn-primary { background: var(--accent); color: var(--deep); }
.callout .btn-primary:hover { background: #f0b552; }

.steps { list-style: none; padding: 0; margin-top: 24px; display: grid; gap: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-family: var(--f-display); font-weight: 700; font-size: 18px;
}
.steps b { display: block; font-size: 17px; }
.steps span { display: block; color: var(--ink-2); font-size: 16px; margin-top: 2px; }

.article-aside { position: sticky; top: 100px; display: grid; gap: 16px; }
@media (max-width: 960px) { .article-aside { position: static; } }
.aside-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.aside-card h3 { font-size: 13px; font-family: var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; margin-bottom: 16px; }
.aside-person { display: flex; gap: 14px; align-items: center; }
.aside-person img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.aside-person strong { display: block; font-size: 17px; }
.aside-person span { display: block; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.aside-links { display: grid; gap: 8px; margin-top: 18px; }
.aside-links a { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--brand); }
.aside-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.aside-links svg { width: 18px; height: 18px; flex: none; }
.aside-card .btn { width: 100%; justify-content: center; margin-top: 20px; }
.facts { display: grid; gap: 0; margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.facts div:first-child { border-top: 0; padding-top: 0; }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }

.article-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 68ch; }
.share { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.share a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card);
  display: grid; place-items: center; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px;
}
.share a:hover { border-color: var(--brand); color: var(--brand); }
.share svg { width: 17px; height: 17px; }

/* ---------- Dodatki CMS ---------- */
.section-tight { padding-top: 0; }
.optional { font-weight: 400; color: var(--ink-3); }
.contact-email { font-size: 19px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { padding: 12px 16px; border-radius: var(--radius-sm); background: #fde8e8; color: #8a1c1c; font-weight: 600; font-size: 15px; }
.empty-note { padding: 40px; text-align: center; color: var(--ink-2); background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }

.filters a {
  font: 500 15px var(--f-body); padding: 9px 16px; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
}
.filters a:hover { border-color: var(--ink-3); color: var(--ink); }
.filters a[aria-current="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.prose h3 { font-size: 22px; margin-top: 36px; }
.callout > div { flex: 1 1 320px; color: var(--on-deep-2); font-size: 16px; }
.callout a {
  display: inline-flex; margin-left: 4px; padding: 10px 18px; border-radius: 999px; text-decoration: none;
  background: var(--accent); color: var(--deep); font-weight: 600;
}
.callout a:hover { background: #f0b552; }
.callout strong { display: inline; font-size: 20px; }
.doc-list { display: grid; gap: 10px; }
.docs a small { font-size: 12px; color: var(--ink-3); font-weight: 600; }

.aside-news { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.aside-news a { font-weight: 600; text-decoration: none; line-height: 1.35; display: block; }
.aside-news a:hover { color: var(--brand); }
.aside-news span { font-size: 13px; color: var(--ink-3); }

/* Pasek administratora */
.admin-bar {
  position: fixed; left: 16px; bottom: 16px; z-index: 100;
  display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 16px;
  background: var(--deep); color: var(--on-deep); border-radius: 999px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.45); font-size: 14px;
}
.admin-bar form { margin: 0; }
.admin-bar-who { margin-right: 6px; color: var(--on-deep-2); }
.admin-bar button, .admin-bar a {
  font: 600 14px var(--f-body); padding: 9px 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.1); color: #fff; text-decoration: none;
}
.admin-bar button:hover, .admin-bar a:hover { background: rgba(255,255,255,.2); }
.admin-bar button.on { background: var(--accent); color: var(--deep); }
@media (max-width: 560px) { .admin-bar-who { display: none; } .admin-bar { left: 8px; right: 8px; justify-content: center; } }
