/* =========================================================================
   home.css — Нейро Бизнес: бизнес-операционка / мобильная CRM.
   MOBILE-FIRST: базовые стили = телефон; min-width надстраивает планшет/десктоп.
   Самодостаточный лист ТОЛЬКО для index.html. Остальные страницы — на styles.css.
   Репак 2026-06-13. Откат: index.html.backup-2026-06-13-business-os
   ========================================================================= */
:root {
  --bg: #0a0a0a;
  --surface: #121212;
  --panel: #181818;
  --panel-2: #202020;
  --elevated: #242424;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: #2a2a2a;
  --line-strong: #343434;
  --text: #f5f1ea;
  --muted: #a8a29a;
  --muted-2: #706c66;
  --accent: #cc785c;
  --accent-hover: #a85f46;
  --accent-soft: #e8a088;
  --success: #7fb089;
  --warning: #d9a441;
  --danger: #d46a5f;
  --info: #7a9bd8;
  --max: 1180px;
  --pad: 18px;
  --sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* место под липкую панель действий (только мобайл) */
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(640px 460px at 92% -4%, rgba(204, 120, 92, 0.13), transparent 60%),
    radial-gradient(520px 460px at -8% 3%, rgba(204, 120, 92, 0.05), transparent 55%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- типографика (мобильная база) ---------- */
h1, h2, h3, p { margin-top: 0; overflow-wrap: break-word; }
h1 { margin: 0 0 18px; font-size: clamp(31px, 7.6vw, 56px); line-height: 1.06; letter-spacing: -0.015em; font-weight: 800; }
h2 { margin: 0 0 14px; font-size: clamp(25px, 5.4vw, 42px); line-height: 1.12; letter-spacing: -0.01em; font-weight: 800; }
h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.2; font-weight: 700; }
p { color: var(--text); }
.eyebrow { margin: 0 0 13px; color: var(--accent-soft); font-size: 12px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; }
.lead, .section-lead { max-width: 680px; color: var(--muted); font-size: 17px; }
.section-lead + .section-lead { margin-top: 14px; }

/* ---------- кнопки (мобильная база: во всю ширину, крупные) ---------- */
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
}
.button:active { transform: translateY(1px); }
.button.primary { background: var(--accent); color: #0a0a0a; }
.button.primary:active { background: var(--accent-hover); }
.button.secondary { border-color: var(--line-strong); background: var(--panel); color: var(--text); }

/* ---------- шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.brand strong { display: block; font-size: 15px; line-height: 1; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.nav { display: none; }
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 10px;
  background: var(--text);
  color: #0a0a0a;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- секции ---------- */
.section { width: min(var(--max), calc(100% - (var(--pad) * 2))); margin: 0 auto; padding: 52px 0; }
.section[id] { scroll-margin-top: 76px; }
.section-head { max-width: 760px; margin-bottom: 28px; }
.os-pain, .os-principle, .os-system, .os-start, .os-flow, .os-why, .os-roadmap, .os-faq, .os-final { border-top: 1px solid var(--line); }

/* ---------- HERO (мобильная база: стек) ---------- */
.os-hero { display: flex; flex-direction: column; padding-top: 28px; padding-bottom: 44px; }
.os-title { margin-bottom: 16px; }
.os-lead { font-size: 18px; }
.os-visual { margin: 24px 0 8px; display: flex; justify-content: center; overflow-x: clip; }
.os-phone { position: relative; width: 100%; display: flex; justify-content: center; }
.os-phone::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 128%;
  height: 84%;
  background: radial-gradient(closest-side, rgba(204, 120, 92, 0.17), transparent 74%);
  z-index: 0;
  pointer-events: none;
}
.os-phone .pm-wrap { position: relative; z-index: 1; padding-left: 0; padding-right: 0; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.os-micro { margin: 20px 0 0; max-width: 560px; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ---------- боль ---------- */
.pain-cards { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.pain-card { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 22px; }
.pain-card .n { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-bottom: 14px; border-radius: 8px; background: var(--panel-2); color: var(--muted); font-family: var(--mono); font-size: 13px; }
.pain-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- мобильный принцип ---------- */
.feature-list { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; max-width: 900px; }
.feature { display: flex; gap: 12px; align-items: flex-start; }
.feature .check { flex: 0 0 auto; width: 28px; height: 28px; margin-top: 1px; border-radius: 8px; background: rgba(204, 120, 92, 0.14); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.feature .t { font-size: 16px; }

/* ---------- модули ---------- */
.module-grid { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.module { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 22px; }
.module .ico { width: 42px; height: 42px; margin-bottom: 16px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--accent-soft); display: flex; align-items: center; justify-content: center; }
.module h3 { margin-bottom: 7px; font-size: 18px; }
.module p { margin: 0; color: var(--muted); font-size: 15px; }
.system-note { margin: 22px 0 0; color: var(--muted-2); font-size: 14px; }

/* ---------- варианты старта ---------- */
.start-grid { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.plan { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 24px; }
.plan.featured { border-color: rgba(204, 120, 92, 0.5); background: rgba(204, 120, 92, 0.07); }
.plan .tag { align-self: flex-start; margin-bottom: 14px; font-size: 11px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; color: var(--accent-soft); }
.plan h3 { margin-bottom: 4px; font-size: 20px; }
.plan .price { margin: 6px 0 12px; color: var(--accent); font-family: var(--mono); font-size: 30px; font-weight: 600; line-height: 1.05; }
.plan .price .per { margin-left: 3px; color: var(--muted); font-family: var(--sans); font-size: 15px; font-weight: 500; }
.plan .price-text { margin: 6px 0 12px; color: var(--accent-soft); font-size: 18px; font-weight: 700; }
.plan p { flex: 1 1 auto; margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.plan .button { width: 100%; }

/* ---------- путь заявки ---------- */
.flow-steps { margin-top: 26px; max-width: 820px; }
.flow-step { position: relative; display: grid; grid-template-columns: 42px 1fr; gap: 16px; padding-bottom: 22px; }
.flow-step:last-child { padding-bottom: 0; }
.flow-step::before { content: ""; position: absolute; left: 20px; top: 44px; bottom: -2px; width: 2px; background: var(--line-strong); }
.flow-step:last-child::before { display: none; }
.flow-num { position: relative; z-index: 1; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #0a0a0a; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 16px; font-weight: 700; }
.flow-body { padding-top: 8px; }
.flow-body p { margin: 0; color: var(--text); font-size: 16px; }

/* ---------- почему ---------- */
.why-card { max-width: 820px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 14px; background: var(--surface); padding: 24px; }
.why-card p { margin: 0; color: var(--text); font-size: 16px; line-height: 1.6; }
.why-card p + p { margin-top: 14px; color: var(--muted); }

/* ---------- roadmap ---------- */
.road-grid { display: flex; flex-direction: column; gap: 1px; margin-top: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--line); overflow: hidden; }
.road-item { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; background: var(--surface); }
.road-item .stt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.4px; text-transform: uppercase; color: var(--muted-2); }
.road-item .stt.now { color: var(--success); }
.road-item .stt.plan { color: var(--warning); }
.road-item strong { font-size: 15px; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 24px; max-width: 820px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 2px; cursor: pointer; list-style: none; font-size: 17px; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .pl { flex: 0 0 auto; color: var(--accent-soft); transition: transform 0.2s ease; }
.faq-item[open] .pl { transform: rotate(45deg); }
.faq-item .ans { max-width: 700px; padding: 0 2px 20px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }

/* ---------- финальный CTA ---------- */
.final-card { padding: 32px 22px; border: 1px solid rgba(204, 120, 92, 0.32); border-radius: 18px; background: linear-gradient(160deg, rgba(204, 120, 92, 0.12), rgba(204, 120, 92, 0.02)); text-align: center; }
.final-card .eyebrow { display: block; }
.final-card h2 { max-width: 700px; margin: 0 auto 12px; }
.final-card p { max-width: 620px; margin: 0 auto 24px; color: var(--muted); font-size: 16px; }
.final-card .hero-actions { margin-top: 0; align-items: center; }

/* ---------- футер ---------- */
.footer { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 36px var(--pad) 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; text-align: center; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; align-items: center; }
.footer a { color: var(--muted); }
.footer a:active { color: var(--text); }
.footer-pay, .footer-requisites { font-size: 13px; color: var(--muted); }

/* ---------- липкая панель действий под большой палец (мобайл) ---------- */
.thumb-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: flex;
  gap: 10px;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.thumb-bar .button { min-height: 48px; font-size: 15px; }
.thumb-bar .button.secondary { flex: 0 0 auto; width: auto; padding: 0 18px; }
.thumb-bar .button.primary { flex: 1 1 auto; }

/* =========================================================================
   ≥560px — две колонки в плотных сетках, кнопки в строку
   ========================================================================= */
@media (min-width: 560px) {
  .button { width: auto; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 30px; }
  .module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .road-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan .button { width: 100%; }
}

/* =========================================================================
   ≥760px — планшет: появляется nav, прячется thumb-bar, 3-колоночные блоки
   ========================================================================= */
@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .thumb-bar { display: none; }
  .nav { display: flex; gap: 22px; color: var(--muted); font-size: 14px; }
  .nav a { transition: color 0.15s; }
  .nav a:hover { color: var(--text); }
  .header-cta:hover { background: #fff; }
  .button.primary:hover { background: var(--accent-soft); }
  .button.secondary:hover { background: var(--panel-2); }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 34px; }
  .pain-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .brand img { width: 40px; height: 40px; }
  .brand strong { font-size: 16px; }
  .brand small { font-size: 12px; }
}

/* =========================================================================
   ≥980px — десктоп: hero в две колонки, 4 модуля, 5 шагов roadmap
   ========================================================================= */
@media (min-width: 980px) {
  .section { padding: 86px 0; }
  .os-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    column-gap: 56px;
    align-content: center;
    min-height: calc(100vh - 70px);
    padding-top: 52px;
    padding-bottom: 64px;
    grid-template-areas:
      "eyebrow visual"
      "title   visual"
      "lead    visual"
      "actions visual"
      "micro   visual";
  }
  .os-eyebrow { grid-area: eyebrow; }
  .os-title { grid-area: title; max-width: 16ch; margin-bottom: 22px; }
  .os-lead { grid-area: lead; }
  .os-hero .hero-actions { grid-area: actions; }
  .os-micro { grid-area: micro; margin-top: 22px; }
  .os-visual { grid-area: visual; align-self: center; justify-self: center; width: 100%; margin: 0; }
  .os-phone .pm-wrap { padding-left: 14px; padding-right: 14px; }
  .start-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
  .start-grid .plan .button { width: 100%; }
  .final-card .hero-actions { justify-content: center; }
  .module-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .road-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .road-item { min-height: 124px; padding: 22px 20px; }
  .why-card { padding: 32px; }
  .why-card p { font-size: 18px; }
  .why-card p + p { font-size: 16px; }
  .flow-body p { font-size: 16px; }
  .final-card { padding: 48px; }
  .final-card p { font-size: 18px; }
  .faq-item summary { font-size: 18px; padding: 22px 4px; }
  .faq-item .ans { font-size: 16px; padding-bottom: 24px; }
}
