/*
  Палитра снята с логотипа BlackGoldCraft: графит, золото, редстоун.
  Золото держит все акценты, поэтому крупные поверхности им не заливаем —
  иначе оно перестанет читаться как акцент.
*/
:root {
  --stone-900: #0c0c0e;
  --stone-850: #131315;
  --stone-800: #18181c;
  --stone-700: #202026;
  --line: #2c2c33;
  --line-soft: #23232a;

  --ink: #ece9e4;
  --ink-2: #9c988f;
  --ink-3: #6e6a63;

  --grass: #f5c518;
  --grass-deep: #b8890c;
  --torch: #e14a3a;

  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: Consolas, "Cascadia Mono", ui-monospace, monospace;

  --radius: 12px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--stone-900);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Едва заметная зернистость, чтобы плоский тёмный фон не выглядел мёртвым */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
  background-size: 4px 4px;
}

.muted { color: var(--ink-2); }
.tiny { font-size: 0.78rem; }

h1, h2, h3 { text-wrap: balance; margin: 0; }

/* --- Шапка --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(12, 16, 14, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.logo b { color: var(--grass); font-weight: 600; }

.cube {
  width: 22px;
  height: 22px;
  background:
    linear-gradient(135deg, var(--grass) 0 45%, transparent 45%),
    linear-gradient(315deg, var(--grass-deep) 0 40%, transparent 40%),
    #26262b;
  border: 2px solid #000;
}

.nav nav { display: flex; align-items: center; gap: 1.4rem; }

.nav nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.9rem;
}

.nav nav a:hover { color: var(--ink); }

.nav-cta {
  padding: 0.42rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--grass) !important;
}

.nav-cta:hover { border-color: var(--grass-deep); background: rgba(245, 197, 24, 0.1); }

/* --- Общая раскладка --- */
main {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(3.5rem, 8vw, 6rem);
}

section { scroll-margin-top: 5rem; }

section > h2 {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.6rem;
}

/* --- Первый экран --- */
.hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  padding-top: clamp(2.5rem, 7vw, 5rem);
}

.eyebrow {
  margin: 0 0 0.9rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.hero h1 {
  font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.lead {
  margin: 1.1rem 0 0;
  max-width: 46ch;
  color: var(--ink-2);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
}

.cta-row {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
}

.download {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.85rem 2rem;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--grass) 0%, var(--grass-deep) 100%);
  color: #241a00;
  text-decoration: none;
  box-shadow: 0 8px 22px -12px rgba(245, 197, 24, 0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.download:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -12px rgba(245, 197, 24, 0.7); }
.download:active { transform: translateY(0); }

.download[aria-disabled="true"] {
  pointer-events: none;
  filter: grayscale(0.7);
  opacity: 0.55;
}

.download-main { font-size: 1.06rem; font-weight: 700; }
.download-sub { font-size: 0.78rem; opacity: 0.72; font-family: var(--mono); }

.cta-note {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.84rem;
  color: var(--ink-3);
}

/* --- Карточка статуса --- */
.status-card {
  background: linear-gradient(180deg, var(--stone-800) 0%, var(--stone-850) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.status-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.9rem;
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-3);
  flex-shrink: 0;
}

.pulse.up {
  background: var(--grass);
  box-shadow: 0 0 0 0 rgba(245, 197, 24, 0.55);
  animation: beat 2.4s ease-out infinite;
}

.pulse.down { background: #e14a3a; }

@keyframes beat {
  0% { box-shadow: 0 0 0 0 rgba(245, 197, 24, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(245, 197, 24, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 197, 24, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .pulse.up { animation: none; }
  .download { transition: none; }
}

.status-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.stat {
  padding: 1.2rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.stat + .stat { border-left: 1px solid var(--line-soft); }

.stat-value {
  font-family: var(--mono);
  font-size: 2rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--grass);
}

.stat-label { font-size: 0.78rem; color: var(--ink-3); }

.status-foot {
  padding: 1rem 1.15rem 1.2rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.status-foot code {
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--ink);
  background: var(--stone-900);
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  padding: 0.4rem 0.6rem;
  overflow-x: auto;
}

.status-foot p { margin: 0.15rem 0 0; }

/* --- Шаги --- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 1.5rem 1.35rem 1.35rem;
  background: var(--stone-850);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.step-num {
  position: absolute;
  top: -14px;
  left: 1.35rem;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--stone-700);
  border: 1px solid var(--line);
  color: var(--grass);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
}

.steps h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.steps p { margin: 0; color: var(--ink-2); font-size: 0.92rem; }

/* --- Карточки --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 1rem;
}

.cards article {
  padding: 1.35rem;
  background: var(--stone-850);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  border-top: 2px solid var(--grass-deep);
}

.cards h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.cards p { margin: 0; color: var(--ink-2); font-size: 0.92rem; }

/* --- Вопросы --- */
.faq-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-list details { border-bottom: 1px solid var(--line-soft); background: var(--stone-850); }
.faq-list details:last-child { border-bottom: 0; }

.faq-list summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  color: var(--grass);
  font-family: var(--mono);
  font-size: 1.15rem;
  line-height: 1;
}

.faq-list details[open] summary::after { content: "−"; }

.faq-list summary:focus-visible { outline: 2px solid var(--grass-deep); outline-offset: -2px; }

.faq-list p {
  margin: 0;
  padding: 0 1.25rem 1.15rem;
  color: var(--ink-2);
  font-size: 0.92rem;
  max-width: 68ch;
}

/* --- Подвал --- */
footer {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: clamp(3.5rem, 8vw, 6rem) auto 0;
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem) 2.5rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--ink-3);
}

/* --- Узкие экраны --- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .nav nav a:not(.nav-cta) { display: none; }
}

/* Логотип на первом экране: он и есть заголовок бренда */
.hero-logo {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 0 1.1rem;
  image-rendering: pixelated;
}

@media (max-width: 620px) { .hero-logo { max-width: 100%; } }
