.cs-download-page {
  width: min(100% - 40px, 1240px);
  margin: 0 auto;
  padding: 20px 0 56px;
}

.cs-download-page__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(165, 176, 220, 0.18);
  padding: 4px 0 16px;
}

.cs-download-page__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c9c6ff;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  transition: color 150ms ease;
}

.cs-download-page__back:hover {
  color: #ffffff;
}

.cs-download-page__brand {
  color: #f5f6ff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.cs-download-page__brand span {
  color: #aeb8d0;
  font-weight: 600;
}

.cs-download-library {
  margin: 36px 0 20px;
  color: #e9edff;
}

.cs-download-library__heading {
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: center;
}

.cs-download-library__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a7a1ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cs-download-library__heading h2 {
  margin: 10px 0 8px;
  color: #f8f9ff;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.cs-download-library__heading p,
.cs-download-library__note {
  color: #aeb8d0;
  font-size: 16px;
  line-height: 1.6;
}

.cs-download-library__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}

.cs-download-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(165, 176, 220, 0.18);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(24, 31, 55, 0.96), rgba(15, 20, 38, 0.98));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.cs-download-card:hover {
  transform: translateY(-2px);
  border-color: rgba(161, 153, 255, 0.55);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26);
}

.cs-download-card__preview {
  display: grid;
  height: clamp(220px, 24vw, 280px);
  min-width: 0;
  overflow: hidden;
  place-items: center;
  padding: 12px;
  background: #0b1020;
}

.cs-download-card__preview img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cs-download-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.cs-download-card__body h3 {
  margin: 0;
  color: #f5f6ff;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.35;
}

.cs-download-card__body p {
  margin: 8px 0 18px;
  color: #aeb8d0;
  font-size: 15px;
  line-height: 1.55;
}

.cs-download-card__formats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}

.cs-download-card__format {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(161, 153, 255, 0.28);
  border-radius: 10px;
  background: rgba(118, 111, 163, 0.12);
  color: #ddd9ff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.cs-download-card__format:hover {
  transform: translateY(-1px);
  border-color: rgba(161, 153, 255, 0.72);
  background: rgba(118, 111, 163, 0.24);
}

.cs-download-card__format:focus-visible {
  outline: 3px solid #c5c0ff;
  outline-offset: 3px;
}

.cs-download-library__note {
  margin: 18px 0 0;
  text-align: center;
}

@media (max-width: 560px) {
  .cs-download-library__grid {
    gap: 14px;
  }

  .cs-download-card__preview {
    min-height: 180px;
  }

  .cs-download-card__body {
    padding: 16px;
  }
}
