.cycle-page {
  padding: 40px 20px;
  background: #fdfdfd;
}

.cycle-page h1 {
  font-size: 32px;
  text-align: center;
  margin-bottom: 10px;
}

.cycle-description {
  text-align: center;
  font-size: 18px;
  margin-bottom: 40px;
  color: #555;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.book-image {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
}
.book-image img {
  width:  190px;       /* или другое значение, например: 300px */
  height: auto;      /* сохраняет пропорции */
  max-width: 280px;  /* ограничивает максимальный размер */
}
.book-card {
  background: #fff;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

.book-cover {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  margin-bottom: 15px;
}

.book-card h2 {
  font-size: 18px;
  text-align: center;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 12px;
  padding: 0 10px;
  text-align: center;
}

.book-link {
  background-color: #007acc;      /* насыщенный синий */
  color: #ffffff;                 /* белый текст */
  padding: 8px 14px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
  margin-top: auto;
  box-shadow: 0 2px 6px rgba(0, 122, 204, 0.4);
}

.book-link:hover {
  background-color: #005fa3;      /* темнее синий */
  box-shadow: 0 4px 12px rgba(0, 95, 163, 0.6);
}


@media (max-width: 768px) {
  .books-grid {
    grid-template-columns: 1fr 1fr;
  }

  @media (max-width: 480px) {
    .books-grid {
      grid-template-columns: 1fr;
    }
  }
}