/* Страница загрузки приложений (/download). Токены, кнопки и шапка — в styles.css, карточки-иконки — в sections.css. */

.topnav a[aria-current='page'] {
  color: var(--text);
}

.dl-hero {
  padding: clamp(3.5rem, 2rem + 5vw, 6rem) 0 0;
  text-align: center;
}

.dl-hero h1 {
  max-width: 18ch;
  margin: 0 auto;
  font-size: clamp(2.4rem, 1.2rem + 4.4vw, 4.8rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.dl-platforms {
  padding-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}

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

.dl-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 30px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(12px);
  transition:
    transform 220ms var(--ease),
    border-color 220ms var(--ease);
}

.dl-card:hover {
  transform: translateY(-3px);
}

/* Устройство посетителя — карточка с подсветкой (download.js) */
.dl-card.is-yours {
  border-color: var(--kicker);
  box-shadow: var(--btn-glow);
}

.dl-card h2 {
  margin-top: 0.75rem;
  font-size: 1.6rem;
}

.dl-card > p:not(.dl-meta) {
  flex: 1;
  color: var(--muted);
  font-size: 0.95rem;
}

.dl-card .btn {
  margin-top: 0.75rem;
}

.dl-card .btn[aria-disabled='true'] {
  opacity: 0.5;
  pointer-events: none;
}

.dl-meta {
  min-height: 1.3em;
  color: var(--muted);
  font-size: 0.75rem;
}

.dl-howto {
  padding-top: var(--section);
}

.dl-howto:last-of-type {
  padding-bottom: var(--section);
}

.dl-howto__inner {
  display: grid;
  gap: 2rem;
}

.dl-howto__note {
  max-width: 30rem;
  margin-top: 1.25rem;
}

.dl-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.dl-steps li {
  position: relative;
  padding: 18px 20px 18px 64px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  counter-increment: step;
}

.dl-steps li::before {
  content: counter(step);
  position: absolute;
  top: 16px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--grad);
  color: var(--pill-tag-text);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
}

@media (min-width: 960px) {
  .dl-howto__inner {
    grid-template-columns: 5fr 7fr;
    gap: 4rem;
    align-items: start;
  }
}
