.book-page {
  background: #fff;
  color: #000;
}

/* ---------- logo ---------- */

.page__logo--book {
  top: 50px;
  filter: none;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
}

.page__logo--book:hover {
  transform: scale(1.08);
}

/* ---------- header ---------- */

.book-header {
  position: absolute;
  left: 50px;
  top: 82px;
  width: 587px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.book-header__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 60px;
  line-height: 70px;
  text-transform: uppercase;
  color: #000;
  user-select: none;
}

.book-header__text {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.book-header__desc {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 24px;
  color: #000;
}

.book-header__btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  gap: 30px;
  width: 209px;
  height: 33px;
  background: #000;
  border-radius: 50px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 24px;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.book-header__btn:hover,
.book-header__btn:focus-visible {
  opacity: 0.85;
}

/* ---------- grid ---------- */

.book-grid {
  position: absolute;
  left: 50px;
  top: 430px;
  width: 1818px;
  height: 500px;
  display: grid;
  grid-template-columns: repeat(6, 278px);
  grid-template-rows: repeat(3, 140px);
  column-gap: 30px;
  row-gap: 40px;
}

.book-grid__cell {
  position: relative;
  overflow: hidden;
  background: #000;
}

.book-grid__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- blur ---------- */

.book-blur {
  position: absolute;
  left: 47px;
  top: 430px;
  width: 1823px;
  height: 500px;
  display: grid;
  grid-template-columns: repeat(6, 281px);
  grid-template-rows: repeat(3, 140px);
  column-gap: 27.4px;
  row-gap: 40px;
  pointer-events: none;
}

.book-blur__cell {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
}

.book-blur__cell:nth-child(1),
.book-blur__cell:nth-child(3),
.book-blur__cell:nth-child(5),
.book-blur__cell:nth-child(8),
.book-blur__cell:nth-child(10),
.book-blur__cell:nth-child(12),
.book-blur__cell:nth-child(13),
.book-blur__cell:nth-child(15),
.book-blur__cell:nth-child(17) {
  animation: blurBlinkA 3s 0.15s infinite;
}

.book-blur__cell:nth-child(2),
.book-blur__cell:nth-child(4),
.book-blur__cell:nth-child(6),
.book-blur__cell:nth-child(7),
.book-blur__cell:nth-child(9),
.book-blur__cell:nth-child(11),
.book-blur__cell:nth-child(14),
.book-blur__cell:nth-child(16),
.book-blur__cell:nth-child(18) {
  animation: blurBlinkB 3s 0.15s infinite;
}

/* ---------- covers ---------- */

.book-covers {
  position: absolute;
  left: 47px;
  top: 430px;
  width: 1823px;
  height: 500px;
  display: grid;
  grid-template-columns: repeat(6, 281px);
  grid-template-rows: repeat(3, 140px);
  column-gap: 27.4px;
  row-gap: 40px;
  pointer-events: none;
}

.book-covers__card {
  background: rgba(255, 255, 255, 0.09);
  pointer-events: auto;
  cursor: pointer;
}

/* ---------- menu button ---------- */

.menu-btn--book {
  left: 1736px;
  top: 974px;
  background: #000;
  color: #fff;
}

.menu-btn--book:hover,
.menu-btn--book:focus-visible {
  opacity: 0.85;
}

/* ---------- zoom ---------- */

.book-zoom-overlay {
  position: absolute;
  width: 1920px;
  height: 1080px;
  left: 0;
  top: 0;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  transition: opacity 0.4s ease;
}

.book-zoom-img {
  position: absolute;
  width: 993px;
  height: 500px;
  left: calc(50% - 993px / 2 + 0.5px);
  top: 430px;
  opacity: 0;
  pointer-events: none;
  z-index: 21;
  overflow: hidden;
  transition: opacity 0.4s ease;
}

.book-zoom-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- zoomed state ---------- */

.canvas-zoomed .book-zoom-overlay {
  opacity: 1;
  pointer-events: auto;
}

.canvas-zoomed .book-zoom-img {
  opacity: 1;
  pointer-events: auto;
}

.canvas-zoomed .book-blur__cell {
  animation: none;
  opacity: 1;
}

/* ---------- entry animation ---------- */

@keyframes blurBlinkA {
  0%, 48% { opacity: 1; }
  52%, 100% { opacity: 0; }
}

@keyframes blurBlinkB {
  0%, 48% { opacity: 0; }
  52%, 100% { opacity: 1; }
}

@keyframes bookFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.book-header {
  animation: bookFadeUp 0.7s ease both;
}

.book-grid {
  animation: bookFadeUp 0.7s 0.15s ease both;
}

.book-covers {
  animation: bookFadeUp 0.7s 0.15s ease both;
}

.menu-btn--book {
  animation: bookFadeUp 0.5s 0.35s ease both;
}
