.flipbook-page {
  background:
    radial-gradient(circle at 20% 0%, rgba(253, 103, 16, 0.12), transparent 30%),
    linear-gradient(135deg, #f7f7f5 0%, #ece9e4 100%);
}

.flipbook-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.flipbook-logo img {
  width: 190px;
  height: auto;
}

.flipbook-header nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  font-weight: 800;
}

.flipbook-header nav a {
  color: var(--black);
}

.flipbook-header nav a.nav-login {
  color: var(--white);
}

.flipbook-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
  padding: clamp(34px, 6vw, 70px) 0 26px;
}

.flipbook-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 0.95;
}

.flipbook-hero p:not(.eyebrow) {
  max-width: 680px;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.flipbook-shell {
  width: min(100% - 48px, 1260px);
  margin: 0 auto clamp(42px, 6vw, 80px);
}

.flipbook-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 22px;
}

.flipbook-toolbar span {
  min-width: 128px;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
}

.book-stage {
  position: relative;
  padding: clamp(14px, 3vw, 32px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.42)),
    #ded8ce;
  overflow: hidden;
}

.book-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 18px),
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.72), transparent 42%);
  pointer-events: none;
}

.book-shadow {
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 18px;
  height: 32px;
  background: rgba(0, 0, 0, 0.28);
  filter: blur(24px);
  border-radius: 50%;
}

.book-spread {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 1040px;
  margin: 0 auto;
  perspective: 1800px;
}

.book-page {
  margin: 0;
  min-height: 520px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.book-page-left {
  border-radius: 10px 2px 2px 10px;
  transform-origin: right center;
}

.book-page-right {
  border-radius: 2px 10px 10px 2px;
  transform-origin: left center;
}

.book-page.is-turning-left {
  animation: turnLeft 0.34s ease both;
}

.book-page.is-turning-right {
  animation: turnRight 0.34s ease both;
}

.book-page img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.book-blank {
  display: grid;
  place-items: center;
  gap: 14px;
  min-height: 100%;
  color: var(--muted);
  font-weight: 800;
}

.book-blank img {
  width: 210px;
  opacity: 0.45;
}

.flipbook-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 18px 4px 4px;
}

.flipbook-thumbs button {
  flex: 0 0 auto;
  width: 58px;
  height: 80px;
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 0;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}

.flipbook-thumbs button.is-active {
  border-color: var(--orange);
}

.flipbook-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes turnLeft {
  from { transform: rotateY(-5deg); opacity: 0.72; }
  to { transform: rotateY(0); opacity: 1; }
}

@keyframes turnRight {
  from { transform: rotateY(5deg); opacity: 0.72; }
  to { transform: rotateY(0); opacity: 1; }
}

@media (max-width: 760px) {
  .flipbook-header {
    grid-template-columns: 1fr;
  }

  .flipbook-header nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .flipbook-hero {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 1180px);
  }

  .flipbook-shell {
    width: min(100% - 20px, 1260px);
  }

  .book-spread {
    grid-template-columns: 1fr;
  }

  .book-page-left {
    display: none;
  }

  .book-page {
    min-height: 0;
    border-radius: 10px;
  }
}
