/* STAC — страницы /donate/ и /credits/. Дополняет /style.css, ничего в нём не переопределяет глобально. */
:root {
  --sponsor: #f5c451;
  --sponsor-dim: #3a3020;
  --free: #4ade80;
  --free-dim: #15301f;
}

nav a.active { color: var(--text-primary); }

.page-hero { padding: 56px 0 40px; }
.page-hero .hero-title { max-width: 760px; }
.page-hero .hero-description { max-width: 720px; margin-bottom: 0; }

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--surface-border-light);
  color: var(--text-secondary);
  vertical-align: middle;
}
.tag.sponsor { color: var(--sponsor); border-color: #5a4a26; background: var(--sponsor-dim); }
.tag.free    { color: var(--free);    border-color: #1f5133; background: var(--free-dim); }
.tag.soon    { color: #93c5fd;        border-color: #1e3a5f; background: #0f1d30; }

/* Принципы */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }

/* Список наград */
.perk-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.perk {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  padding: 22px 24px;
}
.perk-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.perk-name { font-size: 16px; font-weight: 600; letter-spacing: -.2px; }
.perk-count { font-family: var(--font-mono); font-size: 13px; color: var(--sponsor); white-space: nowrap; }
.perk-text { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.perk-text + .perk-text { margin-top: 6px; }
.perk-text code, .step-detail code, .story-box code, .free-list code {
  font-family: var(--font-mono); font-size: 12.5px; background: var(--bg);
  border: 1px solid var(--surface-border); border-radius: 4px; padding: 1px 5px; color: var(--text-primary);
}

/* Галерея скинов */
.skin-gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.skin-row {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  padding: 14px 16px 12px;
}
.skin-row-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; gap: 12px; }
.skin-row-title { font-size: 14px; font-weight: 600; }
.skin-row-count { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.skin-strip { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.skin-strip img {
  display: block;
  height: 56px;
  width: auto;
  max-width: none;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.skin-strip.tall img { height: 104px; }
.skin-strip.mid img { height: 72px; }
.skin-strip.fit img { height: auto; width: 100%; max-width: 1050px; image-rendering: auto; }
.gallery-note { font-size: 12.5px; color: var(--text-muted); margin-top: 12px; }
.gallery-note a, .story-box a, .perk-text a, .step-detail a, .credits a { color: var(--text-primary); }

/* Бесплатно для всех */
.free-box {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-left: 3px solid var(--free);
  border-radius: 6px;
  padding: 24px 28px;
}
.free-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px 28px; }
.free-list li { position: relative; padding-left: 20px; font-size: 14px; color: var(--text-secondary); line-height: 1.55; }
.free-list li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px;
  background: var(--free); box-shadow: 0 0 0 2px var(--free-dim);
}
.free-list strong { color: var(--text-primary); font-weight: 600; }

/* Цена */
.price-box {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  background: var(--surface);
  border: 1px dashed #5a4a26;
  border-radius: 8px;
  padding: 26px 28px;
}
.price-label { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.price-value { font-size: 30px; font-weight: 800; letter-spacing: -.5px; color: var(--sponsor); }
.price-side { font-size: 14px; color: var(--text-secondary); max-width: 520px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--text-primary); color: var(--bg);
  text-decoration: none; font-weight: 600; font-size: 14px;
  padding: 11px 18px; border-radius: 6px; border: 1px solid var(--text-primary);
  transition: background .15s, color .15s;
}
.btn:hover { background: transparent; color: var(--text-primary); }
.btn.ghost { background: transparent; color: var(--text-primary); border-color: var(--surface-border-light); }
.btn.ghost:hover { background: var(--surface-hover); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

.server-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 16px; }
.fact { background: var(--surface); border: 1px solid var(--surface-border); border-radius: 6px; padding: 14px 18px; }
.fact-k { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.fact-v { font-size: 15px; font-weight: 600; margin-top: 2px; }
.fact-v small { font-weight: 400; color: var(--text-muted); font-size: 12.5px; }

/* Credits */
.credits { display: grid; gap: 14px; }
.credit {
  background: var(--surface); border: 1px solid var(--surface-border); border-radius: 6px; padding: 18px 22px;
}
.credit-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: baseline; }
.credit-title { font-weight: 600; font-size: 15px; }
.credit-lic { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.credit-meta { font-size: 13.5px; color: var(--text-secondary); margin-top: 6px; line-height: 1.6; word-break: break-word; }
.credit-items { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; }

@media (max-width: 768px) {
  .page-hero { padding: 36px 0 28px; }
  .section { padding: 48px 0; }
  .perk-list, .free-list { grid-template-columns: 1fr; }
  .free-box, .price-box { padding: 20px; }
  .price-value { font-size: 26px; }
  .skin-strip img { height: 48px; }
  .skin-strip.tall img { height: 88px; }
  .skin-strip.mid img { height: 60px; }
}
