.bk-catalog {
  --bk-green: #76b82a;
  --bk-green-dark: #4c941f;
  --bk-white: #fff;
  --bk-muted: #cbd5e1;
  --bk-panel: #17202b;
  --bk-stage: #0f172a;
  --bk-border: rgb(255 255 255 / 14%);
  --bk-radius: 22px;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 56px 0 68px;
  overflow: hidden;
  border-radius: 30px;
  color: var(--bk-white);
  background: linear-gradient(180deg, var(--bk-panel), #233040);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  isolation: isolate;
}

.bk-catalog *,
.bk-catalog *::before,
.bk-catalog *::after {
  box-sizing: border-box;
}

.bk-catalog button,
.bk-catalog input {
  font: inherit;
}

.bk-catalog button,
.bk-catalog a {
  -webkit-tap-highlight-color: transparent;
}

.bk-catalog a {
  color: inherit;
  text-decoration: none;
}

.bk-catalog__inner {
  width: min(1240px, calc(100% - 32px));
  margin-inline: auto;
}

.bk-catalog__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.bk-catalog__header h2 {
  margin: 0;
  color: var(--bk-white);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.bk-catalog__header p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--bk-muted);
}

.bk-catalog__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 999px;
  color: var(--bk-white);
  background: rgb(255 255 255 / 9%);
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.bk-catalog__button--primary {
  border-color: transparent;
  background: var(--bk-green);
  box-shadow: 0 16px 32px rgb(118 184 42 / 25%);
  white-space: nowrap;
}

.bk-catalog__button:hover {
  border-color: var(--bk-green);
  background: var(--bk-green);
}

.bk-catalog button:focus-visible,
.bk-catalog a:focus-visible,
.bk-catalog input:focus-visible {
  outline: 3px solid #b7f08b;
  outline-offset: 3px;
}

.bk-catalog button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.bk-catalog__thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 2px 14px;
  scrollbar-width: thin;
  scrollbar-color: rgb(255 255 255 / 30%) transparent;
}

.bk-catalog__viewer {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 30px;
  background: var(--bk-stage);
  box-shadow: 0 30px 90px rgb(0 0 0 / 32%);
}

.bk-catalog__stage {
  position: relative;
  display: grid;
  min-height: 260px;
  place-items: center;
  overflow: auto;
  border-radius: var(--bk-radius);
  background: radial-gradient(circle at center, rgb(255 255 255 / 8%), rgb(255 255 255 / 3%));
  overscroll-behavior: contain;
}

.bk-catalog__stage img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 60vh;
  margin: auto;
  border-radius: 16px;
  background: var(--bk-white);
  box-shadow: 0 22px 70px rgb(0 0 0 / 28%);
  cursor: pointer;
  transition: opacity 180ms ease, transform 220ms ease;
}

.bk-catalog__page-button {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 52px;
  height: 52px;
  padding: 0;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 50%;
  color: var(--bk-white);
  background: rgb(15 23 42 / 78%);
  font: inherit;
  font-size: 1.8rem;
  cursor: pointer;
}

.bk-catalog__page-button:hover {
  background: var(--bk-green);
}

.bk-catalog__page-button--prev {
  left: 32px;
}

.bk-catalog__page-button--next {
  right: 32px;
}

.bk-catalog__caption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 4px 0;
  color: #dbe4ef;
}

.bk-catalog__caption strong,
.bk-catalog__caption span {
  display: block;
}

.bk-catalog__caption strong {
  color: var(--bk-white);
}

.bk-catalog__caption span {
  color: #aebccd;
}

.bk-catalog__hint {
  text-align: right;
}

.bk-catalog__progress {
  height: 7px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 99px;
  background: rgb(255 255 255 / 10%);
}

.bk-catalog__progress span {
  display: block;
  width: 4%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--bk-green), #b4e873);
  transition: width 200ms ease;
}

.bk-catalog__thumbs {
  gap: 13px;
  padding-top: 18px;
  padding-bottom: 4px;
}

.bk-catalog__thumb {
  flex: 0 0 160px;
  padding: 8px;
  border: 2px solid transparent;
  border-radius: 18px;
  color: var(--bk-white);
  background: rgb(255 255 255 / 8%);
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.bk-catalog__thumb[hidden] {
  display: none;
}

.bk-catalog__thumb:hover {
  transform: translateY(-2px);
  border-color: rgb(255 255 255 / 22%);
}

.bk-catalog__thumb[aria-current="page"] {
  border-color: var(--bk-green);
  background: rgb(118 184 42 / 16%);
}

.bk-catalog__thumb img {
  display: block;
  width: 100%;
  height: 86px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: var(--bk-white);
  object-fit: cover;
}

.bk-catalog__thumb small,
.bk-catalog__thumb strong {
  display: block;
}

.bk-catalog__thumb small {
  color: var(--bk-muted);
  font-weight: 750;
}

.bk-catalog__thumb strong {
  font-size: 0.85rem;
  line-height: 1.25;
}

.bk-catalog__sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 960px) {
  .bk-catalog__header {
    display: block;
  }

  .bk-catalog__header .bk-catalog__button {
    margin-top: 18px;
  }

  .bk-catalog__caption {
    display: block;
  }

  .bk-catalog__hint {
    margin-top: 8px;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .bk-catalog {
    padding: 36px 0 46px;
    border-radius: 22px;
  }

  .bk-catalog__inner {
    width: min(1180px, calc(100% - 22px));
    margin-inline: auto;
  }

  .bk-catalog__viewer {
    padding: 11px;
    border-radius: 22px;
  }

  .bk-catalog__stage img {
    max-height: 60vh;
    border-radius: 11px;
  }

  .bk-catalog__page-button {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }

  .bk-catalog__page-button--prev {
    left: 16px;
  }

  .bk-catalog__page-button--next {
    right: 16px;
  }

  .bk-catalog__thumb {
    flex-basis: 130px;
  }

  .bk-catalog__thumb img {
    height: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bk-catalog *,
  .bk-catalog *::before,
  .bk-catalog *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
