/* ==========================================================================
   RankPay — strona główna
   ========================================================================== */

/* --- HERO ----------------------------------------------------------------- */

.hero { position: relative; overflow: hidden; background: #e9eee7; min-height: 535px; }

.hero-photo { position: absolute; inset: 0 0 0 35%; }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
/* Zdjęcie z lewej przechodzi w tło, żeby tekst zawsze miał kontrast. */
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #e9eee7 0%, #e9eee7dd 13%, transparent 52%),
    linear-gradient(0deg, #10231a25, transparent 36%);
}

.hero .wrap { position: relative; z-index: 1; min-height: 535px; display: flex; align-items: center; }
.hero-copy { max-width: 560px; padding: 56px 0; }
.hero h1 { max-width: 580px; margin: 14px 0 18px; }
.hero .lead { max-width: 475px; font-size: 17px; }
.hero .lead strong { color: var(--ink); }
.hero .metrics { flex-wrap: nowrap; gap: 24px; }
.hero .metric span { max-width: 115px; }

/* Na węższych ekranach zdjęcie zajmuje więcej szerokości, żeby nie ucinać boków;
   gradient z lewej dalej zapewnia kontrast tekstu. */
@media (max-width: 1100px) {
  .hero-photo { inset: 0 0 0 18%; }
}

@media (max-width: 680px) {
  .hero { min-height: 0; }
  .hero-photo { inset: 0 0 auto 0; height: 260px; }
  .hero-photo::after { background: linear-gradient(0deg, #e9eee7 0%, #e9eee700 68%); }
  .hero .wrap { min-height: 0; align-items: end; padding-top: 190px; }
  .hero-copy { padding: 24px 0 32px; }
  .hero h1 { font-size: 40px; }
  .hero .lead { font-size: 15px; }
}

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

/* --- PASEK ZAUFANIA ------------------------------------------------------- */

.trust-strip { background: var(--paper); border-bottom: 1px solid #e6e5dd; }
.trust-items { display: flex; justify-content: space-between; gap: 12px 22px; padding: 15px 0; color: #536257; font-size: 12px; }
.trust-item { display: inline-flex; align-items: center; gap: 7px; }
.trust-item .rp-icon-inline,
.trust-item .rp-emoji { color: var(--green2); font-size: 14px; }

@media (max-width: 900px) {
  .trust-items { flex-wrap: wrap; justify-content: flex-start; }
  .trust-item { flex: 1 1 calc(50% - 22px); }
}

@media (max-width: 680px) {
  .trust-item { flex-basis: 100%; }
}

/* --- KATEGORIE ------------------------------------------------------------ */

.category-card .card-body { padding: 18px; }


/* --- JAK DZIAŁAMY --------------------------------------------------------- */

.method-card:hover { transform: translateY(-2px); }
.method-card .card-body { padding: 18px 20px 20px; }
.method-card h3 { margin: 10px 0 7px; }
.method-card p { margin: 0; }

.stepno {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: 34px;
  height: 28px;
  border-radius: 999px;
  background: #e8eee7;
  color: #335543;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
}


/* --- TABELA NAJNOWSZEGO RANKINGU ------------------------------------------ */

.ranktable { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }

.ranktable .row {
  display: grid;
  grid-template-columns: 52px 1.2fr .8fr 120px 145px;
  gap: 15px;
  align-items: center;
  padding: 15px 18px;
  border-bottom: 1px solid #e8e7df;
}

.ranktable .row.header {
  background: #f0f2eb;
  color: #53625c;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 10px;
  font-weight: 700;
}

.ranktable .operator { display: flex; align-items: center; gap: 11px; min-width: 0; font-weight: 700; }
.ranktable .table-logo {
  /* Stałe pole na logo — nazwy operatorów zaczynają się w jednej linii
     niezależnie od proporcji logotypu. */
  width: 98px;
  height: 34px;
  object-fit: contain;
  object-position: left center;
  border-radius: var(--r-sm);
  flex: none;
}
.ranktable .wordmark { display: block; min-width: 0; font: 800 14px var(--display); letter-spacing: -.03em; }
.ranktable .wordmark small { display: block; font: 400 12px var(--sans); letter-spacing: 0; color: var(--muted); }
.ranktable .row:not(.header) .rowfee { font-size: 14px; }

.score { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.bar { height: 6px; flex: 1; max-width: 125px; background: #e7eae4; border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--green2); border-radius: 99px; }

.ranktable-foot { padding: 13px 18px; text-align: right; }

@media (max-width: 900px) {
  .ranktable .row { grid-template-columns: 34px 1fr .6fr 110px; }
  .ranktable .rowfee { display: none; }
}

@media (max-width: 680px) {
  .ranktable { overflow-x: auto; }
  .ranktable .row { min-width: 600px; }
  .ranktable .table-logo { width: 64px; height: 28px; }
  .ranktable-foot { text-align: left; }
}

/* --- BAZA WIEDZY I NARZĘDZIA ---------------------------------------------- */

.grid-two h2 { margin: 8px 0 14px; }
.grid-two .btn { margin-top: 10px; }

.tool-teaser-photo { border-radius: 16px; }

