/* ==========================================================================
   RankPay — strona pojedynczego rankingu
   ========================================================================== */

/* --- TABELA PORÓWNAWCZA --------------------------------------------------- */

.table-scroll { overflow: auto; margin: 22px 0 10px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }

.comparison { width: 100%; border-collapse: collapse; font-size: 13px; }
.comparison th,
.comparison td { padding: 13px 12px; border-bottom: 1px solid #e6e8e2; text-align: left; white-space: nowrap; }
.comparison thead th { color: #566257; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; background: #f7f8f3; }
.comparison tbody tr:last-child > * { border-bottom: 0; }
.comparison .op { display: flex; align-items: center; gap: 10px; min-width: 200px; white-space: normal; font-weight: 600; }
.comparison .op-logo { width: auto; max-width: 68px; max-height: 29px; object-fit: contain; flex: none; }
.comparison tr.hl { background: #f5f9f3; }

.tag-no { color: var(--muted); }
.tag-yes { color: var(--green); font-weight: 700; }

/* --- KARTY OPERATORÓW ----------------------------------------------------- */

.rank-sort select {
  padding: 9px 30px 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-size: 13px;
}

.list-note { margin: 0 0 14px; }

.provider-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 20px; }

.provider-card {
  display: grid;
  grid-template-columns: minmax(260px, 30%) minmax(0, 1fr);
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
}

.provider-card.winner { border: 2px solid #315f46; background: #f7faf5; box-shadow: 0 12px 32px #1e3b2b1a; }

.provider-photo {
  position: relative;
  align-self: start;
  aspect-ratio: 3 / 2;
  margin: 14px 0 14px 14px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper-alt);
}
.provider-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

.rank-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 7px 10px;
  border-radius: 20px;
  background: #fff;
  color: #263a2c;
  font-size: 12px;
  font-weight: 700;
}
.winner .rank-badge { background: #123b2e; color: #fff; }

.ribbon {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 10px;
  border-radius: 20px;
  background: var(--gold);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
}

.provider-content { padding: 20px 22px; }
.provider-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.provider-logo { width: auto; max-width: 120px; max-height: 38px; object-fit: contain; }
.provider-score { display: flex; align-items: baseline; margin-left: auto; color: #355d41; }
.provider-score b { font: 800 23px var(--display); }
.provider-score small { font-size: 11px; margin-left: 3px; }
.winner .provider-score { color: #0b7651; }
.winner .provider-score b { font-size: 30px; }

.provider-content h3 { margin: 12px 0 8px; }
.provider-lead { font-weight: 650; color: #314337; margin-bottom: 8px; }
.provider-points { padding-left: 18px; margin-bottom: 10px; color: #68746a; font-size: 13px; line-height: 1.7; }
.provider-points .good { color: var(--green); font-weight: 600; }
.provider-content > .muted { font-size: 15px; }

.provider-cta { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.aff-note { font-size: 11px; color: var(--muted); letter-spacing: .04em; }

@media (max-width: 760px) {
  .provider-card { grid-template-columns: 1fr; }
  .provider-photo { margin: 12px 12px 0; }
  .provider-content { padding: 18px; }
}

/* --- LICZBY I NOTKA ------------------------------------------------------- */

.rank-metrics { margin: 0 0 22px; }
.notice b { display: inline; margin-right: 4px; }

/* --- KRYTERIA ------------------------------------------------------------- */

.criteria-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.criterion { padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.criterion p { font-size: 14px; margin: 0; }

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

/* --- OPERATOR CZY BANK ---------------------------------------------------- */

.why-copy h2 { margin: 8px 0 14px; }
.why-copy p { color: var(--lead); }

.compare-banks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 20px; background: #f0f1eb; border-radius: var(--r-lg); }
.compare-banks > div { display: grid; gap: 12px; align-content: start; }
.compare-banks b { font-size: 16px; color: #5b655d; }
.compare-banks span { font-size: 13px; color: #626c63; padding-bottom: 10px; border-bottom: 1px solid #dedfd8; }
.compare-banks span:last-child { border-bottom: 0; padding-bottom: 0; }
.compare-banks .direct { padding: 15px; background: #fff; border-radius: 10px; }
.compare-banks .direct b { color: #355d41; }
.compare-banks .direct span { color: var(--ink); }

@media (max-width: 420px) {
  .compare-banks { grid-template-columns: 1fr; }
}

/* --- OPINIE --------------------------------------------------------------- */

.review .card-body { padding: 15px 18px 19px; }
.review-source { font-size: 12px; color: #6a766c; line-height: 1.5; }
.review-title { display: block; margin: 8px 0 7px; color: #20382c; font-size: 15px; }
.review .quote { font-family: Georgia, serif; font-size: 16px; line-height: 1.55; color: #29382e; margin: 8px 0 12px; }
.review-link { font-size: 12px; color: var(--green); margin-top: auto; }
.review-link:hover { text-decoration: underline; }
