/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #f1e8cb;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  color: #1a237e;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* HEADER */
.hero {
  position: relative;
  overflow: hidden;
  padding: 60px 5vw 48px;
  background: #1976d2;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 0.95;
  font-weight: 800;
}

.hero-title em {
  font-style: normal;
  color: #e1f5fe;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.18);
}

.hero-sub {
  max-width: 600px;
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-grid-deco {
  display: none;
}
.nav{
    background: #1a237e;
    color: #edf2ff;
    padding: 12px 0;
    text-align: center;
    font-size: 0.95rem;
}
/* GALLERY */
.gallery-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 5vw 72px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.book-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(26, 35, 126, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  box-shadow: 0 12px 28px rgba(26, 35, 126, 0.06);
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(26, 35, 126, 0.10);
}

.book-cover {
  position: relative;
  min-height: 170px;
  background: #ace4f2;
  display: grid;
  place-items: center;
  padding: 18px;
}

.book-cover img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: none;
  transition: transform 0.35s ease;
}

.book-card:hover .book-cover img {
  transform: translateY(-4px);
}

.effect-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(69, 125, 47, 0.06);
  color: #7e1a53;
  font-size: 0.66rem;
  padding: 6px 10px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(26,35,126,0.08);
}

.book-info {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.book-info h2 {
  color: #1a237e;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.part-num {
  color: #6b7fb0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.details {
  background: #f6fbff;
  border-radius: 12px;
  padding: 12px 14px;
  color: #2f3b57;
  font-size: 0.92rem;
  line-height: 1.6;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.details strong {
  color: #1a237e;
}

.details p + p {
  margin-top: 10px;
}

.price {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  color: #0f9d58;
}

.details ul {
  margin-top: 10px;
  padding-left: 18px;
  list-style: disc;
}

.details ul li {
  margin-top: 6px;
  color: #5a6a88;
  font-size: 0.88rem;
}

.btn-reveal {
  align-self: flex-start;
  border: none;
  border-radius: 999px;
  background: #1976d2;
  color: #ffffff;
  padding: 10px 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.btn-reveal:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(25, 118, 210, 0.12);
  opacity: 0.98;
}

.book-card.pressing {
  outline: 2px solid #1976d2;
  outline-offset: 4px;
}

.site-footer {
  margin-top: 32px;
  background: #1a237e;
  color: #edf2ff;
  padding: 18px 0;
  text-align: center;
  font-size: 0.95rem;
}

@media (max-width: 840px) {
  .hero {
    padding: 48px 4vw 40px;
  }

  .gallery-section {
    padding: 40px 4vw 56px;
  }
}

@media (max-width: 620px) {
  .hero-title {
    font-size: 3.4rem;
  }

  .hero-sub {
    font-size: 0.98rem;
  }

  .gallery-grid {
    gap: 20px;
  }

  .book-cover {
    min-height: 170px;
  }

  .book-info {
    padding: 18px;
  }
}
