:root {
  --text: #1e1b4b;
  --line: #e9d5ff;
  --primary: #7c3aed;
  --primary-dark: #5b21b6;
  --primary-light: #a78bfa;
  --bg-alt: #faf5ff;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--text); }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--primary); }
.container { width: min(1100px, 92%); margin: 0 auto; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.brand-logo { width: 32px; height: 32px; }
.hero { background: linear-gradient(130deg, #2e1065 0%, #4c1d95 55%, #5b21b6 100%); color: #fff; padding: 56px 0; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: start; }
h1 { margin: 8px 0 14px; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
.eyebrow { color: #c4b5fd; margin: 0; font-weight: 700; }
.lead { color: #ddd6fe; }
.checklist { padding-left: 18px; color: #ede9fe; }
.note { color: #c4b5fd; font-size: 14px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: 0 8px 24px rgba(91, 33, 182, 0.08); }
.form-card { color: var(--text); }
label { display: block; font-weight: 600; margin: 10px 0 6px; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid #d8b4fe; border-radius: 10px; font-size: 15px; }
input:focus, select:focus, textarea:focus { outline: 2px solid #c4b5fd; border-color: var(--primary); }
.checkbox {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  margin: 14px 0 4px;
  cursor: pointer;
}
.checkbox input[type="checkbox"] {
  width: 22px;
  height: 22px;
  min-width: 22px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}
.checkbox-text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}
.checkbox-text a { white-space: nowrap; }
@media (max-width: 520px) {
  .checkbox-text { white-space: normal; }
}
.btn { border: 0; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border-radius: 10px; padding: 11px 15px; font-weight: 700; display: inline-block; margin-top: 12px; cursor: pointer; }
.btn:hover { opacity: .92; }
.btn-small { margin: 0; padding: 9px 12px; font-size: 14px; }
.hp { display: none !important; }
.section { padding: 56px 0; }
.section.alt { background: var(--bg-alt); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.num { width: 30px; height: 30px; border-radius: 50%; background: #ede9fe; color: var(--primary-dark); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.faq details { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--primary-dark); }
.footer { background: #2e1065; color: #ddd6fe; padding: 34px 0; }
.footer h2 { color: #fff; }
.footer a { color: #c4b5fd; }

.chat-widget { position: fixed; right: 18px; bottom: 18px; z-index: 90; }
.chat-toggle { width: 58px; height: 58px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; font-size: 24px; cursor: pointer; box-shadow: 0 10px 28px rgba(217, 119, 6, .35); }
.chat-box { display: none; width: 360px; max-width: calc(100vw - 24px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 42px rgba(91, 33, 182, .2); overflow: hidden; margin-bottom: 10px; }
.chat-box.open { display: block; }
.chat-head { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding: 12px 14px; display: grid; gap: 2px; position: relative; }
.chat-head span { font-size: 12px; opacity: .95; }
.chat-close { position: absolute; right: 10px; top: 8px; border: 0; background: transparent; color: #fff; font-size: 24px; cursor: pointer; }
.chat-body { background: var(--bg-alt); max-height: 290px; overflow-y: auto; padding: 12px; }
.msg { border-radius: 12px; padding: 10px 12px; font-size: 14px; line-height: 1.35; margin-bottom: 8px; }
.msg.bot { background: #ede9fe; color: var(--text); }
.msg.user { background: var(--primary); color: #fff; margin-left: auto; max-width: 88%; }
.chat-input-wrap { padding: 10px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.chat-input-wrap button { border: 0; border-radius: 10px; background: var(--primary); color: #fff; padding: 10px 12px; cursor: pointer; }
.chat-options { padding: 10px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.chat-options button { border: 1px solid #d8b4fe; border-radius: 10px; background: #fff; padding: 9px 10px; text-align: left; cursor: pointer; }
.chat-options button:hover { border-color: var(--primary); background: #f5f3ff; }

@media (max-width: 980px) {
  .hero-grid, .grid-3 { grid-template-columns: 1fr; }
}
