/* Сайт sledchata.ru — общий стиль всех страниц. Палитра — айдентика бота:
   градиент #3B2E9E → #7B5FE0, тёмный фон. */
:root {
  --bg: #121019;
  --bg-2: #1a1726;
  --card: #1f1b2e;
  --line: #2e2945;
  --fg: #eeecf6;
  --muted: #a7a2bf;
  --accent: #8b72ff;
  --grad-a: #3b2e9e;
  --grad-b: #7b5fe0;
  --ok: #5fd39a;
  --bubble-in: #262138;
  --radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #b3a3ff; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* --- шапка --- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(18, 16, 25, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 800; font-size: 18px; }
.brand .logo { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); padding: 5px; }
.top nav { display: flex; gap: 22px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--fg); }
@media (max-width: 760px) { .top nav { display: none; } }

/* --- кнопки --- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 14px;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 28px rgba(123, 95, 224, .35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 34px rgba(123, 95, 224, .5); }
.btn svg { width: 20px; height: 20px; }
.btn.small { padding: 9px 16px; font-size: 15px; border-radius: 11px; box-shadow: none; }
.btn.ghost { background: transparent; border: 1px solid var(--line); box-shadow: none; color: var(--fg); }

/* --- первый экран --- */
.hero { position: relative; overflow: hidden; padding: 72px 0 64px; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(123, 95, 224, .35), transparent);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; }
h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.1; margin: 0 0 18px; letter-spacing: -.02em; }
h1 .grad { background: linear-gradient(90deg, #a996ff, #7b5fe0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.lead b { color: var(--fg); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* --- нарисованный чат --- */
.phone {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 28px;
  padding: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  max-width: 400px; margin-left: auto; width: 100%;
}
@media (max-width: 860px) { .phone { margin: 0 auto; } }
.phone-head { display: flex; align-items: center; gap: 10px; padding: 4px 6px 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.phone-head .logo { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); padding: 7px; }
.phone-head b { display: block; font-size: 15px; }
.phone-head span { font-size: 12px; color: var(--muted); }
.msg { background: var(--bubble-in); border-radius: 16px 16px 16px 6px; padding: 10px 14px; margin: 0 0 10px; font-size: 15px; line-height: 1.45; max-width: 92%; }
.msg .h { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.msg .h.del { color: #ff8a8a; }
.msg .h.edit { color: #ffc46b; }
.msg .h.once { color: var(--ok); }
.msg .was { color: var(--muted); text-decoration: line-through; }
.msg .t { display: block; text-align: right; font-size: 11px; color: var(--muted); margin-top: 2px; }

/* --- секции --- */
section { padding: 64px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; margin: 0 0 14px; letter-spacing: -.01em; }
h3 { font-size: 20px; margin: 0 0 8px; line-height: 1.3; }
.section-lead { color: var(--muted); margin: 0 0 36px; max-width: 40em; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(139, 114, 255, .14); display: grid; place-items: center; margin-bottom: 16px; color: var(--accent); }
.card .ico svg { width: 24px; height: 24px; }
a.card { text-decoration: none; color: var(--fg); transition: border-color .15s ease; }
a.card:hover { border-color: var(--accent); }
a.card .more { color: var(--accent); font-size: 15px; margin-top: 12px; display: inline-block; }

/* --- шаги --- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 20px 72px; position: relative; }
.steps li::before {
  content: counter(s); position: absolute; left: 20px; top: 18px;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); font-weight: 800;
}
.steps b { color: var(--fg); }
.steps li p { margin: 0; color: var(--muted); }
.callout { border-left: 3px solid var(--accent); background: rgba(139, 114, 255, .08); padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 20px 0 0; color: var(--fg); }

/* --- два столбца «делает / не делает» --- */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }
.check { list-style: none; padding: 0; margin: 0; }
.check li { padding: 8px 0 8px 30px; position: relative; color: var(--muted); }
.check li::before { content: "\2713"; position: absolute; left: 4px; top: 8px; color: var(--ok); font-weight: 800; }
.check.no li::before { content: "\2715"; color: #ff8a8a; }

/* --- вопросы --- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 24px; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* --- статьи --- */
.article { padding: 48px 0 72px; }
.article h1 { font-size: clamp(30px, 4.4vw, 42px); }
.article h2 { font-size: 26px; margin-top: 40px; }
.article p, .article li { color: #d6d3e4; }
.article .lead { color: var(--muted); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.answer { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 0 0 28px; }
.answer b.label { display: block; color: var(--accent); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.answer p { margin: 0; color: var(--fg); }

/* --- призыв и подвал --- */
.cta { text-align: center; }
.cta .box { background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); border-radius: 26px; padding: 48px 20px; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .85); margin: 0 auto 26px; max-width: 32em; }
.cta .btn { background: #fff; color: var(--grad-a); box-shadow: none; }
.cta .btn:hover { color: var(--grad-a); }
footer { padding: 32px 0 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer a { color: var(--muted); }
