﻿:root {
  --bg: #f5f6f3;
  --panel: #fff;
  --ink: #171a1f;
  --muted: #68707c;
  --line: #dfe3e7;
  --accent: #ff6600;
  --accent-dark: #e55a00;
  --soft: #fff4eb;
  --danger: #b42318;
  --shadow: 0 8px 24px rgba(24, 31, 38, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.app-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px;
  background: #17201d;
  color: #fff;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-clickable {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.brand-clickable:hover strong { color: #c8fff0; }
.brand-mark {
  width: 40px;
  height: 40px;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.brand strong, .brand span { display: block; }
.brand span { color: rgba(255,255,255,.65); font-size: 13px; }

.nav { display: grid; gap: 4px; }
.nav-item {
  border: 0; border-radius: 7px;
  padding: 10px 12px;
  background: transparent;
  color: rgba(255,255,255,.75);
  text-align: left;
}
.nav-item.active, .nav-item:hover { background: rgba(255,255,255,.1); color: #fff; }

.account-box {
  margin-top: auto;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  font-size: 13px;
}
.account-box span { color: rgba(255,255,255,.6); }
.account-box strong { display: block; margin-top: 4px; }
.auth-box { display: grid; gap: 6px; margin-top: 10px; }
.balance-box { display: grid; gap: 4px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); }
.balance-box strong { font-size: 1.1rem; color: #8fd3ff; }
.auth-link {
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px;
  padding: 8px 10px;
  background: rgba(255,255,255,.08);
  color: #fff;
  text-align: left;
}
.auth-link.muted { opacity: .7; }

.main { padding: 24px 28px; max-width: 900px; }
.view { display: none; }
.view.active { display: block; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.topbar.simple h1 { margin: 0; font-size: 26px; }
.back-btn { border: 0; background: none; color: var(--accent); font-weight: 650; padding: 0; }

.value-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}
.value-strip div { padding: 14px 16px; background: #fff; }
.value-strip span { color: var(--muted); font-size: 13px; }
.value-strip strong { display: block; margin-top: 4px; font-size: 22px; }

.action-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.hint { color: var(--muted); font-size: 14px; line-height: 1.45; margin: 0 0 16px; }
.inline-guide-link {
  border: 0;
  padding: 0;
  background: none;
  color: var(--accent);
  font-weight: 650;
  text-decoration: underline;
  cursor: pointer;
}

.primary-button, .ghost-button, .secondary-button, .danger-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
  padding: 0 16px;
  background: #fff;
}
.primary-button { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 650; }
.secondary-button { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; width: 100%; }
.ghost-button { background: transparent; }
.danger-button { background: #fff; border-color: var(--danger); color: var(--danger); margin-top: 16px; }
.full-width { width: 100%; }
.ghost-button.compact { min-height: 34px; font-size: 13px; padding: 0 10px; }

.product-list { display: grid; gap: 8px; }
.product-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}
.product-row:hover { border-color: var(--accent); }
.product-row img { width: 56px; height: 56px; object-fit: contain; background: #f7f8f6; border-radius: 6px; }
.product-row strong { display: block; }
.product-row span { color: var(--muted); font-size: 13px; }
.product-row .arrow { color: var(--muted); }

.editor-grid { display: grid; gap: 16px; }
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: var(--shadow);
}
.panel h2 { margin: 0 0 14px; font-size: 17px; }
.panel-head-inline { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.panel-head-inline h2 { margin: 0; }

.compact-form { display: grid; gap: 12px; }
.compact-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.compact-form input, .compact-form textarea, .compact-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
}

.scenario-list { display: grid; gap: 10px; }
.scenario-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  display: grid;
  gap: 8px;
}
.scenario-item label { font-size: 13px; font-weight: 600; display: grid; gap: 4px; }
.scenario-item input, .scenario-item textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  font-weight: 400;
}

/* Сцена — один столбец */
.app-shell.client-mode { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
.app-shell.client-mode .main { max-width: 640px; margin: 0 auto; }
.client-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: #17201d;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.client-bar .brand span { color: rgba(255,255,255,.65); font-size: 13px; }

.try-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: linear-gradient(90deg, #e55a00, #ff6600);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.try-bar .brand span { color: rgba(255,255,255,.8); font-size: 13px; }
.try-counter {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.try-intro {
  max-width: 640px;
  margin: 0 auto 8px;
  padding: 16px 20px;
  border-radius: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
}
.try-intro h2 { margin: 0 0 8px; font-size: 1.15rem; }
.try-intro p { margin: 0; color: var(--muted); line-height: 1.5; }
.try-demo-disclaimer {
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff8f0;
  border: 1px solid #ffd9b8;
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
}
.try-demo-disclaimer strong { color: #c44d00; }
.try-demo-disclaimer-result { margin: 14px 0 0; }
.try-pilot-badge {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8f5f0;
  color: #e55a00;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.try-how-btn {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid #ffe08a;
  background: #fff3c4;
  color: #5c4a00;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(255, 224, 138, .35);
  animation: try-how-pulse 2.5s ease-in-out infinite;
}
.try-how-btn:hover { background: #ffe999; }
@keyframes try-how-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 224, 138, .35); }
  50% { box-shadow: 0 0 0 6px rgba(255, 224, 138, .2); }
}
.try-workspace {
  display: grid;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}
.try-panel {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.try-workspace .step-label {
  margin-top: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.try-workspace .hint {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 14px;
}
#tryProductPanel .scene-catalog-row {
  margin-top: 4px;
}
#tryProductPanel .scene-catalog {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 8px 4px 12px;
}
#tryProductPanel .scene-catalog-item {
  flex: 0 0 168px;
  display: block;
}
#tryProductPanel .scene-catalog-item img {
  width: 100%;
  height: 118px;
  object-fit: cover;
}
#tryProductPanel .scene-catalog-item .cat-name {
  padding: 10px 12px 4px;
  font-size: 14px;
}
#tryProductPanel .scene-catalog-item .cat-price {
  padding: 0 12px 10px;
  font-size: 13px;
}
.try-upload-zone {
  min-height: 140px;
  padding: 20px;
  font-size: 16px;
  border-radius: 12px;
}
.try-photo-preview {
  margin-top: 12px;
  padding: 10px;
}
.try-photo-preview img {
  width: 100%;
  max-width: 320px;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
}
.try-scenario-list.ref-scenario-grid {
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
}
.try-scenario-list .ref-scenario-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 0;
  min-height: 0;
}
.try-scenario-list .ref-scenario-card img {
  width: 140px;
  height: 100px;
  aspect-ratio: auto;
  object-fit: cover;
}
.try-scenario-list .ref-scenario-card .ref-name {
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.35;
}
.try-generate-btn {
  margin-top: 4px;
  padding: 16px 20px;
  font-size: 17px;
}
.try-workspace-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.try-result-section {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px dashed var(--line);
}
.try-how-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.try-how-modal.hidden { display: none; }
.try-how-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 12, .55);
}
.try-how-card {
  position: relative;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  padding: 24px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0,0,0,.2);
}
.try-how-lead { margin-top: 0; }
.try-how-steps {
  margin: 16px 0 20px;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.try-how-steps li {
  padding: 12px;
  border-radius: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
}
.try-how-steps strong { display: block; margin-bottom: 4px; }
.try-how-steps span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.try-feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.try-feedback-modal.hidden { display: none; }
.try-feedback-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 12, .6);
}
.try-feedback-card {
  position: relative;
  max-width: 480px;
  width: 100%;
  padding: 24px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.try-feedback-vote { margin: 12px 0 16px; }
.try-feedback-lead { margin-top: 0; line-height: 1.5; }
.try-feedback-telegram {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
}
.try-feedback-qr {
  flex-shrink: 0;
  width: 112px;
  height: 112px;
  border-radius: 8px;
  background: #fff;
}
.try-feedback-telegram-copy { flex: 1; min-width: 0; }
.try-feedback-telegram-copy .hint { margin: 6px 0 0; font-size: 12px; }
.try-feedback-channels {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.try-feedback-skip { width: 100%; margin-top: 4px; }
.lira-chat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1100;
}
.lira-chat.hidden { display: none; }
.lira-chat-fab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6600, #e55a00);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(14, 78, 64, .35);
}
.lira-chat-fab.open { opacity: .85; }
.lira-chat-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(340px, calc(100vw - 40px));
  max-height: 420px;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
  overflow: hidden;
}
.lira-chat-panel.hidden { display: none; }
.lira-chat-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  background: #e8f5f0;
  border-bottom: 1px solid var(--line);
}
.lira-chat-head span { display: block; font-size: 12px; color: var(--muted); }
.lira-chat-close {
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}
.lira-chat-messages {
  flex: 1;
  min-height: 120px;
  max-height: 200px;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lira-msg {
  max-width: 92%;
  padding: 8px 11px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
}
.lira-msg-bot {
  align-self: flex-start;
  background: var(--soft);
  border: 1px solid var(--line);
}
.lira-msg-user {
  align-self: flex-end;
  background: #d8efe6;
  border: 1px solid #b8ddd0;
}
.lira-quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 12px 8px;
}
.lira-quick-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  background: #fff;
  cursor: pointer;
}
.lira-quick-btn:hover { border-color: var(--accent); }
.lira-chat-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
}
.lira-chat-form input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.lira-chat-form .primary-button { padding: 10px 14px; white-space: nowrap; }
@media (max-width: 800px) {
  .try-workspace-grid { grid-template-columns: 1fr; }
  .try-how-btn { font-size: 12px; padding: 8px 12px; }
  .try-bar { flex-wrap: wrap; }
}
.try-limit-msg {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff8e6;
  border: 1px solid #f5d98a;
  color: #7a5d00;
  font-size: 14px;
}
.primary-button.disabled,
.primary-button:disabled { opacity: .5; cursor: not-allowed; }
.upload-zone:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

.scene-step-hint { margin: 0 0 8px; }
.scene-photo-actions { margin-bottom: 8px; }
.scene-photo-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.scene-photo-preview img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
}
.scenario-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  resize: vertical;
  min-height: 88px;
}
.scenario-chips-label { margin: 8px 0 6px; font-size: 13px; }
.scenario-chips { margin-bottom: 10px; }

.try-wizard-block { display: grid; gap: 14px; }
.try-back-btn { justify-self: start; margin-bottom: 4px; }
.step-label-sub { margin-top: 4px; }

.scene-flow { display: grid; gap: 14px; max-width: 720px; margin: 0 auto; }
.step-label { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.step-label .required { color: var(--danger); }
.step-block.locked { opacity: .45; pointer-events: none; }
.step-block.locked .lead-form { pointer-events: none; }

.product-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.product-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: #fff;
  font-size: 14px;
}
.product-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.ref-scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 8px 0 14px;
}
.ref-scenario-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  border: 2px solid #e2e8e4;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ref-scenario-card:hover { border-color: #ffb380; }
.ref-scenario-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.15);
}
.ref-scenario-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.ref-scenario-card .ref-name {
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #1a2e28;
}
@media (max-width: 640px) {
  .ref-scenario-grid { grid-template-columns: 1fr; }
}

.scene-catalog-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.scene-catalog {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 12px;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.scene-catalog::-webkit-scrollbar { height: 6px; }
.scene-catalog::-webkit-scrollbar-thumb { background: #c5cdc8; border-radius: 3px; }
.scene-catalog-item {
  flex: 0 0 148px;
  scroll-snap-align: start;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 0;
  background: #fff;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.scene-catalog-item:hover { border-color: #a8c4bb; }
.scene-catalog-item.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.15);
}
.scene-catalog-item img {
  width: 100%;
  height: 104px;
  object-fit: cover;
  display: block;
  background: var(--soft);
}
.scene-catalog-item .cat-name {
  display: block;
  padding: 8px 10px 2px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
}
.scene-catalog-item .cat-price {
  display: block;
  padding: 0 10px 10px;
  font-size: 12px;
  color: var(--muted);
}
.catalog-scroll-btn {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
}
.catalog-scroll-btn:hover { border-color: var(--accent); color: var(--accent); }

.generation-list { display: grid; gap: 10px; }
.generation-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.generation-row strong { font-size: 15px; }
.generation-row span { color: var(--muted); font-size: 13px; }
.generation-row time { grid-column: 2; grid-row: 1 / span 2; font-size: 12px; color: var(--muted); white-space: nowrap; }
.generation-row .gen-cost { color: var(--accent-dark); font-weight: 650; }

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.settings-grid .panel-wide { grid-column: 1 / -1; }
.settings-dl { margin: 0; }
.settings-dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.settings-dl > div:last-child { border-bottom: 0; }
.settings-dl dt { margin: 0; color: var(--muted); font-size: 14px; }
.settings-dl dd { margin: 0; font-weight: 600; text-align: right; }
.settings-dl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}
.settings-balance {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 750;
  color: var(--accent-dark);
}
.sidebar-settings-link { margin-top: 8px; }
.sidebar-profile-link { margin-top: 8px; }

.field-label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.field-label input { font-weight: 400; color: var(--ink); }
.field-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.field-hint a { color: var(--accent); }

.form-message {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
}
.form-message.error {
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: #b42318;
}
.form-message.success {
  background: #ecfdf3;
  border: 1px solid #abefc6;
  color: #067647;
}
.form-message.hidden { display: none !important; }

.profile-form { display: grid; gap: 10px; }
.profile-grid .mono { font-family: ui-monospace, monospace; font-size: 12px; word-break: break-all; }
.support-email { margin: 8px 0; font-size: 18px; font-weight: 700; }
.support-email a { color: var(--accent-dark); text-decoration: none; }
.support-email a:hover { text-decoration: underline; }

.toast-root {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 300000;
  display: grid;
  gap: 8px;
  max-width: min(360px, calc(100vw - 32px));
}
.toast {
  padding: 12px 14px;
  border-radius: 10px;
  background: #17201d;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 12px 32px rgba(0,0,0,.2);
  animation: toast-in .2s ease;
}
.toast.error { background: #7a271a; }
.toast.success { background: #085d3a; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  .settings-grid { grid-template-columns: 1fr; }
  .settings-dl-grid { grid-template-columns: 1fr; }
  .catalog-scroll-btn { display: none; }
}

.upload-zone {
  display: grid;
  place-items: center;
  min-height: 80px;
  border: 2px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  position: relative;
  cursor: pointer;
}
.upload-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.full-select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
}

.status-text { margin: 0; color: var(--muted); font-size: 14px; text-align: center; }

.scene-canvas {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16/10;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #dde2df;
}
.scene-canvas-large { aspect-ratio: 4/3; }
.scene-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.placement-layer { position: absolute; inset: 0; pointer-events: none; }
.placed-product {
  position: absolute;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.35));
}
.scene-canvas.generated .placed-product { filter: drop-shadow(0 14px 20px rgba(0,0,0,.4)); }

.feedback-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feedback-btn {
  min-height: 48px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  font-weight: 650;
}
.feedback-btn.selected { border-color: var(--accent); background: var(--soft); }

.lead-form { display: grid; gap: 10px; }
.lead-form input, .lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}
.lead-form button:disabled { opacity: .5; cursor: not-allowed; }

.lead-list { display: grid; gap: 10px; }
.lead-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  gap: 6px;
}
.lead-card div { display: flex; justify-content: space-between; gap: 10px; }
.lead-card span, .lead-card small, .lead-card time { color: var(--muted); font-size: 13px; }
.lead-card p { margin: 0; font-weight: 650; }

.empty-state {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  background: #fff;
}

@media (max-width: 760px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { padding: 14px; }
  .nav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; }
  .account-box { display: none; }
  .main { padding: 16px; }
  .feedback-row { grid-template-columns: 1fr; }
  .client-bar { flex-wrap: wrap; }
}

/* Интерактивный гид */
.guide-root {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: auto;
}
.guide-root.hidden { display: none !important; }
.guide-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 12, 0.62);
}
.guide-spotlight {
  position: fixed;
  display: none;
  border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(10, 14, 12, 0.62);
  border: 2px solid #3dd6a8;
  background: transparent;
  pointer-events: none;
  z-index: 1;
  transition: top 0.2s, left 0.2s, width 0.2s, height 0.2s;
}
.guide-card {
  position: fixed;
  z-index: 10;
  width: min(380px, calc(100vw - 24px));
  padding: 18px 20px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
}
.guide-progress { display: flex; gap: 5px; margin-bottom: 12px; }
.guide-dot { flex: 1; height: 4px; border-radius: 99px; background: #dfe3e7; }
.guide-dot.active { background: var(--accent); }
.guide-dot.done { background: #9fd4c8; }
.guide-step-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.guide-card h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.2; }
.guide-card p { margin: 0 0 10px; font-size: 15px; line-height: 1.5; }
.guide-why {
  font-size: 13px !important;
  color: var(--muted) !important;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--soft);
  margin-bottom: 0 !important;
}
.guide-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
}
.guide-btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 650;
  background: #fff;
  cursor: pointer;
}
.guide-btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.guide-btn-muted { color: var(--muted); }
.guide-btn:disabled { opacity: 0.4; cursor: default; }
/* Не поднимать цель выше гида — иначе карточка шага оказывается под формой */
.guide-target-active {
  position: relative;
  outline: 2px solid #3dd6a8;
  outline-offset: 4px;
}

.guide-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2147482000;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(22, 114, 93, 0.45);
  cursor: pointer;
}
.guide-fab:hover { background: var(--accent-dark); }

body.guide-active .lira-chat,
body.guide-active .auth-modal,
body.guide-active .try-feedback-modal,
body.guide-active .try-how-modal,
body.guide-active .toast-root {
  visibility: hidden !important;
  pointer-events: none !important;
}
body.guide-active .guide-root,
body.guide-active .guide-fab {
  visibility: visible !important;
  pointer-events: auto !important;
}

.card-agent-root {
  position: fixed;
  inset: 0;
  z-index: 2147482500;
  display: grid;
  place-items: center;
  padding: 16px;
}
.card-agent-root.hidden { display: none !important; }
.card-agent-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 12, 0.65);
}
.card-agent-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,.28);
}
.card-agent-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.card-agent-head span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.card-agent-close {
  border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted);
}
.card-agent-log {
  max-height: 120px;
  overflow: auto;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 13px;
  margin-bottom: 14px;
}
.card-agent-log-line + .card-agent-log-line { margin-top: 6px; }
.card-agent-body label { display: grid; gap: 6px; margin-bottom: 12px; font-size: 14px; }
.card-agent-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.card-agent-variants { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.card-agent-variant {
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  background: #fff;
  cursor: pointer;
  text-align: center;
}
.card-agent-variant img { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; }
.card-agent-variant span { display: block; font-size: 12px; margin-top: 6px; }
.card-agent-pay { padding: 12px; border-radius: 10px; background: #fff8e6; border: 1px solid #f5d08a; margin-top: 10px; }
.card-agent-prompt { font-size: 12px; max-height: 80px; overflow: auto; }
body.card-agent-active .lira-chat { visibility: hidden; pointer-events: none; }

.guide-launch {
  width: 100%;
  margin-top: 8px;
  border: 1px solid rgba(61, 214, 168, 0.5);
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(61, 214, 168, 0.12);
  color: #c8fff0;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}
.guide-launch:hover { background: rgba(61, 214, 168, 0.22); }
.guide-launch.client {
  width: auto;
  margin: 0;
  padding: 8px 14px;
  font-size: 13px;
  white-space: nowrap;
}

/* ── Landing (studio style) ── */
body.landing-mode {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 102, 0, 0.14), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(23, 32, 29, 0.08), transparent 55%),
    #f7f4ef;
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

.landing {
  min-height: 100vh;
  color: #1a1c19;
}

.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 40px;
  background: rgba(247, 244, 239, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26, 28, 25, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.landing-logo .brand-mark {
  width: 40px;
  height: 40px;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}
.landing-logo strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.landing-logo span {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.15;
}
.landing-tagline {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(26, 28, 25, 0.55);
  max-width: 28ch;
  line-height: 1.25;
}
.landing-logo.compact .brand-mark { width: 32px; height: 32px; }
.landing-logo.compact .landing-tagline {
  font-size: 10px;
  max-width: 36ch;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.landing-nav-link {
  padding: 8px 12px;
  color: rgba(26, 28, 25, 0.62);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
}
.landing-nav-link:hover { color: #1a1c19; background: rgba(255, 102, 0, 0.08); }
.landing-nav-btn { min-height: 40px; font-size: 14px; border-radius: 999px; }

.landing-hero {
  max-width: 920px;
  margin: 0 auto;
  padding: 56px 32px 36px;
  text-align: left;
}
.landing-brand-mark {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #1a1c19;
}
.landing-brand-tagline {
  margin: 10px 0 22px;
  font-size: clamp(15px, 2.2vw, 18px);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #c24e00;
  max-width: 28em;
  line-height: 1.35;
}
.landing-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 16ch;
}
.landing-lead {
  margin: 0 0 28px;
  color: rgba(26, 28, 25, 0.68);
  font-size: 18px;
  line-height: 1.55;
  max-width: 38em;
}
.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
}
.landing-cta {
  min-height: 48px;
  padding: 0 22px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}

/* Orbit showcase: one source photo + 3 circular options */
.landing-orbit {
  width: 100%;
  margin: 0 0 8px;
  padding: 48px 24px 56px;
  border-top: 1px solid rgba(26, 28, 25, 0.08);
  border-bottom: 1px solid rgba(26, 28, 25, 0.08);
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(255, 102, 0, 0.07), transparent 62%),
    linear-gradient(180deg, #ece8e1 0%, #f7f4ef 100%);
  position: relative;
  overflow: hidden;
}
.landing-orbit-intro {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
}
.landing-orbit-kicker {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c24e00;
}
.landing-orbit-title {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 36px);
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #1a1c19;
}

.landing-orbit-stage {
  --orbit-size: min(92vw, 640px);
  --center-size: calc(var(--orbit-size) * 0.46);
  --node-size: calc(var(--orbit-size) * 0.22);
  --radius: calc(var(--orbit-size) * 0.36);
  position: relative;
  width: var(--orbit-size);
  height: var(--orbit-size);
  margin: 0 auto;
}

.landing-orbit-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--center-size);
  height: var(--center-size);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  overflow: hidden;
  z-index: 2;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 40px rgba(26, 28, 25, 0.18);
  background: #1a1c19;
}
.landing-orbit-center img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.landing-orbit-center-label {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(26, 28, 25, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

.landing-orbit-ring {
  position: absolute;
  inset: 0;
  z-index: 3;
  animation: landing-orbit-spin 36s linear infinite;
}
.landing-orbit-stage.is-paused .landing-orbit-ring {
  animation-play-state: paused;
}
@keyframes landing-orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.landing-orbit-node {
  --base-angle: calc(var(--orbit-i) * 120deg - 90deg);
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--node-size);
  height: var(--node-size);
  margin: 0;
  padding: 0;
  border: 3px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  background: #1a1c19;
  transform:
    translate(-50%, -50%)
    rotate(var(--base-angle))
    translate(var(--radius))
    rotate(calc(-1 * var(--base-angle)));
  box-shadow: 0 10px 28px rgba(26, 28, 25, 0.2);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.25s ease;
  z-index: 1;
}
/* Counter-rotate content so photos stay upright while ring spins */
.landing-orbit-node img,
.landing-orbit-node-hint,
.landing-orbit-node-tag {
  animation: landing-orbit-spin-fix 36s linear infinite;
}
.landing-orbit-stage.is-paused .landing-orbit-node img,
.landing-orbit-stage.is-paused .landing-orbit-node-hint,
.landing-orbit-stage.is-paused .landing-orbit-node-tag {
  animation-play-state: paused;
}
@keyframes landing-orbit-spin-fix {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

.landing-orbit-node img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform-origin: center center;
}
.landing-orbit-node-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 28, 25, 0.55);
  color: #fff;
  font-size: clamp(12px, 2vw, 15px);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  transform-origin: center center;
}
.landing-orbit-node-tag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  margin: 0 auto;
  width: max-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1a1c19;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
  transform-origin: center center;
}

.landing-orbit-node:hover,
.landing-orbit-node:focus-visible,
.landing-orbit-node.is-hot {
  z-index: 5;
  border-color: #ff6600;
  box-shadow: 0 16px 36px rgba(26, 28, 25, 0.28);
  transform:
    translate(-50%, -50%)
    rotate(var(--base-angle))
    translate(var(--radius))
    rotate(calc(-1 * var(--base-angle)))
    scale(1.28);
}
.landing-orbit-node:hover .landing-orbit-node-hint,
.landing-orbit-node:focus-visible .landing-orbit-node-hint,
.landing-orbit-node.is-hot .landing-orbit-node-hint {
  opacity: 1;
}
.landing-orbit-node:hover .landing-orbit-node-tag,
.landing-orbit-node:focus-visible .landing-orbit-node-tag,
.landing-orbit-node.is-hot .landing-orbit-node-tag {
  opacity: 0;
}
.landing-orbit-node:focus-visible {
  outline: 2px solid #ff6600;
  outline-offset: 4px;
}

.landing-orbit-detail {
  max-width: 980px;
  margin: 36px auto 0;
  padding: 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(26, 28, 25, 0.1);
  position: relative;
}
.landing-orbit-detail.hidden { display: none !important; }
.landing-orbit-detail-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: none;
  font-size: 28px;
  line-height: 1;
  color: rgba(26, 28, 25, 0.45);
  cursor: pointer;
}
.landing-orbit-detail-close:hover { color: #1a1c19; }
.landing-orbit-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: center;
}
.landing-orbit-detail-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c24e00;
}
.landing-orbit-detail-product {
  margin: 0 0 22px;
  width: 220px;
}
.landing-orbit-detail-product img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 24px;
  background: #141614;
  border: 1px solid rgba(26, 28, 25, 0.1);
}
.landing-orbit-detail-product figcaption {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(26, 28, 25, 0.78);
  line-height: 1.25;
}
.landing-orbit-detail-copy h3 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.03em;
  font-weight: 800;
}
.landing-orbit-detail-text {
  margin: 0 0 14px;
  color: rgba(26, 28, 25, 0.72);
  font-size: 16px;
  line-height: 1.55;
}
.landing-orbit-detail-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 102, 0, 0.08);
  color: rgba(26, 28, 25, 0.78);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}
.landing-orbit-detail-result {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #141614;
  position: relative;
}
.landing-orbit-detail-result img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.landing-orbit-detail-result figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 102, 0, 0.94);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .landing-orbit-ring,
  .landing-orbit-node img,
  .landing-orbit-node-hint,
  .landing-orbit-node-tag {
    animation: none !important;
  }
}

@media (max-width: 900px) {
  .landing-orbit { padding: 36px 16px 44px; }
  .landing-orbit-stage {
    --orbit-size: min(96vw, 420px);
  }
  .landing-orbit-detail-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .landing-orbit-detail { margin-top: 28px; padding: 20px 16px 16px; }
}

.landing-section {
  max-width: 920px;
  margin: 0 auto;
  padding: 56px 32px;
}
.landing-section-alt {
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(26, 28, 25, 0.08);
  border-bottom: 1px solid rgba(26, 28, 25, 0.08);
  max-width: none;
}
.landing-section-alt > h2,
.landing-section-alt > .landing-section-lead,
.landing-section-alt > .landing-steps,
.landing-section-alt > .landing-soft-link-wrap {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.landing-section h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.03em;
  font-weight: 800;
}
.landing-section-lead {
  margin: 0 0 28px;
  color: rgba(26, 28, 25, 0.66);
  font-size: 17px;
  line-height: 1.55;
  max-width: 40em;
}

.landing-essence-list,
.landing-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  counter-reset: step;
}
.landing-essence-list li,
.landing-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  border: 1px solid rgba(26, 28, 25, 0.08);
}
.landing-essence-list li::before,
.landing-steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  grid-row: span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #1a1c19;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}
.landing-essence-list li strong,
.landing-steps li strong { font-size: 17px; }
.landing-essence-list li span,
.landing-steps li span {
  grid-column: 2;
  color: rgba(26, 28, 25, 0.64);
  font-size: 15px;
  line-height: 1.5;
}

.landing-audience {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.landing-audience li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(26, 28, 25, 0.1);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.landing-soft-link-wrap { margin-top: 22px; }
.landing-soft-link {
  border: 0;
  background: none;
  padding: 0;
  color: #c24e00;
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.landing-footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 14px !important;
}

.landing-lead-form {
  max-width: 460px;
  margin: 24px auto 0;
  display: grid;
  gap: 12px;
  text-align: left;
}
.landing-lead-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
.landing-lead-form input,
.landing-lead-form textarea,
.lira-first-card input,
.lira-first-card select,
.lira-first-card textarea {
  width: 100%;
  border: 1px solid rgba(26, 28, 25, 0.14);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  font: inherit;
}

.landing-footer {
  padding: 40px 32px 56px;
  text-align: center;
  color: rgba(26, 28, 25, 0.58);
  font-size: 13px;
}
.landing-footer .landing-logo { justify-content: center; margin-bottom: 8px; }
.landing-footer p { margin: 0; }
.landing-footer a { color: #c24e00; text-decoration: none; }
.landing-footer a:hover { text-decoration: underline; }
.landing-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  text-align: center;
  margin: 20px 0 8px;
}
.landing-contact-hint { text-align: center; max-width: 36em; margin: 18px auto 0; }
.hint-inline { font-weight: 400; color: var(--muted); font-size: 0.85em; }

.lira-first-card {
  margin: 0 12px 10px;
  padding: 12px;
  border-radius: 12px;
  background: #f7f4ef;
  border: 1px solid rgba(26, 28, 25, 0.1);
  display: grid;
  gap: 8px;
}
.lira-first-card label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.lira-first-result {
  margin-top: 6px;
  padding: 10px;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  line-height: 1.45;
}
.lira-first-result strong { display: block; margin-bottom: 4px; }

.product-assist-panel { border: 1px solid rgba(99, 102, 241, .25); background: linear-gradient(180deg, rgba(99, 102, 241, .06), transparent); }
.product-assist-panel .hint:first-of-type { margin-top: 0; }
.product-assist-refs { margin-top: 12px; display: grid; gap: 8px; }
.product-assist-ref-item { padding: 10px 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--border); font-size: 13px; }
.product-assist-ref-item strong { display: block; margin-bottom: 4px; }

.sidebar-user {
  display: block;
  margin-top: 10px;
  color: rgba(255,255,255,.55);
  font-size: 12px;
  word-break: break-all;
}

.try-collab-inline {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
}
.try-collab-inline.hidden { display: none; }
.try-collab-lead { margin-top: 0; line-height: 1.5; }
.try-collab-telegram {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: start;
  margin: 10px 0 12px;
}
.try-collab-qr-wrap { display: grid; place-items: center; }
.try-collab-qr {
  width: 112px;
  height: 112px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
}
.try-collab-telegram-copy .hint { margin-top: 8px; }
.try-collab-telegram-copy a.secondary-button { display: block; }

/* ── Auth modal ── */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: grid;
  place-items: center;
  padding: 20px;
}
.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 26, 31, 0.55);
}
.auth-modal-card {
  position: relative;
  width: min(420px, 100%);
  padding: 28px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0,0,0,.2);
}
.auth-modal-close {
  position: absolute;
  top: 12px; right: 14px;
  border: 0; background: none;
  font-size: 28px; line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.auth-modal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.auth-modal-brand .brand-mark {
  width: 36px;
  height: 36px;
  display: block;
  border-radius: 9px;
  object-fit: cover;
}
.auth-box-modal {
  display: grid;
  gap: 10px;
}
.auth-box-modal input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
}
.auth-link-inline {
  border: 0;
  background: none;
  padding: 4px 0;
  color: var(--accent);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.auth-link-inline.muted { color: var(--muted); }

html { scroll-behavior: smooth; }

@media (max-width: 900px) {
  .landing-hero { padding: 36px 20px 28px; }
  .landing-section { padding: 44px 20px; }
  .landing-header { padding: 12px 16px; }
  .landing-nav-link { display: none; }
  .landing-hero h1 { max-width: none; }
  .landing-tagline { display: none; }
}
