.download-center-page {
  color: var(--text-light-primary);
  background: #f7f6f3;
}

.download-center-main {
  min-height: 100svh;
  overflow-x: clip;
  background:
    radial-gradient(circle at 12% 8%, rgba(230, 0, 33, .08), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(16, 17, 19, .08), transparent 38%),
    #f7f6f3;
}

.download-catalog-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.download-catalog-hero {
  padding: clamp(72px, 8vw, 112px) 0 clamp(34px, 5vw, 56px);
}

.download-catalog-eyebrow {
  margin: 0 0 14px;
  color: var(--salang-red);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  line-height: 1.3;
  letter-spacing: .16em;
}

.download-catalog-title {
  margin: 0;
  color: #18191c;
  font-size: clamp(44px, 5vw, 76px);
  font-weight: var(--fw-light);
  line-height: 1.08;
  letter-spacing: -.055em;
}

.download-catalog-desc {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(24, 25, 28, .58);
  font-size: clamp(16px, 1.25vw, 20px);
  font-weight: var(--fw-regular);
  line-height: 1.8;
}

.download-shelf-section {
  padding: 0 0 clamp(82px, 9vw, 132px);
}

.download-shelf {
  display: grid;
  gap: clamp(64px, 8vw, 96px);
  padding: clamp(16px, 3vw, 36px) 0 0;
}

.download-shelf__row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  column-gap: clamp(22px, 2.8vw, 42px);
  row-gap: clamp(56px, 7vw, 86px);
  padding: 0 clamp(18px, 3vw, 36px) 38px;
}

.download-shelf__row--second {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: stretch;
}

.download-shelf__row::before,
.download-shelf__row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}

.download-shelf__row::before {
  bottom: -8px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(16, 17, 19, .14), transparent);
  filter: blur(10px);
}

.download-shelf__row::after {
  bottom: 0;
  height: 18px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .84), rgba(223, 218, 208, .9)),
    linear-gradient(90deg, rgba(255, 255, 255, .48), rgba(16, 17, 19, .09));
  border: 1px solid rgba(16, 17, 19, .08);
  box-shadow: 0 18px 34px rgba(16, 17, 19, .12);
}

.manual-book {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  height: 100%;
  text-align: center;
  transition: transform 180ms ease, filter 180ms ease;
  transform-origin: center bottom;
}

.manual-book:hover,
.manual-book:focus-within {
  transform: translateY(-6px) scale(1.015);
  filter: drop-shadow(0 20px 28px rgba(16, 17, 19, .13));
}

.manual-book.is-highlighted {
  z-index: 2;
  transform: translateY(-8px) scale(1.045);
  filter: drop-shadow(0 24px 34px rgba(16, 17, 19, .16));
}

.manual-book.is-highlighted .manual-book__cover {
  border-color: rgba(230, 0, 33, .54);
  box-shadow: 0 22px 42px rgba(230, 0, 33, .12), 0 22px 50px rgba(16, 17, 19, .16);
}

.manual-book__cover {
  position: relative;
  width: min(100%, clamp(210px, 17vw, 250px));
  aspect-ratio: 210 / 297;
  overflow: hidden;
  display: grid;
  align-content: space-between;
  padding: 24px 22px;
  border-radius: 14px 14px 8px 8px;
  border: 1px solid rgba(16, 17, 19, .14);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .18), transparent 12%, transparent 88%, rgba(0, 0, 0, .08)),
    radial-gradient(circle at 72% 18%, rgba(230, 0, 33, .12), transparent 30%),
    linear-gradient(145deg, #ffffff, #eceae5);
  box-shadow: 0 18px 38px rgba(16, 17, 19, .13);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.manual-book__cover--ready {
  display: block;
  padding: 0;
  background: #111;
}

.manual-book__cover::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 16px;
  background: linear-gradient(180deg, rgba(16, 17, 19, .16), rgba(16, 17, 19, .04), rgba(16, 17, 19, .18));
}

.manual-book__cover-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #111;
}

.manual-book__cover-kicker {
  position: relative;
  justify-self: start;
  color: var(--salang-red);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  letter-spacing: .18em;
  line-height: 1.2;
}

.manual-book__cover-placeholder {
  position: relative;
  color: rgba(24, 25, 28, .7);
  font-size: clamp(17px, 1.35vw, 22px);
  font-weight: var(--fw-semibold);
  line-height: 1.45;
  letter-spacing: .02em;
}

.manual-book__cover-line {
  position: relative;
  width: 54px;
  height: 2px;
  background: var(--salang-red);
}

.manual-book__info {
  width: min(100%, 280px);
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
}

.manual-book__title {
  margin: 0;
  color: #18191c;
  font-size: clamp(18px, 1.35vw, 22px);
  font-weight: var(--fw-semibold);
  line-height: 1.36;
  letter-spacing: -.02em;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-wrap: balance;
}

.manual-book__series {
  margin: 8px 0 16px;
  color: rgba(24, 25, 28, .52);
  font-size: 15px;
  font-weight: var(--fw-medium);
  line-height: 1.5;
}

.manual-book__button {
  min-height: 42px;
  padding: 0 18px;
  white-space: nowrap;
}

html[lang="en"] .manual-book__title {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  min-height: 98px;
}

.download-catalog-note {
  max-width: 760px;
  margin: clamp(34px, 5vw, 56px) auto 0;
  color: rgba(24, 25, 28, .52);
  font-size: 15px;
  font-weight: var(--fw-regular);
  line-height: 1.8;
  text-align: center;
}

@media (max-width: 960px) {
  .download-shelf__row,
  .download-shelf__row--second {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }
}

@media (max-width: 640px) {
  .download-catalog-container {
    width: min(100% - 32px, 460px);
  }

  .download-catalog-hero {
    padding-top: 56px;
  }

  .download-shelf {
    gap: 54px;
  }

  .download-shelf__row,
  .download-shelf__row--second {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-inline: 0;
  }

  .manual-book__cover {
    width: min(68vw, 210px);
  }

  .manual-book__info {
    width: min(100%, 280px);
  }

  .manual-book__title,
  html[lang="en"] .manual-book__title {
    min-height: 0;
  }

  .manual-book__button {
    width: 100%;
    justify-content: center;
  }
}
