/* ==========================================================================
   RankPay — warstwa wspólna
   Tokeny, reset, typografia, nawigacja, stopka, przyciski i komponenty
   powtarzalne. Wartości z makiety _docs/rankpay-prototype-final 1.html.
   ========================================================================== */

/* --- FONTY (self-hosted, zmienne woff2) ---------------------------------- */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('../fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/playfair-display-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/playfair-display-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- TOKENY --------------------------------------------------------------- */

:root {
  --ink: #142a25;
  --green: #155b47;        /* kolor przycisków i aktywnych stanów */
  --green2: #26745a;       /* akcent tekstowy, paski ocen */
  --mint-tint: #e8f0e9;
  --paper: #f7f6f0;
  --paper-alt: #eeefe8;    /* tło co drugiej sekcji */
  --white: #fffefa;
  --line: #dedfd7;
  --muted: #596963;
  --lead: #43564f;
  --gold: #c58e3c;
  --gold-soft: #e5c990;    /* liczby na ciemnym tle */
  --red: #9b4835;
  --shadow: 0 12px 36px #18362a12;
  --shadow-soft: 0 4px 16px #233c2e08;

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
  --display: 'Manrope', Arial, sans-serif;

  --wrap: 1180px;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 14px;

  /* Stare nazwy z poprzedniej wersji motywu — arkusze podstron jeszcze
     z nich korzystają, więc mapujemy je na nową paletę. */
  --ink-soft: var(--lead);
  --paper-2: var(--paper-alt);
  --mint: var(--green2);
  --mint-d: var(--green);
  --mint-bg: var(--mint-tint);
  --amber: var(--gold);
  --amber-bg: #fff5db;
  --grey: var(--muted);
  --blue-bg: #e6eef3;
  --purple-bg: #ece9f3;
  --red-bg: #f6e9e4;
  --teal-bg: #e3efec;
  --shadow-lift: var(--shadow);
}

/* --- RESET ---------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

/* --- UKŁAD I TYPOGRAFIA --------------------------------------------------- */

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }
.wrap-narrow { max-width: 840px; }

h1, h2, .display, .serif {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -.035em;
}

h1 { font-size: clamp(38px, 5vw, 63px); line-height: 1.04; }
h2 { font-size: clamp(30px, 3.6vw, 43px); line-height: 1.08; }
h3 { font: 700 19px/1.24 var(--display); letter-spacing: -.025em; }
h4 { font-family: var(--display); }

h1 em, h2 em { font-style: italic; color: var(--green2); }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

.mint { color: var(--green2); }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--green2);
}

.lead { font-size: 18px; color: var(--lead); max-width: 620px; }

.section { padding: 74px 0; }
.section-alt { background: var(--paper-alt); }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}
.section-head > div { max-width: 720px; }
.section-head h2 { margin: 8px 0 14px; }
.section-head p { margin: 0; color: var(--muted); }
/* Nagłówek sekcji bez przycisku po prawej — zwykły blok. */
.section-head:not(:has(> div)) { display: block; max-width: 720px; }

/* Sekcja przylegająca do poprzedniej — mniejszy odstęp jak w makiecie. */
.section-tight { padding-top: 42px; padding-bottom: 42px; }
.section-flush { padding-top: 0; }

.note { font-size: 12px; color: var(--muted); margin-top: 14px; }
.note-small { font-size: 12px; margin-top: 12px; }

.page-disclaimer {
  line-height: 1.6;
  font-size: 12px;
  color: var(--muted);
  margin: 24px auto 64px;
}

.rp-icon { width: 22px; height: 22px; flex: none; }
.rp-emoji { font-size: 22px; line-height: 1; }
.rp-icon-inline { width: 1em; height: 1em; vertical-align: -.15em; flex: none; }

.stars { color: #b7863f; font-size: 14px; letter-spacing: 2px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Cel skoku dla linków kotwiczących — kompensuje przyklejoną nawigację. */
:target { scroll-margin-top: 96px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) 0;
  font-size: 14px;
  font-weight: 600;
}

.skip-link:focus { left: 0; }

/* Długie nagłówki i adresy nie mogą rozpychać dokumentu na telefonie. */
h1, h2, h3, h4, p, li, td, th, a { overflow-wrap: break-word; }

@media (max-width: 680px) {
  .wrap { width: min(100% - 32px, 560px); }
  .section { padding: 50px 0; }
  .section-tight { padding-top: 34px; padding-bottom: 34px; }
  .section-head { flex-direction: column; align-items: start; }
  .lead { font-size: 16px; }
}

/* --- PASEK GÓRNY I NAWIGACJA ---------------------------------------------- */

.topline {
  height: 32px;
  background: var(--ink);
  color: #e9eee9;
  font-size: 11px;
  letter-spacing: .04em;
}
.topline .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%; }
.topline a { color: #d8e4dc; }
.topline a:hover { color: #fff; }

header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fffefaed;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #e4e4dc;
}

.nav-in { display: flex; align-items: center; gap: 28px; height: 76px; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-right: auto;
  font: 600 19px/1 var(--serif);
  letter-spacing: -.035em;
  color: #10302b;
}

.logo .dot {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #10302b;
  flex: none;
}

.logo .dot::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0fa877;
}

.logo .mint { color: #0a7f59; }
.logo img { display: block; height: 26px; width: auto; }

.nav-primary { display: contents; }
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 13px; font-weight: 600; color: #354741; list-style: none; }
.nav-links a { transition: color .15s; }
.nav-links a:hover,
.nav-links .current-menu-item > a,
.nav-links .current_page_parent > a,
.nav-links .current-menu-ancestor > a { color: var(--green2); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  background: var(--green);
  border: 1px solid var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .18s, transform .18s;
}
.nav-cta:hover { background: #0d4435; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink);
}

.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="false"] .nav-toggle-close { display: none; }

.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 12px 0 18px;
}

.nav-mobile.is-open { display: block; }
.nav-mobile ul { list-style: none; display: grid; gap: 3px; }
.nav-mobile a {
  display: block;
  padding: 11px;
  font-size: 14px;
  border-bottom: 1px solid #ecece5;
}
.nav-mobile ul a:hover { color: var(--green2); }
.nav-mobile .nav-cta { display: flex; justify-content: center; margin-top: 10px; padding: 12px 18px; font-size: 13px; border-bottom: 0; }

@media (max-width: 900px) {
  .nav-in { gap: 16px; }
  .nav-links { gap: 12px; font-size: 12px; }
}

@media (max-width: 680px) {
  .topline { display: none; }
  .nav-in { height: 64px; }
  .nav-links { display: none; }
  .nav-in > .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* --- PRZYCISKI ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  background: var(--green);
  color: #fff;
  border: 1px solid var(--green);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  transition: background .18s, border-color .18s, color .18s, transform .18s;
}
.btn:hover { background: #0d4435; transform: translateY(-1px); }

.btn-primary { /* domyślny wygląd .btn */ }

.btn.outline,
.btn-ghost { background: transparent; color: var(--ink); border-color: #8c9991; }
.btn.outline:hover,
.btn-ghost:hover { background: transparent; border-color: var(--ink); }

.btn.light,
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light:hover,
.btn-light:hover { background: #f1f1ea; }

.btn-on-dark { background: transparent; color: #fff; border-color: #ffffff59; }
.btn-on-dark:hover { background: transparent; border-color: #fff; }

.btn.small,
.btn-small { padding: 9px 12px; font-size: 12px; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 25px 0 26px; }

/* Link tekstowy ze strzałką — „Zobacz ranking →”. */
.link-arrow { color: var(--green); font-weight: 700; font-size: 14px; }
.link-arrow:hover { color: var(--green2); text-decoration: underline; text-underline-offset: 3px; }

/* --- NAGŁÓWEK PODSTRONY --------------------------------------------------- */

.breadcrumb-bar {
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-size: 11px;
  color: var(--muted);
}

.breadcrumb-bar .wrap,
.breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb { font-size: 11px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a:hover,
.breadcrumb-bar a:hover { color: var(--ink); }

.pagehero { padding: 58px 0 34px; background: linear-gradient(120deg, #e9eee6, #f7f6f0); }
.pagehero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 42px; }
.pagehero-copy { padding: 10px 0; }
.pagehero h1 { font-size: clamp(36px, 4.5vw, 54px); max-width: 850px; margin: 14px 0 18px; }
.pagehero .eyebrow + h1 { margin-top: 14px; }
.pagehero .breadcrumb + h1 { margin-top: 0; }
.pagehero .lead p { margin: 0; }
.pagehero-photo { width: 100%; max-height: 420px; justify-self: end; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 14px 36px #12281c14; }
.pagehero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.pagehero-no-image .wrap { grid-template-columns: 1fr; }
.pagehero-no-image .pagehero-copy { max-width: 900px; }
.page-updated { font-size: 12px; color: var(--muted); margin-top: 12px; }

@media (max-width: 760px) {
  .pagehero { padding: 38px 0 24px; }
  .pagehero .wrap { grid-template-columns: 1fr; gap: 18px; }
  .pagehero-photo { max-height: none; grid-row: 1; }
  .pagehero-copy { grid-row: 2; padding: 0; }
  .pagehero h1 { font-size: 36px; }
}

@media (max-width: 400px) {
  .pagehero h1 { font-size: 31px; }
}

/* --- KARTY ---------------------------------------------------------------- */

.cards { display: grid; gap: 18px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); }
.card.pad { padding: 22px; }
.card h3 { margin: 8px 0 8px; }
.card .muted { font-size: 15px; }

.photo {
  display: block;
  /* Wysokość wynika z proporcji pliku (aspect-ratio w atrybucie style),
     więc zdjęcie nie jest kadrowane. 3:2 to zapas na brak wymiarów. */
  aspect-ratio: 3 / 2;
  background: var(--paper-alt);
  overflow: hidden;
  flex: none;
}
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

.card-body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.card-body > :last-child { margin-top: auto; }
.card-body > p:last-child,
.card-body > h3:last-child { margin-top: 0; }

/* Karta artykułu — cała klikalna, link w stopce tylko wizualnie. */
.art-card h3 { transition: color .15s; }
.art-card:hover h3 { color: var(--green); }
.art-card .read-more { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 6px; }
.art-card .read-time { font-size: 12px; color: var(--muted); }
.art-card.pad .card-body { padding: 0; }
.art-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

@media (max-width: 900px) { .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .art-grid { grid-template-columns: 1fr; } }

.gloss-item .term { display: block; font-size: 16px; }
.gloss-item .term-expand { font-weight: 400; color: var(--muted); font-size: 14px; }
.gloss-item .def { margin: 6px 0 0; font-size: 15px; }

.roadmap-card { background: #fbfaf6; border-style: dashed; }
.roadmap-card .photo img { filter: saturate(.85); }

.grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-two.align-center { align-items: center; gap: 42px; }

@media (max-width: 900px) {
  .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .cards.two, .cards.three, .cards.four, .grid-two { grid-template-columns: 1fr; }
  .grid-two.align-center { gap: 24px; }
  .card-body { padding: 18px; }
}

/* --- ETYKIETY, NOTKI, BOKSY ---------------------------------------------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  border: 1px solid #d2ddd4;
  background: #f7faf6;
  border-radius: 99px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #315747;
}
.tag .dot { width: 7px; height: 7px; border-radius: 50%; background: #549369; }
.roadmap-tag { background: #f3f0e6; border-color: #e3ddcd; color: #706649; }

.notice {
  padding: 11px 14px;
  background: #fff7e7;
  border: 1px solid #eddbb7;
  color: #59462d;
  border-radius: var(--r-sm);
  font-size: 13px;
  line-height: 1.55;
}

.sidebox {
  background: #edf1e9;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
}
.sidebox h3 { margin-bottom: 10px; }

.weightbar { height: 5px; background: #e8ece6; border-radius: 9px; margin: 12px 0; overflow: hidden; }
.weightbar i { display: block; height: 100%; background: #3b6549; border-radius: 9px; }

.criterion-head { display: flex; justify-content: space-between; gap: 10px; }
.criterion-head strong { color: #3b6549; }

.metrics { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 28px; }
.metric { border-left: 1px solid #b8c5ba; padding-left: 14px; }
.metric strong { display: block; font: 800 23px var(--display); }
.metric span { display: block; font-size: 11px; color: var(--muted); max-width: 130px; }

@media (max-width: 680px) {
  .metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
  .metric { padding-left: 8px; }
  .metric strong { font-size: 18px; }
  .metric span { font-size: 10px; }
}

/* --- KOLUMNA BOCZNA (O serwisie, strony tekstowe) ------------------------ */

.sidebar { display: grid; gap: 16px; align-content: start; position: sticky; top: 100px; }
.sidebar-card h4 { font: 700 16px var(--display); margin-bottom: 10px; }
.sidebar-card.dark { background: var(--ink); border-color: var(--ink); color: #f6f3e8; }
.sidebar-card.dark h4 { color: #fff; }
.sidebar-text { font-size: 14px; color: var(--lead); margin-bottom: 12px; }
.sidebar-card.dark .sidebar-text { color: #d0dbd2; }

.sidebar-links { list-style: none; }
.sidebar-links a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid #d7dfd5;
}
.sidebar-links li:last-child a { border-bottom: 0; }
.sidebar-links a:hover,
.sidebar-links a.is-active { color: var(--green); }
.sidebar-links a.is-active { font-weight: 700; }
.sidebar-links .arr { color: var(--green2); }
.sidebar-card.dark .sidebar-links a { border-color: #ffffff28; }
.sidebar-card.dark .sidebar-links .arr { color: var(--gold-soft); }

.sidebar-cta { display: inline-flex; gap: 8px; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--green); }
.sidebar-card.dark .sidebar-cta { color: var(--gold-soft); }

.update-pill .label { font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--green2); margin-bottom: 4px; }
.update-pill p { font-size: 13px; margin: 0; }

@media (max-width: 900px) {
  .sidebar { position: static; }
}

/* --- ZAKŁADKI FILTRÓW ----------------------------------------------------- */

.filter-tabs { display: flex; gap: 8px; margin: 0 0 24px; flex-wrap: wrap; }

.tab {
  padding: 9px 13px;
  border: 1px solid #cbd5cb;
  background: var(--white);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  transition: background .15s, color .15s, border-color .15s;
}

.tab:hover { border-color: var(--green); }
.tab.active,
.tab[aria-selected="true"],
.tab[aria-pressed="true"] { background: var(--green); color: #fff; border-color: var(--green); }

.is-hidden { display: none !important; }

/* Atrybut `hidden` przegrywa z każdą deklaracją `display` z arkusza motywu,
   więc wymuszamy go globalnie. */
[hidden] { display: none !important; }

/* Pułapka na boty: musi zostać w drzewie i być wypełnialna programowo,
   dlatego przesunięcie poza ekran, a nie display:none. */
.rp-hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- WYSZUKIWARKA --------------------------------------------------------- */

.search-box { display: flex; gap: 8px; max-width: 580px; margin: 0 auto 24px; }
.search-box input {
  flex: 1;
  min-width: 0;
  border: 1px solid #cbd4ca;
  background: #fff;
  padding: 12px;
  border-radius: var(--r-sm);
}
.search-box input:focus { outline: 2px solid var(--green2); outline-offset: 0; border-color: transparent; }

/* --- STRONICOWANIE ------------------------------------------------------- */

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }

.pagination .page-numbers {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #cbd5cb;
  border-radius: 99px;
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

.pagination .page-numbers:hover { border-color: var(--green); }
.pagination .page-numbers.current { background: var(--green); border-color: var(--green); color: #fff; }
.pagination .dots { border: 0; background: transparent; }

.admin-hint { color: var(--muted); font-size: 13px; font-style: italic; }

/* --- CIEMNY PAS CTA ------------------------------------------------------- */

.darkband { background: var(--ink); color: #f6f3e8; }
.darkband .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 36px 0; }
.darkband .eyebrow { color: #cbd9cb; }
.darkband h2 { color: #fff; margin: 8px 0 8px; }
.darkband p { color: #d0dbd2; margin: 0; max-width: 640px; }
.darkband .cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex: none; }

@media (max-width: 680px) {
  .darkband .wrap { display: block; padding: 30px 0; }
  .darkband .cta-actions { margin-top: 20px; }
}

/* Jasny pas na końcu artykułu. */
.footer-cta {
  background: #e8eee6;
  border-radius: var(--r-lg);
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.footer-cta h3 { margin-bottom: 6px; }
.footer-cta p { margin: 0; }
.footer-cta .btn { flex: none; }

@media (max-width: 680px) {
  .footer-cta { display: block; padding: 24px; }
  .footer-cta .btn { margin-top: 16px; }
}

/* --- FAQ ------------------------------------------------------------------ */

.faq-list { border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }

.faq summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--green); font-size: 20px; line-height: 1; flex: none; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); margin: 12px 0 2px; max-width: 800px; }

/* --- STOPKA --------------------------------------------------------------- */

footer.site-footer { background: #e9ebe4; padding: 45px 0 20px; }

.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.foot-brand p { font-size: 12px; color: var(--muted); max-width: 260px; margin-top: 14px; }

.foot-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 8px;
}

.foot-col ul { list-style: none; }
.foot-col ul a { display: block; font-size: 12px; color: #47564f; padding: 4px 0; }
.foot-col ul a:hover,
.foot-bottom a:hover { color: var(--green2); }

.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #cdd2ca;
  margin-top: 25px;
  padding-top: 16px;
  font-size: 11px;
  color: #627069;
}

.foot-bottom ul { list-style: none; display: flex; gap: 15px; flex-wrap: wrap; }

@media (max-width: 680px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-bottom { display: block; }
  .foot-bottom ul { margin-top: 10px; }
}

/* --- ANIMACJE ------------------------------------------------------------- */

@keyframes rp-pulse {
  0%   { box-shadow: 0 0 0 0 #54936980; }
  70%  { box-shadow: 0 0 0 9px #54936900; }
  100% { box-shadow: 0 0 0 0 #54936900; }
}

.dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #549369;
  animation: rp-pulse 2.2s infinite;
  flex: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* --- WIDOCZNY FOCUS (dostępność) ------------------------------------------ */

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