/* ===== MacAtlas promo — тёмная тема как в самой системе ===== */

:root {
  --ma-bg: #0B0F14;
  --ma-surface: #11161D;
  --ma-surface-2: #151C25;
  --ma-border: rgba(255, 255, 255, 0.08);
  --ma-text: #E6E9ED;
  --ma-muted: #9AA4AF;
  --ma-accent: #20D253;          /* зелёный The Dude из карты сети */
  --ma-accent-soft: rgba(32, 210, 83, 0.12);
  --ma-blue: #3B82F6;
  --ma-radius: 14px;
  --ma-font-body: "Golos Text", "Segoe UI", system-ui, sans-serif;
  --ma-font-display: "Unbounded", "Golos Text", sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  background: var(--ma-bg);
  color: var(--ma-text);
  font-family: var(--ma-font-body);
  font-size: 17px;
  line-height: 1.65;
}

/* ---------- типографика ---------- */
.ma-h1 {
  font-family: var(--ma-font-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 1.25rem;
}
.ma-h2 {
  font-family: var(--ma-font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
}
.ma-sub { color: var(--ma-muted); max-width: 640px; }
.ma-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ma-accent);
  background: var(--ma-accent-soft);
  border: 1px solid rgba(32, 210, 83, 0.25);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.25rem;
}
.ma-lead { font-size: 1.15rem; color: var(--ma-muted); max-width: 34rem; }

/* ---------- навигация ---------- */
.ma-nav {
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ma-border);
  padding-block: 0.6rem;
}
.ma-brand {
  font-family: var(--ma-font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ma-text);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.ma-brand:hover { color: var(--ma-text); }
.ma-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #F0FAF1, #20D253);
  color: #0B3D1E;
  font-size: 1rem;
}
.ma-navlink { color: var(--ma-muted); font-size: 0.95rem; }
.ma-navlink:hover, .ma-navlink:focus { color: var(--ma-text); }
.ma-toggler { border-color: var(--ma-border); }
.navbar-toggler-icon { filter: invert(1); }

/* ---------- кнопки ---------- */
.ma-btn-primary {
  --bs-btn-color: #06220F;
  --bs-btn-hover-color: #06220F;
  --bs-btn-active-color: #06220F;
  --bs-btn-bg: var(--ma-accent);
  --bs-btn-hover-bg: #3BE86E;
  --bs-btn-active-bg: #1CBB47;
  --bs-btn-border-color: transparent;
  --bs-btn-hover-border-color: transparent;
  font-weight: 600;
  border-radius: 10px;
}
.ma-btn-ghost {
  --bs-btn-color: var(--ma-text);
  --bs-btn-hover-color: var(--ma-text);
  --bs-btn-active-color: var(--ma-text);
  --bs-btn-bg: transparent;
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.06);
  --bs-btn-active-bg: rgba(255, 255, 255, 0.1);
  --bs-btn-border-color: var(--ma-border);
  --bs-btn-hover-border-color: rgba(255, 255, 255, 0.2);
  font-weight: 500;
  border-radius: 10px;
}

/* ---------- hero ---------- */
.ma-hero { position: relative; overflow: hidden; }
.ma-hero-graph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.ma-hero-note {
  color: var(--ma-muted);
  font-size: 0.95rem;
}
.ma-hero-note i { color: var(--ma-accent); }
.ma-hero-dl { color: var(--ma-muted); }
.ma-dl-link {
  color: var(--ma-accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed rgba(32, 210, 83, 0.5);
}
.ma-dl-link:hover { color: #3BE86E; }

/* ---------- статистика ---------- */
.ma-stats {
  border-block: 1px solid var(--ma-border);
  background: var(--ma-surface);
  padding-block: 2.5rem;
}
.ma-stat-num {
  font-family: var(--ma-font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--ma-accent);
}
.ma-stat-num span { font-size: 0.6em; }
.ma-stat-lbl { color: var(--ma-muted); font-size: 0.9rem; margin-top: 0.25rem; }

/* ---------- секции ---------- */
.ma-section { padding-block: 5rem; }
.ma-section-alt { background: var(--ma-surface); }

/* ---------- карточки возможностей ---------- */
.ma-card {
  height: 100%;
  background: var(--ma-surface-2);
  border: 1px solid var(--ma-border);
  border-radius: var(--ma-radius);
  padding: 1.6rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.ma-card:hover { transform: translateY(-4px); border-color: rgba(32, 210, 83, 0.35); }
.ma-card h3 { font-size: 1.1rem; font-weight: 600; margin: 0.9rem 0 0.5rem; }
.ma-card p { color: var(--ma-muted); font-size: 0.95rem; margin: 0; }
.ma-card-ic {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--ma-accent-soft);
  color: var(--ma-accent);
  font-size: 1.35rem;
}

/* ---------- скриншоты ---------- */
.ma-shot {
  border-radius: var(--ma-radius);
  overflow: hidden;
  border: 1px solid var(--ma-border);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  background: var(--ma-surface-2);
}
.ma-shot img { display: block; width: 100%; height: auto; }
.ma-shot-hero { transform: perspective(1200px) rotateY(-4deg); }
.ma-shot-cap {
  color: var(--ma-muted);
  font-size: 0.9rem;
  text-align: center;
  margin-top: 0.75rem;
}
/* заглушка, пока скриншот не положен в screenshots/ */
.ma-shot-placeholder {
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--ma-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--ma-radius);
}
.ma-shot-placeholder i { font-size: 1.8rem; color: var(--ma-accent); }

/* ---------- шаги ---------- */
.ma-step {
  height: 100%;
  background: var(--ma-surface-2);
  border: 1px solid var(--ma-border);
  border-radius: var(--ma-radius);
  padding: 1.6rem;
}
.ma-step-num {
  font-family: var(--ma-font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ma-accent);
  border: 1px solid rgba(32, 210, 83, 0.35);
  border-radius: 10px;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.ma-step h3 { font-size: 1.05rem; font-weight: 600; }
.ma-step p { color: var(--ma-muted); font-size: 0.95rem; margin: 0; }

/* ---------- цены ---------- */
.ma-price {
  position: relative;
  height: 100%;
  background: var(--ma-surface-2);
  border: 1px solid var(--ma-border);
  border-radius: var(--ma-radius);
  padding: 2rem 1.8rem;
}
.ma-price-hot { border-color: rgba(32, 210, 83, 0.45); }
.ma-price-badge {
  position: absolute;
  top: -12px; left: 1.8rem;
  background: var(--ma-accent);
  color: #06220F;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
}
.ma-price-name { color: var(--ma-muted); font-size: 0.95rem; }
.ma-price-val {
  font-family: var(--ma-font-display);
  font-size: 2.2rem;
  font-weight: 700;
  margin-top: 0.3rem;
}
.ma-price-per { color: var(--ma-muted); font-size: 0.9rem; margin-bottom: 1.2rem; }
.ma-price-list { list-style: none; padding: 0; margin: 0; }
.ma-price-list li {
  display: flex;
  gap: 0.6rem;
  padding-block: 0.35rem;
  font-size: 0.95rem;
  color: var(--ma-text);
}
.ma-price-list i { color: var(--ma-accent); }

/* ---------- FAQ ---------- */
.ma-faq details {
  background: var(--ma-surface-2);
  border: 1px solid var(--ma-border);
  border-radius: 12px;
  padding: 1rem 1.3rem;
  margin-bottom: 0.8rem;
}
.ma-faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 1.8rem;
}
.ma-faq summary::-webkit-details-marker { display: none; }
.ma-faq summary::after {
  content: "\F282";
  font-family: "bootstrap-icons";
  position: absolute;
  right: 0;
  top: 0.1rem;
  color: var(--ma-accent);
  transition: transform 0.2s ease;
}
.ma-faq details[open] summary::after { transform: rotate(180deg); }
.ma-faq details p { color: var(--ma-muted); margin: 0.7rem 0 0; font-size: 0.95rem; }

/* ---------- CTA и футер ---------- */
.ma-cta {
  padding-block: 5rem;
  background:
    radial-gradient(600px 260px at 50% 0%, rgba(32, 210, 83, 0.12), transparent 70%),
    var(--ma-surface);
  border-top: 1px solid var(--ma-border);
}
.ma-footer { border-top: 1px solid var(--ma-border); }
.ma-footer-note { color: var(--ma-muted); }
.ma-footer-link { color: var(--ma-muted); text-decoration: none; }
.ma-footer-link:hover { color: var(--ma-accent); }

/* ---------- фокус и reduced motion ---------- */
:focus-visible { outline: 2px solid var(--ma-accent); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ma-card, .ma-faq summary::after { transition: none; }
  .ma-card:hover { transform: none; }
}
