/* --- ZMIENNE PROJEKTU --- */
:root {
  --blue: #53b8e5;
  --blue-hover: #40a6d3;
  --yellow: #fdb900;
  --yellow-hover: #e5a700;
  --burgundy: #7a0c1e;
  --text-dark: #1c2430;
  --text-muted: #64748b;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-light: #edf2f7;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-card: 20px;
  --radius-pill: 50px;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.04);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.5;
  padding-bottom: 70px; /* miejsce na dolną belkę mobile */
}

@media (min-width: 769px) {
  body { padding-bottom: 0; }
}

.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 20px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- PRZYCISKI --- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-blue {
  background-color: var(--blue);
  color: #fff;
}
.btn-blue:hover {
  background-color: var(--blue-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border-color: var(--text-dark);
}
.btn-outline:hover {
  background: var(--text-dark);
  color: #fff;
}

.btn-yellow {
  background-color: var(--yellow);
  color: var(--text-dark);
  font-weight: 900;
  padding: 16px 36px;
  font-size: 14px;
}
.btn-yellow:hover {
  background-color: var(--yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(253, 185, 0, 0.35);
}

.btn-block {
  width: 100%;
  font-size: 12px;
  padding: 11px 0;
}

/* --- NAGŁÓWEK --- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
}
.logo {
  font-weight: 900;
  font-size: 40px;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  color: var(--text-dark);
  text-decoration: none;
}
.header-btn-super {
  padding: 10px 22px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(253, 185, 0, 0.35);
  display: inline-block;
  text-decoration: none;
}

.header-btn-super:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(253, 185, 0, 0.5);
}

#super-pakiet {
  scroll-margin-top: 90px;
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
}

/* --- HERO --- */
.hero-section {
  padding: 60px 0 40px;
}
.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: block;
}
.hero-title {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.text-blue {
  color: var(--blue);
}
.hero-desc {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 30px;
}
.hero-actions {
  display: flex;
  gap: 16px;
}
.hero-visual {
  position: relative;
  text-align: right;
}
.badge-new {
  position: absolute;
  top: -15px;
  right: 15px;
  background: var(--yellow);
  color: var(--text-dark);
  font-weight: 800;
  font-size: 11px;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
}
.hero-image {
  margin-left: auto;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.12));
}

/* --- ŻÓŁTA BELKA --- */
.category-ribbon {
  background: var(--yellow);
  padding: 16px 0;
  margin-bottom: 60px;
}
.ribbon-inner {
  display: flex;
  justify-content: center;
  gap: 40px;
}
.ribbon-inner a {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- SEKCJE I KARTY --- */
.section {
  padding-bottom: 80px;
}
.section-heading {
  text-align: center;
  margin-bottom: 40px;
}
.section-heading .title {
  font-size: 40px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
}
.section-heading .subtitle {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 10px;
}

.cards-grid {
  display: grid;
  gap: 20px;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 980px;
  margin: 0 auto;
}
.grid-single {
  max-width: 480px;
  margin: 0 auto;
}

/* --- GRUPOWANIE W SERIE --- */
.series-group {
  margin-bottom: 50px;
}
.series-group:last-child {
  margin-bottom: 0;
}
.series-header {
  text-align: center;
  margin-bottom: 24px;
}
.series-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.series-badge.badge-blue {
  background: #e6f2ff;
  color: #0066cc;
}
.series-badge.badge-preorder {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde047;
  box-shadow: 0 4px 14px rgba(253, 185, 0, 0.18);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.series-badge.badge-yellow {
  background: #fef9c3;
  color: #854d0e;
}
.series-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.series-desc {
  font-size: 14px;
  color: #64748b;
  max-width: 580px;
  margin: 0 auto;
}
.product-card.border-preorder {
  border: 2px solid #fde047;
  box-shadow: 0 10px 30px rgba(253, 185, 0, 0.1);
}
.product-card.border-preorder:hover {
  border-color: #f59e0b;
  box-shadow: 0 16px 36px rgba(253, 185, 0, 0.18);
}
.badge-preorder-discount {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  color: #92400e;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 8px;
  margin-top: 4px;
  margin-bottom: 8px;
  border: 1px solid #fde68a;
  width: fit-content;
}
.modern-flame-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  color: #f59e0b;
}
.price-discount-pill {
  display: inline-block;
  background: #fef08a;
  color: #854d0e;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid #fde047;
  margin-left: 4px;
  line-height: 1.2;
}
.btn-preorder {
  background-color: var(--yellow);
  color: var(--text-dark);
  border-color: var(--yellow);
  font-weight: 800;
}
.btn-preorder:hover {
  background-color: var(--yellow-hover);
  border-color: var(--yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(253, 185, 0, 0.35);
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  min-height: 250px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.08);
}

.card-image {
  width: 53%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
}
.bg-light-blue { background: #eef5f8; }
.bg-light-pink { background: #fdf2f4; }
.bg-light-cyan { background: #f0f7fb; }
.bg-light-gray { background: #f1f5f9; }

.card-image img {
  max-width: 100%;
  max-height: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.12));
  transition: transform 0.25s ease;
}
.product-card:hover .card-image img {
  transform: scale(1.05);
}

.card-details {
  width: 47%;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card-tag {
  font-size: 9px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.card-title {
  font-size: 15px;
  font-weight: 800;
  margin: 3px 0 5px;
  line-height: 1.25;
}
.card-summary {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
}

.card-features {
  list-style: none;
  margin: 8px 0 4px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.card-features li {
  font-size: 11px;
  line-height: 1.35;
  color: #475569;
  display: flex;
  align-items: flex-start;
  gap: 5px;
}
.card-features li span {
  color: var(--blue);
  font-weight: 800;
  font-size: 12px;
  line-height: 1.3;
  flex-shrink: 0;
}

.card-bottom {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}
.card-price-label {
  font-size: 9px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
}
.card-price-box {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 3px 0 8px;
}
.price-old {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 600;
}
.price-current {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-dark);
}

/* Kolorowe krawędzie pakietów */
.border-burgundy { border-left: 6px solid var(--burgundy); }
.border-cyan { border-left: 6px solid var(--blue); }
.border-yellow { border-left: 6px solid var(--yellow); }

/* Zachowanie lewego paska przy ramce preorder */
.product-card.border-preorder.border-burgundy {
  border-left: 6px solid var(--burgundy);
}
.product-card.border-preorder.border-burgundy:hover {
  border-left-color: var(--burgundy);
}
.product-card.border-preorder.border-cyan {
  border-left: 6px solid var(--blue);
}
.product-card.border-preorder.border-cyan:hover {
  border-left-color: var(--blue);
}
.product-card.border-preorder.border-yellow {
  border-left: 6px solid var(--yellow);
}
.product-card.border-preorder.border-yellow:hover {
  border-left-color: var(--yellow);
}

/* Dedykowane proporcje i układ dla sekcji pakietów */
.packages-section .product-card {
  min-height: 450px;
}
.packages-section .card-image {
  width: 44%;
  padding: 14px 8px;
}
.packages-section .card-details {
  width: 56%;
  padding: 18px 14px;
}

.package-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  margin: 4px 0 8px;
  min-height: 50px;
}

.badge-saving {
  display: inline-block;
  background: var(--yellow);
  color: var(--text-dark);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  margin: 0;
  width: fit-content;
  white-space: nowrap;
}
.badge-preorder-pack {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fef9c3;
  color: #854d0e;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  margin: 0;
  border: 1px solid #fde047;
  width: fit-content;
  white-space: nowrap;
}
.badge-available {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f0fdf4;
  color: #166534;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  margin: 0;
  border: 1px solid #bbf7d0;
  width: fit-content;
  white-space: nowrap;
}

/* --- PAKIET CYFROWY (2x EBOOK) --- */
.digital-bundle-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border: 2px solid #86efac;
  border-radius: 20px;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
  box-shadow: 0 10px 25px rgba(22, 101, 52, 0.08);
}
.digital-bundle-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.badge-digital-free {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #dcfce7;
  color: #15803d;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid #86efac;
}
.digital-bundle-left {
  flex: 1;
}
.digital-bundle-left .card-tag {
  color: #15803d;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 4px;
}
.digital-bundle-left .card-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}
.digital-bundle-left .card-summary {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.4;
  margin: 0;
}
.digital-bundle-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.digital-bundle-right .card-price-label {
  font-size: 11px;
  font-weight: 700;
  color: #15803d;
  text-transform: uppercase;
}
.digital-bundle-right .card-price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.digital-bundle-right .price-old {
  font-size: 16px;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 600;
}
.digital-bundle-right .price-current {
  font-size: 32px;
  font-weight: 900;
  color: #0f172a;
}
@media (max-width: 768px) {
  .digital-bundle-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
  .digital-bundle-right {
    width: 100%;
    align-items: stretch;
    margin-top: 12px;
  }
  .digital-bundle-right .card-price-box {
    justify-content: flex-start;
  }
  .digital-bundle-right .btn {
    width: 100%;
  }
}

/* --- DODATKOWE KONFIGURACJE PAKIETÓW --- */
.extra-packages-wrapper {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #e2e8f0;
}
.extra-packages-title {
  font-size: 18px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 16px;
  text-align: center;
}
.extra-packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.extra-package-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: all 0.2s ease;
}
.extra-package-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.extra-package-item .card-tag {
  font-size: 10px;
  font-weight: 800;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}
.extra-package-item .card-title {
  font-size: 14px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 4px;
  line-height: 1.35;
}
.extra-package-meta {
  font-size: 11px;
  color: #64748b;
  margin: 0;
}
.extra-package-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px dashed #f1f5f9;
}
.extra-package-prices {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.extra-package-item .price-old {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 600;
}
.extra-package-item .price-current {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
}
.btn-outline-dark {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-outline-dark:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
@media (max-width: 900px) {
  .extra-packages-grid {
    grid-template-columns: 1fr;
  }
}

/* Przycisk płatności testowej (1 zł) */
.test-pay-bar {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}
.btn-test-pay {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #1e293b;
  border: 1.5px dashed #0284c7;
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.12);
}
.btn-test-pay:hover {
  background: #f0f9ff;
  border-color: #0369a1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}
.test-pay-pill {
  background: #0284c7;
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.test-pay-arrow {
  color: #0284c7;
  font-weight: 900;
}
.badge-super-preorder {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #1e293b;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  border: 2px solid #fde047;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  vertical-align: middle;
}
.badge-super-preorder .preorder-pill-tag {
  display: inline-block;
  background: #fef08a;
  color: #854d0e;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid #fde047;
}

.super-preorder-banner {
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid #fde047;
  border-radius: 14px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1e293b;
  font-size: 13px;
  line-height: 1.4;
  margin: 14px 0 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.super-preorder-banner strong {
  color: #92400e;
  font-weight: 800;
}
.super-preorder-banner .modern-flame-icon {
  flex-shrink: 0;
  color: #f59e0b;
}

/* --- SUPER PAKIET --- */
.super-bundle {
  background: var(--blue);
  border-radius: 24px;
  padding: 40px 48px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 30px;
  color: #fff;
  margin-top: 50px;
}
.badge-super {
  background: var(--yellow);
  color: var(--text-dark);
  font-size: 11px;
  font-weight: 900;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 12px;
}
.super-heading {
  font-size: 46px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.super-subtitle {
  font-size: 16px;
  font-weight: 600;
  color: #f0f9ff;
  margin-bottom: 16px;
}
.super-features {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.super-features li {
  font-size: 13px;
  line-height: 1.4;
  color: #f0f9ff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.super-features li span {
  color: var(--yellow);
  font-weight: 900;
  font-size: 14px;
  flex-shrink: 0;
}
.super-pricing {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
}
.super-price-now {
  font-size: 48px;
  font-weight: 900;
}
.super-price-old {
  font-size: 18px;
  text-decoration: line-through;
  opacity: 0.8;
}
.super-save-label {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}
.super-visual {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}
.super-image {
  max-width: 100%;
  width: 480px;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.18));
  margin: 0 auto;
}

/* --- O AUTORZE --- */
.author-section {
  padding-bottom: 80px;
}
.author-card {
  background: var(--bg-card);
  border-radius: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  padding: 48px;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: center;
}
.author-image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}
.author-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.author-card:hover .author-photo {
  transform: scale(1.02);
}
.author-content {
  display: flex;
  flex-direction: column;
}
.author-name {
  font-size: 38px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text-dark);
  line-height: 1.1;
  margin: 6px 0 6px;
}
.author-role {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.author-bio p {
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 14px;
}
.author-bio p:last-child {
  margin-bottom: 22px;
}
.author-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}
.highlight-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
}
.highlight-icon {
  color: var(--blue);
  font-weight: 900;
}
.author-actions {
  display: flex;
  gap: 16px;
}

/* --- STOPKA --- */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border-light);
  padding: 30px 0 24px;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-company-info {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}
.footer-company-info strong {
  color: var(--text-dark);
}
.footer-nav {
  display: flex;
  gap: 20px;
}
.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.footer-nav a:hover {
  color: var(--blue);
  text-decoration: underline;
}

/* --- PRZYKLEJANA BELKA MOBILE --- */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 999;
}
.sticky-inner {
  background: #fff;
  border-radius: 50px;
  padding: 8px 10px 8px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border: 1px solid var(--border-light);
}
.sticky-title {
  font-weight: 800;
  font-size: 14px;
  color: var(--text-dark);
}
.sticky-btn {
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 22px;
  border-radius: 50px;
  text-decoration: none;
}

/* --- RWD (MOBILE) --- */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-desc { margin: 0 auto 28px; }
  .hero-actions { justify-content: center; }
  .hero-visual { text-align: center; }
  .hero-image { margin: 0 auto; }
  
  .grid-3, .grid-2, .grid-single { grid-template-columns: 1fr; }
  
  .super-bundle {
    grid-template-columns: 1fr;
    padding: 32px 20px;
    text-align: center;
  }
  .super-pricing { justify-content: center; }
  .super-visual { text-align: center; margin-top: 20px; }
  .super-image { margin: 0 auto; }
  
  .author-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
    padding: 32px 20px;
  }
  .author-image-wrapper {
    max-width: 300px;
    margin: 0 auto;
  }
  .author-highlights {
    justify-content: center;
  }
  .author-actions {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .logo {
    font-size: 20px;
    letter-spacing: -0.3px;
  }
  .header-btn-super {
    padding: 7px 12px;
    font-size: 10.5px;
    letter-spacing: 0.2px;
  }
  .mobile-menu-btn { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
  }
  .nav-links.active { display: flex; }
  
  .hero-title { font-size: 32px; }
  .super-heading { font-size: 30px; }
  
  .ribbon-inner {
    flex-wrap: wrap;
    gap: 14px;
    font-size: 11px;
  }
  
  .product-card {
    flex-direction: column;
    min-height: auto;
  }
  .card-image, .card-details {
    width: 100%;
  }
  .card-image {
    padding: 24px 16px;
  }
  .card-image img {
    max-height: 220px;
  }

  .footer-content {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .mobile-sticky-bar {
    display: block; /* Pokazujemy dolny pasek na telefonie */
  }
}

/* ========================================================= */
/* --- MODAL ZAMÓWIENIA (PAYU CHECKOUT MODAL) --- */
/* ========================================================= */
.checkout-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh; /* Dynamic viewport height – idealne dla Samsung Internet i mobilnego Chrome */
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom, 16px));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  box-sizing: border-box;
}

.checkout-overlay.active {
  opacity: 1;
  visibility: visible;
}

.checkout-modal {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 620px;
  max-height: calc(100dvh - 32px);
  max-height: calc(100vh - 32px); /* fallback dla starszych przeglądarek */
  border-radius: 24px;
  overflow: hidden; /* Obcina całą treść dokładnie do zaokrąglonych rogów */
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.35);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.checkout-overlay.active .checkout-modal {
  transform: translateY(0) scale(1);
}

/* 1. Przyklejony nagłówek okna */
.modal-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 28px 16px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.modal-header-text {
  flex: 1;
  padding-right: 16px;
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.modal-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0066cc;
  background: #e6f2ff;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.modal-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.modal-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

/* 2. Przewijana treść wewnątrz modalu (pasek wewnątrz, nigdy nie dotyka rogów) */
.modal-scroll-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.modal-scroll-content::-webkit-scrollbar {
  width: 6px;
}

.modal-scroll-content::-webkit-scrollbar-track {
  background: transparent;
}

.modal-scroll-content::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 10px;
  transition: background-color 0.2s;
}

.modal-scroll-content::-webkit-scrollbar-thumb:hover {
  background-color: var(--blue, #53b8e5);
}

/* Karta wybranego produktu */
.selected-product-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 22px;
}

.selected-product-thumb {
  width: 64px;
  height: 76px;
  background: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
}

.selected-product-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.selected-product-info {
  flex: 1;
}

.selected-product-tag {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.selected-product-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 4px;
}

.selected-product-price {
  font-size: 18px;
  font-weight: 800;
  color: #0066cc;
}

/* Formularz */
.form-section {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
}

.form-section-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.form-group label .req {
  color: #ef4444;
}

.form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
  background: #ffffff;
}

.form-group input:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.field-has-error input {
  border-color: #ef4444 !important;
  background-color: #fffbfb !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.field-hint {
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
}

/* Karty wyboru dostawy */
.delivery-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.delivery-radio-label {
  cursor: pointer;
  display: block;
}

.delivery-radio-label input {
  display: none;
}

.delivery-card {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  transition: all 0.2s;
  background: #ffffff;
  height: 100%;
}

.delivery-radio-label input:checked + .delivery-card {
  border-color: #0066cc;
  background: #f0f7ff;
}

.delivery-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.delivery-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}

.delivery-price {
  font-size: 13px;
  font-weight: 800;
  color: #0066cc;
}

.delivery-desc {
  font-size: 11px;
  color: #64748b;
  line-height: 1.3;
}

/* Paczkomat Live Search */
.delivery-details-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 14px;
  margin-top: 10px;
}

.delivery-details-box.hidden {
  display: none;
}

.paczkomat-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.paczkomat-label-row label {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0;
}

.inpost-map-link {
  font-size: 12px;
  font-weight: 700;
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s;
}

.inpost-map-link:hover {
  text-decoration: underline;
}

.paczkomat-search-wrapper {
  position: relative;
}

.paczkomat-input-row {
  position: relative;
}

.paczkomat-input-row input {
  width: 100%;
  padding: 11px 40px 11px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: #ffffff;
}

.paczkomat-input-row input:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.search-indicator {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  pointer-events: none;
}

.spinner-icon {
  animation: spinIcon 0.8s linear infinite;
}

@keyframes spinIcon {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.paczkomat-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  z-index: 100;
  max-height: 220px;
  overflow-y: auto;
}

.paczkomat-suggestion-item {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.15s;
}

.paczkomat-suggestion-item:last-child {
  border-bottom: none;
}

.paczkomat-suggestion-item:hover {
  background: #f0f7ff;
}

.suggestion-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.suggestion-code {
  font-size: 12px;
  font-weight: 800;
  background: #fef08a;
  color: #854d0e;
  padding: 2px 8px;
  border-radius: 6px;
}

.suggestion-status {
  font-size: 11px;
  font-weight: 700;
  color: #16a34a;
}

.suggestion-address {
  font-size: 12px;
  color: #334155;
  line-height: 1.3;
}

.suggestion-empty {
  padding: 12px 16px;
  font-size: 12px;
  color: #64748b;
  text-align: center;
}

.paczkomat-info-text {
  font-size: 12px;
  color: #1e293b;
  margin-top: 8px;
  line-height: 1.4;
}

.selected-paczkomat-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12px;
  color: #15803d;
  gap: 8px;
}

.btn-clear-paczkomat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-clear-paczkomat:hover {
  background: #fecaca;
  color: #991b1b;
}

.paczkomat-badge-success {
  display: inline-flex;
  align-items: center;
  color: #16a34a;
  font-weight: 700;
  margin-right: 4px;
}

.hint-muted {
  color: #64748b;
  font-size: 11px;
}

/* Zgody */
.consents-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: #475569;
  line-height: 1.4;
  cursor: pointer;
}

.consent-checkbox input {
  margin-top: 2px;
  accent-color: #0066cc;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.consent-checkbox a {
  color: #0066cc;
  text-decoration: underline;
}

/* Podsumowanie kwot */
.order-summary-box {
  background: #f8fafc;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 6px;
}

.summary-row.total-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0;
}

.total-amount {
  font-size: 20px;
  font-weight: 900;
  color: #0066cc;
}

/* 3. Przyklejona stopka modalu z powiadomieniem */
.modal-footer-bar {
  padding: 16px 28px 22px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.checkout-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  line-height: 1.4;
  animation: alertSlideIn 0.2s ease;
}

.checkout-alert.alert-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

.checkout-alert-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.checkout-alert-icon svg {
  display: block;
}

@keyframes alertSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Przycisk płatności */
.btn-pay {
  padding: 16px 24px;
  font-size: 15px;
  box-shadow: 0 10px 25px rgba(253, 185, 0, 0.4);
  cursor: pointer;
}

.payment-security-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: #64748b;
  margin-top: 10px;
  text-align: center;
}

.payment-security-badge svg {
  color: #10b981;
}

@media (max-width: 640px) {
  .checkout-overlay {
    padding: 8px 8px max(14px, env(safe-area-inset-bottom, 14px));
    align-items: center;
  }
  .checkout-modal {
    max-height: calc(100dvh - 24px - env(safe-area-inset-bottom, 0px));
    max-height: calc(100vh - 28px);
    border-radius: 20px;
  }
  .modal-header-bar {
    padding: 16px 18px 12px;
  }
  .modal-title {
    font-size: 19px;
  }
  .modal-scroll-content {
    padding: 14px 16px;
  }
  .modal-footer-bar {
    padding: 12px 16px max(14px, env(safe-area-inset-bottom, 14px));
  }
  .btn-pay {
    padding: 13px 18px;
    font-size: 15px;
  }
  .payment-security-badge {
    margin-top: 8px;
    font-size: 10.5px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
  .delivery-options {
    grid-template-columns: 1fr;
  }
}