/* BIAF — страница буклета */

.booklet-page{ padding-bottom: 80px; }

.booklet__head{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 32px;
  margin-bottom: 32px;
}
.booklet__head .section-title{ margin: 0; }
.booklet__subtitle{
  margin: 8px 0 0;
  color: var(--biaf-muted, #9a9a9a);
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.booklet__download{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--biaf-pink, #ff0085);
  color: #fff;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.booklet__download:hover{ opacity: .85; }

.booklet{
  position: relative;
  background: #000;
}
.booklet__stage{
  max-width: min(1100px, calc((100vh - 190px) * 2));
  margin: 0 auto;
}
.booklet__book{
  margin: 0 auto;
  user-select: none;
}
.booklet__page{
  background: #111;
  overflow: hidden;
}
.booklet__page img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.booklet__controls{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  color: #fff;
}
.booklet__controls button{
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.booklet__controls button:hover:not(:disabled){
  border-color: var(--biaf-pink, #ff0085);
  color: var(--biaf-pink, #ff0085);
}
.booklet__controls button:disabled{ opacity: .3; cursor: default; }
.booklet__controls .booklet__fullscreen{ font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.booklet__counter{
  min-width: 90px;
  text-align: center;
  font-size: 14px;
  letter-spacing: .06em;
}
.booklet__hint{
  margin: 14px 0 0;
  text-align: center;
  color: var(--biaf-muted, #9a9a9a);
  font-size: 13px;
}

/* полноэкранный режим */
.booklet:fullscreen{
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}
.booklet:fullscreen .booklet__stage{ width: min(100%, calc((100vh - 140px) * 2)); max-width: none; }
.booklet:-webkit-full-screen{ display: flex; flex-direction: column; justify-content: center; padding: 24px; }

@media (max-width: 639px){
  .booklet__head{ margin-bottom: 20px; }
  .booklet__download{ padding: 10px 18px; font-size: 13px; }
  .booklet__controls{ gap: 12px; }
}
