/*
Theme Name: Fabryka Bezpieczeństwa
Theme URI: https://fabryкabezpieczenstwa.pl
Author: Grzegorz Krzemiński
Author URI: https://fabryкabezpieczenstwa.pl
Description: Motyw dla Fabryki Bezpieczeństwa PSA — platforma metodyczna: wdrożenie, audyt, szkolenie.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: fabryka-bezpieczenstwa
*/

/* ============================================================
   FONTY
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Geist:wght@300;400;500;600&display=swap');

/* ============================================================
   ZMIENNE
   ============================================================ */

:root {
  /* Paleta — głęboki granat, ice blue */
  --c-bg:            #0D1B2E;   /* Deep Navy — tło główne */
  --c-bg-mid:        #112336;   /* Navy 800 — karty, panele */
  --c-bg-light:      #162C42;   /* Navy 700 — hover */
  --c-text:          #E8EEF5;   /* Off-White — główny tekst */
  --c-text-muted:    #7A9AB8;   /* Ice Blue muted — tekst drugorzędny */
  --c-text-faint:    #3A5A78;   /* Bardzo wyciszony */
  --c-accent:        #1A5FA8;   /* Ice Blue — akcent główny */
  --c-accent-light:  #5AB0E0;   /* Jaśniejszy akcent — highlights */
  --c-accent-dark:   #0F4A8A;   /* Ciemniejszy — hover */
  --c-accent-glow:   rgba(26, 95, 168, 0.10);
  --c-accent-border: rgba(90, 176, 224, 0.28);
  --c-border:        rgba(90, 140, 200, 0.09);
  --c-border-mid:    rgba(90, 140, 200, 0.18);

  /* Typografia */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Geist', system-ui, sans-serif;

  /* Layout */
  --max-w:     1140px;
  --max-w-md:   860px;
  --max-w-sm:  760px;
  --radius:    5px;
  --radius-lg: 10px;
  --radius-xl: 16px;
}

/* ============================================================
   RESET I BASE
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: #A8D4F0; }

/* ============================================================
   TYPOGRAFIA
   ============================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.35;
  color: var(--c-text);
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--md { max-width: var(--max-w-md); }
.container--sm { max-width: var(--max-w-sm); }

.section       { padding: 5rem 0; }
.section--sm   { padding: 3rem 0; }
.section--xl   { padding: 7rem 0; }
.section--mid  { background: var(--c-bg-mid); }

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(13, 27, 46, 0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.site-logo__sigil {
  width: 34px;
  height: 34px;
  background: var(--c-accent);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-logo__sigil svg {
  width: 20px;
  height: 20px;
}

.site-logo__wordmark {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--c-text);
  line-height: 1.2;
}

.site-logo__wordmark em {
  display: block;
  font-size: 0.6rem;
  font-style: normal;
  font-weight: 400;
  color: var(--c-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-text-muted);
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover,
.site-nav .current-menu-item a,
.site-nav .current_page_item a {
  color: var(--c-text);
  background: var(--c-border-mid);
}

.site-nav__cta a {
  background: var(--c-accent) !important;
  color: white !important;
  font-weight: 600;
}
.site-nav__cta a:hover { background: var(--c-accent-dark) !important; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--c-border-mid);
  border-radius: var(--radius);
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  color: var(--c-text);
  font-size: 1.1rem;
  line-height: 1;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  background: var(--c-bg);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--c-border);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--c-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, black 20%, transparent 100%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: -15%;
  right: 8%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(26,95,168,0.08) 0%, transparent 65%);
  pointer-events: none;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--c-accent-border);
  background: var(--c-accent-glow);
  border-radius: 2rem;
  padding: 0.3rem 0.9rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--c-accent-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.hero__eyebrow::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--c-accent-light);
  border-radius: 50%;
}

.hero h1 {
  max-width: 680px;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: #B8C8D8;
  font-family: var(--font-body);
  font-weight: 300;
}

.hero__lead {
  font-size: 1.1rem;
  color: var(--c-text-muted);
  max-width: 540px;
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.75;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

/* ============================================================
   PRZYCISKI
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
  line-height: 1;
}

.btn--primary {
  background: var(--c-accent);
  color: white;
  border-color: var(--c-accent);
}
.btn--primary:hover {
  background: var(--c-accent-dark);
  border-color: var(--c-accent-dark);
  color: white;
  box-shadow: 0 4px 20px rgba(26,95,168,0.4);
}

.btn--outline {
  background: transparent;
  color: var(--c-text-muted);
  border-color: var(--c-border-mid);
}
.btn--outline:hover {
  color: var(--c-text);
  border-color: rgba(90,140,200,0.35);
  background: var(--c-border);
}

.btn--white {
  background: white;
  color: var(--c-accent);
  border-color: white;
  font-weight: 700;
}
.btn--white:hover {
  background: rgba(255,255,255,0.92);
  color: var(--c-accent-dark);
}

.btn--lg {
  padding: 0.875rem 1.75rem;
  font-size: 0.9625rem;
}

/* ============================================================
   SEKCJA ETYKIETA
   ============================================================ */

.section-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-accent-light);
  margin-bottom: 0.875rem;
}

.section-title { margin-bottom: 1rem; }

.section-intro {
  font-size: 1rem;
  color: var(--c-text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ============================================================
   ARCHIWUM — LISTA WPISÓW Z STICKY SIDEBAR
   ============================================================ */

.archive-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}

.archive-main { min-width: 0; }

.archive-card {
  background: var(--c-bg-mid);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.2s;
}
.archive-card:hover { border-color: var(--c-border-mid); }

.archive-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--c-text-faint);
  font-family: var(--font-body);
}
.archive-card__sep { color: var(--c-border-mid); }
.archive-card__tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--c-accent-light);
  border: 1px solid var(--c-accent-border);
  background: var(--c-accent-glow);
  border-radius: 99px;
  padding: 0.1rem 0.5rem;
  text-decoration: none;
  font-family: var(--font-body);
}
.archive-card__tag:hover { color: var(--c-text); }

.archive-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--c-text);
  text-decoration: none;
  line-height: 1.35;
}
.archive-card__title:hover { color: var(--c-accent-light); }

.archive-card__excerpt {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  line-height: 1.65;
  margin: 0;
}

/* Sticky sidebar */
.archive-sidebar { position: relative; }

.archive-sidebar__inner {
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.archive-sidebar__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-faint);
  font-family: var(--font-body);
  margin-bottom: 0.25rem;
}

.archive-sidebar__group { display: flex; flex-direction: column; gap: 1px; }

.archive-sidebar__group-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-faint);
  font-family: var(--font-body);
  padding: 0.4rem 0;
  margin: 0;
}

.archive-sidebar__card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.875rem 1rem;
  background: var(--c-bg-mid);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  margin-bottom: 2px;
}
.archive-sidebar__card:hover {
  background: var(--c-bg-light);
  border-color: var(--c-border-mid);
}

.archive-sidebar__card-code {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-accent-light);
  font-family: var(--font-body);
}

.archive-sidebar__card-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--c-text);
  font-family: var(--font-body);
  line-height: 1.3;
}

.archive-sidebar__card-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.1rem 0.45rem;
  border-radius: 99px;
  font-family: var(--font-body);
  margin-top: 0.2rem;
  align-self: flex-start;
}

.archive-sidebar__card-tag--active {
  color: #5AB0E0;
  border: 1px solid rgba(90,176,224,0.35);
  background: rgba(90,176,224,0.08);
}
.archive-sidebar__card-tag--soon {
  color: var(--c-text-faint);
  border: 1px solid var(--c-border-mid);
}
.archive-sidebar__card-tag--revival {
  color: #8AB8D4;
  border: 1px solid rgba(138,184,212,0.3);
  background: rgba(138,184,212,0.06);
}

@media (max-width: 900px) {
  .archive-wrap {
    grid-template-columns: 1fr;
  }
  .archive-sidebar__inner {
    position: static;
  }
}

/* ============================================================
   STRONA KONTAKT
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

.contact-email {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--c-bg-mid);
  border: 1px solid var(--c-border-mid);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-accent-light);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}
.contact-email:hover {
  border-color: var(--c-accent-border);
  background: var(--c-bg-light);
  color: var(--c-accent-light);
}
.contact-email svg { flex-shrink: 0; color: var(--c-accent-light); }

.contact-firm {
  background: var(--c-bg-mid);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  font-size: 0.875rem;
  color: var(--c-text-muted);
  line-height: 1.7;
}
.contact-firm p { margin-bottom: 0.25rem; }
.contact-firm p:last-child { margin-bottom: 0; }
.contact-firm strong { color: var(--c-text); }
.contact-firm__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-faint);
  margin-bottom: 0.6rem;
  font-family: var(--font-body);
}
.contact-firm__krs {
  font-size: 0.75rem;
  color: var(--c-text-faint);
  margin-top: 0.5rem;
}

.contact-topics {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--c-border-mid);
  border: 1px solid var(--c-border-mid);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.contact-topic {
  background: var(--c-bg);
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  transition: background 0.15s;
  display: block;
}
.contact-topic:hover { background: var(--c-bg-light); }

.contact-topic__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 0.25rem;
  font-family: var(--font-body);
}

.contact-topic__desc {
  font-size: 0.8rem;
  color: var(--c-text-muted);
  line-height: 1.5;
}

.contact-topic__mailto {
  display: inline-block;
  font-size: 0.65rem;
  color: var(--c-text-faint);
  margin-top: 0.35rem;
  font-family: var(--font-body);
}

.contact-topic--muted .contact-topic__name { color: var(--c-text-muted); }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ============================================================
   CYKL PROCESU
   ============================================================ */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--c-border-mid);
  border: 1px solid var(--c-border-mid);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-top: 2.5rem;
}

.process-step {
  background: var(--c-bg);
  padding: 1.5rem;
  transition: background 0.15s;
}
.process-step:hover { background: var(--c-bg-light); }

.process-step__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--c-accent-border);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.process-step h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--c-text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.process-step p {
  font-size: 0.8rem;
  color: var(--c-text-muted);
  line-height: 1.55;
  margin: 0;
}

.process-step--cta {
  background: var(--c-bg-mid);
  border-left: 2px solid var(--c-accent);
}
.process-step--cta .process-step__num { color: var(--c-accent-light); }

@media (max-width: 1024px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .process-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   TRZY OSIE — FILARY PLATFORMY
   ============================================================ */

.axes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--c-border-mid);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-top: 2.5rem;
}

.axis {
  background: var(--c-bg-mid);
  padding: 2rem;
  transition: background 0.2s;
  position: relative;
}
.axis:hover { background: var(--c-bg-light); }
.axis + .axis { border-left: 1px solid var(--c-border); }

.axis__number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--c-accent-border);
  line-height: 1;
  margin-bottom: 1rem;
}

.axis__icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--c-accent-border);
  background: var(--c-accent-glow);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.axis__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--c-accent-light);
  fill: none;
  stroke-width: 1.75;
}

.axis h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--c-text);
}

.axis p {
  font-size: 0.84rem;
  color: var(--c-text-muted);
  line-height: 1.6;
  margin: 0 0 1rem;
}

.axis__domains {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.axis__domain {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--c-accent-light);
  border: 1px solid var(--c-accent-border);
  background: var(--c-accent-glow);
  border-radius: 3px;
  padding: 0.15rem 0.5rem;
  font-family: var(--font-body);
}

/* ============================================================
   MARKI — KAFELKI PORTFELA
   ============================================================ */

.brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-border-mid);
  border: 1px solid var(--c-border-mid);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-top: 2.5rem;
}

@media (max-width: 768px) {
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .brands-grid { grid-template-columns: 1fr; }
}

.brand-card {
  background: var(--c-bg);
  padding: 1.5rem;
  transition: background 0.15s;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.brand-card:hover { background: var(--c-bg-mid); }

.brand-card__name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--c-text);
  margin-bottom: 0.4rem;
}

.brand-card__desc {
  font-size: 0.8rem;
  color: var(--c-text-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
  flex: 1;
}

.brand-card__tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  font-family: var(--font-body);
  margin: 0 0.2rem 0.2rem 0;
}

.brand-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: center;
  margin-top: auto;
  padding-top: 0.75rem;
}

.brand-card__tag--active {
  color: #5AB0E0;
  border: 1px solid rgba(90,176,224,0.35);
  background: rgba(90,176,224,0.08);
}

.brand-card__tag--soon {
  color: #3A5A78;
  border: 1px solid rgba(58,90,120,0.4);
  background: transparent;
}

.brand-card__tag--revival {
  color: #8AB8D4;
  border: 1px solid rgba(138,184,212,0.3);
  background: rgba(138,184,212,0.06);
}

/* ============================================================
   GREG — PASEK AUTORYTETU
   ============================================================ */

.author-strip {
  padding: 4rem 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.author-strip__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
}

.author-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px solid var(--c-border-mid);
  overflow: hidden;
  background: var(--c-bg-mid);
  flex-shrink: 0;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }

.author-name { font-size: 1.3rem; margin-bottom: 0.25rem; }

.author-title {
  font-size: 0.75rem;
  color: var(--c-accent-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  font-family: var(--font-body);
}

.author-bio {
  color: var(--c-text-muted);
  font-size: 0.9rem;
  max-width: 580px;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.author-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.author-tag {
  display: inline-block;
  background: var(--c-accent-glow);
  border: 1px solid var(--c-accent-border);
  border-radius: 3px;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--c-accent-light);
  letter-spacing: 0.04em;
  font-family: var(--font-body);
}

/* ============================================================
   CTA BAND
   ============================================================ */

.cta-band {
  background: linear-gradient(135deg, #0D2952 0%, #1A5FA8 100%);
  padding: 4.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
}
.cta-band h2 { color: white; margin-bottom: 0.875rem; position: relative; }
.cta-band p  { color: rgba(255,255,255,0.75); font-size: 1rem; max-width: 460px; margin: 0 auto 2rem; position: relative; }

/* ============================================================
   BLOG — KARTY POSTÓW
   ============================================================ */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.post-card {
  background: var(--c-bg-mid);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s;
}
.post-card:hover {
  border-color: var(--c-border-mid);
  transform: translateY(-2px);
}

.post-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }

.post-card__meta {
  font-size: 0.75rem;
  color: var(--c-text-faint);
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
}

.post-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--c-text);
  line-height: 1.4;
  display: block;
  margin-bottom: 0.75rem;
}
.post-card__title:hover { color: var(--c-accent-light); }

.post-card__excerpt {
  font-size: 0.84rem;
  color: var(--c-text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.post-card__link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-accent-light);
  font-family: var(--font-body);
}

/* ============================================================
   SINGLE POST
   ============================================================ */

.post-header {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--c-border);
}

.post-header__cat {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-accent-light);
  margin-bottom: 1rem;
  font-family: var(--font-body);
}

.post-header__meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--c-text-faint);
  font-family: var(--font-body);
  flex-wrap: wrap;
}

.post-header__author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-header__author-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--c-border-mid);
}

.post-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  padding: 3rem 0 4rem;
  align-items: start;
}

.post-content {
  min-width: 0;
  color: var(--c-text-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.post-content h2,
.post-content h3 { color: var(--c-text); margin: 2rem 0 0.75rem; }

.post-content p { margin-bottom: 1.25rem; }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.post-content li { margin-bottom: 0.4rem; }

.post-content a { color: var(--c-accent-light); }
.post-content a:hover { color: #A8D4F0; }

.post-content blockquote {
  border-left: 3px solid var(--c-accent);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--c-accent-glow);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--c-text);
}

.post-content code {
  background: var(--c-bg-light);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.875em;
  color: var(--c-accent-light);
}

.post-sidebar {
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Widżety sidebara */
.sw {
  background: var(--c-bg-mid);
  border: 1px solid var(--c-border-mid);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.sw--accent {
  border-color: var(--c-accent-border);
  background: var(--c-accent-glow);
}

.sw__title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-text);
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-border);
}

.tag {
  font-size: 0.75rem;
  color: var(--c-text-muted);
  border: 1px solid var(--c-border-mid);
  border-radius: 3px;
  padding: 0.2rem 0.55rem;
  font-family: var(--font-body);
  transition: color 0.2s, border-color 0.2s;
}
.tag:hover { color: var(--c-accent-light); border-color: var(--c-accent-border); }

/* ============================================================
   BREADCRUMB
   ============================================================ */

.breadcrumb {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--c-border);
  font-size: 0.8rem;
  color: var(--c-text-faint);
  font-family: var(--font-body);
}
.breadcrumb a { color: var(--c-text-muted); }
.breadcrumb a:hover { color: var(--c-accent-light); }
.breadcrumb span { margin: 0 0.35rem; }

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--c-bg);
  border-top: 1px solid var(--c-border);
  padding: 3.5rem 0 2rem;
  color: var(--c-text-muted);
}

.site-footer__top {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-about__tagline {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  margin-top: 1rem;
  max-width: 280px;
  line-height: 1.6;
}

.footer-nav__title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-text);
  margin-bottom: 1rem;
  font-family: var(--font-body);
}
.footer-nav__list { list-style: none; }
.footer-nav__list li + li { margin-top: 0.45rem; }
.footer-nav__list a {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  transition: color 0.2s;
}
.footer-nav__list a:hover { color: var(--c-accent-light); }

.site-footer__bottom {
  border-top: 1px solid var(--c-border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--c-text-muted);
  font-size: 0.8rem;
  font-weight: 500;
}
.footer-social:hover { color: var(--c-accent-light); }

/* ============================================================
   PAGINACJA
   ============================================================ */

.page-numbers {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 3rem 0 0;
  flex-wrap: wrap;
}

.page-numbers li { list-style: none; padding: 0; margin: 0; }

.page-numbers a,
.page-numbers .current,
.page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid var(--c-border-mid);
  color: var(--c-text-muted);
  font-family: var(--font-body);
  text-decoration: none;
}
.page-numbers a:hover { border-color: var(--c-accent); color: var(--c-accent-light); }
.page-numbers .current { background: var(--c-accent); border-color: var(--c-accent); color: white; }
.page-numbers .dots { border: none; color: var(--c-text-faint); }

/* ============================================================
   RESPONSYWNOŚĆ
   ============================================================ */

@media (max-width: 1024px) {
  .posts-grid  { grid-template-columns: 1fr 1fr; }
  .post-wrap   { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .axes-grid { grid-template-columns: 1fr; gap: 1px; }
  .axis + .axis { border-left: none; border-top: 1px solid var(--c-border); }
}

@media (max-width: 768px) {
  .author-strip__inner { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
  .author-tags { justify-content: center; }
  .site-footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer__bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .menu-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0; right: 0;
    background: var(--c-bg);
    border-top: 1px solid var(--c-border);
    flex-direction: column;
    padding: 0.75rem;
    gap: 0.15rem;
  }
  .site-nav.is-open { display: flex; }
}

@media (max-width: 480px) {
  .posts-grid  { grid-template-columns: 1fr; }
  .hero__cta   { flex-direction: column; align-items: flex-start; }
}
