:root {
  color-scheme: dark;
  --canvas: #0c0c10;
  --card: #17171d;
  --border: #36363f;
  --red: #e50921;
  --text: #f9f8fa;
  --muted: #bbb9c3;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(ellipse at 86% 4%, #3b0b19 0%, transparent 53%), var(--canvas);
}
a { color: inherit; text-decoration: none; }
.download-page {
  width: min(1100px, 100%);
  min-height: 100svh;
  margin-inline: auto;
  padding: 15px clamp(14px, 4vw, 44px) 20px;
}
.download-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.download-brand { display: inline-flex; align-items: center; min-width: 0; }
.download-brand img { display: block; width: clamp(115px, 23vw, 172px); height: 38px; object-fit: contain; object-position: left; }
.back-link {
  display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 6px 10px;
  border: 1px solid var(--border); border-radius: 8px; background: #17171dcf; font-size: 12px; font-weight: 700;
}
.back-link img, .download-button img { width: 14px; height: 14px; filter: invert(1); }
.download-intro { margin: clamp(14px, 3vh, 32px) 0 14px; }
.download-intro h1 { margin: 0; font-size: clamp(27px, 5vw, 52px); line-height: 1.05; letter-spacing: -.045em; }
.download-intro h1 span { color: #ff455b; }
.download-intro p { margin: 6px 0 0; font-size: clamp(12px, 1.6vw, 15px); color: var(--muted); }
.app-download-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.app-download-card {
  display: grid; grid-template-rows: auto 1fr auto; gap: 8px; min-width: 0;
  padding: 13px; border: 1px solid var(--border); border-radius: 13px;
  background: linear-gradient(150deg, #232229, var(--card) 66%);
}
.app-download-card:hover, .app-download-card:focus-within { border-color: #d74c5e; }
.platform { display: flex; align-items: center; gap: 9px; }
.platform img {
  width: 33px; height: 33px; padding: 7px; flex: 0 0 auto; border-radius: 8px;
  background: #000; filter: invert(1);
}
.platform h2 { margin: 0; font-size: clamp(13px, 2vw, 19px); line-height: 1.15; }
.app-download-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.3; }
.download-button {
  display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px;
  padding: 6px; border: 1px solid transparent; border-radius: 8px;
  background: #c90920; text-align: center; font-size: 12px; font-weight: 700; line-height: 1.1;
}
.download-button:hover { background: var(--red); }
.download-button.web-button { border-color: #50505c; background: #272730; }
.download-button.web-button:hover, .back-link:hover { background: #393942; }
a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 620px) {
  .app-download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .app-download-card { padding: 9px; gap: 6px; }
  .platform img { width: 26px; height: 26px; padding: 5px; }
  .app-download-card p { font-size: 11px; }
  .download-button { min-height: 34px; font-size: 11px; }
}
