/* ================= DOWNLOAD — только уникальные стили ================= */
/* Требует main.css */

/* ================= HERO — дополнение ================= */
/* .page-hero из main.css. Здесь расширяем: у download своя ширина и заголовок крупнее. */
.page-hero-inner {
  max-width: 820px;
}
.page-hero h1 {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.15;
  margin-bottom: 16px;
}
.page-hero-desc {
  font-size: 16px;
  max-width: 620px;
  margin: 0 auto 30px;
}

/* Кнопки hero */
.dl-hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

/* ===== Кнопки (свои, чуть крупнее общих) ===== */
.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: .2s;
  font-family: inherit;
  white-space: nowrap;
}
.dl-btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: var(--bg-deep);
  box-shadow: 0 8px 24px rgba(212,176,64,.3);
}
.dl-btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(212,176,64,.45);
}
.dl-btn-ghost {
  background: transparent;
  border-color: var(--border-gold);
  color: var(--gold-light);
}
.dl-btn-ghost:hover { background: rgba(212,176,64,.08); }
.dl-btn-icon { width: 18px; height: 18px; }

/* ===== Статистика hero ===== */
.dl-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 24px;
  background: rgba(0,0,0,.35);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(6px);
}
.dl-stat { text-align: center; }
.dl-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--gold-bright);
  text-shadow: 0 0 12px rgba(240,209,88,.4);
  margin-bottom: 2px;
}
.dl-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ================= СЕКЦИИ ================= */
.dl-section {
  padding-top: 56px;
  padding-bottom: 56px;
}

/* ================= ПЛАТФОРМЫ ================= */
.dl-platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.dl-platform {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  transition: .25s transform, .25s border-color, .25s box-shadow;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dl-platform:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.4), 0 0 24px rgba(212,176,64,.1);
}
.dl-platform-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(212,176,64,.15), rgba(0,0,0,.4));
  border: 1px solid var(--border-gold);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--gold-bright);
}
.dl-platform-icon svg { width: 32px; height: 32px; }
.dl-platform-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.dl-platform-info {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.dl-platform-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 14px;
  transition: .2s;
}
.dl-platform-btn svg { width: 16px; height: 16px; }
.dl-platform-btn:hover {
  background: rgba(212,176,64,.15);
  border-color: var(--border-gold);
  color: var(--gold-bright);
}
.dl-platform-note {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.dl-platform-note b { color: var(--gold-light); }

/* ================= ОБ ИГРЕ ================= */
.dl-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.dl-about-text h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--gold-bright);
}
.dl-about-text p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.75;
}
.dl-features {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dl-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}
.dl-check {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(212,176,64,.15);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}
.dl-about-media {
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--border-gold);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  background: radial-gradient(circle at 50% 50%, rgba(212,176,64,.1), rgba(0,0,0,.6));
}
.dl-about-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ================= ГАЛЕРЕЯ ================= */
.dl-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.dl-gallery[hidden] { display: none !important; }

.dl-gallery-item {
  display: block;
  position: relative;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  cursor: zoom-in;
  font-family: inherit;
  transition: .25s border-color, .25s transform;
}
.dl-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: .3s transform;
  pointer-events: none;
}
.dl-gallery-item:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
}
.dl-gallery-item:hover img { transform: scale(1.06); }

.dl-gallery-item::after {
  content: '⤢';
  position: absolute;
  bottom: 8px; right: 8px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(0,0,0,.7);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  display: grid; place-items: center;
  font-size: 13px;
  opacity: 0;
  transition: .25s opacity;
  pointer-events: none;
}
.dl-gallery-item:hover::after { opacity: 1; }

/* Кнопка «Показать ещё» */
.dl-show-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.dl-show-more-wrap[hidden] { display: none; }

/* ================= ЛАЙТБОКС ================= */
.dl-lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.94);
  display: grid; place-items: center;
  z-index: 9999;
  padding: 30px;
  cursor: zoom-out;
}
.dl-lightbox[hidden] { display: none; }
.dl-lightbox img {
  max-width: 95%;
  max-height: 92vh;
  border: 2px solid var(--border-gold);
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(212,176,64,.4);
  object-fit: contain;
  cursor: default;
}
.dl-lightbox-close {
  position: absolute;
  top: 16px; right: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,.7);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  font-size: 26px;
  line-height: 1;
  display: grid; place-items: center;
  cursor: pointer;
  transition: .2s;
  font-family: inherit;
}
.dl-lightbox-close:hover {
  background: var(--gold);
  color: var(--bg-deep);
}

/* ================= СИСТЕМНЫЕ ТРЕБОВАНИЯ ================= */
.dl-requirements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.dl-req-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.dl-req-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.dl-req-title svg { width: 20px; height: 20px; color: var(--gold-bright); }
.dl-req-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dl-req-card li {
  font-size: 13px;
  color: var(--text-muted);
}
.dl-req-card li b { color: var(--text); }

/* ================= CTA ================= */
.dl-cta {
  background: linear-gradient(135deg, rgba(212,176,64,.12), rgba(0,0,0,.4));
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  padding: 44px 28px;
  text-align: center;
}
.dl-cta h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}
.dl-cta p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 520px;
  margin-inline: auto;
}
.dl-cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ================= АДАПТИВ ================= */

/* Планшет */
@media (max-width: 900px) {
  .dl-about { grid-template-columns: 1fr; gap: 32px; }
  .dl-hero-stats { grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 22px; }
}

/* Мобильные */
@media (max-width: 720px) {
  /* HERO */
  .page-hero-desc { font-size: 14px; margin-bottom: 24px; }
  .dl-btn { padding: 12px 22px; font-size: 14px; }
  .dl-hero-stats { padding: 18px; gap: 14px; }
  .dl-stat-value { font-size: 18px; }
  .dl-stat-label { font-size: 10px; }

  /* Секции */
  .dl-section { padding-top: 60px; padding-bottom: 60px; }

  /* Платформы */
  .dl-platform { padding: 22px 16px; }
  .dl-platform-icon { width: 52px; height: 52px; margin-bottom: 14px; }
  .dl-platform-icon svg { width: 26px; height: 26px; }
  .dl-platform-name { font-size: 16px; }
  .dl-platform-info { margin-bottom: 18px; }
  .dl-platform-note { margin-top: 28px; }

  /* Об игре */
  .dl-about { gap: 32px; }
  .dl-about-text h3 { font-size: 20px; margin-bottom: 14px; }
  .dl-about-text p { font-size: 14px; margin-bottom: 12px; }
  .dl-features { gap: 12px; margin-top: 24px; }
  .dl-features li { font-size: 13px; }

  /* Галерея */
  .dl-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .dl-gallery-item::after { display: none; }

  /* Показать ещё */
  .dl-show-more-wrap { margin-top: 28px; margin-bottom: 8px; }

  /* Системные требования */
  .dl-requirements { gap: 16px; }
  .dl-req-card { padding: 22px 18px; }
  .dl-req-title { font-size: 15px; margin-bottom: 16px; padding-bottom: 14px; }
  .dl-req-card ul { gap: 10px; }
  .dl-req-card li { font-size: 13px; }

  /* CTA */
  .dl-cta { padding: 40px 22px; }
  .dl-cta h2 { font-size: 22px; margin-bottom: 14px; }
  .dl-cta p { font-size: 14px; margin-bottom: 26px; }

  /* Лайтбокс */
  .dl-lightbox { padding: 16px; }
  .dl-lightbox-close { top: 10px; right: 10px; width: 38px; height: 38px; font-size: 22px; }
}

/* Очень узкие экраны */
@media (max-width: 400px) {
  .dl-btn { padding: 11px 18px; font-size: 13px; }
  .dl-hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 16px; }
  .dl-stat-value { font-size: 16px; }

  .dl-section { padding-top: 52px; padding-bottom: 52px; }
  .dl-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

  .dl-about-text h3 { font-size: 18px; }
  .dl-req-card { padding: 18px 14px; }
  .dl-cta { padding: 32px 18px; }
  .dl-cta h2 { font-size: 20px; }
}