/* DELO AI Mini App. Тёмная тема по умолчанию, светлая — если Telegram/система в светлом режиме. */
:root {
  --bg: #080c1d; --bg-glow: rgba(108, 92, 255, .32); --card: #11172e; --card2: #182042; --input: #0d1328;
  --text: #eef0ff; --muted: #97a0c8; --line: rgba(255, 255, 255, .08); --accent: #7c6cff; --accent2: #a78bfa;
  --grad: linear-gradient(135deg, #6c5cff 0%, #9b5cff 100%); --ok: #22c55e; --warn: #f59e0b; --danger: #f43f5e;
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, .8); --radius: 20px; --tab-h: 64px; --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f3f4fb; --bg-glow: rgba(108, 92, 255, .16); --card: #ffffff; --card2: #f1f2fa; --input: #ffffff;
  --text: #121530; --muted: #676d92; --line: rgba(18, 21, 48, .09); --accent: #5b4cf0; --accent2: #7c3aed;
  --shadow: 0 16px 36px -26px rgba(40, 44, 90, .45);
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  background: radial-gradient(900px 420px at 85% -120px, var(--bg-glow), transparent 70%),
              radial-gradient(700px 380px at -10% 10%, rgba(46, 144, 250, .12), transparent 70%), var(--bg);
  background-attachment: fixed; color: var(--text); min-height: 100vh;
  font: 15px/1.45 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
svg { display: block; }
.view { max-width: 640px; margin: 0 auto; padding: 14px 16px calc(var(--tab-h) + var(--safe-b) + 28px); }
.view.has-cta { padding-bottom: calc(var(--tab-h) + var(--safe-b) + 104px); }
.fade-in { animation: fadeIn .28s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- шапка ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 14px; }
.brand { display: flex; align-items: center; gap: 10px; }
.logo { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); display: grid; place-items: center;
  color: #fff; font-weight: 900; font-size: 13px; letter-spacing: .4px; box-shadow: 0 8px 20px -8px var(--accent); }
.brand b { font-size: 18px; letter-spacing: .3px; display: block; line-height: 1.1; }
.brand small { color: var(--muted); font-size: 12px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text);
  display: grid; place-items: center; cursor: pointer; }

.page-head { display: flex; align-items: center; gap: 10px; margin: 2px 0 16px; }
.page-head h1 { margin: 0; font-size: 21px; letter-spacing: -.3px; line-height: 1.2; }
.page-head small { color: var(--muted); display: block; font-size: 13px; }
.back { flex: none; }
.tg .back { display: none; }

/* ---------- герой ---------- */
.hero { position: relative; overflow: hidden; border-radius: 26px; padding: 22px 18px 20px; margin-bottom: 14px;
  background: linear-gradient(150deg, #241a6b 0%, #1a1450 45%, #0f1640 100%); color: #fff;
  border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 30px 60px -30px rgba(108, 92, 255, .7); }
.hero::before { content: ""; position: absolute; inset: -40% -30% auto auto; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 92, 255, .55), transparent 65%); }
.hero::after { content: ""; position: absolute; left: -60px; bottom: -90px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 144, 250, .35), transparent 65%); }
.hero > * { position: relative; z-index: 1; }
.hero h1 { margin: 0 0 12px; font-size: 25px; line-height: 1.15; letter-spacing: -.5px; max-width: 64%; }
.hero h1 span { background: linear-gradient(90deg, #b9a8ff, #7dd3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; max-width: 62%; color: #dcd8ff; }
.hero li { display: flex; gap: 8px; align-items: center; }
.hero li i { width: 18px; height: 18px; border-radius: 50%; background: rgba(34, 197, 94, .2); color: #4ade80; display: grid; place-items: center; font-style: normal; font-size: 11px; flex: none; }
.mascot { position: absolute; right: -6px; top: 18px; width: 42%; max-width: 190px; z-index: 1; filter: drop-shadow(0 18px 30px rgba(108, 92, 255, .55)); animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-7px); } }

/* ---------- поиск ---------- */
.search { position: relative; margin: 0 0 14px; }
.search input { width: 100%; height: 50px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--text);
  font: inherit; padding: 0 14px 0 46px; outline: none; }
.search input::placeholder { color: var(--muted); }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.search .ico { position: absolute; left: 15px; top: 15px; color: var(--muted); }

/* ---------- быстрые действия ---------- */
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.action { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 13px; display: flex; gap: 11px; align-items: center; min-height: 66px; }
.action .ai { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: #fff; flex: none; }
.action b { font-size: 14px; line-height: 1.2; display: block; }
.action small { color: var(--muted); font-size: 11.5px; line-height: 1.25; display: block; margin-top: 2px; }
.g-violet { background: linear-gradient(135deg, #7c6cff, #a855f7); }
.g-green { background: linear-gradient(135deg, #22c55e, #059669); }
.g-orange { background: linear-gradient(135deg, #fb923c, #f43f5e); }
.g-blue { background: linear-gradient(135deg, #38bdf8, #2563eb); }

/* ---------- секции ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 2px 12px; }
.sec-head h2 { font-size: 18px; margin: 0; letter-spacing: -.2px; }
.sec-head a { color: var(--accent2); font-size: 14px; font-weight: 600; }
.section { margin-bottom: 24px; }

/* ---------- иконки продуктов ---------- */
.pi { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; flex: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 20px -10px rgba(0, 0, 0, .6); }
.pi.lg { width: 76px; height: 76px; border-radius: 22px; }
.pi-telegram { background: linear-gradient(140deg, #3ec3ff, #1d7fe0); }
.pi-calendar { background: linear-gradient(140deg, #ff7aa8, #e11d6b); }
.pi-calculator { background: linear-gradient(140deg, #ffc15e, #ff6a13); }
.pi-megaphone { background: linear-gradient(140deg, #c084fc, #7c3aed); }
.pi-document { background: linear-gradient(140deg, #7aa0ff, #4338ca); }
.pi-default { background: var(--grad); }

/* ---------- карточки ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent2); white-space: nowrap; }
.badge.demo { background: rgba(34, 197, 94, .14); color: #22c55e; }
.badge.demo::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.badge.free { background: rgba(245, 158, 11, .15); color: #f59e0b; }

.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px; margin-bottom: 12px; box-shadow: var(--shadow); }
.pcard-top { display: flex; gap: 13px; align-items: flex-start; }
.pcard h3 { margin: 0 0 6px; font-size: 16.5px; line-height: 1.25; letter-spacing: -.2px; }
.pcard p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin: 12px 0 12px; flex-wrap: wrap; }
.price { font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.price-sub { color: var(--muted); font-size: 13px; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.row-card { display: flex; gap: 13px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 13px; margin-bottom: 10px; }
.row-card .rc-main { flex: 1; min-width: 0; }
.row-card b { display: block; font-size: 15px; line-height: 1.25; }
.row-card small { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 3px; }
.row-card .rc-meta { display: flex; gap: 8px; align-items: center; margin-top: 7px; flex-wrap: wrap; }
.row-card .rc-price { font-weight: 800; font-size: 14px; }
.row-card .chev { color: var(--muted); flex: none; }

/* ---------- кнопки ---------- */
.btn { border: 0; border-radius: 15px; min-height: 50px; padding: 0 16px; width: 100%; font-weight: 700; font-size: 15px; cursor: pointer;
  background: var(--grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 12px 26px -12px var(--accent); transition: transform .12s ease, filter .2s; }
.btn:active { transform: scale(.98); }
.btn:hover { filter: brightness(1.06); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn.ghost { background: var(--card2); color: var(--text); box-shadow: none; border: 1px solid var(--line); }
.btn.sm { min-height: 42px; font-size: 14px; border-radius: 13px; }
.btn.green { background: linear-gradient(135deg, #22c55e, #059669); box-shadow: 0 12px 26px -12px #22c55e; }

/* ---------- чипы ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 14px; padding: 0 16px 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 14px; font-weight: 600;
  padding: 9px 15px; border-radius: 999px; cursor: pointer; }
.chip.on { background: var(--grad); color: #fff; border-color: transparent; }

/* ---------- страница продукта ---------- */
.p-hero { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 18px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.p-hero::before { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, var(--bg-glow), transparent 70%); }
.p-hero > * { position: relative; }
.p-hero h1 { font-size: 23px; line-height: 1.2; letter-spacing: -.4px; margin: 14px 0 8px; }
.p-hero .lead { color: var(--muted); margin: 10px 0 0; }
.p-price { display: flex; align-items: baseline; gap: 10px; margin: 14px 0; flex-wrap: wrap; }
.p-price b { font-size: 26px; letter-spacing: -.5px; }
.p-price span { color: var(--muted); font-size: 13.5px; }
.stack { display: grid; gap: 8px; }
.block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-top: 12px; }
.block h2 { font-size: 16px; margin: 0 0 10px; letter-spacing: -.1px; }
.block p { margin: 0; color: var(--muted); line-height: 1.55; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: var(--card2); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; font-size: 14.5px; }
.checks li i { width: 22px; height: 22px; border-radius: 50%; background: rgba(34, 197, 94, .15); color: #22c55e; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 900; flex: none; margin-top: 1px; }
.checks.num li i { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent2); }
.offers { display: grid; gap: 10px; }
.offer { display: flex; gap: 12px; align-items: flex-start; background: var(--card2); border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.offer:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--card)); }
.offer input { position: absolute; opacity: 0; pointer-events: none; }
.offer .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--muted); flex: none; margin-top: 2px; display: grid; place-items: center; }
.offer input:checked + .radio { border-color: var(--accent); }
.offer input:checked + .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.offer input:focus-visible + .radio { outline: 2px solid var(--accent); outline-offset: 2px; }
.offer .o-main { flex: 1; }
.offer b { display: block; font-size: 15px; }
.offer small { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; line-height: 1.4; }
.offer .o-price { font-weight: 800; white-space: nowrap; font-size: 15px; }
.offer.static { cursor: default; }
.offer.free { border-style: dashed; }
.steps { display: grid; gap: 12px; counter-reset: s; }
.steps div { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.steps div::before { counter-increment: s; content: counter(s); width: 26px; height: 26px; border-radius: 9px; background: var(--grad); color: #fff;
  font-weight: 800; font-size: 13px; display: grid; place-items: center; flex: none; }
.steps b { display: block; }
.steps span { color: var(--muted); }

.sticky { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + var(--safe-b)); padding: 12px 16px; z-index: 5;
  background: linear-gradient(to top, var(--bg) 62%, transparent); }
.sticky-in { max-width: 608px; margin: 0 auto; display: flex; gap: 10px; align-items: center; }
.sticky-in .sp { flex: none; min-width: 92px; }
.sticky-in .sp small { display: block; color: var(--muted); font-size: 11.5px; }
.sticky-in .sp b { font-size: 17px; }

/* ---------- демо ---------- */
.demo-banner { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px; margin-bottom: 12px; }
.demo-banner b { display: block; font-size: 15px; line-height: 1.25; }
.demo-banner small { color: var(--muted); font-size: 12.5px; }
.toast { position: fixed; left: 50%; top: 14px; transform: translate(-50%, -140%); z-index: 50; max-width: 92vw; width: 420px;
  background: #1c2350; color: #fff; border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; padding: 12px 14px; font-size: 14px;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .7); transition: transform .3s ease; }
.toast.on { transform: translate(-50%, 0); }

/* бот-симулятор */
.bd { display: block; }
.bd-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--card2); border: 1px solid var(--line); border-radius: 15px; padding: 4px; margin-bottom: 10px; }
.bd-seg button { border: 0; background: transparent; color: var(--muted); font-weight: 700; padding: 10px 6px; border-radius: 11px; cursor: pointer; position: relative; }
.bd-seg button.on { background: var(--card); color: var(--text); box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.bd-seg i, .bd-seg button[data-unread]:not([data-unread=""])::after { font-style: normal; background: var(--danger); color: #fff; font-size: 11px; font-weight: 800;
  border-radius: 99px; padding: 1px 6px; margin-left: 4px; }
.bd-seg button[data-unread]:not([data-unread=""])::after { content: attr(data-unread); }
.bd-phone { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow);
  background: #0e1621 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cg fill='%23ffffff' fill-opacity='.025'%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Ccircle cx='40' cy='35' r='1.5'/%3E%3C/g%3E%3C/svg%3E"); }
:root[data-theme="light"] .bd-phone { background-color: #cfe0ef; }
.bd-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #17212b; color: #fff; }
:root[data-theme="light"] .bd-top { background: #ffffff; color: #111; }
.bd-ava { width: 38px; height: 38px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-size: 18px; flex: none; }
.bd-who { flex: 1; min-width: 0; }
.bd-who b { display: block; font-size: 15px; }
.bd-who small { color: #8da2b8; font-size: 12px; }
.bd-live { font-size: 10px; font-weight: 800; letter-spacing: .6px; color: #f59e0b; border: 1px solid rgba(245, 158, 11, .5); border-radius: 6px; padding: 2px 6px; }
.bd-chat { height: 430px; overflow-y: auto; padding: 12px 10px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
.bd-empty { margin: auto; text-align: center; color: #8da2b8; font-size: 13px; max-width: 240px; background: rgba(0, 0, 0, .25); border-radius: 14px; padding: 10px 12px; }
:root[data-theme="light"] .bd-empty { background: rgba(255, 255, 255, .6); color: #4b5563; }
.bd-msg { display: flex; flex-direction: column; max-width: 86%; animation: fadeIn .2s ease both; }
.bd-bot { align-self: flex-start; }
.bd-me { align-self: flex-end; align-items: flex-end; }
.bd-bubble { white-space: pre-wrap; font-size: 14px; line-height: 1.42; padding: 8px 11px 6px; border-radius: 16px; position: relative;
  background: #182533; color: #fff; border-bottom-left-radius: 5px; overflow-wrap: anywhere; }
.bd-me .bd-bubble { background: #2b5278; border-bottom-left-radius: 16px; border-bottom-right-radius: 5px; }
:root[data-theme="light"] .bd-bubble { background: #fff; color: #111; }
:root[data-theme="light"] .bd-me .bd-bubble { background: #e1ffc7; }
.bd-notify .bd-bubble { box-shadow: 0 0 0 2px rgba(124, 108, 255, .7); }
.bd-time { float: right; font-size: 11px; color: #7f91a4; margin: 6px 0 -2px 10px; }
.bd-inline { display: grid; gap: 4px; margin-top: 4px; width: 100%; min-width: 220px; }
.bd-irow { display: flex; gap: 4px; }
.bd-irow button { flex: 1; border: 0; background: rgba(24, 37, 51, .92); color: #fff; font-size: 13px; font-weight: 600; padding: 9px 6px; border-radius: 10px; cursor: pointer; min-height: 38px; }
:root[data-theme="light"] .bd-irow button { background: rgba(255, 255, 255, .85); color: #1d6fb8; }
.bd-irow button:hover { filter: brightness(1.2); }
.bd-irow .bd-primary { background: #2f9e5b; }
.bd-irow .bd-danger { color: #ff8a9b; }
.bd-irow .bd-demo { background: rgba(245, 158, 11, .2); color: #fbbf24; border: 1px dashed rgba(245, 158, 11, .6); }
.bd-old { opacity: .45; }
.bd-cmds { display: flex; gap: 6px; padding: 6px 10px 0; flex-wrap: wrap; }
.bd-cmds button { border: 0; background: rgba(0, 0, 0, .3); color: #8ab4f8; font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 99px; cursor: pointer; }
:root[data-theme="light"] .bd-cmds button { background: rgba(255, 255, 255, .7); color: #1d6fb8; }
.bd-kb { padding: 6px 10px 0; display: grid; gap: 6px; }
.bd-kb:empty { display: none; }
.bd-krow { display: flex; gap: 6px; }
.bd-krow button { flex: 1; border: 0; background: #2b3a4d; color: #fff; border-radius: 10px; padding: 11px 6px; font-weight: 600; font-size: 14px; cursor: pointer; }
:root[data-theme="light"] .bd-krow button { background: #fff; color: #111; }
.bd-input { display: flex; gap: 8px; padding: 10px; background: #17212b; }
:root[data-theme="light"] .bd-input { background: #fff; }
.bd-input input { flex: 1; min-width: 0; border: 0; background: #242f3d; color: #fff; border-radius: 20px; padding: 11px 14px; font: inherit; font-size: 14.5px; outline: none; }
:root[data-theme="light"] .bd-input input { background: #f0f2f5; color: #111; }
.bd-input button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #3390ec; color: #fff; font-size: 17px; cursor: pointer; flex: none; }
.bd-note { color: var(--muted); font-size: 12.5px; margin: 10px 2px 0; }

/* ---------- формы ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.field small { font-weight: 500; }
.field textarea, .field input { width: 100%; border-radius: 14px; border: 1px solid var(--line); background: var(--input); color: var(--text);
  font: inherit; font-weight: 500; padding: 12px 13px; outline: none; }
.field textarea { min-height: 120px; resize: vertical; }
.field textarea:focus, .field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.counter { text-align: right; color: var(--muted); font-size: 12px; margin-top: -8px; }
.picked { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px; }
.picked b { display: block; line-height: 1.25; }
.picked small { color: var(--muted); }
.note { color: var(--muted); font-size: 13px; margin: 0; line-height: 1.45; }
.error { color: var(--danger); font-size: 14px; margin: 0; }
.pay-note { display: flex; gap: 10px; align-items: flex-start; background: color-mix(in srgb, var(--accent) 9%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 16px; padding: 12px; font-size: 13.5px; line-height: 1.45; }

/* ---------- заявки ---------- */
.order { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.order-top { display: flex; gap: 12px; align-items: center; }
.order-top .om { flex: 1; min-width: 0; }
.order-top b { display: block; line-height: 1.25; }
.order-top small { color: var(--muted); font-size: 12.5px; }
.order p { margin: 10px 0 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.status { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent2); white-space: nowrap; }
.status.in_work { background: rgba(245, 158, 11, .15); color: #f59e0b; }
.status.done { background: rgba(34, 197, 94, .14); color: #22c55e; }
.status.cancelled { background: var(--card2); color: var(--muted); }
.msgs { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 8px; }
.msg { font-size: 14px; white-space: pre-line; background: var(--card2); border-radius: 12px; padding: 8px 10px; }
.msg small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 700; margin-bottom: 2px; }
.list { display: grid; gap: 10px; }

/* ---------- состояния ---------- */
.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty .eic { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent2); }
.empty b { display: block; color: var(--text); font-size: 18px; margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }
.success .eic { background: linear-gradient(135deg, #22c55e, #059669); color: #fff; border: 0; box-shadow: 0 16px 40px -14px #22c55e; animation: pop .45s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.next-steps { text-align: left; margin: 18px auto 0; max-width: 360px; }
.skeleton { background: var(--card); border-radius: var(--radius); height: 110px; margin-bottom: 12px; opacity: .7; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.footer-links { text-align: center; margin: 22px 0 4px; font-size: 13px; color: var(--muted); }
.footer-links a { color: var(--accent2); }

/* ---------- нижняя навигация ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); z-index: 10; }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 600; }
.tabbar a.on { color: var(--accent2); }
.tabbar a.on span:first-child { filter: drop-shadow(0 0 8px var(--accent)); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (min-width: 560px) { .hero h1 { font-size: 30px; } }

/* ---------- инструменты ---------- */
.quick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 24px; }
.qt { display: flex; flex-direction: column; align-items: center; gap: 7px; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 11px 4px 10px; text-align: center; }
.qt .ai { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: #fff; }
.qt b { font-size: 11.5px; line-height: 1.2; }
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.tool-card { display: flex; flex-direction: column; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 14px; min-height: 104px; box-shadow: var(--shadow); }
.tool-card .ai { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff; }
.tool-card b { font-size: 14.5px; line-height: 1.25; }
.pi-bag { background: linear-gradient(140deg, #34d399, #059669); }
.order-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 10px; font-size: 12.5px; color: var(--muted); align-items: center; }
.pay { font-weight: 800; padding: 3px 9px; border-radius: 999px; background: rgba(245, 158, 11, .15); color: #f59e0b; }
.pay.paid { background: rgba(34, 197, 94, .14); color: #22c55e; }
@media (max-width: 360px) { .quick { grid-template-columns: repeat(3, 1fr); } }

/* ---------- доверие ---------- */
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.trust a { display: flex; gap: 8px; align-items: center; justify-content: center; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 8px; font-size: 13.5px; font-weight: 700; color: var(--text); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: "+"; color: var(--accent2); font-size: 20px; line-height: 1; }
.faq[open] summary::after { content: "−"; }
.faq summary::-webkit-details-marker { display: none; }
a.demo-banner { color: var(--text); margin-top: 12px; }
.pi-quiz { background: linear-gradient(140deg, #22d3ee, #0e7490); }
.pi-spark { background: linear-gradient(140deg, #a78bfa, #6d28d9); }
.niches { margin-bottom: 22px; }
.niches .chip { white-space: nowrap; }

/* ---------- UX-проход: компактный герой, бесплатные инструменты на главной ---------- */
.hero.hero-compact { padding: 18px 16px 16px; }
.hero.hero-compact h1 { font-size: 22px; max-width: 66%; margin-bottom: 8px; }
.hero.hero-compact p { margin: 0; font-size: 13px; line-height: 1.45; color: #d6d2ff; max-width: 62%; }
.hero.hero-compact .mascot { width: 34%; top: 14px; }
.sec-note { margin: -6px 2px 12px; color: var(--muted); font-size: 12.5px; }
.free-pill { display: inline-block; background: rgba(34, 197, 94, .15); color: #22c55e; font-weight: 800; font-size: 11.5px; padding: 3px 8px; border-radius: 99px; margin-right: 4px; }
.tool-card small { color: var(--muted); font-size: 12px; line-height: 1.3; margin-top: -6px; }
.tool-card { min-height: 112px; gap: 10px; }
.home-tools { margin-bottom: 24px; }
.section > .btn.ghost { margin-top: 2px; }
@media (min-width: 560px) { .hero.hero-compact h1 { font-size: 26px; } }
.pay-note > svg, .demo-banner svg, .trust svg { flex: none; }
.pay-note > svg { margin-top: 1px; }
.mascot.mascot-solo { position: static; width: 160px; margin: 0 auto 16px; display: block; }
