/* ============================================
   Money Train KG — base.css
   Дизайн-система: дикий запад / стимпанк
   ============================================ */
:root {
  --bg: #0d0a08;
  --bg-2: #161009;
  --surface: #1d140c;
  --surface-2: #261a10;
  --gold: #FFB405;
  --gold-2: #D4A017;
  --gold-soft: #ffd45e;
  --red: #b3271e;
  --red-2: #7e1a13;
  --text: #f0e6d2;
  --muted: #b8a888;
  --border: rgba(255, 180, 5, 0.22);
  --radius: 16px;
  --font-head: 'Kelly Slab', Georgia, serif;
  --font-body: 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(255, 180, 5, 0.07), transparent 60%),
    var(--bg);
  min-width: 320px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { color: var(--gold); }
a:hover { color: var(--gold-soft); }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Типографика ---------- */
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--gold);
  background: linear-gradient(180deg, #ffe9ad 0%, #ffb405 55%, #c67f0a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.6));
}

h1 { font-size: clamp(1.8rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { max-width: 860px; margin: 0 auto 1.1rem; }
p:last-child { margin-bottom: 0; }
strong { color: var(--gold-soft); font-weight: 700; }

.section {
  padding: 64px 0;
  text-align: center;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.section--alt { background: linear-gradient(180deg, transparent, rgba(255, 180, 5, 0.03), transparent); }
.section h2 { margin-bottom: 1.4rem; }
.section h2::after {
  content: "";
  display: block;
  width: 130px;
  height: 4px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 2px;
}

.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Карточки с заклёпками ---------- */
.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.card::after {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border-radius: 10px;
  background-image:
    radial-gradient(circle at 12px 12px, var(--gold-2) 2.4px, transparent 3px),
    radial-gradient(circle at calc(100% - 12px) 12px, var(--gold-2) 2.4px, transparent 3px),
    radial-gradient(circle at 12px calc(100% - 12px), var(--gold-2) 2.4px, transparent 3px),
    radial-gradient(circle at calc(100% - 12px) calc(100% - 12px), var(--gold-2) 2.4px, transparent 3px);
  opacity: 0.85;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 34px;
  border-radius: 12px;
  border: 2px solid #a87500;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn--gold {
  background: linear-gradient(180deg, #ffd45e 0%, #ffb405 45%, #d4940a 100%);
  color: #241503;
  box-shadow: 0 6px 18px rgba(255, 180, 5, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn--gold:hover {
  transform: translateY(-2px);
  color: #241503;
  box-shadow: 0 10px 26px rgba(255, 180, 5, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn--outline {
  background: rgba(255, 180, 5, 0.06);
  color: var(--gold);
  border-color: var(--gold-2);
}
.btn--outline:hover { background: rgba(255, 180, 5, 0.16); color: var(--gold-soft); transform: translateY(-2px); }
.btn--sm {
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 10px;
  white-space: nowrap;
}

.cta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

/* ---------- Списки ---------- */
.styled-list {
  list-style: none;
  display: inline-block;
  text-align: left;
  margin: 0.6rem auto 1.2rem;
  max-width: 720px;
}
.styled-list li {
  position: relative;
  padding: 8px 0 8px 30px;
  border-bottom: 1px dashed rgba(255, 180, 5, 0.15);
}
.styled-list li:last-child { border-bottom: none; }
.styled-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--gold);
}

.steps-list {
  counter-reset: step;
  list-style: none;
  display: inline-block;
  text-align: left;
  margin: 0.6rem auto 1.2rem;
  max-width: 720px;
}
.steps-list li {
  counter-increment: step;
  position: relative;
  padding: 10px 0 10px 52px;
}
.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: #241503;
  background: linear-gradient(180deg, #ffd45e, #d4940a);
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

/* ---------- Адаптивные таблицы ---------- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.4rem auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.table-responsive table { width: 100%; min-width: 560px; border-collapse: collapse; }

/* ---------- Бейджи ---------- */
.badge {
  display: inline-block;
  background: linear-gradient(180deg, var(--red), var(--red-2));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(179, 39, 30, 0.4);
  margin-bottom: 16px;
}

/* ---------- Мобильная центровка ---------- */
@media (max-width: 768px) {
  body { text-align: center; }
  .section { padding: 48px 0; }
  img { margin-left: auto; margin-right: auto; }
  .styled-list, .steps-list { margin-left: auto; margin-right: auto; }
}
