:root {
  --bg-light:    #FBF9EE;
  --accent:      #25282A;
  --secondary:   #CED4DE;
  --dark:        #25282A;
}

/* Контейнер коллекции */
.books-collection {
  background: var(--bg-light);
  padding: 40px 20px;
  text-align: center;
}

/* Заголовок */
.books-collection h2 {
  font-family: 'Franklin Gothic', sans-serif;
  font-size: 1.6em;
  color: var(--accent);
  margin-bottom: 30px;
}

/* Сетка обложек */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  justify-items: center;
  align-items: start;
}

/* Ссылка-обложка */
.book-item {
  position: relative;
  width: 100%;
  max-width: 300px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-decoration: none;
  color: inherit;
  transition: transform .3s ease;
}

/* Само изображение */
.book-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .3s ease;
}

/* Полупрозрачный оверлей с названием */
.book-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
}

/* Текст названия */
.book-item .overlay span {
  font-family: 'Franklin Gothic', sans-serif;
  font-size: 1em;
  padding: 10px 15px;
  background: rgba(0,0,0,0.6);
  border-radius: 6px;
  color: #fff;
}

/* Ховер-эффекты */
.book-item:hover {
  transform: translateY(-5px);
}
.book-item:hover img {
  transform: scale(1.07);
}
.book-item:hover .overlay {
  opacity: 1;
}
:root {
  --bg-light:       #FBF9EE;
  --dark:           #25282A;
  /* основные яркие цвета */
  --feat-red:       #FF6B6B;
  --feat-yellow:    #FFD93D;
  --feat-blue:      #4D96FF;
  --feat-lightgreen:#7EE8A6;
  --feat-teal:      #4DC9B1;
  --feat-pink:      #FFA8D6;
}

/* контейнер и заголовок */
.feature-section {
  background: var(--bg-light);
  padding: 60px 20px;
  text-align: center;
}
.feature-section h2 {
  font-family: 'Franklin Gothic', sans-serif;
  color: var(--dark);
  font-size: 2em;
  margin-bottom: 10px;
}
.feature-section p {
  font-family: 'Franklin Gothic', sans-serif;
  color: var(--dark);
  font-size: 1em;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* сетка: 4 карточки в ряд, затем 3 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
  justify-items: stretch;
}

/* карточка */
.feature-card {
  position: relative;
  padding: 30px 20px 60px;
  border-radius: 20px;
  overflow: hidden;
  min-height: 220px;
  transition: transform .3s, box-shadow .3s;
  background-repeat: no-repeat;
  background-position: bottom right;
  /* сюда вставьте свой SVG/PNG паттерн, если нужно: */
  /* background-image: url('pattern.svg'); */
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* номер и текст */
.feature-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1;
}
.feature-text {
  font-family: 'Franklin Gothic', sans-serif;
  font-size: 1em;
  color: var(--dark);
  line-height: 1.4;
}

/* иконка-фон */
.feature-icon {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 40px;
  opacity: 0.15;
}
