  
    /* ===== SEKCJA KSIĄŻEK ===== */
    .books-section {
      padding: 3rem 1.5rem;
    }

    .books-section__inner {
      max-width: 1120px;
      margin: 0 auto;
    }

    .books-section__heading {
      margin: 0 0 2rem 0;
      text-align: left;
    }

    .books-section__title {
      margin: 0 0 0.35rem 0;
      font-size: 1.85rem;
      font-weight: 700;
      letter-spacing: 0.03em;
      text-transform: uppercase;
    }

    .books-section__subtitle {
      margin: 0;
      font-size: 0.98rem;
      opacity: 0.75;
      max-width: 560px;
    }

    .books-grid {
      display: grid;
      gap: 2.5rem;
    }

    /* ===== KARTA KSIĄŻKI ===== */
    .book-card {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1.75rem;
      padding: 1.75rem;
      border-radius: 1.25rem;
      border: 1px solid rgba(0, 0, 0, 0.06);
      background: #ffffff;
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
    }

    .book-card--featured {
      border-color: rgba(0, 0, 0, 0.09);
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
    }

    .book-card__cover {
      margin: 0;
    }

    .book-card__cover img {
      width: 100%;
      max-width: 320px;
      border-radius: 0.9rem;
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    }

    .book-card__content {
      display: flex;
      flex-direction: column;
      gap: 0.9rem;
    }

    .book-card__header {
      margin-bottom: 0.5rem;
    }

    .book-card__title {
      margin: 0 0 0.35rem 0;
      font-size: 1.6rem;
      font-weight: 700;
      letter-spacing: 0.01em;
    }

    .book-card__author {
      margin: 0;
      font-size: 0.95rem;
      text-transform: uppercase;
      letter-spacing: 0.11em;
      opacity: 0.75;
    }

    .book-card__author span {
      font-weight: 600;
    }

    .book-card__lead {
      margin: 0.25rem 0 0.25rem 0;
      font-size: 1.05rem;
      line-height: 1.7;
      font-weight: 500;
    }

    .book-card__text {
      margin: 0;
      font-size: 0.98rem;
      line-height: 1.7;
      color: #333333;
    }

    .book-card__links {
      margin-top: 1.25rem;
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
    }

    .book-card__btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0.65rem 1.4rem;
      font-size: 0.95rem;
      line-height: 1.2;
      border-radius: 999px;
      border: 1px solid rgba(0, 0, 0, 0.12);
      background: #f7f7f7;
      text-decoration: none;
      color: #222222;
      transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, transform 0.12s ease;
      cursor: pointer;
      white-space: nowrap;
    }

    .book-card__btn--primary {
      background: #222222;
      color: #ffffff;
      border-color: #222222;
    }

    .book-card__btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
      background: #eaeaea;
    }

    .book-card__btn--primary:hover {
      background: #000000;
      border-color: #000000;
    }
	  
	  .book-card--featured .book-card__cover img {
  max-width: 260px;
}
	  
/* --- Wersja skrócona karty książki (lista skrótów) --- */

.book-card--compact {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  border-radius: 1rem;
  border: 1px solid rgba(0,0,0,0.08);
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.book-card--compact .book-card__cover img {
  width: 70px;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.book-card--compact .book-card__title {
  font-size: 1.15rem;
  margin: 0 0 .2rem 0;
}

.book-card--compact .book-card__short {
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0.85;
  margin: 0 0 .4rem 0;
}

.book-card--compact .book-card__long {
  display: none;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-top: .5rem;
}

.book-card--compact .toggle-btn {
  cursor: pointer;
  font-size: 0.85rem;
  color: #333;
  text-decoration: underline;
  opacity: 0.8;
  margin-top: .3rem;
}

.toggle-btn:hover {
  opacity: 1;
}
	  
  
.book-card--featured .book-card__cover img {
  max-width: 260px;
}	  

    /* ===== RESPONSYWNOŚĆ ===== */
    
	  /* --- Poprawka mobilna marginesów sekcji książek --- */
@media (max-width: 480px) {

  .books-section {
    padding: 1rem 0.15rem; /* było 1.5rem – teraz ciaśniej */
  }

  .book-card {
    padding: 1.25rem; /* było 1.75rem */
  }

  .books-section__inner {
    padding: 0; /* usuwa wizualny lewy margines kontenera */
  }
}
	  
	  @media (min-width: 768px) {
      .book-card {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
        align-items: flex-start;
      }

      .book-card__cover {
        display: flex;
        justify-content: center;
      }
    }

    @media (min-width: 1024px) {
      .books-section {
        padding: 3.5rem 1.5rem 4rem;
      }

      .books-section__title {
        font-size: 2rem;
      }

      .book-card__title {
        font-size: 1.8rem;
      }

      .book-card__lead {
        font-size: 1.08rem;
      }
    }

.book-preview {
  margin-top: 3rem;
  margin-bottom: 1em;  			
}

.book-preview__title {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.book-preview__subtitle {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1.2rem;
}

.book-preview__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.book-preview__grid img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.book-preview__grid a:hover img {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,.15);
}

/* Mobile */
@media (max-width: 768px) {
  .book-preview__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
		
		/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
}

.lightbox__close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: .25rem .5rem;
}

.lightbox__close:focus-visible {
  outline: 2px solid #fff;
}