* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at top, #1b160f 0%, #080808 40%, #030303 100%);
  color: #ffffff;
  font-family: Tahoma, Arial, sans-serif;
}

.catalog {
  width: min(100%, 1400px);
  margin: 0 auto;
  padding: 28px 18px 42px;
  text-align: center;
}

.catalog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto 24px;
  max-width: 1080px;
  text-align: right;
}

.catalog__eyebrow {
  margin: 0 0 5px;
  color: #d9ad55;
  font-family: Georgia, serif;
  font-size: 14px;
  letter-spacing: 4px;
}

.catalog h1 {
  margin: 0;
  color: #f6e2b6;
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 700;
}

.download-button,
.contact-button,
.controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c99b46;
  border-radius: 9px;
  padding: 11px 16px;
  background: transparent;
  color: #f4d591;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.download-button:hover,
.contact-button:hover,
.controls button:hover {
  background: #c99b46;
  color: #111111;
}

.flipbook-area {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
}

.flipbook {
  margin: 0 auto;
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.75);
}

.page {
  background: #0a0a0a;
}

.page img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 13px;
  margin: 24px 0 10px;
}

#pageNumber {
  display: inline-block;
  min-width: 80px;
  color: #e9c274;
  font-weight: bold;
}

.guide {
  margin: 13px 0 22px;
  color: #cfc6b7;
  font-size: 14px;
}

.contact-button {
  background: #b98a32;
  color: #100d09;
  font-weight: bold;
}

.contact-button:hover {
  background: #e3b95f;
}

@media (max-width: 640px) {
  .catalog {
    padding: 20px 10px 35px;
  }

  .catalog__header {
    flex-direction: column;
    text-align: center;
  }

  .controls {
    gap: 8px;
  }

  .controls button {
    padding: 10px 11px;
    font-size: 13px;
  }

  .guide {
    line-height: 1.9;
  }
}
