:root {
  --bg: #030303;
  --bg2: #080808;
  --card: #111;
  --card-hover: #1a1a1a;
  --card-gold: #17130b;
  --line: #222;
  --gold: #d4af37;
  --gold2: #f0c850;
  --gold-dim: rgba(212, 175, 55, 0.12);
  --gold-glow: rgba(212, 175, 55, 0.25);
  --text: #f0f0f0;
  --text2: #aaa;
  --green: #4ade80;
  --red: #ef4444;
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1200px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--gold2); text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
p, h1, h2, h3, h4, h5, h6, li, summary, label, b, span { overflow-wrap: anywhere; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; min-width: 0; }
#app { overflow-x: hidden; }
.wrap { overflow: hidden; }
input, textarea, select { font: inherit; color: var(--text); background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; width: 100%; min-width: 0; outline: none; transition: border-color .2s; }
input:focus, textarea:focus { border-color: var(--gold); }
textarea { resize: vertical; min-height: 100px; }

/* ========== MOBILE FIRST (базовые стили) ========== */

@media (max-width: 767px) {
  body { font-size: 14px; }
  .shell { padding: 10px 12px; padding-bottom: calc(76px + var(--safe-bottom)); }
  .panel h1 { font-size: 19px; }
  .panel h2 { font-size: 16px; }
  .brand-title { font-size: 13px; }
  .brand-sub { font-size: 9px; }
  .topbar { padding: 8px 12px; }
  .topbar:not(.landing-topbar) .brand { max-width: calc(100% - 106px); }
  .brand img { width: 30px; height: 30px; }
  .hero-content { padding: 20px 16px; }
  .hero-panel { padding: 16px; }
  .hero h1 { font-size: clamp(20px, 6vw, 24px); }
  .hero .lead { font-size: 13px; }
  .access-box { margin: 16px auto; }
  .level-card img { height: 100px; }
  .level-card { padding: 14px; }
  .dashboard-hero h1 { font-size: 20px; }
  .kpi b { font-size: 20px; }
  .kpi { padding: 12px; }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .mobilebar button { flex: 1 1 0; min-width: 0; max-width: 72px; padding: 8px 4px; gap: 1px; }
  .mobilebar button span:first-child { font-size: 20px; }
  .mobilebar button span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
  .prompt pre { font-size: 12px; padding: 10px; max-height: 220px; }
  .prompt { padding: 14px; }
  .card { padding: 14px; }
  .step-card { padding: 10px 12px; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 8px; }
  .step-num { width: 36px; height: 36px; font-size: 14px; }
  .step-card b { font-size: 13px; }
  .price-card { padding: 18px; }
  .price { font-size: 30px; }
  .price-card .list div { font-size: 13px; padding: 6px 0; }
  .field { margin-bottom: 10px; }
  .field label { font-size: 12px; }
  input, textarea, select { padding: 10px 12px; font-size: 14px; }
  .btn { padding: 10px 16px; font-size: 13px; min-height: 42px; white-space: normal; text-align: center; line-height: 1.15; }
  .actions { gap: 6px; margin-top: 10px; }
  .actions .btn { flex: 1 1 auto; }
  .resultbox { min-height: 100px; }
  .onboarding-card { max-width: 100%; margin: 0 12px; }
  .visual-card img { border-radius: var(--radius-sm); margin-bottom: 8px; }
  .pill { font-size: 10px; padding: 3px 8px; }
  .checkitem { padding: 8px 12px; font-size: 13px; }
  .section-lead { font-size: 14px; }
  .msg { font-size: 13px; padding: 10px 14px; }
  .glass { padding: 16px; }
  .stat b { font-size: 24px; }
  .legal-links { gap: 8px; }
  .legal-links a { font-size: 11px; }
  .price-card .list { font-size: 13px; }
  .side-card { display: none; }
  .prompt pre { -webkit-overflow-scrolling: touch; }
  .badge { font-size: 10px; padding: 3px 8px; }
  .footer { padding: 16px 12px; font-size: 11px; }
  .copy-toast { bottom: calc(60px + var(--safe-bottom)); font-size: 12px; padding: 8px 16px; }
  .grid.two .card { margin-bottom: 0; }
  .landing-topbar { display: grid; grid-template-columns: 1fr; align-items: stretch; gap: 10px; }
  .landing-topbar .brand { justify-content: center; }
  .landing-topbar-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  .landing-topbar-actions .btn { width: 100%; padding: 10px 12px; }
  .landing-topbar-actions .btn.secondary { min-width: 0; }
  .trust-line { grid-template-columns: 1fr; }
  .pain-grid, .audience-grid { grid-template-columns: 1fr; }
}

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(3,3,3,.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gold-dim);
  padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%;
  min-width: 0;
}
.landing-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 1; min-width: 0; cursor: pointer; }
.brand img { width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 20px var(--gold-glow); }
.brand > div { min-width: 0; }
.brand-title { font-weight: 800; font-size: 15px; letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-size: 10px; color: var(--text2); margin-top: 1px; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; min-width: 0; }
.nav::-webkit-scrollbar { display: none; }
.nav button {
  padding: 8px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap;
  background: rgba(255,255,255,.04); border: 1px solid transparent; transition: all .2s; color: var(--text2);
}
.nav button.active { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #000; border-color: var(--gold); }
.nav button:not(.active):active { background: rgba(255,255,255,.08); }

.mobile-menu {
  display: none;
  position: relative;
  flex: 0 0 auto;
}
.mobile-menu summary {
  list-style: none;
  display: grid;
  gap: 1px;
  min-width: 92px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(212,175,55,.18), rgba(255,255,255,.04));
  border: 1px solid var(--gold-dim);
  color: var(--gold2);
  cursor: pointer;
  text-align: right;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu[open] summary {
  border-color: var(--gold);
  color: var(--gold);
}
.mobile-menu summary span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text2);
}
.mobile-menu summary b {
  display: block;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.15;
}
.mobile-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 90;
  width: min(300px, calc(100vw - 24px));
  max-height: calc(100dvh - 96px);
  overflow-y: auto;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--gold-dim);
  background:
    radial-gradient(circle at top right, rgba(212,175,55,.18), transparent 42%),
    rgba(9,9,9,.98);
  box-shadow: 0 22px 70px rgba(0,0,0,.55);
}
.mobile-menu-panel button {
  width: 100%;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--text2);
  text-align: left;
}
.mobile-menu-panel button.active {
  color: #000;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  font-weight: 800;
}
.mobile-menu-panel button:not(.active):active {
  background: rgba(255,255,255,.06);
  color: var(--text);
}
.mobile-menu-panel button span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.menu-caption {
  color: var(--text2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 8px 10px 4px;
}

.mobilebar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: rgba(3,3,3,.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--gold-dim);
  display: flex; justify-content: space-around; padding: 6px 0 calc(6px + var(--safe-bottom));
}
.mobilebar button {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 10px; font-size: 10px; color: var(--text2); transition: color .2s; min-width: 48px;
}
.mobilebar button.active { color: var(--gold2); }
.mobilebar button::before { font-size: 18px; line-height: 1; }

.shell { padding: 12px; padding-bottom: 80px; overflow-x: hidden; }
.sidebar { display: none; }
.content { width: 100%; min-width: 0; overflow-x: hidden; }

/* Карточки */
.card {
  background: var(--card); border-radius: var(--radius); padding: 18px;
  border: 1px solid var(--line); transition: all .2s; word-break: break-word; overflow-wrap: break-word;
}
.card:active { transform: scale(.98); }
.card.gold { background: var(--card-gold); border-color: rgba(212,175,55,.2); }
.panel { margin-bottom: 16px; }
.panel h1 { font-size: 22px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 4px; }
.panel h2 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
  background: var(--gold-dim); color: var(--gold2); margin-bottom: 8px;
}
.muted { color: var(--text2); font-size: 14px; }
.section-lead { color: var(--text2); font-size: 15px; margin-bottom: 16px; line-height: 1.5; }
.grad { background: linear-gradient(135deg, var(--gold), var(--gold2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px;
  transition: all .2s; min-height: 44px; white-space: nowrap; max-width: 100%;
}
.btn.primary { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #000; }
.btn.primary:active { transform: scale(.96); }
.btn.secondary { background: rgba(255,255,255,.06); color: var(--text); border: 1px solid var(--line); }
.btn.secondary:active { background: rgba(255,255,255,.1); }
.btn.ghost { background: transparent; color: var(--text2); padding: 8px 12px; min-height: auto; }
.btn.danger { background: rgba(239,68,68,.12); color: var(--red); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; max-width: 100%; }
.actions .btn { flex: 0 1 auto; min-width: 0; }

/* Прогресс */
.progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 8px 0; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold2)); border-radius: 999px; transition: width .5s ease; }

/* Дашборд */
.dashboard-hero { margin-bottom: 16px; }
.dashboard-hero h1 { font-size: 24px; margin: 8px 0 4px; }
.guide-hero {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}
.guide-hero h1 {
  font-size: clamp(26px, 7vw, 42px);
  line-height: 1.05;
  letter-spacing: -1px;
  margin: 8px 0;
}
.next-action-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(212,175,55,.22), transparent 42%),
    linear-gradient(145deg, #15110a, #0c0c0c);
  border: 1px solid rgba(212,175,55,.28);
  border-radius: calc(var(--radius) + 4px);
  padding: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
}
.next-action-card h2 { font-size: 22px; margin-bottom: 8px; }
.workflow-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 14px 0 16px;
}
.mini-step {
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.mini-step b { display: block; margin-bottom: 4px; }
.mini-step span { color: var(--text2); font-size: 13px; }
.material-mini h3 { margin-bottom: 6px; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 16px 0; }
.kpi { background: var(--card); border-radius: var(--radius-sm); padding: 14px; border: 1px solid var(--line); }
.kpi b { display: block; font-size: 24px; font-weight: 800; }
.kpi span { font-size: 12px; color: var(--text2); }

/* Сетки */
.grid { display: grid; gap: 12px; }
.grid.two, .grid.three, .pricing, .gen-grid { grid-template-columns: 1fr; min-width: 0; }

/* Хедер */
.hero { border: 1px solid var(--gold-dim); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; background: linear-gradient(180deg, rgba(5,5,5,.92), rgba(5,5,5,.55)), url('assets/brand/01-hero-main.png'); background-size: cover; background-position: center; }
.hero-content { padding: 28px 20px; overflow: hidden; }
.eyebrow { font-size: 12px; color: var(--gold2); margin-bottom: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.hero h1 { font-size: clamp(22px, 7vw, 28px); font-weight: 900; letter-spacing: -1px; line-height: 1.15; margin-bottom: 12px; }
.hero .lead { font-size: clamp(13px, 4vw, 15px); color: var(--text2); line-height: 1.5; margin-bottom: 20px; }
.hero-panel { padding: 20px; }
.glass { background: rgba(255,255,255,.03); border-radius: var(--radius); padding: 20px; border: 1px solid rgba(255,255,255,.05); }
.trust-line {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
}
.trust-line span {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  color: var(--text2);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
}
.pain-grid,
.audience-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pain-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
}
.audience-grid b {
  display: block;
  margin-bottom: 4px;
}
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat { text-align: center; }
.stat b { display: block; font-size: 28px; font-weight: 900; }
.stat span { font-size: 12px; color: var(--text2); }

/* Промпты */
.prompt { background: var(--card); border-radius: var(--radius); padding: 18px; margin-bottom: 12px; border: 1px solid var(--line); }
.prompt h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.prompt pre,
.guided-prompt pre {
  background: rgba(0,0,0,.4); border-radius: var(--radius-sm); padding: 14px;
  font-family: 'SF Mono', 'Fira Code', monospace; font-size: 13px; line-height: 1.6;
  white-space: pre-wrap; word-break: break-word; color: #ccc; max-height: 300px; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 12px; max-width: 100%;
}
.pro-lock { text-align: center; padding: 24px; }

/* Шаги */
.step-card {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  background: var(--card); border-radius: var(--radius-sm); padding: 12px 14px;
  border: 1px solid var(--line); transition: all .2s; cursor: pointer;
}
.step-card:active { transform: scale(.98); border-color: var(--gold-dim); }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-dim); color: var(--gold2); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; }
.step-card b { font-size: 14px; display: block; margin-bottom: 2px; }
.step-card .muted { font-size: 12px; }
.badge { font-size: 11px; padding: 4px 10px; border-radius: 999px; background: var(--gold-dim); color: var(--gold2); white-space: nowrap; max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
.guided-step-head {
  margin-bottom: 14px;
}
.guided-step-head h1 {
  font-size: clamp(24px, 6vw, 38px);
  line-height: 1.08;
  margin: 8px 0;
}
.artifact-card,
.main-prompt-card,
.wizard-card,
.execution-card {
  background:
    radial-gradient(circle at top right, rgba(212,175,55,.16), transparent 40%),
    var(--card);
  border: 1px solid rgba(212,175,55,.2);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
}
.artifact-card h2,
.main-prompt-card h3,
.wizard-card h3,
.execution-card h3 {
  margin-bottom: 8px;
}
.execution-card {
  background:
    linear-gradient(135deg, rgba(212,175,55,.12), transparent 42%),
    rgba(255,255,255,.035);
}
.execution-steps {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}
.execution-steps > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 2px 10px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,.22);
}
.execution-steps strong {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #050505;
  background: var(--gold);
  font-size: 13px;
}
.execution-steps b {
  line-height: 1.25;
}
.execution-steps p {
  margin: 2px 0 0;
  color: var(--text2);
  font-size: 13px;
  line-height: 1.45;
}
.main-prompt-card pre,
.generated-prompt pre {
  background: rgba(0,0,0,.42);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  color: #d7d7d7;
  max-height: 360px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  margin: 12px 0;
}
.answered-box {
  background: rgba(255,255,255,.025);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin: 12px 0;
  overflow: hidden;
}
.answered-box summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  color: var(--gold2);
  font-weight: 800;
}
.answered-box summary::-webkit-details-marker { display: none; }
.wizard-answers {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
}
.current-question {
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(212,175,55,.16);
  border-radius: var(--radius);
  padding: 16px;
  margin: 12px 0;
}
.current-question h4 {
  font-size: 18px;
  margin-bottom: 6px;
}
.current-question textarea {
  margin-top: 10px;
}
.generated-prompt {
  margin-top: 14px;
}
.guided-prompt-list {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}
.guided-prompt,
.advanced-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.guided-prompt[open],
.advanced-box[open] {
  border-color: rgba(212,175,55,.28);
}
.guided-prompt summary,
.advanced-box summary,
.advanced-nav summary {
  list-style: none;
  cursor: pointer;
}
.guided-prompt summary::-webkit-details-marker,
.advanced-box summary::-webkit-details-marker,
.advanced-nav summary::-webkit-details-marker {
  display: none;
}
.guided-prompt summary {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
}
.guided-prompt summary small {
  display: block;
  color: var(--text2);
  font-size: 12px;
  margin-top: 2px;
}
.guided-prompt summary em {
  color: var(--gold2);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}
.guided-prompt-body {
  padding: 0 14px 16px;
}
.prompt-flow {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.prompt-flow > div {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.prompt-flow b {
  display: block;
  color: var(--gold2);
  margin-bottom: 4px;
}
.prompt-flow p {
  color: var(--text2);
  font-size: 13px;
}
.advanced-box {
  margin: 14px 0;
}
.advanced-box > summary {
  padding: 15px 16px;
  color: var(--gold2);
  font-weight: 800;
}
.advanced-box > summary::after,
.advanced-nav summary::after {
  content: ' раскрыть';
  color: var(--text2);
  font-size: 11px;
  font-weight: 500;
}
.advanced-box[open] > summary::after,
.advanced-nav[open] summary::after {
  content: ' скрыть';
}
.save-panel {
  background:
    radial-gradient(circle at bottom right, rgba(212,175,55,.15), transparent 46%),
    var(--card);
  border: 1px solid rgba(212,175,55,.18);
  border-radius: var(--radius);
  padding: 18px;
}
.outcome-format {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(212,175,55,.16);
  border-radius: var(--radius-sm);
  background: rgba(212,175,55,.055);
}
.outcome-format > b {
  display: block;
  margin-bottom: 6px;
}
.outcome-format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.outcome-format-grid span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  color: var(--text2);
  font-size: 13px;
}
.outcome-format-grid strong {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #050505;
  background: var(--gold);
  font-size: 12px;
}

/* Уровни */
.level-card {
  background: var(--card); border-radius: var(--radius); padding: 18px; margin-bottom: 12px;
  border: 1px solid var(--line);
}
.level-card img { width: 100%; height: 140px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 12px; }
.level-card h3 { font-size: 18px; font-weight: 700; margin: 4px 0; }

/* Чек-лист */
.checklist { display: flex; flex-direction: column; gap: 6px; }
.checkitem { padding: 10px 14px; background: rgba(255,255,255,.03); border-radius: var(--radius-sm); font-size: 14px; border-left: 3px solid var(--gold); }

/* Поле ввода */
.field { margin-bottom: 12px; max-width: 100%; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text2); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .4px; }

/* Сообщения */
.msg { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-top: 8px; }
.msg.ok { background: rgba(74,222,128,.1); color: var(--green); border: 1px solid rgba(74,222,128,.2); }
.msg.bad { background: rgba(239,68,68,.1); color: var(--red); border: 1px solid rgba(239,68,68,.2); }
.msg.info { background: rgba(212,175,55,.1); color: var(--gold2); border: 1px solid rgba(212,175,55,.2); font-size: 13px; }
.msg.info code { background: rgba(212,175,55,.2); padding: 1px 6px; border-radius: 4px; font-size: 12px; }

/* Поиск */
.search input { margin-bottom: 12px; }

/* Аксесс-бокс */
.access-box { max-width: 400px; margin: 40px auto; text-align: center; }
.access-box h2 { margin: 12px 0 8px; }
.access-box .field { text-align: left; }
.access-illustration { width: 100%; border-radius: var(--radius-sm); margin: 16px 0 6px; border: 1px solid var(--line); }

.brand-banner img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: block;
}

/* Футер */
.footer { text-align: center; padding: 24px 16px; font-size: 12px; color: var(--text2); }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

.legal-gate-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 20px 16px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top, rgba(212,175,55,.15), transparent 34%),
    linear-gradient(180deg, #050505, #0b0b0b);
}

.legal-gate-card {
  width: 100%;
  max-width: 720px;
  background: rgba(10,10,10,.96);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 24px 18px;
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
}

.legal-gate-card h1 {
  font-size: clamp(24px, 5vw, 34px);
  line-height: 1.1;
  margin-bottom: 10px;
}

.legal-list {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.legal-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}

.legal-row.optional {
  background: rgba(212,175,55,.05);
}

.legal-row input {
  width: auto;
  margin-top: 2px;
  flex-shrink: 0;
}

.field-help,
.guide-box,
.tool-box {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 8px;
}

.field-help {
  font-size: 12px;
  color: var(--text2);
  display: grid;
  gap: 6px;
}

.guide-box {
  margin-bottom: 12px;
}

.guide-box h3,
.tool-box h4 {
  margin-bottom: 8px;
}

.guide-box p,
.tool-box p {
  color: var(--text2);
  font-size: 13px;
  margin-bottom: 6px;
}

.tool-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.tool-card {
  background: rgba(255,255,255,.025);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.tool-card b {
  display: block;
  margin-bottom: 2px;
}

.tool-card span {
  display: inline-block;
  color: var(--gold2);
  font-size: 11px;
  margin-bottom: 6px;
}

.tool-card p {
  color: var(--text2);
  font-size: 12px;
}

.result-list {
  display: grid;
  gap: 12px;
}
.materials-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.result-step,
.result-prompt {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.result-step summary,
.result-prompt summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  min-width: 0;
}

.result-step summary::-webkit-details-marker,
.result-prompt summary::-webkit-details-marker {
  display: none;
}

.result-body,
.result-prompt-body {
  padding: 0 18px 18px;
}

.result-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin-bottom: 12px;
}

.result-prompts {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
  vertical-align: top;
}

.admin-table th {
  color: var(--gold2);
  background: rgba(255,255,255,.03);
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  max-width: 120px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--gold-dim);
  color: var(--gold2);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-badge.ok {
  background: rgba(74,222,128,.12);
  color: var(--green);
}

.admin-badge.muted {
  background: rgba(255,255,255,.06);
  color: var(--text2);
}

@media (min-width: 768px) {
  .shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 16px;
    max-width: var(--max);
    margin: 0 auto;
    padding: 16px;
  }

  .sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 72px;
    height: fit-content;
  }

  .side-card {
    display: block;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
  }

  .side-nav {
    display: grid;
    gap: 8px;
  }

  .side-nav button {
    text-align: left;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.03);
    color: var(--text2);
  }

  .side-nav button.active {
    background: var(--gold-dim);
    color: var(--gold2);
  }
  .advanced-nav {
    padding: 12px;
  }
  .advanced-nav summary {
    color: var(--gold2);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
  }

  .content {
    min-width: 0;
  }

  .mobilebar {
    display: none;
  }
  .mobile-menu {
    display: none;
  }

  .grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .guide-hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
    align-items: center;
  }
  .workflow-steps,
  .prompt-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid.three,
  .pricing,
  .gen-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pricing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-topbar-actions .btn {
    width: auto;
  }
}

/* Копи-тост */
.copy-toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--gold); color: #000; padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 13px; opacity: 0; transition: all .3s ease; z-index: 100; pointer-events: none; }
.copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Тарифы */
.pricing { display: grid; gap: 12px; min-width: 0; }
.price-card .list { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; font-size: 14px; color: var(--text2); word-break: break-word; }
.price-card { text-align: center; padding: 24px; }
.price { font-size: 36px; font-weight: 900; margin: 12px 0; }
.price-card .list { text-align: left; margin: 12px 0; }
.price-card .list div { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.price-card .list div::before { content: '✓ '; color: var(--green); }

/* Сайдбар на десктопе */
.side-card { background: var(--card); border-radius: var(--radius); padding: 18px; margin-bottom: 12px; border: 1px solid var(--line); }

/* Визуальные карточки */
.visual-card img { width: 100%; border-radius: var(--radius-sm); margin-bottom: 12px; }
.visual-card .body { padding: 0; }

/* Результатбокс */
.resultbox { min-height: 120px; margin: 8px 0; }

/* Анимации */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero, .card, .step-card, .level-card, .prompt { animation: fadeIn .4s ease both; }
.card:nth-child(2) { animation-delay: .05s; }
.card:nth-child(3) { animation-delay: .1s; }
.card:nth-child(4) { animation-delay: .15s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

/* ========== TABLET (768px+) ========== */
@media (min-width: 768px) {
  body { font-size: 16px; }
  .topbar { padding: 12px 24px; }
  .desktop-nav { display: flex; }
  .brand img { width: 40px; height: 40px; }
  .brand-title { font-size: 17px; }
  .nav button { padding: 10px 16px; font-size: 13px; }
  .mobilebar { display: none; }
  .shell { padding: 24px; padding-bottom: 24px; display: grid; grid-template-columns: 240px 1fr; gap: 24px; max-width: var(--max); margin: 0 auto; }
  .sidebar { display: block; position: sticky; top: 74px; height: fit-content; }
  .side-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; }
  .side-nav button { text-align: left; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; color: var(--text2); transition: all .2s; }
  .side-nav button.active { background: var(--gold-dim); color: var(--gold2); font-weight: 600; }
  .side-nav button:active { background: rgba(255,255,255,.05); }
  .hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; min-height: 480px; }
  .hero-content { padding: 48px; }
  .hero h1 { font-size: 42px; }
  .hero-panel { padding: 48px 48px 48px 0; }
  .grid.two { grid-template-columns: repeat(2, 1fr); }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .gen-grid { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .level-card { display: grid; grid-template-columns: 160px 1fr auto; gap: 20px; align-items: center; }
  .level-card img { height: 100px; margin-bottom: 0; }
  .dashboard-hero h1 { font-size: 32px; }
}

/* ========== DESKTOP (1024px+) ========== */
@media (min-width: 1024px) {
  .shell { grid-template-columns: 280px 1fr; padding: 32px; gap: 32px; }
  .nav button { padding: 10px 20px; }
  .hero h1 { font-size: 52px; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .topbar:not(.landing-topbar) .desktop-nav { display: none !important; }
  .topbar:not(.landing-topbar) .mobile-menu { display: block !important; }
}

@media (min-width: 901px) {
  .topbar:not(.landing-topbar) .desktop-nav { display: flex !important; }
  .topbar:not(.landing-topbar) .mobile-menu { display: none !important; }
}

/* Анимация прогрузки */
.skeleton { background: linear-gradient(90deg, var(--card) 25%, var(--card-hover) 50%, var(--card) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
