:root {
  --bg: #f7f8f3;
  --card: #ffffff;
  --text: #171a17;
  --muted: #636963;
  --soft: #8a9089;
  --line: #e1e5db;
  --lime: #b8ff00;
  --lime-dark: #73bf00;
  --dark: #151815;
  --shadow: 0 8px 24px rgba(15, 18, 15, 0.06);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(184, 255, 0, 0.13), transparent 24rem),
    var(--bg);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 15px;
}

a {
  color: inherit;
}

.page {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 32px;
}

/* Header */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--dark);
  text-decoration: none;
  font-size: 27px;
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 1;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--lime);
  font-size: 17px;
  transform: rotate(-5deg);
}

.brand-dot {
  color: var(--lime-dark);
}

.top-nav {
  display: flex;
  gap: 8px;
}

.nav-link,
.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.nav-link {
  color: var(--muted);
}

.nav-cta {
  background: var(--lime);
}

/* Intro */

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.intro h1 {
  max-width: 560px;
  margin: 0 0 6px;
  font-size: 25px;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.intro p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.intro-prices {
  display: grid;
  gap: 7px;
}

.intro-prices div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.intro-prices strong {
  font-size: 16px;
  letter-spacing: -0.03em;
}

.intro-prices span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

/* Layout */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 16px;
  align-items: start;
}

.main-column {
  min-width: 0;
}

.sidebar {
  display: grid;
  gap: 10px;
  position: sticky;
  top: 14px;
}

.side-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
}

.side-box.ghost {
  background: rgba(255, 255, 255, 0.55);
}

.side-box h3 {
  margin: 0 0 7px;
  font-size: 15px;
  letter-spacing: -0.025em;
}

.side-box p,
.side-box li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

.side-box p {
  margin: 0;
}

.side-box ol {
  margin: 0;
  padding-left: 18px;
}

/* Cards */

.rank1-card,
.rec-card,
.empty-box,
.form-card,
.result-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.rank1-card {
  padding: 16px;
  margin-bottom: 14px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.badge-dark,
.badge-lime,
.badge-soft {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-dark {
  background: var(--dark);
  color: #fff;
}

.badge-lime {
  background: var(--lime);
  color: var(--dark);
}

.badge-soft {
  background: #eff2e9;
  color: var(--muted);
}

.rank1-body.has-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 172px;
  gap: 16px;
  align-items: start;
}

.rank1-body.no-media {
  display: block;
}

.rank1-body.has-media .media-box {
  order: 2;
}

.rank1-body.has-media .card-copy {
  order: 1;
}

.media-box,
.rec-thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #eef2e7;
  position: relative;
  z-index: 1;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.media-box {
  width: 172px;
  height: 172px;
  transform-origin: center right;
}

.rec-thumb {
  width: 158px;
  height: 158px;
  flex: 0 0 158px;
  order: 2;
  transform-origin: center right;
}

.media-box:hover,
.rec-thumb:hover {
  z-index: 8;
  transform: scale(1.32);
  border-color: rgba(115, 191, 0, 0.42);
  box-shadow: 0 16px 38px rgba(15, 18, 15, 0.18);
}

.media-box img,
.rec-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 180ms ease;
}

.media-box:hover img,
.rec-thumb:hover img {
  transform: scale(1.08);
}

.card-copy,
.rec-body {
  min-width: 0;
}

.rec-body {
  flex: 1 1 auto;
  order: 1;
}

.recommender {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.rec-text {
  max-width: 100%;
  margin: 0 0 8px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.42;
  font-weight: 560;
  letter-spacing: -0.005em;
  overflow-wrap: break-word;
}

.rec-text.featured {
  font-size: 18px;
  line-height: 1.36;
  font-weight: 680;
  letter-spacing: -0.018em;
}

.target {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 13px;
}

.target strong {
  color: var(--text);
}

/* Stats / Actions */

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 12px;
}

.stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f2f4ec;
  white-space: nowrap;
}

.stats strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.005em;
}

.stats em {
  color: var(--text);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.stats.compact span {
  min-height: 26px;
  padding: 0 8px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(21, 24, 21, 0.17);
  border-radius: 11px;
  background: #fff;
  color: var(--dark);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.btn.primary {
  background: var(--lime);
}

.btn.small {
  min-height: 31px;
  padding: 0 10px;
  font-size: 12px;
}

/* List */

.list-section {
  margin-top: 4px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 9px;
}

.section-title h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.section-title span {
  color: var(--soft);
  font-size: 13px;
  font-weight: 750;
}

.rec-list {
  display: grid;
  gap: 10px;
}

.rec-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px;
  box-shadow: none;
  overflow: visible;
}

.rec-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.mini-muted {
  color: var(--soft);
  font-size: 12px;
  font-weight: 750;
}

/* Forms */

.form-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.form-intro {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.form-intro h1 {
  margin: 0 0 8px;
  font-size: 25px;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.form-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.form-card {
  display: grid;
  gap: 13px;
  padding: 18px;
}

.form-errors {
  padding: 12px;
  border: 1px solid #f0b8b8;
  border-radius: 13px;
  background: #fff4f4;
}

.form-errors p {
  margin: 0;
  color: #8a2020;
  font-size: 13px;
  font-weight: 750;
}

.form-errors p + p {
  margin-top: 5px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span,
.check-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
}

.field input {
  min-height: 40px;
  padding: 0 12px;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
  padding: 11px 12px;
  line-height: 1.45;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--lime-dark);
  box-shadow: 0 0 0 3px rgba(184, 255, 0, 0.24);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.check-row input {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  flex: 0 0 auto;
}

.legal-check span {
  line-height: 1.35;
}

.legal-check a {
  color: var(--text);
  font-weight: 900;
}

.price-summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f4f6ee;
}

.price-summary strong,
.price-summary span {
  display: block;
}

.price-summary strong {
  font-size: 14px;
}

.price-summary span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.price-summary em {
  font-style: normal;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.form-submit {
  width: 100%;
  min-height: 42px;
}

.form-note {
  margin: 0;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.45;
}

/* Result / Legal pages */

.result-card {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 20px;
}

.result-card.legal-page {
  max-width: 860px;
}

.result-card h1 {
  margin: 0 0 10px;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.result-card h2 {
  margin: 22px 0 8px;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.result-card p,
.result-card li {
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.result-card p {
  margin: 0 0 12px;
}

.result-card ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.result-card a {
  color: var(--text);
  font-weight: 850;
}

.result-list {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.result-list div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.result-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.result-list dd {
  margin: 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.pricing-item {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.pricing-item h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.pricing-item strong {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--dark);
  font-size: 14px;
}

.pricing-item p {
  margin: 0;
  font-size: 13px;
}

/* Empty / Footer */

.empty-box {
  padding: 15px;
  box-shadow: none;
}

.empty-box p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.empty-rank1 p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.footer-brand {
  display: grid;
  gap: 3px;
  justify-items: center;
}

.site-footer strong {
  color: var(--text);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 750;
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* Mobile */

@media (max-width: 900px) {
  .page {
    width: min(100% - 24px, 720px);
    padding-top: 14px;
  }

  .layout,
  .intro,
  .form-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .intro {
    padding: 16px;
  }

  .intro h1 {
    font-size: 23px;
  }

  .intro-prices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .intro-prices div {
    display: block;
  }

  .intro-prices strong,
  .intro-prices span {
    display: block;
  }

  .intro-prices span {
    margin-top: 2px;
  }

  .form-shell {
    max-width: 680px;
  }
}

@media (max-width: 620px) {
  .page {
    width: min(100% - 18px, 520px);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .brand {
    font-size: 26px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .top-nav {
    width: 100%;
  }

  .nav-link,
  .nav-cta {
    flex: 1;
    justify-content: center;
  }

  .intro h1 {
    font-size: 22px;
  }

  .intro-prices {
    grid-template-columns: 1fr;
  }

  .rank1-body.has-media {
    display: block;
  }

  .rank1-body.has-media .media-box,
  .rank1-body.has-media .card-copy {
    order: initial;
  }

  .media-box {
    width: 180px;
    height: 180px;
    max-width: 100%;
    margin-bottom: 12px;
    transform-origin: center left;
  }

  .rec-text.featured {
    font-size: 17px;
  }

  .card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .rec-card {
    display: block;
  }

  .rec-thumb {
    width: 180px;
    height: 180px;
    max-width: 100%;
    margin-bottom: 10px;
    flex: none;
    order: initial;
    transform-origin: center left;
  }

  .stats {
    align-items: flex-start;
  }

  .stats span {
    white-space: normal;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .result-card,
  .result-card.legal-page {
    max-width: 100%;
    padding: 17px;
  }

  .result-list div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.inline-form {
  margin: 0;
  padding: 0;
  display: inline-flex;
}

.inline-form button {
  font: inherit;
}

@media (max-width: 620px) {
  .inline-form {
    width: 100%;
  }

  .inline-form button {
    width: 100%;
  }
}

.concrete-preview {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f7f8f3;
}

.concrete-preview .rec-text {
  margin-bottom: 2px;
}

/* Duża karta polecajki przejmie rolę podglądu, więc na głównej liście nie powiększamy obrazków po hoverze. */
.rec-card .rec-thumb,
.rec-card .rec-thumb:hover,
.rec-card .rec-thumb:focus,
.rec-card .rec-thumb:focus-visible {
  transform: none !important;
  z-index: auto !important;
}

.rec-card .rec-thumb img,
.rec-card .rec-thumb:hover img,
.rec-card .rec-thumb:focus img,
.rec-card .rec-thumb:focus-visible img {
  transform: none !important;
}

/* Duża karta polecajki */
.detail-shell {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.detail-card {
  border: 1px solid rgba(20, 30, 24, 0.12);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
}

.detail-grid {
  display: grid;
  gap: 26px;
  align-items: start;
  margin-top: 18px;
}

.detail-grid.has-media {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.detail-grid.no-media {
  grid-template-columns: minmax(0, 1fr);
}

.detail-title {
  margin: 12px 0 14px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.detail-media {
  border-radius: 24px;
  overflow: hidden;
  background: #101410;
  border: 1px solid rgba(20, 30, 24, 0.12);
}

.detail-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: contain;
}

.detail-stats {
  margin-top: 20px;
}

.detail-actions {
  margin-top: 22px;
}

.history-card {
  padding-top: 20px;
}

.history-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.history-list li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(20, 30, 24, 0.09);
}

.history-list li:last-child {
  border-bottom: 0;
}

.history-list time {
  color: rgba(20, 30, 24, 0.54);
  font-size: 0.9rem;
  white-space: nowrap;
}

.history-list span {
  color: #101410;
  font-weight: 700;
}

@media (max-width: 860px) {
  .detail-card {
    padding: 18px;
    border-radius: 22px;
  }

  .detail-grid.has-media {
    grid-template-columns: 1fr;
  }

  .detail-media {
    order: -1;
  }

  .history-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Treść polecajki na głównej jest tylko zajawką — pełna treść jest w dużej karcie. */
.rec-text-link {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.rec-text-link:hover,
.rec-text-link:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.detail-title {
  overflow-wrap: anywhere;
}

/* Duża karta: pełna treść polecajki ma być czytelna, nie stadionowa. */
.detail-heading {
  margin: 10px 0 12px;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.detail-content {
  margin: 0 0 16px;
  max-width: 760px;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.42;
  letter-spacing: -0.015em;
  color: #101410;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.detail-title {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
}

/* Paginacja listy polecajek */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.pagination-info {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.pagination-actions {
  display: flex;
  gap: 8px;
}

.btn.disabled {
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(0.5);
}

/* Desktop/mobile copy switch */
.mobile-copy {
  display: none;
}

.desktop-copy {
  display: inline;
}

/* Mobile cleanup */
@media (max-width: 760px) {
  .desktop-copy {
    display: none;
  }

  .mobile-copy {
    display: inline;
  }

  .intro {
    padding: 14px;
    margin-bottom: 12px;
    gap: 10px;
  }

  .intro h1 {
    font-size: clamp(2rem, 10vw, 3.1rem);
    line-height: 0.95;
    margin-bottom: 6px;
  }

  .intro p {
    font-size: 13px;
    line-height: 1.32;
    max-width: 32rem;
  }

  .intro-prices {
    display: none;
  }

  .list-section {
    margin-top: 12px;
  }

  .section-title {
    align-items: flex-start;
    gap: 4px;
  }

  .section-title h2 {
    font-size: 18px;
  }

  .section-title span {
    font-size: 12px;
  }

  .rec-card {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    padding: 13px;
    overflow: hidden;
  }

  .rec-card .rec-thumb {
    order: 1 !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    max-width: 100% !important;
    max-height: 260px;
    margin: 0 0 2px !important;
    flex: none !important;
    transform-origin: center center;
    border-radius: 18px;
  }

  .rec-card .rec-body {
    order: 2 !important;
    width: 100%;
  }

  .rec-card .rec-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .rank1-body.has-media {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .rank1-body.has-media .media-box {
    order: 1 !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    max-width: 100% !important;
    margin: 0 0 2px !important;
    transform-origin: center center;
    border-radius: 18px;
  }

  .rank1-body.has-media .card-copy {
    order: 2 !important;
  }

  .pagination {
    display: grid;
    gap: 10px;
  }

  .pagination-info {
    text-align: center;
  }

  .pagination-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* Klikalny badge statystyki "kliki" prowadzi do dużej karty polecajki. */
.stats .stat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f2f4ec;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    transform 140ms ease;
}

.stats .stat-link:hover,
.stats .stat-link:focus-visible {
  border-color: rgba(115, 191, 0, 0.55);
  background: rgba(196, 255, 0, 0.22);
  transform: translateY(-1px);
}

.stats .stat-link strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.005em;
}

.stats .stat-link em {
  color: var(--text);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

@media (max-width: 760px) {
  .stats .stat-link {
    white-space: normal;
  }
}
