/* Общие стили */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background-color: #f5f7fa;
  color: #2b2d3b;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Шапка */
.site-header {
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  padding: 24px 0;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1d2c;
  margin-bottom: 6px;
}

.subtitle {
  color: #6b7280;
  font-size: 1rem;
}

/* Секция книг */
.books-section {
  padding: 40px 0;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 32px;
  color: #1a1d2c;
}

/* Сетка книг */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* Карточка книги */
.book-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.book-cover-placeholder {
  width: 100%;
  _height: 360px;
  background-color: #e2e8f0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.9rem;
}
.book-cover-placeholder img {
  margin: 1em;
}
.book-cover-placeholder1::after {
  content: "Обложка книги";
}

.book-title {
  font-size: 1.25rem;
  font-weight: 600;
  padding: 16px;
  color: #1a1d2c;
}

.book-author,
.book-desc {
  padding: 0 16px;
  color: #525b6b;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.book-desc {
  margin-top: 8px;
  margin-bottom: 16px;
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
  margin: 0 16px 16px 16px;
}

.btn-primary {
  background: #3b82f6;
  color: #ffffff;
  margin-top: auto; /* Жестко толкает кнопку вниз */
  display: inline-block;
}

.btn-primary:hover {
  background: #2563eb;
}

/* Подвал */
.site-footer {
  background: #1f2937;
  color: #9ca3af;
  padding: 24px 0;
  margin-top: 48px;
}

.footer-content {
  text-align: center;
}
.site-footer .block7_l .r1 img {
  width: 33%;
}

/* Адаптив */
@media (max-width: 600px) {
  .logo {
    font-size: 1.5rem;
  }

  .books-grid {
    grid-template-columns: 1fr;
  }
}
