/* Лендинг marcore.ru - те же цвета и шрифт, что в панели (web/assets/styles.css). */
:root {
  --bg: #f2f5f8;
  --panel: #ffffff;
  --line: #e1e7ee;
  --text: #1a2433;
  --muted: #667788;
  --accent: #1b7a8c;
  --accent-hover: #156575;
  --accent-soft: #e4f3f6;
  --accent-deep: #0f4f5c;
  --ok: #1f9a66;
  --warn: #c9891a;
  --err: #d14354;
  --err-soft: #fceced;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(26, 36, 51, 0.05), 0 12px 40px rgba(26, 36, 51, 0.08);
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--panel);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
}

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px; border-radius: 12px;
  font: 600 16px var(--font); text-decoration: none; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: var(--panel); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: #fff; color: var(--accent-deep); }
.btn-light:hover { background: var(--accent-soft); }
.btn-outline-light { border: 1px solid rgba(255, 255, 255, 0.45); color: #fff; }
.btn-outline-light:hover { border-color: #fff; }
.top .btn { height: 40px; padding: 0 18px; font-size: 15px; }

/* Шапка */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 800; color: var(--text); text-decoration: none;
}
.logo-mark {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 9px; background: var(--accent); color: #fff;
}
.logo-mark svg { width: 22px; height: 22px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--text); }

/* Первый экран */
.hero {
  background:
    radial-gradient(900px 480px at 85% 10%, var(--accent-soft), transparent 70%),
    var(--bg);
  padding: 80px 0 96px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 800; margin: 14px 0 20px; }
.lead { font-size: 19px; color: #3b4a5c; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* Макет экрана панели */
.mock {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow); padding: 18px 20px 14px;
}
.mock-bar { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-bar span { margin-left: 10px; font-weight: 600; }
.mock-head { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-head div { background: var(--bg); border-radius: 12px; padding: 12px; }
.mock-head b { display: block; font-size: 22px; letter-spacing: -0.02em; }
.mock-head span { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.signals { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.signals li {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center;
  padding: 12px 14px; border-radius: 12px; border-left: 4px solid var(--muted); background: var(--bg);
}
.signals .sig-bad { border-left-color: var(--err); }
.signals .sig-good { border-left-color: var(--ok); }
.signals .sig-warn { border-left-color: var(--warn); }
.sig-src { grid-column: 1; font-size: 12px; font-weight: 700; color: var(--muted); }
.sig-text { grid-column: 1; font-size: 14px; font-weight: 600; line-height: 1.35; }
.sig-act {
  grid-column: 2; grid-row: 1 / span 2; white-space: nowrap;
  font-size: 13px; font-weight: 700; color: var(--accent-deep);
  background: var(--accent-soft); border-radius: 8px; padding: 7px 10px;
}
.mock-caption { margin-top: 10px; font-size: 12px; color: var(--muted); text-align: right; }

/* Полный цикл */
.cycle { padding: 96px 0; background: var(--bg); }
.cycle h2 { margin-top: 10px; }
.cycle-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.stage { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.stage-num { font-size: 14px; font-weight: 800; color: var(--accent); }
.stage h3 { margin-top: 8px; font-size: 22px; }
.stage ul { margin: 16px 0 0; padding: 0; list-style: none; }
.stage li { position: relative; padding-left: 18px; margin-top: 9px; color: #3b4a5c; font-size: 15px; }
.stage li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent);
}

/* ИИ считывает сигналы */
.signals-sec { padding: 96px 0; }
.signals-sec h2 { margin-top: 10px; }
.flow { display: grid; grid-template-columns: 1.5fr auto 1fr auto 1.1fr; gap: 16px; align-items: center; margin-top: 40px; }
.flow-col { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; height: 100%; }
.flow-title { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 6px 11px; border-radius: 999px; background: var(--bg); font-size: 13px; font-weight: 600; }
.flow-ai {
  display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%); color: #fff; border: 0;
}
.flow-ai .flow-title { color: rgba(255, 255, 255, 0.75); }
.flow-ai p:not(.flow-title) { font-size: 16px; font-weight: 600; line-height: 1.5; }
.flow-arrow { color: var(--accent); }
.flow-arrow svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.decisions { list-style: none; margin: 0; padding: 0; }
.decisions li { position: relative; padding-left: 26px; margin-top: 10px; font-weight: 600; }
.decisions li:first-child { margin-top: 0; }
.decisions li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 13px; height: 7px;
  border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg);
}

/* Источники */
.sources { padding: 88px 0; background: var(--bg); }
.source-group { background: var(--panel); }
.source-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.source-group { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.source-group h3 { font-size: 16px; color: var(--muted); font-weight: 700; }
.source-group ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.source-group li {
  padding: 7px 14px; border-radius: 999px; background: var(--bg);
  font-weight: 600; font-size: 14px; color: var(--text);
}
.source-group li i {
  font-style: normal; font-size: 11px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 2px 7px; margin-left: 4px;
}
.sources-note { margin-top: 18px; color: var(--muted); font-size: 15px; }

/* Общие подзаголовки секций */
.section-sub { margin-top: 12px; max-width: 680px; font-size: 18px; color: var(--muted); }

/* Проблемы и решения */
.pain { padding: 96px 0; }
.pain-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.pain-card {
  display: flex; flex-direction: column; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.pain-text { margin-top: 10px; color: var(--muted); flex: 1; }
.pain-fix { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); }
.pain-fix span { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }
.pain-fix p { margin-top: 6px; }

/* Примеры дашбордов */
.demo { padding: 96px 0; }
.demo h2 { margin-top: 10px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.tab {
  height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel); font: 600 15px var(--font); color: var(--muted); cursor: pointer;
}
.tab:hover { color: var(--text); }
.tab.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.screen {
  margin-top: 16px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow); overflow: hidden;
}
.screen-bar {
  display: flex; align-items: center; gap: 6px; padding: 14px 20px;
  background: var(--bg); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted);
}
.screen-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.screen-bar span { margin-left: 10px; font-weight: 600; }
.screen-body { padding: 24px; }
.kpi-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 20px; }
.kpi-row div { background: var(--bg); border-radius: 12px; padding: 14px 16px; }
.kpi-row span { display: block; font-size: 13px; color: var(--muted); }
.kpi-row b { display: block; margin-top: 2px; font-size: 22px; letter-spacing: -0.01em; }
.table-scroll { overflow-x: auto; }
.demo-table { width: 100%; border-collapse: collapse; font-size: 15px; white-space: nowrap; }
.demo-table th {
  text-align: right; font-size: 13px; font-weight: 600; color: var(--muted);
  padding: 10px 14px; border-bottom: 1px solid var(--line);
}
.demo-table td { text-align: right; padding: 12px 14px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.demo-table th:first-child, .demo-table td:first-child { text-align: left; font-weight: 600; }
.demo-table tfoot td { font-weight: 800; border-bottom: 0; background: var(--bg); }
.demo-table .good { color: var(--ok); font-weight: 700; }
.demo-table .bad { color: var(--err); font-weight: 700; }
.demo-table .row-warn td { background: var(--err-soft); }
.table-sub { margin-top: 14px; font-size: 14px; color: var(--muted); }

.status-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--muted); }
.status-legend span { display: inline-flex; align-items: center; gap: 6px; }
.status-legend i { width: 12px; height: 12px; border-radius: 3px; }
.status-rows { margin-top: 20px; display: grid; gap: 14px; }
.status-row { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: center; }
.status-name { font-weight: 600; }
.status-name em { font-style: normal; color: var(--muted); font-weight: 500; margin-left: 6px; }
.status-bar { display: flex; height: 28px; border-radius: 8px; overflow: hidden; gap: 2px; }
.st-sale { background: var(--ok); }
.st-qual { background: var(--accent); }
.st-work { background: #8fc3cc; }
.st-refuse { background: var(--err); }
.st-none { background: #c7d0da; }
.refusals { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.refusals-title { font-weight: 700; }
.refusals ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.refusals li { background: var(--err-soft); border-radius: 12px; padding: 12px 14px; display: flex; justify-content: space-between; gap: 8px; }
.refusals b { color: var(--err); }

/* ИИ в работе */
.ai { padding: 96px 0; background: var(--bg); }
.ai h2 { margin-top: 10px; }
.chats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; align-items: start; }
.chat { display: flex; flex-direction: column; gap: 12px; }
.chat-q {
  align-self: flex-end; max-width: 90%; background: var(--accent); color: #fff;
  padding: 12px 16px; border-radius: 16px 16px 4px 16px; font-weight: 600;
}
.chat-a {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px;
  padding: 18px 18px 16px; font-size: 15px;
}
.chat-a p + p { margin-top: 10px; }
.chat-a b { color: var(--accent-deep); }
.chat-todo {
  padding: 12px 14px; border-radius: 12px; background: var(--accent-soft);
  color: var(--accent-deep); font-weight: 600;
}

/* Как устроено */
.loop { padding: 96px 0; }
.loop h2 { margin-top: 10px; }
.loop-steps {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none;
}
.loop-steps li { position: relative; border-top: 2px solid var(--accent); padding-top: 22px; }
.loop-num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 16px;
}
.loop-steps p { margin-top: 8px; color: var(--muted); }

/* Кейсы */
.cases { padding: 96px 0; background: var(--bg); }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.case {
  display: flex; flex-direction: column; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
}
.case-tag { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.case h3 { font-size: 22px; }
.case > p:not(.case-tag) { margin-top: 12px; color: #3b4a5c; flex: 1; }
.case-nums {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px;
  margin: 24px 0 0;
}
.case-nums div { background: var(--accent-soft); border-radius: 12px; padding: 14px 16px; }
.case-nums dt { font-size: 24px; font-weight: 800; color: var(--accent-deep); letter-spacing: -0.02em; }
.case-nums dd { margin: 4px 0 0; font-size: 13px; color: #3b4a5c; line-height: 1.4; }

/* Тарифы */
.pricing { padding: 96px 0; }
.price-group { margin-top: 48px; font-size: 24px; }
.price-group-sub { margin-top: 8px; color: var(--muted); }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.price {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
}
.price-accent { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.price-badge {
  position: absolute; top: -13px; left: 28px; padding: 3px 12px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 700;
}
.price h4 { margin: 0; font-size: 20px; }
.price-sum { margin-top: 12px; font-size: 38px; font-weight: 800; letter-spacing: -0.02em; }
.price-sum span { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-desc { margin-top: 6px; color: var(--muted); }
.price ul { margin: 20px 0 28px; padding: 0; list-style: none; flex: 1; }
.price li { position: relative; padding-left: 28px; margin-top: 10px; }
.price li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 8px;
  border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg);
}
.price .btn { align-self: flex-start; }
.price-note { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* Автор */
.author { padding: 0 0 96px; }
.author-box {
  display: flex; gap: 28px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 36px;
  width: calc(100% - 48px); max-width: 1112px;
}
.author-mark {
  flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-deep); font-size: 24px; font-weight: 800;
}
.author h3 { margin-top: 6px; font-size: 24px; }
.author p:not(.eyebrow) { margin: 10px 0 12px; max-width: 720px; color: #3b4a5c; }
.author a { font-weight: 600; }

/* Вопросы */
.faq { padding: 96px 0; background: var(--bg); }
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 18px 52px 18px 22px; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 500; color: var(--accent);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 22px 20px; color: #3b4a5c; }

/* Финальный призыв */
.final { padding: 96px 0; }
.final-box {
  width: calc(100% - 48px); max-width: 1112px; text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  border-radius: 24px; padding: 64px 32px;
}
.final-box p { margin-top: 12px; font-size: 18px; opacity: 0.9; }
.final-box .hero-cta { justify-content: center; }

/* Подвал */
.foot { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 24px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }

/* Планшет и телефон */
@media (max-width: 960px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid, .faq-wrap { grid-template-columns: 1fr; gap: 40px; }
  .cycle-grid { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { justify-self: center; transform: rotate(90deg); }
  .loop-steps { grid-template-columns: 1fr 1fr; }
  .pain-cards, .case-grid, .price-grid, .chats, .source-groups { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: repeat(3, 1fr); }
  .refusals ul { grid-template-columns: 1fr 1fr; }
  .pain, .loop, .cases, .pricing, .faq, .final, .demo, .ai, .sources, .cycle, .signals-sec { padding: 72px 0; }
  .author { padding-bottom: 72px; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .top-row { justify-content: space-between; }
  .loop-steps, .cycle-grid { grid-template-columns: 1fr; }
  .signals li { grid-template-columns: 1fr; }
  .sig-act { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 6px; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .status-row { grid-template-columns: 1fr; gap: 6px; }
  .screen-body { padding: 16px; }
  .refusals ul { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; width: calc(100% - 32px); padding: 24px; }
  .price, .case { padding: 24px; }
  .price-sum { font-size: 32px; }
  .lead { font-size: 17px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .final-box { width: calc(100% - 32px); padding: 48px 20px; border-radius: 20px; }
  .wrap { padding: 0 16px; }
}
