.download-sources-section {
  position: relative;
  overflow: hidden;
  padding-block: 86px 74px;
  background:
    radial-gradient(circle at 7% 92%, #eff0ff 0 105px, transparent 106px),
    radial-gradient(circle at 96% 4%, #e7fbf7 0 125px, transparent 126px),
    #fff;
}

.download-heading {
  max-width: 690px;
  margin: 0 auto 34px;
  text-align: center;
}

.download-heading h2 {
  margin: 0 0 12px;
  color: #15162a;
  font-size: clamp(30px, 3.7vw, 45px);
  line-height: 1.3;
  letter-spacing: 0;
}

.download-heading h2 em {
  color: #4d52f6;
  font-style: normal;
}

.download-heading > p:last-child {
  margin: 0;
  color: #686d80;
  font-size: 15px;
}

.download-sources-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.download-source {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 17px 13px;
  align-items: center;
  padding: 20px;
  border: 1px solid #e8eaf2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 13px 34px #25284d0a;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.download-source:hover,
.download-source:focus-visible {
  transform: translateY(-4px);
  border-color: #c9ccff;
  box-shadow: 0 18px 39px #25284d17;
  outline: none;
}

.source-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: #4d52f6;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 8px 17px #4d52f62b;
}

.source-mediafire .source-icon { background: #1494eb; box-shadow: 0 8px 17px #1494eb2b; }
.source-direct .source-icon { background: #21a878; box-shadow: 0 8px 17px #21a8782b; font-size: 25px; }

.source-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
  line-height: 1.45;
}

.source-copy strong {
  overflow: hidden;
  color: #202138;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-copy small {
  overflow: hidden;
  color: #7a7f91;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-button {
  grid-column: 1 / -1;
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  color: #fff;
  background: #4d52f6;
  font-size: 13px;
  font-weight: 850;
  transition: filter .2s ease, box-shadow .2s ease;
}

.source-mediafire .source-button { background: #1494eb; }
.source-direct .source-button { background: #21a878; }
.download-source:hover .source-button { filter: brightness(.94); box-shadow: 0 8px 18px #1d244122; }
.source-button b { font-size: 18px; line-height: 1; }

.download-feedback {
  min-height: 24px;
  margin: 18px 0 0;
  color: #73788a;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 860px) {
  .download-sources-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .download-source { grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-rows: auto; gap: 12px; padding: 15px; }
  .source-button { grid-column: auto; min-width: 145px; padding-inline: 12px; }
}

@media (max-width: 520px) {
  .download-sources-section { padding-block: 65px 53px; }
  .download-heading { margin-bottom: 25px; }
  .download-heading h2 { font-size: 29px; letter-spacing: 0; line-height: 1.4; }
  .download-heading > p:last-child { font-size: 12px; }
  .download-sources-grid { gap: 10px; }
  .download-source { grid-template-columns: 40px minmax(0, 1fr); gap: 10px 11px; padding: 13px; border-radius: 14px; }
  .source-icon { width: 40px; height: 40px; border-radius: 12px; font-size: 17px; }
  .source-copy strong { font-size: 14px; }
  .source-copy small { font-size: 10px; }
  .source-button { grid-column: 1 / -1; min-width: 0; min-height: 42px; }
  .download-feedback { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .download-source, .source-button { transition: none; }
}
