/* ==========================================================================
   Strona pojedynczego rankingu
   Odwzorowanie makiety _docs/ranking - terminale płatnicze.html
   ========================================================================== */

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

.hero { padding: 74px 0 30px; position: relative; }

.hero .updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 26px;
}

.hero h1 { font-size: 60px; max-width: 14ch; margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--mint-d); }
.hero .lead { font-size: 19px; color: var(--ink-soft); max-width: 60ch; margin-bottom: 30px; }
.hero .lead strong { color: var(--ink); font-weight: 600; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .btn { padding: 14px 24px; }

.hero-meta { display: flex; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.hero-meta .m { display: flex; flex-direction: column; }
.hero-meta .m b { font-family: 'Fraunces', serif; font-size: 30px; font-weight: 600; line-height: 1; }
.hero-meta .m span { font-size: 13px; color: var(--grey); margin-top: 6px; }

@media (max-width: 720px) {
  .hero { padding: 48px 0 20px; }
  .hero h1 { font-size: 40px; }
}

/* --- PASEK NIEZALEŻNOŚCI -------------------------------------------------- */

.strip {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r);
  padding: 30px 34px;
  margin: 36px 0;
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.strip .ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  display: grid;
  place-items: center;
  flex: none;
}

.strip .ico .rp-icon { width: 24px; height: 24px; }
.strip p { font-size: 15.5px; color: #CDDAD3; max-width: 74ch; }
.strip p strong { color: #fff; font-weight: 600; }

@media (max-width: 720px) { .strip { padding: 24px; gap: 18px; } }

/* --- METODOLOGIA ---------------------------------------------------------- */

.section { padding: 64px 0; }
.section-head h2 { font-size: 38px; }
.section-head { max-width: 62ch; margin-bottom: 40px; }

.method { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.method .step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px;
  box-shadow: var(--shadow);
}

.method .step .n {
  font-family: 'Fraunces', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--mint-d);
  border: 1.5px solid var(--mint);
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.method .step h3 { font-size: 18px; margin-bottom: 8px; }
.method .step p { font-size: 14.5px; color: var(--ink-soft); }

@media (max-width: 720px) {
  .method { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .section-head h2 { font-size: 30px; }
}

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

.rank-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 24px;
  align-items: start;
  box-shadow: var(--shadow);
  position: relative;
  transition: box-shadow .2s, transform .2s;
}

.rank-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.rank-card.top { border-color: var(--amber); border-width: 2px; background: linear-gradient(180deg, #FFFDF8, #fff); }

.rank-pos {
  font-family: 'Fraunces', serif;
  font-size: 40px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  text-align: center;
}

.rank-card.top .rank-pos { color: var(--amber); }

.ribbon {
  position: absolute;
  top: -13px;
  left: 24px;
  background: var(--amber);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 100px;
  box-shadow: var(--shadow);
}

.rank-body h3 { font-size: 23px; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rank-body .tagline { font-size: 14px; color: var(--grey); margin-bottom: 14px; }
.rank-body p.desc { font-size: 14.5px; color: var(--ink-soft); max-width: 54ch; }

.rank-feats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

.chip {
  font-size: 12.5px;
  font-weight: 600;
  background: var(--paper-2);
  color: var(--ink-soft);
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.chip.good { background: var(--mint-bg); color: var(--mint-d); border-color: #BFE6D6; }

.rank-logo-wrap { margin-top: 16px; }
.rank-logo { max-height: 34px; width: auto; }

.rank-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 130px;
}

.score {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--paper-2);
  border-radius: 14px;
  padding: 12px 20px;
  border: 1px solid var(--line);
}

.rank-card.top .score { background: var(--amber-bg); border-color: #F0D9A8; }
.score b { font-family: 'Fraunces', serif; font-size: 32px; font-weight: 600; line-height: 1; }
.score b small { font-size: 15px; color: var(--grey); font-weight: 500; }
.score span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); margin-top: 4px; font-weight: 600; }

.rank-cta {
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 10px;
  width: 100%;
  text-align: center;
}

.rank-card.top .rank-cta { background: var(--mint); }

/* Wymóg dyrektywy Omnibus: link partnerski musi być oznaczony widocznie. */
.aff-note { font-size: 11px; color: var(--grey); letter-spacing: .04em; }

@media (max-width: 760px) {
  .rank-card { grid-template-columns: 44px 1fr; gap: 14px; }
  .rank-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; min-width: 0; margin-top: 6px; flex-wrap: wrap; }
  .rank-pos { font-size: 30px; }
  .rank-cta { width: auto; }
}

/* --- TABELA --------------------------------------------------------------- */

.tbl-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  background: #fff;
}

.tbl-wrap table { border-collapse: collapse; width: 100%; min-width: 680px; font-size: 14.5px; }
.tbl-wrap th,
.tbl-wrap td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.tbl-wrap thead th { background: var(--ink); color: var(--paper); font-weight: 600; font-size: 13px; letter-spacing: .02em; position: sticky; top: 0; }
.tbl-wrap tbody tr:last-child td,
.tbl-wrap tbody tr:last-child th { border-bottom: none; }
.tbl-wrap tbody tr.hl { background: var(--mint-bg); }
.tbl-wrap tbody tr:hover { background: var(--paper-2); }
.tbl-wrap tbody tr.hl:hover { background: #D8EFE4; }
.tbl-wrap th.op { font-weight: 600; }
.tag-no { color: var(--grey); }
.tag-yes { color: var(--mint-d); font-weight: 600; }

/* --- OPERATOR VS BANK ----------------------------------------------------- */

.why {
  background: var(--paper-2);
  border-radius: 24px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.why h2 { font-size: 32px; margin-bottom: 16px; }
.why p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 14px; }
.why p:last-child { margin-bottom: 0; }

.why .cmp { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.why .cmp .row { display: grid; grid-template-columns: 1fr 1fr; font-size: 14px; }
.why .cmp .row > div { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.why .cmp .row > div:first-child { border-right: 1px solid var(--line); }
.why .cmp .head { font-weight: 600; background: var(--paper); }
.why .cmp .head .op { color: var(--mint-d); }
.why .cmp .row:last-child > div { border-bottom: none; }

@media (max-width: 760px) { .why { grid-template-columns: 1fr; padding: 30px; } }

/* --- CTA ------------------------------------------------------------------ */

.cta-band { padding: 54px; }
.cta-band h2 { font-size: 34px; }
.cta-band p { max-width: 54ch; margin-bottom: 26px; font-size: 17px; }
