.cs-flipbook {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: 4rem 1.5rem 5rem;
  background: #050505;
  position: relative;
}

.cs-flipbook-heading {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.cs-flipbook-heading .cs-block-label {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #999999;
  margin-bottom: 0.5rem;
}

.cs-flipbook-heading p {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  color: #999999;
  line-height: 1.6;
  margin: 0;
}

.premium-flipbook-wrapper {
  position: relative;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  height: 0;
  min-height: 0;
  max-height: none;
  padding-bottom: 28.125%;
  background: #050505;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  overflow: visible;
  font-family: 'Inter', system-ui, sans-serif;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.premium-flipbook-wrapper.visible {
  opacity: 1;
  transform: translateY(0);
}

.premium-flipbook-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fb-desktop {
  position: relative;
  width: 100%;
  max-width: 1500px;
  padding: 0 64px;
  box-sizing: border-box;
}

.fb-desktop__book {
  width: 100%;
  transform: translateX(0);
  transition: transform 0.3s ease-in-out;
  will-change: transform;
}

.fb-desktop[data-flip-state="closed"] .fb-desktop__book {
  transform: translateX(var(--flipbook-shift, 0px));
}

.fb-desktop__nav {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 10;
  width: 38px;
  height: 52px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
  margin: 0;
}

.fb-desktop__nav:hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}

.fb-desktop__nav:active {
  background: rgba(255, 255, 255, 0.18);
}

.fb-desktop__nav:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.fb-desktop__prev {
  left: 16px;
}

.fb-desktop__next {
  right: 16px;
}

.fb-desktop__counter {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 1200px) {
  .premium-flipbook-wrapper {
    min-height: 0;
    max-height: none;
  }
  .fb-desktop {
    padding: 0 40px;
  }
}

@media (max-width: 1024px) {
  .cs-flipbook {
    padding: 3rem 1rem 4rem;
  }
  .premium-flipbook-wrapper {
    min-height: 0;
    max-height: none;
  }
  .fb-desktop {
    padding: 0 28px;
  }
}

@media (max-width: 768px) {
  .cs-flipbook {
    padding: 2.5rem 0 3.5rem;
  }
  .cs-flipbook-heading {
    padding: 0 1rem;
    margin-bottom: 2rem;
  }
  .fb-desktop {
    padding: 0 12px;
  }
  .fb-desktop__nav {
    width: 44px;
    height: 56px;
  }
  .fb-desktop__prev {
    left: 4px;
  }
  .fb-desktop__next {
    right: 4px;
  }
}

@media (max-width: 480px) {
  .cs-flipbook {
    padding: 2rem 0 3rem;
  }
  .cs-flipbook-heading {
    margin-bottom: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .premium-flipbook-wrapper {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .fb-desktop__book {
    transition: none;
  }
}

