/* Moriarty VPN — сайт продления. Стиль — как у лендинга бота: тёмный фон, золото, стеклянные карточки. */
/* Шрифты — свои файлы (CSP: только с этого сайта). Manrope — текст, Unbounded — логотип и крупные заголовки. OFL. */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/manrope-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/manrope-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url("fonts/unbounded-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url("fonts/unbounded-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --gold: #dfb26b;
  --gold-hover: #c99b50;
  --gold-soft: rgba(223, 178, 107, 0.12);
  --gold-line: rgba(223, 178, 107, 0.28);
  --bg: #080810;
  --card: rgba(24, 24, 28, 0.72);
  --card-solid: #121218;
  --line: rgba(255, 255, 255, 0.07);
  --text: #f5f5f7;
  --muted: rgba(255, 255, 255, 0.55);
  --faint: rgba(255, 255, 255, 0.38);
  --ok: #4ade80;
  --bad: #ff8f7a;
  --radius: 24px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--gold); }
[hidden] { display: none !important; }

/* фон */
.orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; }
.orb-1 { width: 680px; height: 680px; top: -260px; left: -180px; background: radial-gradient(circle, rgba(223,178,107,.16), transparent 65%); animation: drift1 26s ease-in-out infinite; }
.orb-2 { width: 560px; height: 560px; bottom: -160px; right: -200px; background: radial-gradient(circle, rgba(200,120,60,.11), transparent 65%); animation: drift2 32s ease-in-out infinite; }
.orb-3 { width: 460px; height: 460px; top: 40%; left: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(223,178,107,.07), transparent 65%); animation: drift3 22s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(6%,5%) scale(1.08); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-5%,-6%) scale(1.06); } }
@keyframes drift3 { 0%,100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-50%,-50%) scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .orb { animation: none; } * { transition: none !important; } }

/* шапка */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 20px 14px;
  background: rgba(8, 8, 16, 0.6);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.brand-title { font-family: "Unbounded", "Manrope", sans-serif; font-weight: 700; letter-spacing: .14em; font-size: 1rem; }
.brand-sub { color: var(--gold); font-weight: 800; letter-spacing: .3em; font-size: .62rem; }
.topbar-link { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); text-decoration: none;
  border: 1px solid var(--gold-line); border-radius: 999px; padding: 8px 14px; background: var(--gold-soft); }

.page { position: relative; z-index: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 28px 16px 40px; display: flex; flex-direction: column; gap: 16px; }

/* герой */
.hero { text-align: center; padding: 18px 4px 6px; }
.badge { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--gold-soft); border: 1px solid var(--gold-line);
  color: var(--gold); font-size: .7rem; font-weight: 700; letter-spacing: .08em; }
.hero h1 { margin: 20px 0 14px; font-family: "Unbounded", "Manrope", sans-serif; font-size: clamp(1.75rem, 6.4vw, 3rem);
  line-height: 1.12; letter-spacing: -.025em; font-weight: 700; }
.hero p { margin: 0 auto; max-width: 520px; color: var(--muted); font-size: 1rem; }
.gold { color: var(--gold); }
.stepper { list-style: none; margin: 24px 0 0; padding: 0; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.stepper li { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03); color: var(--faint); font-size: .78rem; font-weight: 700; transition: all .25s; }
.stepper li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); font-size: .7rem; }
.stepper li.is-current { color: var(--text); border-color: var(--gold-line); background: var(--gold-soft); }
.stepper li.is-current span { background: var(--gold); color: #000; }
.stepper li.is-done { color: var(--muted); }
.stepper li.is-done span { background: rgba(74,222,128,.18); color: var(--ok); }

/* карточки */
.card {
  position: relative; overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line); border-top-color: rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 24px 22px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
  animation: card-in .55s cubic-bezier(.22,1,.36,1) both;
}
@keyframes card-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.card h2 { margin: 0; font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.card-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.card-head p { margin: 4px 0 0; }
.step-num { flex: none; width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; font-weight: 900;
  color: var(--gold); background: linear-gradient(135deg, rgba(223,178,107,.2), rgba(223,178,107,.04)); border: 1px solid var(--gold-line); }
.muted { color: var(--muted); font-size: .9rem; }

.howto { margin: 0 0 18px; padding: 0; list-style: none; counter-reset: h; display: flex; flex-direction: column; gap: 8px; }
.howto li { counter-increment: h; position: relative; padding: 12px 14px 12px 46px; border-radius: 14px; background: rgba(255,255,255,.03);
  border: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.howto li b { color: var(--text); font-weight: 700; }
.howto li::before { content: counter(h); position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px;
  border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); font-size: .75rem; font-weight: 800; }

/* кнопки */
.btn { appearance: none; border: 0; cursor: pointer; font: inherit; text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border-radius: 999px; padding: 15px 26px; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  transition: transform .18s, background .18s, box-shadow .18s, opacity .18s; -webkit-tap-highlight-color: transparent; }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-gold { background: linear-gradient(180deg, #f0c98a, var(--gold)); color: #120c02; box-shadow: 0 8px 22px rgba(223,178,107,.22); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(223,178,107,.32); }
.btn-outline { background: rgba(255,255,255,.04); color: var(--text); border: 1px solid rgba(255,255,255,.12); }
.btn-outline:hover { background: rgba(255,255,255,.09); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.btn[disabled], .btn.is-loading { opacity: .6; cursor: wait; transform: none; }
.btn-wide { width: 100%; padding: 17px 26px; font-size: .82rem; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.actions-center { justify-content: center; }
.btn-tg { gap: 10px; padding: 16px 30px; font-size: .8rem; }
.btn-tg svg { width: 20px; height: 20px; flex: none; }
.bot-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 18px; }
.bot-cta .btn-tg { min-width: min(100%, 280px); }
.bot-cta small { color: var(--faint); font-size: .76rem; }

/* форма ID */
.id-form { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.field { flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.field input { width: 100%; font-family: inherit; font-variant-numeric: tabular-nums; border-radius: 16px; border: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.35); color: var(--text);
  padding: 15px 16px; font-size: 1.15rem; font-weight: 700; letter-spacing: .06em; outline: none; transition: border-color .18s, box-shadow .18s; }
.field input:focus { border-color: var(--gold-line); box-shadow: 0 0 0 4px rgba(223,178,107,.1); }
.field input.is-bad { border-color: rgba(255,143,122,.5); }
.field-hint { font-size: .75rem; color: var(--faint); }
.id-form .btn { margin-top: 22px; min-height: 54px; }

/* аккаунт */
.account { margin-top: 18px; border-radius: 20px; padding: 18px; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--line); animation: card-in .45s cubic-bezier(.22,1,.36,1) both; }
.account-top { display: flex; align-items: center; gap: 14px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--gold); font-weight: 900;
  background: radial-gradient(circle at 30% 20%, rgba(223,178,107,.3), rgba(223,178,107,.05)); border: 1px solid var(--gold-line); }
.account-name { font-weight: 800; font-size: 1.05rem; }
.account-id { color: var(--faint); font-size: .8rem; letter-spacing: .04em; }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 11px; font-size: .68rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.pill-ok { color: var(--ok); background: rgba(74,222,128,.1); border: 1px solid rgba(74,222,128,.25); }
.pill-bad { color: var(--bad); background: rgba(255,143,122,.08); border: 1px solid rgba(255,143,122,.25); }
.pill-none { color: var(--faint); background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 14px; }
.fact { border-radius: 14px; padding: 11px 13px; background: rgba(0,0,0,.25); border: 1px solid var(--line); }
.fact span { display: block; font-size: .6rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.fact strong { font-size: .95rem; }
.fact small { display: block; margin-top: 2px; color: var(--faint); font-size: .74rem; }
.meter { margin-top: 8px; height: 5px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, rgba(223,178,107,.45), var(--gold)); border-radius: 999px; }
.account .actions { margin-top: 16px; }
.notice { margin-top: 18px; border-radius: 18px; padding: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted); }
.notice strong { color: var(--text); display: block; margin-bottom: 4px; }
.notice.is-bad { border-color: rgba(255,143,122,.3); background: rgba(255,143,122,.06); }
.notice .actions { margin-top: 14px; }
.notice.is-centered { text-align: center; }
.notice.is-centered .actions { justify-content: center; }

/* вкладки */
.tabs { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(0,0,0,.3); border: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tab { flex: 1; appearance: none; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .8rem; font-weight: 800; letter-spacing: .04em;
  padding: 11px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: all .2s; }
.tab[aria-selected="true"] { background: var(--gold-soft); color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold-line); }

/* выбор */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.option { position: relative; appearance: none; text-align: left; font: inherit; color: var(--text); cursor: pointer; border-radius: 18px; padding: 16px;
  background: rgba(255,255,255,.035); border: 1px solid var(--line); transition: transform .18s, border-color .18s, background .18s; }
.option:hover { transform: translateY(-2px); border-color: rgba(223,178,107,.22); }
.option[aria-checked="true"] { border-color: var(--gold); background: linear-gradient(180deg, rgba(223,178,107,.14), rgba(223,178,107,.04));
  box-shadow: 0 8px 26px rgba(223,178,107,.12); }
.option[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.option-wide { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.option-wide .option-price { margin-top: 0; text-align: right; }
.option-title { font-weight: 800; font-size: .95rem; }
.option-price { margin-top: 10px; font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.option-price small { font-size: .8rem; color: var(--muted); font-weight: 600; }
.option-sub { margin-top: 2px; font-size: .78rem; color: var(--muted); }
.option-tag { position: absolute; top: -9px; right: 12px; box-shadow: 0 4px 12px rgba(223,178,107,.3); font-size: .58rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #120c02; background: var(--gold); border-radius: 999px; padding: 3px 8px; }
.section-label { margin: 18px 0 10px; font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.section-label:first-child { margin-top: 0; }
.info-line { color: var(--muted); font-size: .86rem; margin: 0 0 12px; }
.info-line b { color: var(--text); }

.counter { display: flex; align-items: center; gap: 14px; }
.counter button { width: 46px; height: 46px; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: var(--text);
  font-size: 1.3rem; cursor: pointer; }
.counter button:disabled { opacity: .35; cursor: not-allowed; }
.counter output { min-width: 64px; text-align: center; font-size: 1.6rem; font-weight: 800; }
.counter small { color: var(--muted); }
.segmented { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.segmented .tab { flex: 0 1 auto; border: 1px solid var(--line); }

/* промокод */
.promo { margin-top: 16px; }
.promo summary { cursor: pointer; color: var(--gold); font-size: .82rem; font-weight: 700; list-style: none; }
.promo summary::-webkit-details-marker { display: none; }
.promo-row { display: flex; gap: 8px; margin-top: 10px; }
.promo-row input { flex: 1; min-width: 0; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.35); color: var(--text);
  padding: 12px 14px; font: inherit; letter-spacing: .04em; outline: none; }
.promo-row input:focus { border-color: var(--gold-line); }
.promo-msg { margin: 8px 0 0; font-size: .8rem; }

/* итог */
.summary { margin-top: 20px; border-radius: 20px; padding: 18px; background: rgba(0,0,0,.3); border: 1px solid var(--gold-line); animation: card-in .4s both; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; color: var(--muted); font-size: .88rem; }
.summary-row strong { color: var(--text); text-align: right; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 4px; margin-top: 6px; border-top: 1px solid var(--line); }
.summary-total span { font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; color: var(--faint); }
.summary-total strong { font-family: "Unbounded", "Manrope", sans-serif; font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em;
  color: var(--gold); font-variant-numeric: tabular-nums; }
.methods { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.method { flex: 1 1 140px; appearance: none; font: inherit; cursor: pointer; border-radius: 14px; padding: 12px; color: var(--muted); font-weight: 700;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.method[aria-checked="true"] { color: var(--text); border-color: var(--gold); background: var(--gold-soft); }
.warn { margin: 6px 0 14px; padding: 12px 14px; border-radius: 14px; background: rgba(223,178,107,.07); border: 1px solid rgba(223,178,107,.18);
  color: rgba(255,255,255,.72); font-size: .82rem; }
.error { color: var(--bad); font-size: .86rem; margin: 0 0 12px; }
.ok { color: var(--ok); }
.trust { list-style: none; padding: 0; margin: 14px 0 0; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; color: var(--faint); font-size: .74rem; }
.trust li::before { content: "✓ "; color: var(--gold); }

/* результат */
.result { text-align: center; padding: 30px 22px; }
.result-icon { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem;
  background: radial-gradient(circle, rgba(223,178,107,.18), rgba(223,178,107,.03)); border: 1px solid var(--gold-line); }
.result-icon.is-ok { color: var(--ok); border-color: rgba(74,222,128,.35); background: radial-gradient(circle, rgba(74,222,128,.18), rgba(74,222,128,.03)); }
.result-icon.is-bad { color: var(--bad); border-color: rgba(255,143,122,.35); background: radial-gradient(circle, rgba(255,143,122,.15), rgba(255,143,122,.03)); }
.result h2 { font-family: "Unbounded", "Manrope", sans-serif; font-size: 1.35rem; font-weight: 700; }
.result p { color: var(--muted); max-width: 460px; margin: 8px auto 0; }
.result .actions { justify-content: center; margin-top: 18px; }
.spinner { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(223,178,107,.25); border-top-color: var(--gold); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.help { text-align: center; }
.help .actions { justify-content: center; margin-top: 14px; }
.help p { margin: 6px 0 0; }

.footer { position: relative; z-index: 1; display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; padding: 24px 16px calc(28px + env(safe-area-inset-bottom, 0px));
  color: var(--faint); font-size: .78rem; }
.footer a { color: var(--gold); text-decoration: none; }

.demo-banner { position: relative; z-index: 2; text-align: center; font-size: .75rem; padding: 8px 12px; background: rgba(223,178,107,.12);
  color: var(--gold); border-bottom: 1px solid var(--gold-line); }

@media (max-width: 520px) {
  .card { padding: 20px 16px; border-radius: 20px; }
  .id-form .btn { width: 100%; margin-top: 0; }
  .grid { grid-template-columns: 1fr 1fr; }
  .stepper { gap: 6px; }
  .stepper li { font-size: .7rem; padding: 6px 10px 6px 6px; gap: 6px; }
  .stepper li span { width: 20px; height: 20px; }
  .summary-total strong { font-size: 1.6rem; }
}
