:root {
  --bg: #0d0d0f;
  --panel: #16161a;
  --line: #2a2a30;
  --text: #ecebe8;
  --muted: #9a9890;
  --red: #d8141f;
  --red-hi: #f02a35;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
img { max-width: 100%; display: block; }

.hero { position: relative; min-height: 88vh; display: grid; place-items: center; overflow: hidden; padding: 48px 16px; }
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,13,15,.55) 0%, rgba(13,13,15,.7) 55%, var(--bg) 100%), url(assets/hero.jpg) center 35% / cover no-repeat;
  filter: saturate(.85);
}
.hero-in { position: relative; text-align: center; width: 100%; max-width: 760px; }
.logo { width: min(560px, 92%); height: auto; margin: 0 auto 8px; filter: drop-shadow(0 8px 30px rgba(0,0,0,.7)); }
.tag { font-size: clamp(18px, 2.6vw, 22px); margin: 8px 0 4px; letter-spacing: .02em; }
.ver { color: var(--muted); margin: 0 0 28px; font-size: 14px; }

.dl { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 12px; min-width: 220px; padding: 14px 22px;
  border: 1px solid var(--line); border-radius: 10px; background: rgba(22,22,26,.85);
  color: var(--text); text-decoration: none; text-align: left; transition: transform .12s, border-color .12s, background .12s;
}
.btn:hover { transform: translateY(-2px); border-color: #4a4a52; }
.btn:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 3px; }
.btn svg { width: 30px; height: 30px; fill: currentColor; flex: none; }
.btn span { display: flex; flex-direction: column; line-height: 1.2; }
.btn b { font-size: 18px; }
.btn small { color: var(--muted); font-size: 13px; }
.btn-main { background: var(--red); border-color: var(--red); }
.btn-main:hover { background: var(--red-hi); border-color: var(--red-hi); }
.btn-main small { color: rgba(255,255,255,.8); }
.btn.off { opacity: .45; pointer-events: none; }

main { max-width: 1040px; margin: 0 auto; padding: 0 16px 48px; }
h2 { font-size: 20px; margin: 0 0 10px; }
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: -40px; position: relative; }
.card, .notes { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.card ol, .notes ul { margin: 0; padding-left: 20px; color: #d6d4cf; }
.card li, .notes li { margin: 4px 0; }
.notes { margin-top: 16px; }
.notes ul { columns: 2 280px; column-gap: 32px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin-top: 24px; }
.gallery img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

footer { border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 13px; padding: 18px 16px 28px; }

@media (max-width: 520px) {
  .btn { min-width: 0; width: 100%; }
  .hero { min-height: 80vh; }
}
