/* ArtifactSMP — спокойная тёмная тема, один акцент. */
:root {
  --bg: #0f1012;
  --bg-2: #141518;
  --line: #24262b;
  --line-2: #30333a;
  --text: #e7e7e9;
  --muted: #8b8f98;
  --faint: #5d616a;
  --accent: #a58be0;      /* приглушённый аметист — только для акцентов */
  --accent-ink: #c9b8f2;
  --ok: #7bc48f;
  --warn: #d9b26a;
  --bad: #e07b7b;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --w: 960px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.65 var(--sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(165, 139, 224, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
img { display: block; }
.px { image-rendering: pixelated; image-rendering: crisp-edges; }
code {
  font: 500 .875em var(--mono); color: var(--accent-ink);
  background: rgba(165, 139, 224, .08); padding: .12em .38em; border-radius: 4px;
  white-space: nowrap;
}
b { font-weight: 600; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -40px; z-index: 30; padding: 6px 10px; background: var(--text); color: var(--bg); border-radius: 4px; }
.skip:focus { top: 12px; }
.small { font-size: 13px; color: var(--muted); margin: 14px 0 0; line-height: 1.55; }
.small a { color: var(--text); }

/* ---------- шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(15, 16, 18, .86);
  backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.top.is-stuck { border-bottom-color: var(--line); }
.top__in { display: flex; align-items: center; gap: 28px; height: 56px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; }
.brand img { width: 16px; height: 16px; }
.menu { display: flex; gap: 22px; margin-left: 8px; }
.menu a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .15s; }
.menu a:hover, .menu a.is-here { color: var(--text); }
.status { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.status.on i { background: var(--ok); box-shadow: 0 0 0 3px rgba(123, 196, 143, .15); }
.status.off i { background: var(--bad); }
.menu-btn { display: none; }

/* ---------- первый экран ---------- */
.intro { padding-top: 96px; padding-bottom: 88px; }
.eyebrow { margin: 0 0 20px; font: 500 13px var(--mono); color: var(--muted); letter-spacing: .01em; }
h1 {
  margin: 0; max-width: 15ch;
  font-size: clamp(36px, 6vw, 60px); line-height: 1.06; font-weight: 700; letter-spacing: -.035em;
  text-wrap: balance;
}
.lead { margin: 22px 0 0; max-width: 54ch; font-size: 18px; color: var(--muted); text-wrap: pretty; }

.connect { margin-top: 40px; }
.ip {
  display: inline-flex; align-items: stretch; padding: 0; cursor: pointer;
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden;
  font: inherit; transition: border-color .15s;
}
.ip:hover { border-color: #444851; }
.ip__addr { padding: 13px 18px; font: 600 17px var(--mono); letter-spacing: -.01em; }
.ip__act {
  display: inline-flex; align-items: center; gap: 6px; min-width: 128px; justify-content: center;
  padding: 0 16px; border-left: 1px solid var(--line-2);
  font-size: 14px; font-weight: 500; color: var(--muted); transition: color .15s, background .15s;
}
.ip:hover .ip__act { color: var(--text); background: rgba(255, 255, 255, .02); }
.ip.is-done .ip__act { color: var(--ok); }
.connect__hint { margin: 12px 0 0; font-size: 14px; color: var(--faint); }

/* ---------- блоки ---------- */
.block { padding-top: 72px; padding-bottom: 72px; border-top: 1px solid var(--line); }
.block__head { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: baseline; margin-bottom: 36px; }
.block__title { margin: 0 0 36px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.block__head .block__title { margin: 0; }
.block__sub { margin: 0; color: var(--muted); max-width: 56ch; }

/* факты */
.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.fact { display: grid; grid-template-columns: 32px 1fr; gap: 4px 16px; align-content: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.fact:nth-last-child(-n+2) { border-bottom: 0; }
.fact dt { display: contents; font-weight: 600; }
.fact dt img { grid-row: 1 / 3; width: 32px; height: 32px; margin-top: 2px; }
.fact dd { grid-column: 2; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

.world { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; border: 1px solid var(--line); border-radius: 8px; }
.world div { padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.world div + div { border-left: 1px solid var(--line); }
.world b { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.world span { font-size: 13px; color: var(--muted); }

/* ---------- осколки ---------- */
.notice { margin: 0 0 24px; padding: 10px 14px; font-size: 14px; color: var(--warn); border: 1px solid rgba(217, 178, 106, .25); border-radius: 6px; background: rgba(217, 178, 106, .05); }
.notice b { font-weight: 600; }

.buy { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.packs { margin: 0; padding: 0; border: 0; min-width: 0; }
.packs__head, .pack { display: grid; grid-template-columns: 20px 1fr 110px 120px; gap: 14px; align-items: center; }
.packs__head { grid-template-columns: 1fr 110px 120px; padding: 0 16px 10px 50px; font-size: 12px; color: var(--faint); }
.packs__head span:nth-child(n+2) { text-align: right; }
.pack {
  position: relative; padding: 14px 16px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px;
  transition: border-color .15s, background .15s;
  font-variant-numeric: tabular-nums;
}
.pack:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .015); }
.pack:has(input:checked) { border-color: var(--accent); background: rgba(165, 139, 224, .06); }
.pack input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.pack:has(input[type=radio]:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pack__mark { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: border-color .15s; }
.pack__mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .15s ease; }
.pack:has(input:checked) .pack__mark { border-color: var(--accent); }
.pack:has(input:checked) .pack__mark::after { transform: scale(1); }
.pack__n { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; }
.pack__n img { width: 16px; height: 16px; }
.pack__n small { font-size: 12px; font-weight: 500; color: var(--accent-ink); }
.pack__b { text-align: right; font-size: 14px; font-weight: 500; color: var(--ok); }
.pack__b:empty::before { content: "—"; color: var(--faint); }
.pack__p { text-align: right; font-size: 15px; font-weight: 600; }
.pack__p .per { display: block; font: 400 11px var(--sans); color: var(--faint); }

.pack--custom .pack__n { font-family: var(--sans); font-size: 15px; letter-spacing: 0; }
.custom-out { color: var(--muted); }
.pack--custom .pack__p { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.custom-in {
  width: 76px; padding: 4px 8px; text-align: right;
  font: 600 15px var(--sans); font-variant-numeric: tabular-nums; color: var(--text); background: transparent;
  border: 0; border-bottom: 1px dashed var(--line-2); border-radius: 0; outline: none;
  -moz-appearance: textfield;
}
.custom-in::-webkit-outer-spin-button, .custom-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.custom-in:focus { border-bottom-color: var(--accent); }
.custom-in::placeholder { color: var(--faint); font-weight: 500; }
.rub { color: var(--muted); font-weight: 500; }

.pay { position: sticky; top: 80px; }
.label { display: block; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.nick { display: block; margin-bottom: 20px; }
.nick__row {
  display: flex; align-items: center; gap: 10px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 6px; background: var(--bg-2);
  transition: border-color .15s;
}
.nick__row:focus-within { border-color: var(--accent); }
.nick.is-bad .nick__row { border-color: var(--bad); }
.nick__head { width: 24px; height: 24px; border-radius: 2px; flex: none; }
.nick input {
  flex: 1; min-width: 0; padding: 11px 0; border: 0; outline: none; background: transparent;
  color: var(--text); font: 500 15px var(--mono);
}
.nick input::placeholder { color: var(--faint); }
.msg { display: block; min-height: 18px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.nick.is-bad .msg { color: var(--bad); }

.methods { margin-bottom: 24px; }
.methods__row { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.methods__row label { position: relative; cursor: pointer; }
.methods__row label + label { border-left: 1px solid var(--line-2); }
.methods__row input { position: absolute; opacity: 0; }
.methods__row span { display: block; padding: 9px 4px; text-align: center; font-size: 14px; color: var(--muted); transition: color .15s, background .15s; }
.methods__row input:checked + span { color: var(--text); background: rgba(255, 255, 255, .05); }
.methods__row input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }

/* промокод */
.promo { margin-bottom: 20px; }
.promo__toggle {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: 500 14px var(--sans); color: var(--muted);
  text-decoration: underline dashed var(--line-2); text-underline-offset: 4px;
}
.promo__toggle:hover { color: var(--text); text-decoration-color: currentColor; }
.promo__row { display: flex; border: 1px solid var(--line-2); border-radius: 6px; background: var(--bg-2); overflow: hidden; transition: border-color .15s; }
.promo__row:focus-within { border-color: var(--accent); }
.promo.is-bad .promo__row { border-color: var(--bad); }
.promo.is-ok .promo__row { border-color: rgba(123, 196, 143, .55); }
.promo__row input {
  flex: 1; min-width: 0; padding: 10px 12px; border: 0; outline: none; background: transparent;
  color: var(--text); font: 600 15px var(--mono); letter-spacing: .04em; text-transform: uppercase;
}
.promo__row input::placeholder { color: var(--faint); font-weight: 500; letter-spacing: 0; text-transform: none; font-family: var(--sans); }
.promo__row input[readonly] { color: var(--ok); }
.promo__apply {
  flex: none; padding: 0 14px; border: 0; border-left: 1px solid var(--line-2); cursor: pointer;
  font: 500 14px var(--sans); color: var(--text); background: rgba(255, 255, 255, .03); transition: background .15s;
}
.promo__apply:hover { background: rgba(255, 255, 255, .07); }
.promo.is-bad .msg { color: var(--bad); }
.promo.is-ok .msg { color: var(--ok); }
.total__old { color: var(--faint); font-weight: 500; text-decoration-thickness: 1px; }
.total__old[hidden] { display: none; }

.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; margin-bottom: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.total__v { text-align: right; font-variant-numeric: tabular-nums; }
.total b { color: var(--text); }

.btn {
  display: block; width: 100%; padding: 12px 16px; cursor: pointer;
  font: 600 15px var(--sans); color: #111; background: var(--text);
  border: 0; border-radius: 6px; transition: background .15s, opacity .15s;
  font-variant-numeric: tabular-nums;
}
.btn:hover:not(:disabled) { background: #fff; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { cursor: default; opacity: .35; }

/* ---------- правила ---------- */
.rules { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.rules li {
  counter-increment: r; display: grid; grid-template-columns: 36px 1fr auto; gap: 16px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.rules li::before { content: counter(r, decimal-leading-zero); font: 500 13px var(--mono); color: var(--faint); }
.rules em { font-style: normal; font-size: 13px; color: var(--muted); white-space: nowrap; }

/* ---------- вопросы ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 0; cursor: pointer; list-style: none; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.faq summary:hover { color: #fff; }
.faq p { margin: 0 0 18px; max-width: 64ch; color: var(--muted); }

/* ---------- подвал ---------- */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13px; color: var(--muted); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.foot p { margin: 0; }
.foot nav { display: flex; gap: 20px; margin-left: auto; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.foot__legal { flex-basis: 100%; color: var(--faint); font-size: 12px; }

/* ---------- диалог, уведомление ---------- */
.dlg {
  width: min(380px, calc(100% - 32px)); padding: 24px; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px;
}
.dlg::backdrop { background: rgba(0, 0, 0, .6); }
.dlg[open] { animation: in .18s ease; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } }
.dlg h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.dlg p { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.dlg p b { color: var(--text); }
.dlg .btn { margin-top: 18px; }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 40; transform: translate(-50%, 8px); opacity: 0;
  padding: 9px 14px; font-size: 14px; color: var(--text);
  background: #1c1e22; border: 1px solid var(--line-2); border-radius: 6px;
  transition: opacity .2s, transform .2s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- адаптив ---------- */
@media (max-width: 820px) {
  .buy { grid-template-columns: 1fr; gap: 28px; }
  .pay { position: static; }
  .block__head { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 18px; }
  .top__in { gap: 14px; }
  .menu {
    display: none; position: absolute; top: 56px; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 6px 18px 12px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .menu.is-open { display: flex; }
  .menu a { padding: 10px 0; font-size: 15px; }
  .menu-btn {
    display: block; padding: 6px 10px; font: 500 13px var(--sans); color: var(--text);
    background: transparent; border: 1px solid var(--line-2); border-radius: 6px; cursor: pointer;
  }
  .intro { padding-top: 56px; padding-bottom: 64px; }
  .lead { font-size: 16px; }
  .ip { display: flex; width: 100%; }
  .ip__addr { flex: 1; text-align: left; font-size: 16px; }
  .ip__act { min-width: 0; }
  .block { padding-top: 56px; padding-bottom: 56px; }
  .facts { grid-template-columns: 1fr; }
  .fact:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .world { grid-template-columns: 1fr; }
  .world div + div { border-left: 0; border-top: 1px solid var(--line); }
  .world div { flex-direction: row; justify-content: space-between; align-items: baseline; }
  .packs__head { display: none; }
  .pack { grid-template-columns: 18px 1fr auto; grid-template-areas: "m n p" "m b p"; gap: 2px 12px; }
  .pack__mark { grid-area: m; }
  .pack__n { grid-area: n; }
  .pack__b { grid-area: b; text-align: left; font-size: 13px; }
  .pack__b:empty { display: none; }
  .pack__p { grid-area: p; }
  .rules li { grid-template-columns: 28px 1fr; }
  .rules em { grid-column: 2; }
  .foot nav { margin-left: 0; flex-wrap: wrap; gap: 8px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
