:root {
  --ink: #101218;
  --muted: #667085;
  --line: #e6e8ee;
  --soft: #f6f7f9;
  --brand: #ff3f1f;
  --green: #0b8f61;
  --shadow: 0 20px 55px rgba(16, 18, 24, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: #eef1f5; color: var(--ink); font-size: 14px; line-height: 1.45; }
a { text-decoration: none; color: inherit; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 12px; font: inherit; background: #fff; }
textarea { min-height: 120px; resize: vertical; }
label { font-weight: 800; display: grid; gap: 7px; }

.setup { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.setup-card { width: min(820px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 28px; }
.setup-card.small { width: min(520px, 100%); }
.brand { display: flex; gap: 14px; align-items: center; margin-bottom: 24px; }
.brand span, .logo span { width: 42px; height: 42px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 900; }
.brand h1 { margin: 0; font-size: 28px; }
.brand p { margin: 3px 0 0; color: var(--muted); }
.requirements { border: 1px solid var(--line); border-radius: 9px; padding: 16px; margin-bottom: 18px; }
.requirements h2, .grid-form h2 { margin: 0 0 12px; font-size: 18px; }
.requirements div { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 10px 0; }
.requirements div:first-of-type { border-top: 0; }
.ok { color: var(--green); font-weight: 900; }
.bad { color: var(--brand); font-weight: 900; }
.grid-form { display: grid; gap: 14px; }

.btn { border: 1px solid var(--line); border-radius: 8px; background: #fff; min-height: 43px; padding: 0 16px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.full { width: 100%; }
.layout-calm-studio { --brand: #7d6bf2; --green: #5f8f75; }
.layout-signal-webinar { --brand: #3157ff; --green: #7b61ff; }
.layout-prime-rental { --brand: #c56b2c; --green: #87613f; }
.notice { border-radius: 9px; padding: 13px 14px; margin: 16px 24px; }
.notice p { margin: 0; }
.ok-box { background: #e9fbf4; color: #087a50; }
.error-box { background: #fff0ed; color: #b42318; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 245px 1fr; }
.shell aside { background: #111318; color: #fff; padding: 22px 18px; }
.logo { display: flex; gap: 12px; align-items: center; margin-bottom: 30px; }
.shell nav { display: grid; gap: 8px; }
.shell nav a { padding: 12px; border-radius: 8px; color: rgba(255,255,255,.72); font-weight: 850; }
.shell nav a.active { background: rgba(255,255,255,.10); color: #fff; }
.shell main { min-width: 0; }
.shell header { background: #fff; border-bottom: 1px solid var(--line); padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.shell header h1 { margin: 0; font-size: 24px; }
.shell header p { margin: 4px 0 0; color: var(--muted); }
.header-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.grid { padding: 24px; display: grid; grid-template-columns: minmax(320px,470px) 1fr; gap: 18px; }
.wizard-grid { grid-template-columns: minmax(320px,560px) 1fr; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: 0 1px 0 rgba(16,18,24,.03); display: grid; gap: 14px; margin: 0 24px 24px; }
.grid .card { margin: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card h2 { font-size: 18px; margin: 0; }
.pill { border-radius: 999px; background: #f1f3f7; color: var(--muted); padding: 5px 10px; font-size: 12px; font-weight: 900; }
.pill.green { background: #e9fbf4; color: #087a50; }
.preview { min-height: 420px; background: linear-gradient(180deg,#fff,#f8fafc); }
.preview span, .hero span { color: var(--brand); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 900; }
.preview h3 { font-size: clamp(34px,5vw,64px); line-height: 1; margin: 12px 0; }
.preview p { font-size: 18px; color: #475467; }
.preview b { background: var(--brand); color: #fff; border-radius: 8px; padding: 13px 18px; width: max-content; }
.lead { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.lead em { font-style: normal; color: var(--green); font-weight: 900; }
.muted { color: var(--muted); }
.generator-info ol { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.wizard textarea { min-height: 150px; }
.editor-canvas { padding: 24px; }
.prompt-edit { margin-top: 24px; }
.prompt-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.edit-hint { margin: 0 0 14px; color: var(--muted); font-weight: 800; }
.editable-site { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
[contenteditable="true"] { outline: 2px dashed rgba(255,63,31,.28); outline-offset: 5px; border-radius: 4px; transition: outline-color .15s ease, background .15s ease; }
[contenteditable="true"]:focus { outline-color: var(--brand); background: rgba(255,63,31,.06); }
.editor-page .hero { min-height: 560px; }

.public { background: #fff; }
.public-nav { height: 76px; padding: 0 min(6vw,72px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font-weight: 900; }
.hero { min-height: calc(100vh - 76px); padding: 70px min(6vw,72px); display: grid; grid-template-columns: 1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(42px,7vw,86px); line-height: .96; margin: 16px 0; }
.hero p { font-size: 21px; color: #475467; max-width: 680px; }
.hero a { display: inline-flex; background: var(--brand); color: #fff; border-radius: 8px; padding: 15px 22px; font-weight: 900; }
.visual { min-height: 420px; border-radius: 14px; background: radial-gradient(circle at 20% 20%,rgba(255,63,31,.18),transparent 30%),radial-gradient(circle at 85% 75%,rgba(31,79,216,.16),transparent 32%),#f1f4f9; display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; padding: 24px; place-items: center; }
.visual b { background: #fff; border-radius: 10px; padding: 35px 20px; width: 100%; text-align: center; box-shadow: var(--shadow); }
.trust-strip { margin: 0 min(6vw,72px); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; display: flex; justify-content: space-between; gap: 14px; font-weight: 900; background: #fff; }
.services, .faq-section { padding: 40px min(6vw,72px); }
.services { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.services article, .faq-section article { border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.faq-section h2 { font-size: 36px; margin: 0 0 18px; }
.faq-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.contact { padding: 60px min(6vw,72px); background: #f8fafc; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact h2 { font-size: 36px; margin: 0 0 10px; }
.contact form { display: grid; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }

@media (max-width: 850px) {
  .shell, .grid, .hero, .services, .contact, .faq-grid { display: block; }
  .shell aside { display: none; }
  .shell header { align-items: flex-start; flex-direction: column; }
  .grid, .hero, .services, .contact, .faq-section { padding: 18px; }
  .card { margin: 0 18px 18px; }
  .visual { margin-top: 26px; min-height: 260px; }
  .lead { grid-template-columns: 1fr; }
  .hero h1 { font-size: 42px; }
  .trust-strip { margin: 18px; display: grid; }
  .prompt-row { display: block; }
  .prompt-row .btn { width: 100%; margin-top: 10px; }
  .services article, .faq-section article { margin-bottom: 14px; }
}
