/* Moonlighting Studio — design tokens & layout */
:root {
  --bg: #0a0b12;
  --surface: #12141f;
  --surface-2: #171a28;
  --border: #232741;
  --text: #e9ebf4;
  --muted: #9aa1bd;
  --accent: #7c6cff;
  --accent-2: #46d3c8;
  --radius: 14px;
  --maxw: 1080px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 11, 18, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; color: var(--text); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 15px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 22px; cursor: pointer; margin-left: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 10px;
  font-size: 15px; font-weight: 550; border: 1px solid transparent;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }

/* ---------- hero ---------- */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 30% auto -10%; height: 520px;
  background: radial-gradient(closest-side, rgba(124,108,255,.28), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .35; pointer-events: none;
  /* декоративная сетка едет с cdn-домена */
  background-image: url("//cdn.moonlihting.site/assets/hero-grid.svg");
  background-size: 720px;
}
.hero .wrap { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-2); border: 1px solid var(--border); background: var(--surface);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
h1 { font-size: clamp(34px, 5.2vw, 54px); line-height: 1.12; letter-spacing: -.03em; margin: 0 0 20px; font-weight: 680; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 620px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
h2 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -.02em; margin: 0 0 14px; font-weight: 640; }
h3 { font-size: 18px; margin: 0 0 8px; font-weight: 600; }
.section-lead { color: var(--muted); max-width: 620px; margin: 0 0 40px; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
}
.card p { color: var(--muted); margin: 0; font-size: 15px; }
.card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px; margin-bottom: 16px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--accent-2); font-size: 14px; font-weight: 600;
}

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { border-left: 2px solid var(--accent); padding-left: 18px; }
.stat b { display: block; font-size: 30px; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- table / list ---------- */
.rows { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.row { display: flex; gap: 20px; padding: 20px 24px; border-bottom: 1px solid var(--border); background: var(--surface); }
.row:last-child { border-bottom: 0; }
.row .k { min-width: 190px; color: var(--muted); font-size: 15px; }
.row .v { flex: 1; }

/* ---------- faq ---------- */
details {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); padding: 18px 22px; margin-bottom: 12px;
}
details summary { cursor: pointer; font-weight: 550; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 12px 0 0; font-size: 15px; }

/* ---------- cta ---------- */
.cta {
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: 20px; padding: 48px; text-align: center;
}
.cta h2 { margin-bottom: 10px; }
.cta p { color: var(--muted); margin: 0 auto 26px; max-width: 480px; }

/* ---------- prose ---------- */
.prose { max-width: 720px; }
.prose h2 { margin-top: 40px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 20px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 44px 0 60px; margin-top: 40px; }
.footer-grid { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 12px; font-weight: 600; }
.footer-col a { display: block; color: var(--muted); font-size: 15px; margin-bottom: 7px; }
.footer-col a:hover { color: var(--text); }
/* иначе display:block выше ломает флекс у логотипа в подвале */
.footer-col .brand { display: flex; color: var(--text); }
.footer-bottom {
  margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: 14px;
}

/* ---------- forms ---------- */
label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--muted); }
input, textarea {
  width: 100%; padding: 12px 14px; margin-bottom: 18px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-family: var(--font); font-size: 15px;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); }

@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 12px 24px 20px;
    background: var(--bg); border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; }
  .nav-toggle { display: block; }
  .row { flex-direction: column; gap: 6px; }
  .cta { padding: 34px 22px; }
}
