@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #05070d;
  --card: rgba(255, 255, 255, .045);
  --card-border: rgba(255, 255, 255, .09);
  --text: #eef2f7;
  --muted: #8b93a7;
  --accent: #00e5a0;
  --accent-2: #00b3ff;
  --danger: #ff5470;
  --warn: #ffb020;
  --r-lg: 22px;
  --r-md: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .5;
  animation: float 18s ease-in-out infinite;
}
.orb-1 { width: 480px; height: 480px; background: radial-gradient(circle, #0f7a5a, transparent 65%); top: -160px; left: -120px; }
.orb-2 { width: 420px; height: 420px; background: radial-gradient(circle, #1a3a8f, transparent 65%); top: 20%; right: -140px; animation-delay: -6s; }
.orb-3 { width: 380px; height: 380px; background: radial-gradient(circle, #0e6e8c, transparent 65%); bottom: -120px; left: 30%; animation-delay: -12s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 25px) scale(.95); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, black, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, black, transparent 75%);
}

.nav {
  max-width: 720px; margin: 0 auto;
  padding: 20px 24px 0;
  display: flex; justify-content: space-between; align-items: center;
}
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.15rem; letter-spacing: .3px;
  display: flex; align-items: center; gap: 8px;
}
.logo-icon { font-size: 1.3rem; }
.online-pill {
  display: flex; align-items: center; gap: 7px;
  font-size: .78rem; color: var(--accent);
  background: rgba(0, 229, 160, .08);
  border: 1px solid rgba(0, 229, 160, .2);
  padding: 6px 14px; border-radius: 100px;
}
.online-pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: .35; } }

.wrap { max-width: 720px; margin: 0 auto; padding: 28px 20px 60px; }

.hero { text-align: center; margin-bottom: 36px; }
.hero-badge {
  display: inline-block; font-size: .8rem; font-weight: 600;
  color: var(--accent);
  background: rgba(0, 229, 160, .08);
  border: 1px solid rgba(0, 229, 160, .2);
  padding: 7px 16px; border-radius: 100px;
  margin-bottom: 20px;
}
h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.9rem, 5.5vw, 3rem);
  line-height: 1.12; letter-spacing: -.02em;
  margin-bottom: 14px;
}
.grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: var(--muted); font-size: .98rem; max-width: 460px; margin: 0 auto; line-height: 1.55; }

.steps { display: flex; align-items: center; justify-content: center; margin-bottom: 26px; }
.step-dot {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--card-border);
  color: var(--muted);
  transition: all .35s ease;
}
.step-dot.active {
  background: rgba(0, 229, 160, .12);
  border-color: var(--accent); color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 229, 160, .25);
}
.step-dot.done { background: var(--accent); border-color: var(--accent); color: #04110c; }
.step-dot.done span { display: none; }
.step-dot.done::after { content: '✓'; }
.step-line { width: 56px; height: 2px; background: rgba(255,255,255,.1); transition: background .35s ease; }
.step-line.filled { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  padding: 30px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.main-card { min-height: 0; }

.screen { animation: rise .4s ease; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.card-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.35rem; margin-bottom: 6px; }
.card-title.center { text-align: center; }
.card-sub { color: var(--muted); font-size: .9rem; line-height: 1.5; margin-bottom: 20px; }
.card-sub.center { text-align: center; margin-bottom: 8px; }
.card-sub b { color: var(--text); }

code {
  background: rgba(255,255,255,.08);
  padding: 2px 7px; border-radius: 6px;
  font-size: .85em; color: var(--accent);
}

.input-wrap { position: relative; margin-bottom: 8px; }
input[type="text"], textarea {
  width: 100%;
  background: rgba(0, 0, 0, .35);
  border: 1px solid var(--card-border);
  border-radius: var(--r-md);
  padding: 15px 16px;
  color: var(--text); font-size: .95rem;
  font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
  transition: border-color .25s, box-shadow .25s;
}
input::placeholder, textarea::placeholder { color: #55607a; }
input:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 229, 160, .1);
}
textarea { resize: vertical; min-height: 130px; line-height: 1.5; }

.textarea-meta {
  display: flex; justify-content: space-between;
  font-size: .75rem; color: var(--muted);
  margin-top: 6px; padding: 0 4px;
}
#sessionCheck.ok { color: var(--accent); }
#sessionCheck.bad { color: var(--danger); }

.product-hint {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; font-weight: 600;
  background: rgba(0, 179, 255, .1);
  border: 1px solid rgba(0, 179, 255, .25);
  color: #6cc9ff;
  padding: 7px 14px; border-radius: 100px;
  margin: 6px 0 16px;
  animation: rise .3s ease;
}

.account-chip {
  display: inline-block;
  font-size: .8rem; color: var(--accent);
  background: rgba(0, 229, 160, .08);
  border: 1px solid rgba(0, 229, 160, .2);
  padding: 6px 14px; border-radius: 100px;
  margin-bottom: 14px;
}

.session-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.link-btn {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: .82rem; font-family: inherit;
  text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border: none; border-radius: var(--r-md);
  font-family: inherit; font-size: .95rem; font-weight: 600;
  cursor: pointer; text-decoration: none; color: var(--text);
  transition: transform .2s, box-shadow .2s, background .2s, opacity .2s;
}
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn-lg { width: 100%; padding: 16px; font-size: 1rem; margin-top: 14px; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04110c;
  box-shadow: 0 10px 30px rgba(0, 229, 160, .22);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0, 229, 160, .32); }
.btn-amber {
  background: linear-gradient(135deg, #ffb020, #ff8a3d);
  color: #1a1005;
  box-shadow: 0 10px 30px rgba(255, 176, 32, .25);
  width: 100%; margin-top: 14px;
}
.btn-amber:hover:not(:disabled) { transform: translateY(-2px); }
.btn-secondary {
  background: rgba(255,255,255,.07);
  border: 1px solid var(--card-border);
  white-space: nowrap;
}
.btn-secondary:hover:not(:disabled) { background: rgba(255,255,255,.12); }
.btn-ghost { background: transparent; border: 1px solid var(--card-border); color: var(--muted); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-row { display: flex; gap: 10px; margin-top: 18px; }
.btn-row .btn { flex: 1; }

.loader-wrap { display: flex; justify-content: center; margin: 26px 0 20px; }
.loader-ring { width: 74px; height: 74px; animation: spin 1.3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ring-track { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 5; }
.ring-progress {
  fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 176;
  animation: dash 1.3s ease-in-out infinite;
}
@keyframes dash {
  0% { stroke-dashoffset: 150; }
  50% { stroke-dashoffset: 55; }
  100% { stroke-dashoffset: 150; }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px 0 6px; }
.chip {
  font-size: .78rem; color: var(--muted);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--card-border);
  padding: 6px 13px; border-radius: 100px;
}
.chip.mono { font-family: 'SF Mono', monospace; font-size: .72rem; }

.verify-box {
  margin-top: 20px; padding: 24px;
  background: rgba(255, 176, 32, .07);
  border: 1px solid rgba(255, 176, 32, .3);
  border-radius: var(--r-md);
  text-align: center; animation: rise .35s ease;
}
.verify-box p { color: var(--muted); font-size: .87rem; margin-top: 6px; line-height: 1.5; }
.verify-icon { font-size: 2rem; margin-bottom: 10px; }
.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

.review-box {
  margin-top: 20px; padding: 20px 24px;
  background: rgba(0, 179, 255, .07);
  border: 1px solid rgba(0, 179, 255, .3);
  border-radius: var(--r-md);
  font-size: .92rem; line-height: 1.55; animation: rise .35s ease;
}
.review-box p { color: var(--muted); font-size: .87rem; margin-top: 6px; }

.anim-icon { width: 76px; height: 76px; display: block; margin: 26px auto 18px; }
.anim-icon circle, .anim-icon path {
  fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round;
}
.ok-circle { stroke: var(--accent); stroke-dasharray: 166; stroke-dashoffset: 166; animation: draw .6s ease forwards; }
.ok-check { stroke: var(--accent); stroke-width: 4.5; stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw .4s .55s ease forwards; }
.fail-circle { stroke: var(--danger); stroke-dasharray: 166; stroke-dashoffset: 166; animation: draw .6s ease forwards; }
.fail-cross { stroke: var(--danger); stroke-width: 4.5; stroke-dasharray: 52; stroke-dashoffset: 52; animation: draw .4s .55s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.done-details {
  margin: 16px auto 4px; max-width: 420px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--card-border);
  border-radius: var(--r-md);
  padding: 14px 18px;
  font-size: .85rem; color: var(--muted); line-height: 1.7; text-align: left;
}
.done-details b { color: var(--text); }

.recover-card { margin-top: 22px; padding: 22px 26px; }
.recover-title { font-size: .95rem; font-weight: 600; margin-bottom: 14px; }
.recover-row { display: flex; gap: 10px; }
.recover-row input { flex: 1; margin-bottom: 0; }
.recover-result {
  margin-top: 14px; padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: .88rem; line-height: 1.5; animation: rise .3s ease;
}
.recover-result.ok { background: rgba(0,229,160,.08); border: 1px solid rgba(0,229,160,.25); }
.recover-result.info { background: rgba(0,179,255,.08); border: 1px solid rgba(0,179,255,.25); }
.recover-result.bad { background: rgba(255,84,112,.08); border: 1px solid rgba(255,84,112,.25); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.feature {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  padding: 22px 18px; text-align: center;
  transition: transform .25s, border-color .25s;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(0, 229, 160, .3); }
.f-icon { font-size: 1.7rem; margin-bottom: 10px; }
.feature b { display: block; font-size: .92rem; margin-bottom: 6px; }
.feature p { font-size: .78rem; color: var(--muted); line-height: 1.5; }

.faq { margin-top: 40px; }
.faq h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; margin-bottom: 16px; text-align: center; }
.faq details {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r-md);
  margin-bottom: 10px; overflow: hidden;
}
.faq summary {
  padding: 15px 20px; cursor: pointer; font-size: .9rem; font-weight: 600;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  transition: color .2s;
}
.faq summary::after { content: '+'; font-size: 1.2rem; color: var(--muted); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { padding: 0 20px 16px; font-size: .85rem; color: var(--muted); line-height: 1.6; }

.howto { margin: 14px 0 4px; }
.howto summary {
  cursor: pointer; font-size: .87rem; font-weight: 600;
  padding: 11px 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--card-border);
  border-radius: var(--r-md); list-style: none;
  transition: border-color .2s;
}
.howto summary:hover { border-color: rgba(0, 229, 160, .35); }
.howto ol { margin: 14px 0; padding-left: 22px; font-size: .85rem; color: var(--muted); line-height: 1.9; }
.warn {
  background: rgba(255, 176, 32, .08);
  border: 1px solid rgba(255, 176, 32, .25);
  border-radius: 10px; padding: 11px 14px;
  font-size: .8rem; color: #ffd48a; line-height: 1.5;
}

.footer { text-align: center; margin-top: 46px; font-size: .82rem; color: var(--muted); }
.footer .muted { margin-top: 5px; font-size: .78rem; }
.footer a { color: var(--accent); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

.toast {
  position: fixed; bottom: 26px; left: 50%;
  transform: translate(-50%, 80px);
  background: #10141f;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 13px 22px; font-size: .88rem;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
  opacity: 0; z-index: 100; max-width: 90vw; text-align: center;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .3s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.ok { border-color: rgba(0,229,160,.4); color: var(--accent); }
.toast.bad { border-color: rgba(255,84,112,.4); color: var(--danger); }

.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(0,0,0,.25);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.hidden { display: none !important; }

@media (max-width: 560px) {
  .card { padding: 22px 18px; }
  .step-line { width: 34px; }
  .features { grid-template-columns: 1fr; }
  .recover-row { flex-direction: column; }
  .recover-row .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .session-head { flex-direction: column; align-items: flex-start; }
}

/* Чекбокс подтверждения */
.confirm-box {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--card-border);
  border-radius: var(--r-md);
  padding: 13px 15px;
  margin: 14px 0 4px;
  cursor: pointer;
  font-size: .85rem; color: var(--muted); line-height: 1.5;
  transition: border-color .2s;
}
.confirm-box:hover { border-color: rgba(0,229,160,.35); }
.confirm-box input {
  width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px;
  accent-color: var(--accent); cursor: pointer;
}
.confirm-box:has(input:checked) { border-color: rgba(0,229,160,.4); color: var(--text); }

/* Блок поддержки */
.support-card { margin-top: 22px; padding: 22px 26px; }
