/* ============================================================================
   Nevermore — сайт клиента. Тёмная (чёрная) тема, монохром + холодный фиолетовый
   акцент под ArrayList/Astolfo из самого клиента. Строгий CSP: без инлайновых
   стилей/скриптов — всё здесь и в *.js.
   ========================================================================== */

:root {
  --bg: #050507;
  --bg-2: #0a0a0f;
  --surface: #0d0d13;
  --surface-2: #12121a;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f8;
  --text-dim: #a6a6b3;
  --text-mute: #6d6d7a;

  --accent: #8b7bff;
  --accent-2: #c07bff;
  --accent-3: #ff5faf;
  --accent-soft: rgba(139, 123, 255, 0.14);

  --ok: #46e08a;
  --warn: #ffcf5c;
  --bad: #ff5c72;

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1160px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Фоновое свечение всей страницы */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 78% -10%, rgba(139, 123, 255, 0.16), transparent 60%),
    radial-gradient(760px 520px at 12% 8%, rgba(255, 95, 175, 0.09), transparent 55%),
    radial-gradient(1200px 800px at 50% 120%, rgba(139, 123, 255, 0.08), transparent 60%),
    var(--bg);
}
/* Тонкая сетка/зерно поверх фона */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 80%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

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

/* Canvas со звёздами/частицами в герое */
#stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
}

/* ---------------------------- Кнопки -------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.06); }
.btn:active { transform: translateY(0); }

.btn-primary {
  border: none;
  color: #0b0b12;
  background: linear-gradient(135deg, #d9d3ff, var(--accent) 55%, var(--accent-2));
  box-shadow: 0 12px 36px -12px rgba(139, 123, 255, 0.7);
}
.btn-primary:hover { box-shadow: 0 18px 46px -12px rgba(139, 123, 255, 0.85); }

.btn-ghost { background: transparent; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------------------------- Навигация ----------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(6, 6, 9, 0.6);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: 15px; }
.brand .mark { width: 26px; height: 26px; filter: drop-shadow(0 0 10px rgba(139, 123, 255, 0.6)); }
.nav-links { display: flex; gap: 26px; margin-left: 20px; }
.nav-links a { color: var(--text-dim); font-size: 14.5px; font-weight: 500; transition: color 0.2s; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* Бургер + мобильное меню */
.nav-toggle {
  display: none; margin-left: 10px; width: 42px; height: 42px; flex: none;
  align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: rgba(255,255,255,0.03); color: var(--text); cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.nav-toggle:hover { background: rgba(255,255,255,0.06); }
.nav-toggle svg { width: 22px; height: 22px; }
.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  padding: 14px 24px 22px; border-bottom: 1px solid var(--line);
  background: rgba(6,6,9,0.96); backdrop-filter: blur(14px);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 4px; color: var(--text-dim); font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--text); }
.mobile-menu-cta { display: grid; gap: 10px; margin-top: 16px; }

/* ---------------------------- Hero ---------------------------------------- */
.hero { position: relative; padding: 96px 0 80px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--accent-soft);
  color: #cfc7ff; font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  margin-bottom: 28px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.wordmark {
  font-size: clamp(56px, 12vw, 132px);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0;
  background: linear-gradient(180deg, #ffffff 0%, #cfcbe6 45%, #7c74a8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(139, 123, 255, 0.25);
}
.hero-sub {
  font-size: clamp(18px, 2.4vw, 24px);
  color: var(--text-dim);
  max-width: 640px;
  margin: 22px auto 0;
  font-weight: 400;
}
.hero-sub b { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }

.trust { display: flex; gap: 34px; justify-content: center; margin-top: 54px; flex-wrap: wrap; }
.trust-item { text-align: center; }
.trust-item .n { font-size: 26px; font-weight: 800; background: linear-gradient(120deg, #fff, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.trust-item .l { font-size: 13px; color: var(--text-mute); letter-spacing: 0.03em; }

/* ---------------------------- Секции -------------------------------------- */
section { position: relative; }
.section { padding: 88px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-tag { color: var(--accent-2); font-weight: 700; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; }
.section-title { font-size: clamp(30px, 4.5vw, 46px); font-weight: 800; margin: 12px 0 14px; letter-spacing: -0.02em; }
.section-desc { color: var(--text-dim); font-size: 17px; }

/* Features */
.grid { display: grid; gap: 18px; }
.features { grid-template-columns: repeat(3, 1fr); }
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--line-strong);
  margin-bottom: 16px; color: #cfc7ff;
}
.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

/* Showcase (макет ClickGUI) */
.showcase { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; }
.showcase .copy h2 { font-size: clamp(28px, 4vw, 40px); margin: 10px 0 16px; letter-spacing: -0.02em; }
.showcase .copy p { color: var(--text-dim); font-size: 16px; }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-dim); }
.checklist svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }

.window {
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, #0f0f17, #08080c);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.window .bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.window .bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a2a34; display: inline-block; }
.window .bar-title { margin-left: 10px; font-size: 12px; color: var(--text-mute); letter-spacing: 0.04em; }
.window .body { padding: 22px; min-height: 320px; position: relative; }

/* ArrayList-мокап — фиолетовый градиент как в клиенте (без inline-стилей: CSP) */
.arraylist { position: absolute; top: 18px; right: 18px; display: grid; gap: 5px; text-align: right; font-weight: 700; font-size: 13px; }
.arraylist span { padding: 3px 9px; border-radius: 6px; background: rgba(0,0,0,0.4); text-shadow: 0 0 12px rgba(139,123,255,0.4); }
.arraylist span:nth-child(1) { color: #d6cfff; }
.arraylist span:nth-child(2) { color: #c3b8ff; }
.arraylist span:nth-child(3) { color: #b0a2ff; }
.arraylist span:nth-child(4) { color: #9f8fff; }
.arraylist span:nth-child(5) { color: #8f7cff; }
.arraylist span:nth-child(6) { color: #7f6bff; }

/* Мини-ClickGUI */
.gui-mock { position: absolute; top: 20px; left: 22px; width: 210px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(8,8,13,0.75); overflow: hidden; }
.gui-tabs { display: flex; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); }
.gui-tab { font-size: 11px; padding: 4px 8px; border-radius: 6px; color: var(--text-mute); font-weight: 600; }
.gui-tab.active { background: var(--accent-soft); color: #cfc7ff; }
.gui-rows { padding: 8px; display: grid; gap: 4px; }
.gui-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 9px; border-radius: 7px; font-size: 12.5px; font-weight: 600; color: var(--text-dim); background: rgba(255,255,255,0.02); }
.gui-row.on { color: var(--text); background: rgba(139,123,255,0.08); }
.gui-row .tgl { width: 26px; height: 14px; border-radius: 999px; background: #23232c; position: relative; flex: none; transition: background 0.2s; }
.gui-row .tgl::after { content: ""; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: #55555f; transition: transform 0.2s, background 0.2s; }
.gui-row .tgl.on { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.gui-row .tgl.on::after { transform: translateX(12px); background: #0b0b12; }
.wm-mock { position: absolute; bottom: 20px; right: 22px; font-weight: 800; letter-spacing: 0.2em; color: var(--text-mute); font-size: 12px; }

/* Pricing */
.pricing { grid-template-columns: repeat(3, 1fr); align-items: start; }
.plan {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.plan:hover { transform: translateY(-4px); }
.plan.featured {
  border-color: transparent;
  background:
    linear-gradient(180deg, var(--surface), var(--bg-2)) padding-box,
    linear-gradient(160deg, var(--accent), var(--accent-3)) border-box;
  box-shadow: 0 30px 70px -30px rgba(139, 123, 255, 0.6);
}
.plan .badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 5px 14px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-3)); color: #0b0b12;
}
.plan h3 { margin: 0 0 4px; font-size: 20px; }
.plan .price { font-size: 40px; font-weight: 800; margin: 10px 0 2px; }
.plan .price small { font-size: 15px; color: var(--text-mute); font-weight: 600; }
.plan .term { color: var(--text-mute); font-size: 14px; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 11px; }
.plan li { display: flex; gap: 10px; color: var(--text-dim); font-size: 14.5px; }
.plan li svg { flex: none; width: 18px; height: 18px; color: var(--accent); margin-top: 2px; }

/* Модули по категориям */
.cats { grid-template-columns: repeat(3, 1fr); }
.cat {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.cat:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.cat-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.cat-name { font-size: 18px; font-weight: 800; letter-spacing: 0.01em; }
.cat-count { font-size: 22px; font-weight: 800; background: linear-gradient(120deg, #fff, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags span {
  font-size: 12.5px; font-weight: 600; color: var(--text-dim);
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.02);
}
.cat-lua {
  border-color: transparent;
  background:
    linear-gradient(180deg, var(--surface), var(--bg-2)) padding-box,
    linear-gradient(160deg, var(--accent), var(--accent-3)) border-box;
}
.cat-lua .cat-count { -webkit-text-fill-color: var(--accent-2); }
.cat-note { margin: 0; color: var(--text-dim); font-size: 14px; }

/* Защита */
.sec-grid { grid-template-columns: repeat(3, 1fr); }
.sec-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.sec-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.sec-card .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--line-strong);
  margin-bottom: 16px; color: #cfc7ff;
}
.sec-card .ico svg { width: 24px; height: 24px; }
.sec-card h3 { margin: 0 0 8px; font-size: 17px; }
.sec-card p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

/* Как начать — шаги */
.steps { grid-template-columns: repeat(3, 1fr); counter-reset: step; }
.step {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
}
.step-n {
  font-size: 15px; font-weight: 800; letter-spacing: 0.1em;
  color: var(--accent-2); margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; font-size: 19px; }
.step p { margin: 0; color: var(--text-dim); font-size: 14.5px; }
.step p code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px; padding: 2px 6px; border-radius: 6px;
  background: rgba(255,255,255,0.06); color: #cfc7ff;
}
/* Соединительная линия между шагами (десктоп) */
.steps .step:not(:last-child)::after {
  content: ""; position: absolute; top: 42px; right: -10px; width: 20px; height: 1px;
  background: var(--line-strong);
}

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 4px 20px;
  transition: border-color 0.2s;
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 0;
  font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-2); font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 16px; color: var(--text-dim); font-size: 15px; }

/* CTA band */
.cta-band {
  text-align: center;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: 60px 30px;
  background:
    radial-gradient(600px 300px at 50% 0%, var(--accent-soft), transparent 70%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
}
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 12px; }
.cta-band p { color: var(--text-dim); margin: 0 auto 26px; max-width: 480px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 36px; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; color: var(--text-mute); font-size: 14px; }
.footer .brand { color: var(--text-dim); }
.footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand-col .brand { margin-bottom: 14px; }
.footer-tagline { color: var(--text-mute); font-size: 14px; max-width: 320px; margin: 0; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav h4 { margin: 0 0 6px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); font-weight: 700; }
.footer-nav a { color: var(--text-mute); font-size: 14px; transition: color 0.2s; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line); color: var(--text-mute); font-size: 13.5px; }
.footer-bottom-flush { border-top: none; padding-top: 0; }
.footer-risk { color: var(--text-mute); }
.footer-links-inline { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links-inline a { color: var(--text-mute); transition: color 0.2s; }
.footer-links-inline a:hover { color: var(--text); }

/* ---------------------------- Правовые/контент-страницы -------------------- */
.legal { max-width: 820px; margin: 0 auto; padding: 56px 0 80px; }
.legal .back { display: inline-flex; align-items: center; gap: 7px; color: var(--text-dim); font-size: 14px; margin-bottom: 26px; }
.legal .back:hover { color: var(--text); }
.legal h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -0.02em; margin: 0 0 6px; }
.legal .updated { color: var(--text-mute); font-size: 13.5px; margin: 0 0 34px; }
.prose h2 { font-size: 20px; margin: 34px 0 12px; }
.prose h3 { font-size: 16px; margin: 22px 0 8px; }
.prose p { color: var(--text-dim); margin: 0 0 14px; }
.prose ul { color: var(--text-dim); margin: 0 0 14px; padding-left: 22px; display: grid; gap: 8px; }
.prose li { padding-left: 4px; }
.prose a { color: var(--accent-2); font-weight: 600; }
.prose-more { margin-top: 26px; }
.prose strong { color: var(--text); }
.prose .callout {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  padding: 16px 18px;
  color: var(--text-dim);
  margin: 0 0 18px;
  font-size: 14.5px;
}

/* ---------------------------- 404 ----------------------------------------- */
.notfound { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 60px 24px; }
.notfound .code { font-size: clamp(88px, 20vw, 180px); font-weight: 800; line-height: 0.9; letter-spacing: 0.02em; background: linear-gradient(180deg, #fff 0%, #cfcbe6 45%, #7c74a8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound h1 { font-size: clamp(22px, 4vw, 30px); margin: 10px 0 8px; }
.notfound p { color: var(--text-dim); margin: 0 0 26px; max-width: 420px; }

/* ---------------------------- Модалка ------------------------------------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(3, 3, 6, 0.72);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  width: 100%; max-width: 420px;
  background: linear-gradient(180deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.25s ease;
}
.modal-overlay.open .modal { transform: none; }
.modal-title { font-size: 24px; font-weight: 800; margin: 0 0 4px; }
.modal-desc { color: var(--text-dim); font-size: 14px; margin: 0 0 22px; }
.tabs { display: flex; gap: 6px; padding: 5px; background: rgba(0,0,0,0.35); border-radius: 12px; margin-bottom: 20px; }
.tab { flex: 1; padding: 9px; border-radius: 8px; border: none; background: transparent; color: var(--text-dim); font-weight: 600; cursor: pointer; transition: 0.2s; }
.tab.active { background: var(--accent-soft); color: #fff; }

/* ---------------------------- Формы --------------------------------------- */
.field { margin-bottom: 15px; }
.field-flush { margin: 0; }
.field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 7px; font-weight: 500; }
.input {
  width: 100%; padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text); font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder { color: var(--text-mute); }

.form-msg { font-size: 13.5px; margin: 4px 0 12px; min-height: 18px; }
.form-msg.err { color: var(--bad); }
.form-msg.ok { color: var(--ok); }
.form-foot { text-align: center; font-size: 13.5px; color: var(--text-mute); margin-top: 14px; }
.link { color: var(--accent-2); cursor: pointer; font-weight: 600; }

/* ---------------------------- Dashboard ----------------------------------- */
.dash { padding: 40px 0 80px; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.dash-hello h1 { font-size: clamp(26px, 4vw, 36px); margin: 0; }
.dash-hello p { color: var(--text-dim); margin: 6px 0 0; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.user-chip .uid { color: var(--text-mute); font-size: 13px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-3)); display: grid; place-items: center; font-weight: 800; color: #0b0b12; }

.dash-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 28px; }
.panel {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.panel.span2 { grid-column: 1 / -1; }
.panel h2 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin: 0 0 16px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.panel h2 svg { width: 18px; height: 18px; color: var(--accent-2); }

.status-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.pill.on { background: rgba(70, 224, 138, 0.14); color: var(--ok); }
.pill.off { background: rgba(255, 92, 114, 0.14); color: var(--bad); }
.pill.neutral { background: rgba(255,255,255,0.06); color: var(--text-dim); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 14.5px; }
.kv dt { color: var(--text-mute); }
.kv dd { margin: 0; text-align: right; font-weight: 600; }

.big-num { font-size: 40px; font-weight: 800; line-height: 1; margin: 4px 0; background: linear-gradient(120deg, #fff, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--text-mute); font-size: 13.5px; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }
.inline-form { display: flex; gap: 10px; }
.inline-form .input { flex: 1; }
.stack { display: grid; gap: 12px; }
.note { font-size: 13px; margin-top: 10px; min-height: 16px; }
.note.err { color: var(--bad); } .note.ok { color: var(--ok); } .note.warn { color: var(--warn); }

.center-load { text-align: center; padding: 80px 0; color: var(--text-mute); }

/* Reveal-анимация при скролле */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------- Адаптив ------------------------------------- */
@media (max-width: 900px) {
  .features, .pricing, .cats, .sec-grid, .steps { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-cta-hide-mobile { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand-col { grid-column: 1 / -1; }
  .steps .step:not(:last-child)::after { display: none; }
  .gui-mock { position: static; width: auto; margin-bottom: 60px; }
  .arraylist { top: auto; bottom: 20px; }
}
@media (min-width: 901px) and (max-width: 1080px) {
  .cats, .sec-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .footer-cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .trust { gap: 22px; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================================
   Пароль: показать/скрыть + индикатор надёжности; список активных сессий.
   (Добавлено при харднинге кабинета — всё классами, инлайн-стилей нет: CSP.)
   ========================================================================== */
.pass-wrap { position: relative; }
.pass-wrap .input { padding-right: 84px; width: 100%; }
.pass-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: transparent; border: 1px solid var(--line-strong); color: var(--text-dim);
  font: inherit; font-size: 12.5px; font-weight: 600; padding: 5px 10px;
  border-radius: 8px; cursor: pointer; line-height: 1;
}
.pass-toggle:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255,255,255,0.05); }

.meter { display: flex; align-items: center; gap: 10px; }
.meter-track {
  flex: 1; height: 6px; border-radius: 4px; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line);
}
.meter-bar { height: 100%; width: 0; border-radius: 4px; transition: width 0.22s ease, background 0.22s ease; }
.meter-bar.s0 { width: 10%; background: var(--bad); }
.meter-bar.s1 { width: 30%; background: var(--bad); }
.meter-bar.s2 { width: 55%; background: var(--warn); }
.meter-bar.s3 { width: 80%; background: var(--accent); }
.meter-bar.s4 { width: 100%; background: var(--ok); }
.meter-label { font-size: 12px; color: var(--text-dim); min-width: 92px; text-align: right; }

.sessions { display: flex; flex-direction: column; gap: 10px; }
.sess-item {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2);
}
.sess-item.current { border-color: var(--line-strong); background: var(--accent-soft); }
.sess-ico {
  flex: none; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line);
}
.sess-ico svg { width: 18px; height: 18px; color: var(--accent-2); }
.sess-main { flex: 1; min-width: 0; }
.sess-dev { font-weight: 650; }
.sess-meta { font-size: 12.5px; color: var(--text-mute); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sess-dot { color: var(--text-mute); }
.badge-cur {
  flex: none; font-size: 11px; font-weight: 700; color: #cfc7ff;
  background: var(--accent-soft); border: 1px solid var(--line-strong);
  padding: 4px 9px; border-radius: 999px;
}
