/* Style dedykowane dla podstrony Oferta / Cennik */

/* Hero */
.pricing-hero {
  background: linear-gradient(135deg, #fff8f1 0%, #ffefe3 100%);
  padding: 60px 0 66px;
  position: relative;
  overflow: hidden;
}
.pricing-hero::before,
.pricing-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(242, 113, 33, .08);
}
.pricing-hero::before {
  width: 280px;
  height: 280px;
  left: -120px;
  top: -70px;
}
.pricing-hero::after {
  width: 340px;
  height: 340px;
  right: -170px;
  bottom: -170px;
}

.pricing-intro {
  max-width: 820px;
  text-align: center;
  position: relative;
  z-index: 1;
  margin: 0 auto;
}
.pricing-intro p.lead {
  max-width: 720px;
  margin: 20px auto 0;
  font-size: 1.05rem;
}

/* Siatka kart cennika */
.pricing-section {
  padding: 60px 0 80px;
}
.pricing-section .container {
  width: min(calc(100% - 40px), 1220px);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
  margin-top: 36px;
}

@supports (grid-template-rows: subgrid) {
  .pricing-grid {
    grid-template-rows: auto auto auto 1fr auto;
  }
}

.pricing-card {
  position: relative;
  background: white;
  border: 2px solid #ebdcd0;
  border-radius: var(--radius-lg);
  padding: 30px 20px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(29, 36, 48, .04);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

@supports (grid-template-rows: subgrid) {
  .pricing-card {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 5;
    gap: 0;
  }
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(242, 113, 33, .12);
  border-color: #f7c39f;
}

.pricing-card.featured {
  border-color: var(--orange);
  box-shadow: 0 16px 36px rgba(242, 113, 33, .14);
  background: linear-gradient(180deg, #fffbf7 0%, #ffffff 100%);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: white;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(242, 113, 33, .3);
  z-index: 2;
}

/* 1. Header (Eyebrow + Tytuł) */
.pricing-header {
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  min-height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.pricing-header .eyebrow {
  margin: 0 0 6px;
  font-size: .75rem;
  font-weight: 800;
  color: var(--orange-dark);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.pricing-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  color: var(--ink);
}

/* 2. Blok cenowy - bezpośrednio pod nagłówkiem na równej wysokości */
.pricing-rate {
  padding: 18px 0 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 98px;
}
.pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.pricing-amount {
  font-size: 2.2rem;
  font-weight: 850;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.pricing-period {
  font-size: .84rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
}
.pricing-rate-tag {
  display: inline-flex;
  align-items: center;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: .78rem;
  font-weight: 750;
  padding: 4px 10px;
  border-radius: 999px;
  margin-top: 10px;
  letter-spacing: .02em;
}
.pricing-card.featured .pricing-rate-tag {
  background: #ffe3d1;
  color: #c94017;
}

/* 3. Opis kursu */
.pricing-desc {
  font-size: .90rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  padding: 16px 0 14px;
  min-height: 68px;
}

/* 4. Lista cech */
.pricing-card .check-list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}
.pricing-card .check-list li {
  position: relative;
  padding-left: 28px;
  font-size: .88rem;
  line-height: 1.45;
  color: #3d4654;
}
.pricing-card .check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-weight: 800;
  font-size: .72rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.pricing-card.featured .check-list li::before {
  background: var(--orange);
  color: white;
}

/* 5. Akcje / Przycisk */
.pricing-actions {
  margin-top: auto;
  padding-top: 8px;
}
.pricing-actions .btn {
  width: 100%;
  font-size: .92rem;
  font-weight: 700;
  min-height: 46px;
  padding: 0 16px;
}

/* Nagłówki sekcji (W pełni wyśrodkowane) */
.benefits-section .centered,
.pricing-info-section .centered {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.benefits-section .centered .eyebrow,
.pricing-info-section .centered .eyebrow {
  text-align: center;
  margin: 0 auto 14px;
}

.benefits-section .centered h2,
.pricing-info-section .centered h2 {
  text-align: center;
  margin: 0 auto;
  width: 100%;
}

.benefits-section .centered .lead,
.pricing-info-section .centered .lead,
.benefits-section .centered p,
.pricing-info-section .centered p {
  text-align: center;
  margin: 16px auto 0;
  max-width: 680px;
}

/* Sekcja: Co otrzymujesz w cenie kursu (Wyśrodkowana) */
.benefits-section {
  background: var(--cream);
  padding: 80px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 40px auto 0;
  justify-content: center;
}
.benefit-card {
  background: white;
  padding: 30px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(29, 36, 48, .03);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(29, 36, 48, .06);
}
.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 1.25rem;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}
.benefit-card h4 {
  font-size: 1.08rem;
  margin: 0 0 10px;
  color: var(--ink);
}
.benefit-card p {
  font-size: .91rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* Informacje organizacyjne / Zasady rozliczeń (Wyśrodkowane) */
.pricing-info-section {
  padding: 76px 0;
}
.info-boxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 860px;
  margin: 40px auto 0;
  justify-content: center;
}
.info-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 34px 30px;
  background: var(--white);
  text-align: center;
  box-shadow: 0 4px 16px rgba(29, 36, 48, .03);
  transition: transform .2s ease, box-shadow .2s ease;
}
.info-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(29, 36, 48, .06);
}
.info-box h3 {
  font-size: 1.2rem;
  margin: 0 0 12px;
  color: var(--ink);
}
.info-box p {
  margin: 0;
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Sekcja CTA z pełnym ostylowaniem i zachowaniem odstępu od footera */
.cta-section {
  padding: 20px 0 96px;
  background: white;
}
.cta-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  align-items: center;
  padding: 38px 42px;
  border-radius: 26px;
  background: linear-gradient(135deg, #fff6ee, #ffeadb);
  border: 1px solid #f5d9c8;
  box-shadow: 0 10px 30px rgba(242, 113, 33, .06);
}
.cta-content .eyebrow {
  color: var(--orange-dark);
  margin-bottom: 8px;
  font-size: .88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.cta-card h2 {
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
  margin: 0;
}
.cta-text {
  margin: 12px 0 0;
  font-size: 1.02rem;
  color: #4b5563;
  line-height: 1.55;
  max-width: 650px;
}
.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cta-actions .btn {
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.cta-actions .btn:hover {
  transform: translateY(-2px);
}
.cta-actions .btn-primary {
  background: var(--orange);
  color: white;
  border: 1px solid var(--orange);
}
.cta-actions .btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
}
.cta-actions .btn-secondary {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}
.cta-actions .btn-secondary:hover {
  background: var(--cream);
  border-color: #d8c8bc;
}

/* Responsywność */
@media (max-width: 1120px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    gap: 24px;
  }
  .pricing-card {
    display: flex;
    flex-direction: column;
    grid-row: auto;
  }
}

@media (max-width: 992px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
  }
  .cta-card {
    grid-template-columns: 1fr;
    padding: 32px 28px;
  }
  .cta-actions {
    justify-content: flex-start;
  }
}

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

@media (max-width: 640px) {
  .benefits-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  .info-boxes {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
  .pricing-card {
    padding: 28px 20px;
  }
  .cta-section {
    padding: 10px 0 70px;
  }
  .cta-card {
    padding: 26px 20px;
  }
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }
  .cta-actions .btn {
    width: 100%;
    text-align: center;
  }
}
