/* ── PRICING PAGE ───────────────────────────────────── */
.pricing-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  background: transparent;
}
.pricing-page::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 920px;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--bg);
}
.pricing-page > *:not(.site-nav) {
  position: relative;
  z-index: 1;
}
.pricing-page main {
  /* Studnia jak sekcje strony glownej. */
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px 96px;
}
.pricing-hero {
  padding: 96px 0 46px;
  text-align: center;
}
.pricing-eyebrow {
  display: inline-flex;
  margin: 0 0 14px;
  border: 1px solid rgba(42,107,79,0.18);
  border-radius: var(--btn-radius);
  background: rgba(234,244,238,0.82);
  padding: 6px 12px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pricing-hero h1 {
  max-width: 740px;
  margin: 0 auto 14px;
  color: var(--text);
  font-size: var(--fs-hero, clamp(2.1rem, 4.1vw, 3.2rem));
  line-height: 1.05;
  font-weight: var(--fw-heading);
  letter-spacing: var(--ls-heading);
  text-wrap: balance;
}
.pricing-hero > p:not(.pricing-eyebrow) {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text);
  font-size: var(--fs-body, 16px);
  line-height: 1.55;
}
.pricing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 32px;
  padding: 5px;
  border: 1px solid var(--border-strong);
  border-radius: var(--btn-radius);
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.pricing-toggle button {
  border: 0;
  border-radius: var(--btn-radius);
  background: transparent;
  padding: 11px 20px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}
.pricing-toggle button.is-active { background: var(--text); color: #fff; }
.pricing-toggle em { color: var(--brand); font-style: normal; }
.pricing-toggle button.is-active em { color: #bbf7d0; }
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.pricing-card {
  position: relative;
  display: flex;
  min-height: 326px;
  flex-direction: column;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: rgba(255,255,255,0.92);
  padding: 26px 24px;
  box-shadow: 0 2px 8px rgba(17,17,17,0.03);
}
/* Wyrozniony plan: pelna brandowa ramka, uniesienie i badge na gornej
   krawedzi - a nie ledwo widoczna poswiata. */
.pricing-card.is-popular {
  border: 2px solid var(--brand);
  background: #fff;
  box-shadow: 0 18px 44px rgba(42,107,79,0.16);
  transform: translateY(-8px);
}
.pricing-card.is-popular .pricing-card-head span {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-size: 13.5px;
  letter-spacing: .02em;
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(42,107,79,0.3);
}
.pricing-card-head {
  display: flex;
  min-height: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 18px;
}
.pricing-card h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.pricing-card-head span {
  border-radius: var(--btn-radius);
  background: var(--brand-soft);
  padding: 4px 7px;
  color: var(--brand);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}
.pricing-price {
  margin: 0;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 2vw, 2.15rem);
  /* 500 jak naglowki sekcji - bold optycznie zawyzal kwote. */
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.05;
}
.pricing-note {
  margin: 7px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.4;
}
.pricing-desc {
  margin: 20px 0 16px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}
/* Wyroznik planu - chip na brand-soft tuz pod opisem karty (Complete). */
.pricing-highlight {
  align-self: flex-start;
  margin: -6px 0 14px;
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
.pricing-inherit {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
}
.pricing-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 24px;
  list-style: none;
}
.pricing-card li {
  position: relative;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.45;
}
.pricing-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: 7px;
  height: 7px;
  border-radius: var(--btn-radius);
  background: var(--brand);
  opacity: .7;
}
.pricing-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--btn-radius);
  background: #fff;
  padding: 10px 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 700;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pricing-card.is-popular .pricing-card-cta,
.pricing-card-cta:hover {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}
.pricing-enterprise-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, .26fr);
  align-items: start;
  gap: 24px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: rgba(255,255,255,0.92);
  padding: 26px 24px;
  box-shadow: 0 2px 8px rgba(17,17,17,0.03);
}
.pricing-enterprise-card + .pricing-enterprise-card { margin-top: 16px; }
.pricing-enterprise-card .pricing-desc {
  max-width: 520px;
  margin-bottom: 0;
}
.pricing-enterprise-card .pricing-card-cta {
  align-self: start;
  margin-top: 0;
}
.pricing-compare { margin: 72px 0 92px; }
.pricing-compare-sticky {
  position: sticky;
  top: var(--nav-h, 61px);
  z-index: 10;
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(17,17,17,0.06);
  margin-bottom: 8px;
}
/* Pasek admina WordPressa zsuwa .site-nav w dół (main.css), więc belka planów
   musi zjechać razem z nim, inaczej chowa się pod nagłówkiem. */
body.admin-bar .pricing-compare-sticky { top: 93px; }
@media (max-width: 782px) {
  body.admin-bar .pricing-compare-sticky { top: 107px; }
}
.pricing-compare-sticky > div {
  min-width: 0;
  border-right: 1px solid var(--border-strong);
  padding: 16px 18px;
}
.pricing-compare-sticky > div:last-child { border-right: 0; }
.pricing-compare-sticky span,
.pricing-compare-sticky strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}
.pricing-compare-sticky small {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.35;
}
.pricing-compare h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 56px 0 16px;
  color: var(--text);
  /* Skala tytulow z przelacznika USP na stronie glownej (.fsw-item-title). */
  font-family: var(--font-heading);
  font-size: clamp(21px, 1.93vw, 27px);
  font-weight: 600;
  letter-spacing: -.02em;
}
.pricing-table {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: rgba(255,255,255,0.9);
}
.pricing-row {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  min-height: 48px;
  border-bottom: 1px solid rgba(229,231,235,0.76);
}
.pricing-row:last-child { border-bottom: 0; }
.pricing-row > div {
  display: flex;
  align-items: center;
  min-width: 0;
  border-right: 1px solid rgba(229,231,235,0.58);
  padding: 13px 18px;
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.35;
}
.pricing-row > div:first-child {
  color: var(--text);
  font-weight: 400;
}
.pricing-row > div:not(:first-child) {
  justify-content: center;
  font-size: 14.5px;
  text-align: center;
}
.pricing-row > div:last-child { border-right: 0; }
.pricing-row > .pricing-row-merged {
  grid-column: span 4;
  justify-content: center;
  border-right: 0;
  background: rgba(234,244,238,0.42);
  color: var(--brand);
  font-weight: 700;
  text-align: center;
}
.pricing-row > div:nth-child(4),
.pricing-compare-sticky > div:nth-child(4) {
  background: rgba(234,244,238,0.42);
}
.pricing-row-head > div {
  color: var(--text);
  font-weight: 700;
}
/* FAQ na cenniku reużywa współdzielonego .faq-section z main.css (spójny wygląd ze stroną główną). */
@media (max-width: 960px) {
  .pricing-page::before { top: 1280px; }
  .pricing-page main { padding: 0 20px 72px; }
  .pricing-hero { padding-top: 72px; }
  .pricing-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-enterprise-card {
    grid-template-columns: 1fr;
    align-items: start;
  }
  /* Scroll poziomy siedzi na belce i kazdej tabeli OSOBNO (JS synchronizuje
     pozycje), a nie na calej sekcji - scroll-kontener na sekcji zabijal
     pionowe sticky belki planow. */
  .pricing-compare { width: 100%; }
  .pricing-compare-sticky,
  .pricing-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pricing-compare-sticky::-webkit-scrollbar,
  .pricing-table::-webkit-scrollbar { display: none; }
  /* Sztywne tory w px dla belki I wierszy - fr liczylo sie inaczej w belce
     niz w wierszach, stad rozjazd kolumn przy synchronizowanym scrollu.
     Te same liczby po obu stronach = idealne pokrycie. */
  .pricing-compare-sticky,
  .pricing-row { grid-template-columns: 216px repeat(4, 126px); }
  .pricing-row { min-width: max-content; }
  .pricing-compare h2 { margin-top: 40px; }
}
@media (max-width: 640px) {
  .pricing-page::before { top: 1740px; }
  /* W ukladzie jednokolumnowym uniesienie robiloby nierowny rytm kart. */
  .pricing-card.is-popular { transform: none; }
  /* Hero na telefonie wysrodkowane jak na desktopie (wyrownanie do lewej
     z 2026-07 cofniete) - naglowek, lead i przelacznik w osi. */
  .pricing-hero h1 {
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.06;
  }
  .pricing-hero > p:not(.pricing-eyebrow) {
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
  .pricing-cards {
    grid-template-columns: 1fr;
  }
  .pricing-card { min-height: auto; }
  /* Tabela porównania: na telefonie scroll poziomy zamiast wciskania kolumn —
     czytelne kolumny i fonty, użytkownik przewija w bok. */
  .pricing-compare-sticky,
  .pricing-row { grid-template-columns: 204px repeat(4, 119px); }
  .pricing-compare-sticky > div,
  .pricing-row > div {
    padding: 12px 12px;
  }
}
