:root{
  --bg: #0b0f14;
  --bg-2: #070a0f;

  /* PODBITE kolory */
  --accent: #ffb000;
  --accent-2: #ff6a00;
  --accent-3: #ffd36a;

  --text: #e7edf6;
  --muted: rgba(231,237,246,.72);

  --card: rgba(255,255,255,.05);
  --card-2: rgba(255,255,255,.035);
  --border: rgba(255,255,255,.12);
  --border-strong: rgba(255,255,255,.18);

  --shadow: 0 18px 55px rgba(0,0,0,.55);
  --radius: 18px;

  --maxw: 1120px;
  --gutter: 24px;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }

body{
  margin:0;
  font-family: "Exo 2", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow: hidden; /* scroll tylko w .site-main */
}

/* Fixed anchored background */
.bg-fixed{
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 12% 18%, rgba(255,176,0,.22), transparent 60%),
    radial-gradient(760px 520px at 88% 72%, rgba(255,106,0,.16), transparent 62%),
    radial-gradient(520px 420px at 78% 18%, rgba(255,211,106,.10), transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.bg-fixed::before{
  content:"";
  position:absolute;
  inset:-1px;
  background:
    radial-gradient(620px 380px at 85% 50%, rgba(255,176,0,.18), transparent 64%),
    radial-gradient(560px 380px at 15% 78%, rgba(255,106,0,.14), transparent 64%);
  filter: blur(10px);
  opacity: .95;
}
.bg-fixed::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(120% 80% at 50% 25%, transparent 40%, rgba(0,0,0,.55) 100%);
  opacity: .9;
}

/* Shell */
.page-shell{
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Jeden kontener na marginesy */
.site-header-inner,
.content-wrap,
.site-footer-inner{
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Header */
.site-header{
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11,15,20,.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header-inner{
  padding-top: 14px;
  padding-bottom: 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
  color: var(--text);
}
.brand-badge{
  width: 28px;
  height: 28px;
  display:grid;
  place-items:center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,176,0,.22), rgba(255,106,0,.12));
  border: 1px solid rgba(255,176,0,.35);
  box-shadow: 0 10px 30px rgba(255,176,0,.10);
}
.brand-text{
  font-weight: 700;
  letter-spacing: .2px;
}

/* Nav */
.nav{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-link{
  text-decoration:none;
  color: rgba(231,237,246,.78);
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: .15s ease;
}
.nav-link:hover{
  color: var(--text);
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}

/* Main scroll container */
.site-main{
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 26px 0 42px; /* zero left/right */
}

/* Footer */
.site-footer{
  flex: 0 0 auto;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(11,15,20,.55);
  backdrop-filter: blur(10px);
}
.site-footer-inner{
  padding-top: 14px;
  padding-bottom: 14px;
  color: rgba(231,237,246,.60);
  font-size: 14px;
}

/* Typography */
h1, h2, h3{ letter-spacing: .1px; }
h1{ margin: 10px 0 14px; font-size: 40px; line-height: 1.12; }
h2{ margin: 34px 0 10px; font-size: 24px; line-height: 1.2; }
h3{ margin: 20px 0 8px; font-size: 18px; }

p{
  margin: 0 0 14px;
  color: rgba(231,237,246,.86);
  line-height: 1.65;
}

a{ color: var(--accent-3); }
a:hover{ color: #ffe2a0; }

hr{
  border: 0;
  height: 1px;
  background: rgba(255,255,255,.10);
  margin: 24px 0;
}

.eyebrow{
  margin: 0 0 10px;
  display:inline-block;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(255,176,0,.95);
}

ul, ol{
  margin: 0 0 14px 18px;
  color: rgba(231,237,246,.86);
}
li{ margin: 6px 0; }

/* CTA */
.hero-cta{
  margin-top: 28px;
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,176,0,.10), rgba(255,106,0,.06));
  border: 1px solid rgba(255,176,0,.22);
  box-shadow: 0 16px 55px rgba(0,0,0,.45);
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons */
.btn{
  display:inline-block;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration:none;
  font-weight: 700;
  color: #101319;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 16px 45px rgba(255,176,0,.10);
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover{ transform: translateY(-1px); filter: brightness(1.04); }

.btn-ghost{
  background: rgba(255,255,255,.06);
  color: rgba(231,237,246,.92);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: none;
}
.btn-ghost:hover{ background: rgba(255,255,255,.08); }

/* Code blocks */
code, pre{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
pre{
  margin: 0 0 16px;
  padding: 14px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  overflow:auto;
}

/* =========================================================
   PRZYWRÓCENIE "KAFELKÓW" (Blog / sekcje / listy postów)
   Działa na najczęstszych klasach: cards, grid, post-list,
   post-card, post-item — bez grzebania w HTML.
   ========================================================= */

/* Uniwersalna siatka */
.grid,
.cards,
.post-grid,
.post-list{
  display: grid;
  gap: 18px;
}

/* 3 kolumny na desktop, 2 na średnich, 1 na mobile */
.grid,
.cards,
.post-grid,
.post-list{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 980px){
  .grid, .cards, .post-grid, .post-list{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px){
  .grid, .cards, .post-grid, .post-list{
    grid-template-columns: 1fr;
  }
}

/* Kafelki: wspieramy różne nazwy elementów */
.card,
.post-card,
.post-item,
.post{
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.035));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 55px rgba(0,0,0,.45);
  padding: 16px 16px 14px;
  min-height: 160px;
}

/* Jeśli element jest linkiem (a bywa), niech wygląda jak kafelek */
.card a,
.post-card a,
.post-item a{
  text-decoration: none;
}

/* Kategoria / label w kafelku */
.card .eyebrow,
.post-card .eyebrow,
.post-item .eyebrow{
  margin-bottom: 10px;
}

/* Tytuł */
.card h3,
.post-card h3,
.post-item h3,
.post-card-title{
  margin: 4px 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

/* Link w tytule — żółty jak na Twoich kartach */
.card h3 a,
.post-card h3 a,
.post-item h3 a,
.post-card-title a{
  color: rgba(255,176,0,.95);
}
.card h3 a:hover,
.post-card h3 a:hover,
.post-item h3 a:hover,
.post-card-title a:hover{
  color: #ffe2a0;
}

/* Opis */
.card p,
.post-card p,
.post-item p,
.post-excerpt{
  color: rgba(231,237,246,.74);
  margin-bottom: 10px;
}

/* Data / meta */
.post-meta,
.card .meta,
.post-card .meta,
.post-item .meta{
  font-size: 13px;
  color: rgba(231,237,246,.55);
}

/* Hover — delikatny lift */
.card:hover,
.post-card:hover,
.post-item:hover{
  border-color: rgba(255,176,0,.22);
  box-shadow: 0 22px 70px rgba(0,0,0,.55);
  transform: translateY(-1px);
  transition: .12s ease;
}

/* Jeśli gdzieś masz listę bez wrappera grid — to ją “spłaszczamy” do kart */
.section-list > *{
  margin-bottom: 16px;
}

/* ========================================================= */

/* Responsive */
@media (max-width: 720px){
  :root{ --gutter: 16px; }
  h1{ font-size: 32px; }
  .nav{ gap: 8px; }
  .nav-link{ padding: 7px 9px; }
}
