/*
Theme Name: Nielicznazus
Theme URI: https://nielicznazus.pl
Author: Nielicznazus.pl
Description: Nowoczesny, ciemny motyw o inwestowaniu i finansach osobistych. Zawiera stronę główną, bazę wiedzy z filtrami, sprzedaż eBooka, listę promocji bankowych oraz newsletter zapisywany w bazie WordPressa.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nielicznazus
Tags: blog, one-column, custom-menu, custom-logo, featured-images, translation-ready, dark-mode
*/
/* ==========================================================================
   NIELICZNAZUS.PL — arkusz stylów
   Paleta: granat / czerń + złoto
   ========================================================================== */

/* ---------- 1. Zmienne ---------- */
:root {
  --bg:            #05070d;
  --bg-2:          #0a0e18;
  --surface:       #0e1320;
  --surface-2:     #131a2a;
  --line:          rgba(255, 255, 255, .08);
  --line-strong:   rgba(255, 255, 255, .16);

  --text:          #eef1f7;
  --text-soft:     #a8b1c4;
  --text-dim:      #737e94;

  --gold:          #d9ad63;
  --gold-2:        #f0d29a;
  --gold-3:        #b5873f;
  --gold-grad:     linear-gradient(135deg, #f0d29a 0%, #d9ad63 45%, #b5873f 100%);

  --radius:        14px;
  --radius-lg:     22px;
  --radius-sm:     10px;

  --shadow:        0 18px 50px rgba(0, 0, 0, .45);
  --shadow-gold:   0 14px 34px rgba(217, 173, 99, .22);

  --container:     1180px;
  --header-h:      74px;

  --font-head:     'Sora', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --font-body:     'Manrope', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;

  --ease:          cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(217, 173, 99, .10), transparent 62%),
    radial-gradient(760px 520px at 4% 12%, rgba(60, 96, 168, .10), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-head);
  line-height: 1.18;
  letter-spacing: -.02em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.32rem); }
p  { margin: 0; }

::selection { background: var(--gold); color: #0a0e18; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tight { padding: clamp(40px, 6vw, 68px) 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
}
.section-head p { color: var(--text-soft); max-width: 62ch; margin-top: 10px; }

.eyebrow {
  display: inline-block;
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}

.gold { color: var(--gold); }
.text-soft { color: var(--text-soft); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

/* ---------- 4. Przyciski ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--btn-bg);
  font-weight: 600;
  font-size: .96rem;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), border-color .25s var(--ease);
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--gold-grad);
  border-color: transparent;
  color: #171104;
  box-shadow: var(--shadow-gold);
}
.btn--primary:hover { box-shadow: 0 18px 42px rgba(217, 173, 99, .34); }

.btn--ghost { background: rgba(255, 255, 255, .03); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); }

.btn--sm { padding: 10px 18px; font-size: .86rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 600;
  font-size: .92rem;
}
.link-arrow svg { transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- 5. Nagłówek ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(5, 7, 13, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo { display: flex; align-items: center; gap: 11px; }
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo-text {
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: .16em;
  font-size: .84rem;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative;
  padding: 9px 14px;
  font-size: .92rem;
  color: var(--text-soft);
  border-radius: 8px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav-link.is-active { color: var(--text); }
.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-grad);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .28s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 6. Hero ---------- */
.hero { padding: clamp(48px, 7vw, 92px) 0 clamp(40px, 6vw, 72px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero-lead {
  color: var(--text-soft);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  max-width: 52ch;
  margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note {
  margin-top: 18px;
  font-size: .84rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .55)); }

/* ---------- 7. Pasek atutów ---------- */
.usp-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.usp {
  background: linear-gradient(180deg, rgba(255, 255, 255, .028), transparent);
  padding: 24px 22px;
  display: flex;
  gap: 14px;
}
.usp .ico { flex: none; }
.usp h3 { font-size: .98rem; margin-bottom: 5px; }
.usp p { font-size: .86rem; color: var(--text-soft); line-height: 1.55; }

.ico {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(217, 173, 99, .10);
  border: 1px solid rgba(217, 173, 99, .28);
  color: var(--gold);
}
.ico svg { width: 20px; height: 20px; }
.ico--lg { width: 54px; height: 54px; border-radius: 15px; }
.ico--lg svg { width: 26px; height: 26px; }

/* ---------- 8. Karty / siatki ---------- */
.grid { display: grid; gap: 20px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 173, 99, .38);
  box-shadow: var(--shadow);
}

/* karta artykułu */
.post {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
.post-media {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 100% at 20% 0%, rgba(217, 173, 99, .18), transparent 60%),
    linear-gradient(150deg, #16203a, #0b111d);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-media svg { width: 54px; height: 54px; color: rgba(217, 173, 99, .82); }
.post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.post-cat {
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.post h3 { font-size: 1.06rem; }
.post p { font-size: .89rem; color: var(--text-soft); flex: 1; }

/* ---------- 9. Filtry ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip {
  padding: 9px 17px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .03);
  font-size: .85rem;
  color: var(--text-soft);
  cursor: pointer;
  transition: all .22s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--gold); }
.chip.is-active {
  background: var(--gold-grad);
  border-color: transparent;
  color: #171104;
  font-weight: 600;
}

/* ---------- 10. Newsletter ---------- */
.newsletter-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 42px);
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(217, 173, 99, .12), transparent 55%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
  align-items: center;
}
.newsletter-box h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
.newsletter-box p { color: var(--text-soft); margin-top: 10px; font-size: .95rem; }

.form-row { display: flex; gap: 10px; flex-wrap: wrap; }
.form-row .field { flex: 1 1 220px; }

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font: inherit;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-dim); }
.field input:focus,
.field textarea:focus { border-color: var(--gold); background: rgba(255, 255, 255, .06); outline: none; }
.field label {
  display: block;
  font-size: .82rem;
  color: var(--text-soft);
  margin-bottom: 7px;
  font-weight: 500;
}
.field + .field { margin-top: 16px; }

.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .78rem;
  color: var(--text-dim);
  margin-top: 14px;
  line-height: 1.5;
}
.form-consent input { margin-top: 3px; accent-color: var(--gold); width: 16px; height: 16px; flex: none; }
.form-consent a { color: var(--gold); text-decoration: underline; }

.form-msg {
  margin-top: 14px;
  font-size: .88rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  display: none;
}
.form-msg.is-ok {
  display: block;
  background: rgba(70, 190, 130, .10);
  border: 1px solid rgba(70, 190, 130, .35);
  color: #8fe3b8;
}
.form-msg.is-err {
  display: block;
  background: rgba(226, 96, 96, .10);
  border: 1px solid rgba(226, 96, 96, .35);
  color: #f0a3a3;
}

/* ---------- 11. Ebook ---------- */
.ebook-grid {
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.check-list { list-style: none; display: grid; gap: 13px; margin: 26px 0; }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .95rem;
  color: var(--text-soft);
}
.check-list svg { flex: none; width: 20px; height: 20px; color: var(--gold); margin-top: 2px; }

.price-tag { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.price-now {
  font-size: clamp(2.1rem, 4.6vw, 2.9rem);
  font-weight: 700;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -.03em;
}
.price-meta { font-size: .86rem; color: var(--text-dim); }

.book-cover {
  position: relative;
  margin-inline: auto;
  max-width: 340px;
  aspect-ratio: 3 / 4;
  border-radius: 6px 14px 14px 6px;
  background: linear-gradient(145deg, #1b2338 0%, #0b101c 55%, #05070d 100%);
  border: 1px solid rgba(217, 173, 99, .30);
  box-shadow: 0 34px 70px rgba(0, 0, 0, .65), inset 3px 0 0 rgba(217, 173, 99, .45);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: rotate(-2deg);
  transition: transform .4s var(--ease);
}
.book-cover:hover { transform: rotate(0deg) translateY(-6px); }
.book-cover h3 {
  font-size: clamp(1.7rem, 4.4vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: -.02em;
}
.book-cover .sub {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 14px;
}
.book-cover .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .62rem;
  letter-spacing: .18em;
  color: var(--text-soft);
}
.book-cover .brand img { width: 20px; height: 20px; }

/* ---------- 12. Promocje bankowe ---------- */
.promo-list { display: grid; gap: 14px; }
.promo {
  display: grid;
  grid-template-columns: 190px 1fr 210px;
  gap: 22px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.promo:hover { border-color: rgba(217, 173, 99, .38); transform: translateY(-2px); }
.promo-bank { display: flex; align-items: center; gap: 12px; }
.bank-badge {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: .95rem;
  color: #0a0e18;
  flex: none;
}
.promo-bank strong { font-size: .95rem; display: block; }
.promo-bank span { font-size: .78rem; color: var(--text-dim); }
.promo-benefits { list-style: none; display: grid; gap: 7px; }
.promo-benefits li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: .87rem;
  color: var(--text-soft);
}
.promo-benefits svg { width: 16px; height: 16px; color: var(--gold); flex: none; margin-top: 3px; }
.promo-cta { display: grid; gap: 8px; justify-items: stretch; }
.promo-cta .small { font-size: .72rem; color: var(--text-dim); text-align: center; }

.notice {
  border: 1px solid rgba(217, 173, 99, .28);
  background: rgba(217, 173, 99, .07);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: .86rem;
  color: var(--text-soft);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.notice svg { width: 20px; height: 20px; color: var(--gold); flex: none; margin-top: 2px; }

/* ---------- 13. Artykuł ---------- */
.page-head { padding: clamp(38px, 5vw, 62px) 0 8px; }
.breadcrumbs { font-size: .8rem; color: var(--text-dim); margin-bottom: 16px; }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span { margin: 0 7px; }

.article { max-width: 760px; margin-inline: auto; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  color: var(--text-dim);
  font-size: .83rem;
  margin-top: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.article-body { margin-top: 30px; }
.article-body h2 { margin: 40px 0 14px; font-size: clamp(1.3rem, 2.4vw, 1.65rem); }
.article-body h3 { margin: 28px 0 10px; }
.article-body p { color: var(--text-soft); margin-bottom: 16px; }
.article-body ul,
.article-body ol { color: var(--text-soft); margin: 0 0 18px; padding-left: 22px; }
.article-body li { margin-bottom: 9px; }
.article-body strong { color: var(--text); }
.article-body a { color: var(--gold); text-decoration: underline; }

.callout {
  border: 1px solid rgba(217, 173, 99, .26);
  background: rgba(217, 173, 99, .06);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 26px 0;
  font-size: .93rem;
  color: var(--text-soft);
}
.callout strong { color: var(--gold-2); }

.table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: .89rem; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: rgba(255, 255, 255, .04); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); }
td { color: var(--text-soft); }
tr:last-child td { border-bottom: none; }

/* ---------- 14. FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-weight: 600;
  font-size: .98rem;
}
.faq-q .plus { color: var(--gold); font-size: 1.3rem; line-height: 1; transition: transform .25s var(--ease); flex: none; }
.faq-item.is-open .plus { transform: rotate(45deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease);
}
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 20px 20px; color: var(--text-soft); font-size: .92rem; }

/* ---------- 15. Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 5, 10, .78);
  backdrop-filter: blur(6px);
}
.modal.is-open { display: flex; }
.modal-card {
  width: min(480px, 100%);
  background: linear-gradient(180deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.modal-card h3 { margin-bottom: 8px; }
.modal-card > p { color: var(--text-soft); font-size: .9rem; margin-bottom: 20px; }

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: .92rem;
}
.summary-row strong { color: var(--gold); }

/* ---------- 16. Stopka ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(40px, 6vw, 60px) 0 26px;
  margin-top: 40px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .018));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
}
.footer-grid h4 {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a { color: var(--text-soft); font-size: .89rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-about p { color: var(--text-soft); font-size: .87rem; margin-top: 16px; max-width: 34ch; }

.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--text-soft);
  transition: all .22s var(--ease);
}
.socials a:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--text-dim);
}

.disclaimer {
  margin-top: 18px;
  font-size: .76rem;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 90ch;
}

/* ---------- 17. Animacja wejścia ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 18. RWD ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .usp-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .promo { grid-template-columns: 170px 1fr; }
  .promo-cta { grid-column: 1 / -1; justify-items: start; }
  .promo-cta .btn { width: auto; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 430px; margin-inline: auto; }
  .ebook-grid { grid-template-columns: 1fr; }
  .newsletter-box { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }

  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 20px 24px;
    background: rgba(5, 7, 13, .98);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-link { padding: 14px 12px; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-link.is-active::after { display: none; }
  .nav-link.is-active { color: var(--gold); }
}

@media (max-width: 640px) {
  .grid--4,
  .grid--3,
  .grid--2 { grid-template-columns: 1fr; }
  .usp-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .promo { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .promo-cta .btn,
  .filters .chip,
  .form-row .btn { width: auto; }
  .form-row .btn { width: 100%; }
  .logo-text { font-size: .74rem; letter-spacing: .12em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   19. Elementy specyficzne dla WordPressa
   ========================================================================== */

.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .nav { top: calc(var(--header-h) + 46px); }
}

.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--gold);
  color: #171104;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.custom-logo-link img,
.custom-logo { max-height: 40px; width: auto; }

/* treść z edytora Gutenberga */
.article-body img,
.entry-content img { border-radius: var(--radius); height: auto; }
.article-body figure,
.entry-content figure { margin: 26px 0; }
.article-body figcaption,
.entry-content figcaption { font-size: .8rem; color: var(--text-dim); margin-top: 8px; text-align: center; }
.article-body blockquote,
.entry-content blockquote {
  border: 1px solid rgba(217, 173, 99, .26);
  background: rgba(217, 173, 99, .06);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 26px 0;
}
.article-body blockquote p:last-child,
.entry-content blockquote p:last-child { margin-bottom: 0; }
.article-body code,
.entry-content code,
.article-body pre {
  background: rgba(255, 255, 255, .06);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: .88em;
}
.article-body pre { padding: 16px 18px; overflow-x: auto; }
.alignleft { float: left; margin: 6px 24px 18px 0; }
.alignright { float: right; margin: 6px 0 18px 24px; }
.aligncenter { margin-inline: auto; }
.wp-caption { max-width: 100%; }
.sticky .post-cat::after { content: ' • wyróżnione'; }

/* miniatury wpisów w kartach */
.post-media img { width: 100%; height: 100%; object-fit: cover; }

/* paginacja */
.nlz-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 40px;
}
.nlz-pagination .page-numbers {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-size: .9rem;
  transition: all .2s var(--ease);
}
.nlz-pagination .page-numbers:hover { border-color: var(--gold); color: var(--gold); }
.nlz-pagination .page-numbers.current {
  background: var(--gold-grad);
  border-color: transparent;
  color: #171104;
  font-weight: 600;
}

/* komentarze */
.comments-area { max-width: 760px; margin: 56px auto 0; }
.comments-area h2 { font-size: 1.3rem; margin-bottom: 22px; }
.comment-list { list-style: none; display: grid; gap: 16px; }
.comment-list .comment-body {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--surface);
}
.comment-list .children { list-style: none; margin-top: 16px; padding-left: 22px; display: grid; gap: 16px; }
.comment-meta { font-size: .8rem; color: var(--text-dim); margin-bottom: 8px; }
.comment-form p { margin-bottom: 16px; }
.comment-form label { display: block; font-size: .82rem; color: var(--text-soft); margin-bottom: 7px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font: inherit;
}
.comment-form .submit {
  background: var(--gold-grad);
  border: 0;
  color: #171104;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* wyszukiwarka i stany puste */
.nlz-search {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin-top: 24px;
}
.nlz-search input[type="search"] {
  flex: 1;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font: inherit;
}
.nlz-empty {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  color: var(--text-soft);
}
.error-404 { text-align: center; padding: clamp(60px, 10vw, 120px) 0; }
.error-404 .code {
  font-family: var(--font-head);
  font-size: clamp(4rem, 16vw, 9rem);
  font-weight: 700;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
