/* Black Ops Gunfight - gunfight.us  ::  "Evolved Dark" (+ HUD touches)
   Shared by index.html (landing) and setup.html (Getting Started guide).
   Self-contained: no external requests, no web fonts (CSP-friendly, fast). */

:root {
  --bg:        #0b0d10;   /* deepened base for gradient headroom */
  --bg-2:      #101319;   /* gradient midtone */
  --surface:   #14181f;   /* card fill */
  --surface-2: #171c24;   /* card fill (hover / raised) */
  --code-bg:   #12161c;   /* inline + block code fill */
  --edge:      #232932;   /* hairline border */
  --edge-2:    #2c343f;   /* brighter hairline (hover) */
  --text:      #e7eaee;
  --muted:     #9aa3ad;
  --accent:    #ff7a1a;   /* gunfight orange */
  --accent-2:  #ffb066;   /* soft orange (links / hover) */
  --accent-ink:#1a1106;   /* ink on orange fill */
  --glow:      rgba(255, 122, 26, 0.42);
  --radius:    14px;
  --radius-sm: 10px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "Cascadia Mono", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* anchor jumps land with breathing room instead of flush at the top edge */
[id] { scroll-margin-top: 26px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Depth: vertical gradient base + a faint warm bloom up top */
  background:
    radial-gradient(1100px 620px at 50% -12%, rgba(255,122,26,0.10), rgba(255,122,26,0) 60%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 34%, var(--bg) 100%);
  background-attachment: fixed;
  display: grid;
  place-items: start center;
}

/* subtle top-edge accent line across the whole page */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 45%, var(--accent-2) 55%, transparent);
  opacity: 0.55;
  pointer-events: none;
  z-index: 10;
}

a { color: var(--accent-2); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.wrap {
  width: 100%;
  max-width: 600px;
  padding: 72px 24px 56px;
}
.wrap-doc { max-width: 860px; }

/* ============================================================
   Hero  (shared by both pages)
   ============================================================ */
/* cinematic banner panel (Black Ops key art + dark scrim), shared by both pages */
.hero {
  position: relative;
  text-align: center;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 46px 26px 40px;
  background:
    linear-gradient(180deg, rgba(11,13,16,0.52) 0%, rgba(11,13,16,0.78) 60%, rgba(11,13,16,0.95) 100%),
    #0b0d10 url("assets/banner.jpg") center 24% / cover no-repeat;
  box-shadow: 0 18px 46px -22px rgba(0,0,0,0.9);
}

/* faint orange glow bloom behind the title */
.hero::before {
  content: "";
  position: absolute;
  top: 40px; left: 50%;
  width: 380px; height: 230px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow), rgba(255,122,26,0) 72%);
  filter: blur(10px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

/* OPS emblem logo mark (transparent PNG with baked glow) */
.badge {
  position: relative; z-index: 1;
  display: block;
  width: 92px; height: 92px;
  margin: 0 auto 8px;
  object-fit: contain;
  filter: drop-shadow(0 3px 16px rgba(255,122,26,0.5));
}

/* monospace HUD-style pill; sits under the hero sub-line ("Free to play on PC") */
.chip {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  margin: 14px 0 0;
  padding: 5px 13px 5px 11px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.2px;
}
/* the hero pill is a link down to "How to play" — keep the chip look, not the link look */
a.chip { color: var(--muted); text-decoration: none; }
a.chip:hover {
  color: var(--accent-2);
  border-color: var(--edge-2);
  background: rgba(255,122,26,0.06);
  text-decoration: none;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,122,26,0.18), 0 0 8px rgba(255,122,26,0.6);
}

.title {
  position: relative; z-index: 1;
  margin: 0;
  font-size: clamp(2.3rem, 8vw, 3.6rem);
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.06;
  color: #fff;
  text-shadow: 0 0 34px rgba(255,122,26,0.30);
}
.title .accent {
  color: var(--accent);
  text-shadow: 0 0 34px rgba(255,122,26,0.55);
}
.sub {
  position: relative; z-index: 1;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  letter-spacing: 0.2px;
}

/* back-link eyebrow on the doc page */
.eyebrow { position: relative; z-index: 1; margin: 0 0 10px; font-size: 0.9rem; }
.eyebrow a { color: var(--muted); font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.4px; }
.eyebrow a:hover { color: var(--accent); text-decoration: none; }

.links {
  position: relative; z-index: 1;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-weight: 650;
  font-size: 0.97rem;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease,
              background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; display: block; }
.btn img.ico { width: 17px; height: 17px; object-fit: contain; display: block; }
/* the GitHub mark ships black-on-transparent -> flip to white for the dark ghost button */
.btn img.gh { filter: invert(1); }

.btn-primary {
  background: linear-gradient(180deg, #ff8c33, var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 6px 18px -6px rgba(255,122,26,0.55),
              inset 0 1px 0 rgba(255,255,255,0.22);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #ff9a47, #ff8524);
  box-shadow: 0 10px 30px -6px var(--glow),
              inset 0 1px 0 rgba(255,255,255,0.28);
  color: var(--accent-ink);
}

.btn-ghost {
  border-color: var(--edge);
  color: var(--text);
  background: rgba(255,255,255,0.015);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: #fff;
  background: rgba(255,122,26,0.07);
  box-shadow: 0 6px 18px -8px rgba(0,0,0,0.6);
}

/* ============================================================
   Kicker  (HUD-style numbered section headings, shared)
   "01 //  ABOUT ----------------------------------"
   ============================================================ */
.kicker {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 16px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.6px;
}
.kicker .num {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.5px;
  text-shadow: 0 0 12px rgba(255,122,26,0.45);
}
.kicker::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--edge), transparent);
}

/* ============================================================
   Card  (content surfaces, shared)
   ============================================================ */
.card {
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.022), rgba(255,255,255,0) 40%),
    var(--surface);
  padding: 24px 26px;
  box-shadow: 0 12px 34px -18px rgba(0,0,0,0.75);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.card:hover {
  border-color: var(--edge-2);
  box-shadow: 0 18px 46px -18px rgba(0,0,0,0.85);
}
.stack { margin-top: 46px; }
.stack:first-of-type { margin-top: 52px; }

/* ============================================================
   Landing content  (index.html)
   ============================================================ */
.about-copy { margin: 0; color: var(--text); font-size: 1rem; text-align: justify; text-justify: inter-word; }
.about-copy b { color: var(--accent-2); font-weight: 650; }
.about-copy + .about-copy { margin-top: 14px; }
/* body segments: justify EVERY line (incl. the last) and keep them tight */
.about-tight { text-align-last: justify; }
.about-tight + .about-tight { margin-top: 0; }
/* ...but let the very last line sit natural (not stretched) */
.about-last { text-align-last: auto; }

.card .lead { margin: 0; color: var(--text); font-size: 1rem; }
.pill {
  background: rgba(255,122,26,0.10);
  border: 1px solid rgba(255,122,26,0.28);
  color: var(--accent-2);
  padding: 1px 8px;
  border-radius: 6px;
  font-weight: 650;
  white-space: nowrap;
}

.subhead {
  margin: 24px 0 14px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

/* feature list (index.html) — HUD-styled tiles matching the .steps rows */
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.feature {
  padding: 14px 16px;
  border: 1px solid var(--edge);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.012);
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}
.feature:hover {
  border-color: var(--edge-2);
  background: rgba(255,122,26,0.045);
  transform: translateX(2px);
}
.feature h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 5px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}
/* small orange diamond marker before each feature title */
.feature h3::before {
  content: "";
  flex: 0 0 auto;
  width: 7px; height: 7px;
  transform: rotate(45deg);
  background: var(--accent);
  box-shadow: 0 0 8px rgba(255,122,26,0.55);
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.feature p b { color: var(--accent-2); font-weight: 650; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
/* breathing room between the card's lead line and step 1's border */
.card .lead + .steps { margin-top: 14px; }
.steps li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--edge);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.012);
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}
.steps li:hover {
  border-color: var(--edge-2);
  background: rgba(255,122,26,0.045);
  transform: translateX(2px);
}
.steps p { margin: 0; }
.n {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(255,122,26,0.12);
  border: 1px solid rgba(255,122,26,0.3);
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.9rem;
}

.fineprint {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--edge);
  color: var(--muted);
  font-size: 0.94rem;
}
.fineprint a { color: var(--accent-2); }

/* Getting Started call-to-action (below the How-to-play steps) */
.guide-cta {
  margin: 24px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--edge);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.guide-cta-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}
.guide-cta .btn { font-size: 0.99rem; padding: 12px 26px; }
/* Tinted treatment: orange text and border on a faint orange wash, instead of the filled
   gradient. Reads as the page's primary action without shouting; the border carries the
   visibility that the solid fill used to. Scoped to .guide-cta so .btn-primary keeps its
   original punch if reused. The color override is required - .btn-primary sets dark ink
   for a solid fill, which would be near-invisible on the wash. */
.guide-cta .btn-primary {
  background: rgba(255, 122, 26, 0.09);
  border-color: rgba(255, 122, 26, 0.5);
  color: var(--accent-2);
  box-shadow: none;
}
.guide-cta .btn-primary:hover {
  background: rgba(255, 122, 26, 0.16);
  border-color: var(--accent);
  color: var(--accent-2);
  box-shadow: 0 6px 18px -10px rgba(255, 122, 26, 0.45);
}

/* landing screenshots (caption-less, inside the About card) */
.shot-img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px -20px rgba(0,0,0,0.8);
}
.about-copy + .shot-img { margin-top: 18px; }
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
  align-items: start;
}
/* both tiles crop to one uniform size, content centered */
.gallery .shot-img {
  border-radius: var(--radius-sm);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
}

/* ============================================================
   Footer  (shared)
   ============================================================ */
.made {
  margin: 46px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 1px;
}
.made strong { color: var(--accent); }
.made .sep { color: var(--edge-2); margin: 0 8px; }
/* subtle footer link — blends into the muted footer, brightens on hover */
.made a { color: var(--muted); }
.made a:hover { color: var(--accent); text-decoration: none; }

/* fine-print legal disclaimer */
.legal {
  margin: 14px auto 0;
  max-width: 620px;
  text-align: center;
  color: #5f6873;
  font-size: 0.72rem;
  line-height: 1.5;
}

/* ============================================================
   Accessibility
   ============================================================ */
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 8px;
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ============================================================
   Getting Started / doc page  (setup.html)
   ============================================================ */
.wrap-doc .lead {
  margin: 34px 0 0;
  color: var(--text);
  font-size: 1.02rem;
}

/* table of contents -> card */
.toc {
  margin: 26px 0 0;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.022), rgba(255,255,255,0) 40%),
    var(--surface);
  padding: 13px 16px 12px;
  box-shadow: 0 12px 34px -18px rgba(0,0,0,0.75);
}
.toc-label {
  display: block;
  margin: 0 0 9px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.4px;
}
.toc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
/* main sections: numbered pills */
.toc-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px 4px 5px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.toc-link:hover {
  color: var(--accent-2);
  border-color: var(--edge-2);
  background: rgba(255,122,26,0.07);
  text-decoration: none;
}
.toc-link .tn {
  display: grid;
  place-items: center;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: rgba(255,122,26,0.13);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
}
/* settings sub-links: slim text row under a hairline */
.toc-sub {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--edge);
  row-gap: 3px;
  column-gap: 14px;
}
.toc-sub-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.toc-sub a { color: var(--muted); font-size: 0.8rem; }
.toc-sub a:hover { color: var(--accent); text-decoration: none; }

/* content sections */
.doc { margin-top: 44px; }
.doc .sec {
  position: relative;
  margin: 0 0 16px;
  padding: 0 0 10px 15px;
  border-bottom: 1px solid var(--edge);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.3px;
  text-shadow: 0 0 22px rgba(255,122,26,0.28);
}
/* HUD accent bar to the left of each section heading */
.doc .sec::before {
  content: "";
  position: absolute;
  left: 0; top: 2px; bottom: 12px;
  width: 3px; border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255,122,26,0.55);
}
.doc h3 {
  margin: 26px 0 10px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
}
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin: 5px 0; }
.doc .steps { margin-bottom: 16px; }
.doc .steps p { margin: 0; }

/* collapsible sub-sections (native <details>): closed by default, opened by
   the TOC / in-page links via setup.js */
details.fold {
  margin: 26px 0 16px;
  border: 1px solid var(--edge);
  border-left: 3px solid var(--edge-2);
  border-radius: var(--radius);
  background: var(--surface);
  scroll-margin-top: 14px;
  transition: border-color 0.15s ease;
}
details.fold[open] {
  border-color: var(--edge-2);
  border-left-color: var(--accent);
}
details.fold > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  border-radius: var(--radius);
}
details.fold > summary::-webkit-details-marker { display: none; }
details.fold[open] > summary { border-radius: var(--radius) var(--radius) 0 0; }
details.fold > summary h3 {
  flex: 1 1 auto;
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
}
details.fold > summary:hover h3 { color: var(--accent-2); }
details.fold > summary:hover { background: rgba(255,122,26,0.05); }
/* SHOW/HIDE tag: makes the expand affordance unmissable */
.fold-tag {
  flex: 0 0 auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.fold-tag::after { content: "Show"; }
details.fold[open] .fold-tag::after { content: "Hide"; }
details.fold > summary:hover .fold-tag { color: var(--accent); }
/* chevron: points down when closed, up when open */
.fold-chev {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin: -3px 2px 0 0;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}
details.fold[open] .fold-chev { transform: rotate(-135deg); margin-top: 3px; }
.fold-body {
  padding: 14px 16px 2px;
  border-top: 1px solid var(--edge);
}
.fold-body > p:first-child { margin-top: 0; }

/* inline + block code */
code {
  background: var(--code-bg);
  border: 1px solid var(--edge);
  border-radius: 5px;
  padding: 1px 6px;
  font-family: var(--mono);
  font-size: 0.86em;
  color: var(--accent-2);
  overflow-wrap: anywhere;
}
pre.cmd {
  margin: 0 0 16px;
  background: var(--code-bg);
  border: 1px solid var(--edge);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 14px 16px;
  overflow-x: auto;
  box-shadow: 0 12px 34px -20px rgba(0,0,0,0.8);
}
pre.cmd code {
  background: none;
  border: 0;
  padding: 0;
  color: var(--text);
  font-size: 0.92rem;
  white-space: pre;
}

/* one-line command + copy button (distinct from the multi-line pre.cmd block) */
.copybox { display: flex; align-items: stretch; gap: 10px; margin: 0 0 16px; }
.copy-btn { flex: 0 0 auto; align-self: stretch; cursor: pointer; font: inherit; }
.copy-btn.copied { border-color: var(--accent); color: var(--accent-2); }

pre.oneline {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  display: flex;
  align-items: center;
  background: rgba(255,122,26,0.06);
  border: 1px solid var(--edge-2);
  border-radius: 8px;
  padding: 10px 14px;
  overflow-x: auto;
  box-shadow: inset 0 0 0 1px rgba(255,122,26,0.05);
}
pre.oneline code {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent-2);
  font-size: 0.88rem;
  white-space: pre;
}

@media (max-width: 560px) {
  .copybox { flex-direction: column; }
  .copy-btn { align-self: stretch; justify-content: center; }
}

/* callout box */
.note {
  margin: 0 0 16px;
  border: 1px solid var(--edge);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 12px 16px;
  background: rgba(255, 122, 26, 0.05);
  color: var(--text);
}
.note p { margin: 0 0 8px; }
.note p:last-child { margin: 0; }
.note strong { color: var(--accent-2); }

/* tables */
.table-wrap {
  overflow-x: auto;
  margin: 0 0 16px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--surface);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.92rem;
}
th, td {
  text-align: left;
  padding: 9px 14px;
  border-bottom: 1px solid var(--edge);
  vertical-align: top;
}
tr:last-child td { border-bottom: 0; }
th {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: rgba(255,255,255,0.02);
}
tbody tr { transition: background-color .15s ease; }
tbody tr:hover { background: rgba(255,122,26,0.04); }
td code { white-space: nowrap; }

/* screenshots */
figure.shot { margin: 6px 0 20px; }
figure.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px -20px rgba(0,0,0,0.8);
}
figure.shot figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 520px) {
  .wrap { padding: 56px 16px 44px; }
  .hero { padding: 36px 18px 32px; }
  .badge { width: 78px; height: 78px; }
  .card { padding: 20px 18px; }
  .btn { flex: 1 1 auto; justify-content: center; }
  .links { gap: 10px; }
  .gallery { grid-template-columns: 1fr; gap: 14px; }
}
