/* =========================================================
   LifeHub - промо-сайт. Тёмная premium-тема.
   Чистый CSS, без сборки. Бренд: акцент-роза + 6 точек-домов.
   ========================================================= */

/* ---------- Токены ---------- */
:root {
  --bg:        #08080C;
  --bg-2:      #0C0C13;
  --bg-3:      #101019;
  --surface:   rgba(255,255,255,0.028);
  --surface-2: rgba(255,255,255,0.045);
  --surface-3: rgba(255,255,255,0.07);
  --border:    rgba(255,255,255,0.08);
  --border-2:  rgba(255,255,255,0.14);

  --text:   #ECECF2;
  --text-2: #B7B7C4;
  --muted:  #7E7E8E;

  --accent:      #FF4E6B;
  --accent-2:    #FF7A54;
  --accent-soft: rgba(255,78,107,0.14);
  --accent-glow: rgba(255,78,107,0.45);

  /* палитра шести точек логотипа */
  --indigo: #6366F1;
  --blue:   #3B82F6;
  --green:  #10B981;
  --amber:  #F59E0B;
  --red:    #F43F5E;
  --purple: #A855F7;

  --radius:    18px;
  --radius-lg: 26px;
  --radius-sm: 12px;

  --wrap: 1340px;
  --ease: cubic-bezier(.2,.7,.2,1);

  --shadow-lg: 0 40px 120px -30px rgba(0,0,0,0.8);
  --shadow-glow: 0 0 0 1px var(--border), 0 30px 90px -40px var(--accent-glow);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* атмосферное сияние за всей страницей */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(99,102,241,0.10), transparent 60%),
    radial-gradient(900px 600px at 5% 8%, rgba(255,78,107,0.08), transparent 55%),
    radial-gradient(1000px 800px at 50% 120%, rgba(168,85,247,0.08), transparent 60%);
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.08; font-weight: 700; }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: 19px; letter-spacing: -0.01em; }
p  { margin: 0; }

.grad-text {
  background: linear-gradient(120deg, #fff 20%, var(--accent) 55%, var(--accent-2) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hl { color: var(--accent); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s;
  will-change: transform;
}
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #FF5E78, var(--accent));
  box-shadow: 0 10px 30px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -10px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.3); }

.btn-ghost {
  color: var(--text); background: var(--surface-2); border-color: var(--border-2);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: var(--surface-3); transform: translateY(-2px); }

.btn-white { color: #0B0B10; background: #fff; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(255,255,255,.35); }

/* ---------- Навигация ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.nav.scrolled {
  background: rgba(8,8,12,0.72);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.logo { width: 30px; height: auto; display: block; }
.logo .ring circle { fill: var(--dot); }
.logo text { fill: #fff; }

.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--text-2); font-size: 15px; transition: color .2s; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .2s; }
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; gap: 4px; padding: 12px 24px 20px; background: rgba(8,8,12,0.96); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.mobile-nav a { padding: 12px 6px; color: var(--text-2); border-bottom: 1px solid var(--border); }
.mobile-nav .mnav-cta { margin-top: 12px; justify-content: center; border-bottom: none; color: #fff; }

/* ---------- Секции ---------- */
section { padding: 104px 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--text-2); font-size: 18px; margin-top: 16px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent); padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid rgba(255,78,107,0.22); margin-bottom: 18px;
}

/* ---------- HERO (полноэкранный сплит, один блок) ---------- */
.hero { padding: 28px 0 104px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.06fr 0.94fr; gap: 72px; align-items: center; min-height: calc(100svh - 96px); }
.hero-copy { text-align: left; }
.hero-demo { min-width: 0; }
.hero-aurora { position: absolute; inset: -20% 0 auto 0; height: 720px; z-index: -1; filter: blur(70px); opacity: .7; pointer-events: none; }
.hero-aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: float 16s ease-in-out infinite; }
.hero-aurora .a1 { width: 520px; height: 520px; left: 8%; top: -80px; background: radial-gradient(circle, rgba(99,102,241,.7), transparent 65%); }
.hero-aurora .a2 { width: 480px; height: 480px; right: 6%; top: -40px; background: radial-gradient(circle, rgba(255,78,107,.6), transparent 65%); animation-delay: -5s; }
.hero-aurora .a3 { width: 560px; height: 560px; left: 40%; top: 60px; background: radial-gradient(circle, rgba(168,85,247,.5), transparent 65%); animation-delay: -9s; }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(40px,30px) scale(1.08); } 66% { transform: translate(-30px,20px) scale(.95); } }
@media (prefers-reduced-motion: reduce){ .hero-aurora span { animation: none; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: 999px; font-size: 14px; color: var(--text-2);
  background: var(--surface-2); border: 1px solid var(--border); backdrop-filter: blur(8px);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(16,185,129,.18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100%{ opacity:1 } 50%{ opacity:.4 } }

.hero-title { font-size: clamp(38px, 4.6vw, 66px); font-weight: 800; margin: 24px 0 0; max-width: 13ch; }
.hero-sub { color: var(--text-2); font-size: clamp(17px, 1.5vw, 20px); max-width: 34ch; margin: 22px 0 0; }
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: 14px; justify-content: flex-start; flex-wrap: wrap; margin-top: 32px; }
.hero-note { color: var(--muted); font-size: 14px; margin-top: 18px; }

/* --- Живое демо захвата --- */
.capture-demo {
  width: 100%; margin: 0; text-align: left;
  border-radius: var(--radius-lg); padding: 22px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.06);
  position: relative;
}
.capture-demo::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, rgba(255,78,107,.5), transparent 40%, rgba(99,102,241,.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .6;
}
.cd-field { display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 16px; border-radius: 14px; background: rgba(0,0,0,.35); border: 1px solid var(--border); }
.cd-plus { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(180deg,#FF5E78,var(--accent)); color:#fff; font-size: 19px; font-weight: 700; box-shadow: 0 6px 16px -6px var(--accent-glow); }
.cd-input { flex: 1; min-height: 30px; display: flex; align-items: center; font-size: 16px; color: var(--text); outline: none; }
.cd-input .typed { white-space: pre-wrap; }
.cd-input:empty::before { content: attr(data-placeholder); color: var(--muted); }
.cd-caret { display: inline-block; width: 2px; height: 20px; margin-left: 1px; background: var(--accent); vertical-align: middle; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cd-mic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.cd-mic svg { width: 17px; height: 17px; }

.cd-result { margin-top: 14px; display: grid; gap: 10px; overflow: hidden; max-height: 0; opacity: 0; transition: max-height .5s var(--ease), opacity .4s; }
.cd-result.show { max-height: 260px; opacity: 1; }
.cd-arrow { text-align: center; color: var(--muted); font-size: 13px; letter-spacing: .04em; }
.cd-card {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--border-2);
}
.cd-check { flex: none; width: 26px; height: 26px; border-radius: 8px; background: rgba(16,185,129,.16); color: var(--green); display: grid; place-items: center; font-size: 15px; }
.cd-card-title { font-weight: 600; font-size: 15px; }
.cd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cd-chip { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; opacity: 0; transform: translateY(6px); animation: chipIn .4s var(--ease) forwards; }
.cd-chip .cdot { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--accent)); }
.cd-result.show .cd-chip:nth-child(1){ animation-delay: .12s; }
.cd-result.show .cd-chip:nth-child(2){ animation-delay: .22s; }
.cd-result.show .cd-chip:nth-child(3){ animation-delay: .32s; }
.cd-result.show .cd-chip:nth-child(4){ animation-delay: .42s; }
@keyframes chipIn { to { opacity: 1; transform: none; } }
.cd-hint { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 12px; }
.cd-hint kbd { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 7px; font: inherit; font-size: 12px; }

/* --- Мокап в герое (широкая полоса под сплитом) --- */
.hero-shot { margin: 72px auto 0; max-width: 1180px; perspective: 1600px; }
.hero-laptop { width: 100%; height: auto; filter: drop-shadow(0 45px 90px rgba(0,0,0,.6)); }
/* --- кадры витрины (готовые оконные скрины) --- */
.browser.shot-plain { border: none; background: transparent; box-shadow: none; border-radius: 14px; }
.browser.shot-plain img { border-radius: 14px; box-shadow: 0 30px 70px -24px rgba(0,0,0,.7), 0 0 0 1px var(--border); }

/* ---------- Browser-мокап ---------- */
.browser {
  border-radius: 16px; overflow: hidden; background: #0d0d15;
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.05);
  transform-style: preserve-3d; transition: transform .3s var(--ease), box-shadow .3s;
  position: relative;
}
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: rgba(255,255,255,.03); border-bottom: 1px solid var(--border); }
.browser-bar .dots { display: flex; gap: 7px; }
.browser-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #333340; }
.browser-bar .dots i:nth-child(1){ background:#FF5F57; } .browser-bar .dots i:nth-child(2){ background:#FEBC2E; } .browser-bar .dots i:nth-child(3){ background:#28C840; }
.browser-bar .url { flex: 1; display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 12.5px; color: var(--muted); background: rgba(0,0,0,.3); border-radius: 8px; padding: 6px 12px; max-width: 320px; margin: 0 auto; }
.browser-bar .url svg { width: 13px; height: 13px; opacity: .6; }
.browser img { width: 100%; display: block; }
.glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(340px circle at var(--gx,50%) var(--gy,0%), rgba(255,255,255,.14), transparent 60%); }
.browser.tilting .glare { opacity: 1; }

.is-floating { animation: bob 7s ease-in-out infinite; }
@keyframes bob { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce){ .is-floating { animation: none; } }

/* ---------- Проблема ---------- */
.problem-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.problem-card { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform .3s var(--ease), border-color .3s, background .3s; }
.problem-card:hover { transform: translateY(-4px); border-color: var(--border-2); background: var(--surface-2); }
.problem-card .x { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 17px; color: var(--accent); background: var(--accent-soft); margin-bottom: 16px; }
.problem-card h3 { margin-bottom: 8px; }
.problem-card p { color: var(--text-2); font-size: 15px; }

/* ---------- Модель Сфера-Проект-Цель ---------- */
.model { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; position: relative; }
.model-card { padding: 26px; border-radius: var(--radius); background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); position: relative; transition: transform .3s var(--ease), border-color .3s; }
.model-card:hover { transform: translateY(-4px); border-color: var(--border-2); }
.model-card .mc-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.model-card h3 { margin-bottom: 8px; }
.model-card p { color: var(--text-2); font-size: 14.5px; }
.model-card .mc-ex { margin-top: 12px; font-size: 13px; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--border); }
.model-card .arrow { position: absolute; right: -27px; top: 50%; transform: translateY(-50%); z-index: 2; color: var(--muted); font-size: 22px; }
.model-note { max-width: 640px; margin: 30px auto 0; text-align: center; color: var(--text-2); font-size: 16px; padding: 18px 24px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid rgba(255,78,107,0.2); }

/* ---------- Захват ---------- */
.capture-methods { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.cap-card { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform .3s var(--ease), border-color .3s, background .3s; }
.cap-card:hover { transform: translateY(-4px); border-color: var(--border-2); background: var(--surface-2); }
.cap-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; font-size: 22px; }
.cap-card h3 { margin-bottom: 8px; }
.cap-card p { color: var(--text-2); font-size: 15px; }

/* ---------- Связи ---------- */
.links-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.links-copy h2 { margin-bottom: 18px; }
.links-copy > p { color: var(--text-2); font-size: 17px; margin-bottom: 22px; }
.links-list { display: grid; gap: 14px; padding: 0; margin: 0; }
.links-list li { list-style: none; display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: 15px; }
.links-list .lk-dot { flex: none; width: 22px; height: 22px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 12px; margin-top: 2px; }
.links-list strong { color: var(--text); }

.links-viz { aspect-ratio: 1/1; border-radius: var(--radius-lg); background: radial-gradient(circle at 50% 45%, rgba(99,102,241,.14), transparent 65%); border: 1px solid var(--border); position: relative; overflow: hidden; }
.links-viz .node { position: absolute; padding: 9px 14px; border-radius: 12px; background: rgba(20,20,30,.85); border: 1px solid var(--border-2); font-size: 13px; font-weight: 500; backdrop-filter: blur(6px); box-shadow: 0 10px 30px -14px rgba(0,0,0,.7); display: flex; align-items: center; gap: 7px; white-space: nowrap; z-index: 2; }
.links-viz .node .ndot { width: 8px; height: 8px; border-radius: 50%; }
.links-viz .node.hub { background: rgba(255,78,107,.16); border-color: rgba(255,78,107,.5); font-weight: 600; box-shadow: 0 0 40px rgba(255,78,107,.3), 0 10px 30px -14px rgba(0,0,0,.7); z-index: 3; }
.links-viz svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.links-viz .wires path { fill: none; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.links-viz .wires .spoke { stroke: rgba(255,78,107,.30); stroke-dasharray: 5 6; animation: dash 24s linear infinite; }
.links-viz .wires .ring2 { stroke: rgba(255,255,255,.10); stroke-dasharray: 3 7; animation: dash 44s linear infinite reverse; }
@keyframes dash { to { stroke-dashoffset: -400; } }
@media (prefers-reduced-motion: reduce){ .links-viz .wires path { animation: none; } }

/* ---------- Модули (bento на 12 колонок, autoscale) ---------- */
.modules { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: 16px; }
.mod {
  grid-column: span 3;                    /* базовая карточка = 3 из 12 (4 в ряд) */
  padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  transition: transform .3s var(--ease), border-color .3s, background .3s; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.mod:hover { transform: translateY(-4px); border-color: var(--border-2); background: var(--surface-2); }
.mod::after { content: ""; position: absolute; inset: 0; background: radial-gradient(180px circle at var(--mx,50%) var(--my,0%), rgba(255,255,255,.05), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.mod:hover::after { opacity: 1; }
.mod .mic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; margin-bottom: 14px; }
.mod h3 { font-size: 16px; margin-bottom: 5px; }
.mod p { color: var(--text-2); font-size: 13.5px; line-height: 1.5; }

/* span-модификаторы 12-колоночной сетки */
.mod.c6  { grid-column: span 6; }
.mod.c6r2 { grid-column: span 6; grid-row: span 2; }

/* крупная карточка-фича: место под мини-превью */
.mod.c6r2 h3 { font-size: 20px; }
.mod.c6r2 p { font-size: 15px; }
.mod-preview { margin-top: auto; padding-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mp-tile { padding: 12px 14px; border-radius: 12px; background: rgba(0,0,0,.28); border: 1px solid var(--border); }
.mp-tile .mp-k { font-size: 12px; color: var(--muted); }
.mp-tile .mp-v { font-size: 17px; font-weight: 700; margin-top: 3px; letter-spacing: -.01em; }
.mp-bar { height: 5px; border-radius: 999px; background: var(--surface-3); margin-top: 8px; overflow: hidden; }
.mp-bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* ---------- Витрина скринов ---------- */
.showcase-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 26px; perspective: 1600px; }
.showcase-cap { margin-top: 18px; }
.showcase-cap h3 { margin-bottom: 5px; }
.showcase-cap p { color: var(--text-2); font-size: 14.5px; }

/* ---------- ИИ-ассистент ---------- */
.ai-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: stretch; }
.ai-copy { display: flex; flex-direction: column; justify-content: center; }
.ai-copy h2 { margin-bottom: 18px; }
.ai-copy > p { color: var(--text-2); font-size: 17px; }
.ai-visual { display: flex; }
.ai-modes { display: grid; gap: 14px; margin-top: 22px; }
.ai-mode { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.ai-mode h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 16px; }
.ai-mode h3 .tag { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; }
.ai-mode p { color: var(--text-2); font-size: 14.5px; }

.chat { flex: 1; border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border-2); padding: 22px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.msg { max-width: 84%; padding: 12px 16px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; }
.msg.user { align-self: flex-end; background: linear-gradient(180deg,#FF5E78,var(--accent)); color: #fff; border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-start; background: var(--surface-3); border: 1px solid var(--border); border-bottom-left-radius: 6px; color: var(--text); }

/* --- анимация чата: сообщения появляются по очереди --- */
.chat .msg { opacity: 0; transform: translateY(12px) scale(.98); }
.chat.play .msg { animation: msgIn .5s var(--ease) forwards; }
.chat.play .msg:nth-child(1) { animation-delay: .15s; }
.chat.play .msg:nth-child(2) { animation-delay: .80s; }
.chat.play .msg:nth-child(3) { animation-delay: 1.7s; }
.chat.play .msg:nth-child(4) { animation-delay: 2.35s; }
@keyframes msgIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .chat .msg { opacity: 1; transform: none; } .chat.play .msg { animation: none; } }
.msg.bot .confirm { margin-top: 10px; display: flex; gap: 8px; }
.msg .mini { padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: none; }
.msg .mini.ok { background: var(--green); color: #04130d; }
.msg .mini.no { background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text-2); }

/* ---------- Полезные мелочи (анимированные иконки) ---------- */
.utils-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.util { text-align: center; padding: 26px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform .3s var(--ease), border-color .3s, background .3s; }
.util:hover { transform: translateY(-4px); border-color: var(--border-2); background: var(--surface-2); }
.util-ic { width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); transition: color .3s, border-color .3s; }
.util:hover .util-ic { color: var(--accent); border-color: rgba(255,78,107,.4); }
.util-ic svg { width: 26px; height: 26px; overflow: visible; }
.util h3 { font-size: 15px; margin-bottom: 4px; }
.util p { color: var(--text-2); font-size: 12.5px; line-height: 1.5; }

/* иконки: постоянные микроанимации + усиление на hover */
.u-timer .hand { transform-box: view-box; transform-origin: 12px 13px; animation: spin 4.5s linear infinite; }
.util:hover .u-timer .hand { animation-duration: 1.1s; }
@keyframes spin { to { transform: rotate(360deg); } }
.u-cal .dot { animation: pulseDot 2.4s ease-in-out infinite; }
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: .2; } }
.u-bell { transform-origin: top center; }
.util:hover .u-bell { animation: swing .8s var(--ease); }
@keyframes swing { 0%,100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 40% { transform: rotate(-10deg); } 60% { transform: rotate(6deg); } 80% { transform: rotate(-3deg); } }
.util:hover .u-search { animation: scan .8s var(--ease); }
@keyframes scan { 0% { transform: translate(0,0); } 30% { transform: translate(2px,-2px); } 60% { transform: translate(-2px,1px); } 100% { transform: translate(0,0); } }
.util:hover .u-link { animation: twist .7s var(--ease); }
@keyframes twist { 0%,100% { transform: rotate(0); } 50% { transform: rotate(-16deg); } }
.u-calc .keys > * { transition: opacity .2s; }
.util:hover .u-calc .keys > * { animation: blink 1s steps(1) infinite; }
.util:hover .u-calc .keys > *:nth-child(2) { animation-delay: .12s; }
.util:hover .u-calc .keys > *:nth-child(3) { animation-delay: .24s; }
.util:hover .u-calc .keys > *:nth-child(4) { animation-delay: .36s; }
.util:hover .u-calc .keys > *:nth-child(5) { animation-delay: .48s; }
.util:hover .u-calc .keys > *:nth-child(6) { animation-delay: .60s; }
@keyframes blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .u-timer .hand, .u-cal .dot, .util:hover .u-bell, .util:hover .u-search, .util:hover .u-link, .util:hover .u-calc .keys > * { animation: none; } }

/* ---------- Устройства (ноутбук + планшет + телефон с анимациями) ---------- */
.devices-stage { position: relative; max-width: 1020px; margin: 0 auto; height: 600px; }
.dev { position: absolute; }
.dev img { display: block; width: 100%; height: auto; filter: drop-shadow(0 40px 70px rgba(0,0,0,.55)); }
.dev-laptop { width: 66%; left: 50%; top: 22px; z-index: 2; animation: floatC 7s ease-in-out infinite; }
.dev-tablet { width: 41%; left: 0; bottom: 40px; z-index: 1; animation: floatY 8.5s ease-in-out infinite; animation-delay: -2.5s; }
.dev-phone  { width: 17.5%; right: 4%; bottom: 0; z-index: 3; animation: floatY 6.5s ease-in-out infinite; animation-delay: -1.2s; }
@keyframes floatC { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-16px); } }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }
@media (prefers-reduced-motion: reduce) { .dev-laptop, .dev-tablet, .dev-phone { animation: none; } }

.devices-feats { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 64px; }
.dfeat { display: flex; gap: 14px; align-items: flex-start; }
.dfeat .dic { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; }
.dfeat h3 { font-size: 16px; margin-bottom: 4px; }
.dfeat p { color: var(--text-2); font-size: 14px; }

/* ---------- Принципы ---------- */
.principles-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.principle { display: flex; gap: 14px; align-items: flex-start; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.principle .check { flex: none; width: 34px; height: 34px; border-radius: 10px; background: rgba(16,185,129,.15); color: var(--green); display: grid; place-items: center; font-weight: 700; }
.principle h3 { font-size: 16px; margin-bottom: 5px; }
.principle p { color: var(--text-2); font-size: 14px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; transition: border-color .3s, background .3s; }
.faq-item[open] { border-color: var(--border-2); background: var(--surface-2); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 16.5px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--accent); font-weight: 400; transition: transform .25s; flex: none; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 24px 22px; color: var(--text-2); font-size: 15.5px; }

/* ---------- Финальный CTA ---------- */
.cta-final { padding: 96px 0; }
.cta-box {
  position: relative; overflow: hidden; text-align: left;
  padding: 56px; border-radius: var(--radius-lg);
  background: linear-gradient(140deg, rgba(255,78,107,.14), rgba(99,102,241,.12));
  border: 1px solid var(--border-2);
}
.cta-box::before { content: ""; position: absolute; width: 500px; height: 500px; top: -260px; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, var(--accent-glow), transparent 60%); filter: blur(50px); opacity: .5; pointer-events: none; }
.cta-grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.cta-copy h2 { max-width: 18ch; }
.cta-copy > p { color: var(--text-2); font-size: 18px; margin-top: 16px; max-width: 46ch; }
.cta-copy .cta-alt { margin-top: 20px; font-size: 14.5px; color: var(--text-2); }
.cta-copy .cta-alt a { color: var(--text); border-bottom: 1px solid var(--border-2); }
.cta-form-wrap { padding: 26px; border-radius: var(--radius); background: rgba(0,0,0,.30); border: 1px solid var(--border-2); box-shadow: var(--shadow-lg); }
.waitlist { display: grid; gap: 12px; }
.waitlist input { width: 100%; padding: 15px 18px; border-radius: 14px; border: 1px solid var(--border-2); background: rgba(0,0,0,.35); color: var(--text); font-size: 16px; }
.waitlist input::placeholder { color: var(--muted); }
.waitlist input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.waitlist .btn { width: 100%; margin-top: 4px; }
.cta-small { color: var(--muted); font-size: 13px; margin-top: 14px; text-align: center; }

/* ---------- Футер ---------- */
footer.site { border-top: 1px solid var(--border); padding: 44px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--text-2); font-size: 14.5px; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-sign { color: var(--muted); font-size: 13px; margin-top: 12px; }
.muted { color: var(--muted); }

/* ---------- Прелоадер / интро LifeHub ---------- */
.intro { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: var(--bg); }
.intro::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(620px 420px at 50% 42%, rgba(255,78,107,.16), transparent 60%),
              radial-gradient(520px 420px at 50% 62%, rgba(99,102,241,.13), transparent 60%); }
.intro.hide { opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s .6s; }
body.intro-lock { overflow: hidden; }
.intro-inner { position: relative; display: grid; justify-items: center; gap: 24px; }
.intro-mark { position: relative; width: 116px; height: auto; }
.intro-logo { width: 116px; height: auto; opacity: 0; transform: scale(.62); animation: introLogo .9s var(--ease) .05s forwards; }
@keyframes introLogo { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .intro-logo { opacity: 1; transform: none; animation: none; } }
.intro-hub { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  background: linear-gradient(180deg,#FF5E78,var(--accent)); box-shadow: 0 0 36px var(--accent-glow);
  transform: scale(0); animation: hubIn .6s var(--ease) .1s forwards; }
.intro-dot { position: absolute; left: 50%; top: 50%; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 16px -2px var(--c); transform: translate(0,0) scale(0);
  animation: dotOut .7s var(--ease) forwards; }
@keyframes hubIn { 0% { transform: scale(0); } 62% { transform: scale(1.16); } 100% { transform: scale(1); } }
@keyframes dotOut {
  0% { transform: translate(0,0) scale(0); }
  62% { transform: translate(var(--tx), var(--ty)) scale(1.14); }
  100% { transform: translate(var(--tx), var(--ty)) scale(1); }
}
.intro-word { font-size: 32px; font-weight: 800; letter-spacing: -.02em; opacity: 0; transform: translateY(10px);
  animation: introWord .6s var(--ease) 1s forwards; }
.intro-word .g { background: linear-gradient(120deg,#fff, var(--accent) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro-tag { font-size: 14px; color: var(--muted); opacity: 0; margin-top: -12px; animation: introWord .6s var(--ease) 1.22s forwards; }
@keyframes introWord { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .intro-hub, .intro-dot, .intro-word, .intro-tag { animation-duration: .01s !important; animation-delay: 0s !important; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1 !important; transform: none !important; } }

/* ---------- Адаптив ---------- */
/* планшет: 12 колонок ужимаем в 6, крупные карточки на всю ширину */
@media (max-width: 1024px) {
  .modules { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .mod { grid-column: span 3; }              /* 2 в ряд */
  .mod.c6, .mod.c6r2 { grid-column: span 6; grid-row: auto; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  section { padding: 72px 0; }
  .problem-grid, .model, .capture-methods, .showcase-grid, .devices-feats, .principles-grid { grid-template-columns: 1fr; }
  .links-wrap, .ai-wrap { grid-template-columns: 1fr; }
  .model-card .arrow { display: none; }
  .ai-visual { order: -1; }

  /* устройства: компактнее на планшете/телефоне */
  .devices-stage { height: 440px; max-width: 560px; }
  .dev-laptop { width: 82%; top: 10px; }
  .dev-tablet { width: 46%; bottom: 24px; }
  .dev-phone { width: 22%; right: 2%; }

  .utils-grid { grid-template-columns: repeat(3, 1fr); }

  /* герой обратно в одну колонку и по центру */
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; min-height: auto; }
  .hero-copy { text-align: center; }
  .hero-title { margin-left: auto; margin-right: auto; max-width: 16ch; }
  .hero-sub { margin-left: auto; margin-right: auto; max-width: 46ch; }
  .hero-actions { justify-content: center; }
  .capture-demo { max-width: 560px; margin: 0 auto; }

  /* CTA-форма в одну колонку */
  .cta-box { padding: 40px 24px; text-align: center; }
  .cta-grid { grid-template-columns: 1fr; gap: 30px; }
  .cta-copy h2, .cta-copy > p { max-width: none; margin-left: auto; margin-right: auto; }
  .cta-form-wrap { text-align: left; }
}
@media (max-width: 560px) {
  .modules { grid-template-columns: 1fr; }
  .mod, .mod.c6, .mod.c6r2 { grid-column: auto; grid-row: auto; }
  .mod-preview { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .mp-tile { padding: 10px 11px; }
  .mp-tile .mp-v { font-size: 14px; }
  .utils-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions .btn { width: 100%; }
  .nav-cta .btn-primary { display: none; }
}

/* ============================================================
   БЛОГ + СТАТЬЯ (генерируется build-blog.mjs)
   ============================================================ */

/* --- Хлебные крошки --- */
.breadcrumbs { max-width: 760px; margin: 0 auto; padding: 24px 0 0; font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--text-2); }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs .sep { opacity: .5; }

/* --- Индекс блога --- */
.blog-hero { text-align: center; max-width: 720px; margin: 0 auto; padding: 40px 0 8px; }
.blog-hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; }
.blog-hero p { color: var(--text-2); font-size: 18px; margin-top: 16px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); transition: transform .3s var(--ease), border-color .3s, background .3s; }
.post-card:hover { transform: translateY(-5px); border-color: var(--border-2); background: var(--surface-2); }
.post-cover { height: 130px; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 14px; }
.post-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 120% at 15% 0%, rgba(255,255,255,.14), transparent 55%); }
.post-cover .cat { position: relative; z-index: 1; font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: rgba(0,0,0,.35); color: #fff; backdrop-filter: blur(4px); }
.post-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.post-body h2 { font-size: 18.5px; line-height: 1.25; margin-bottom: 10px; }
.post-body h2 a { color: var(--text); }
.post-body h2 a:hover { color: var(--accent); }
.post-body p { color: var(--text-2); font-size: 14.5px; line-height: 1.55; flex: 1; }
.post-meta { margin-top: 16px; font-size: 12.5px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }

/* --- Страница статьи --- */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.article-head { max-width: 760px; margin: 0 auto; padding: 28px 0 8px; }
.article-cat { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--accent); padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); border: 1px solid rgba(255,78,107,.22); }
.article-head h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; margin: 20px 0 0; letter-spacing: -.02em; }
.article-meta { margin-top: 18px; font-size: 14px; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
.article-meta .author { color: var(--text-2); }

/* оглавление */
.toc { margin: 30px auto 0; max-width: 760px; padding: 18px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.toc-title { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 10px; }
.toc ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.toc a { color: var(--text-2); font-size: 14.5px; }
.toc a:hover { color: var(--accent); }

/* тело статьи (проза) */
.article { max-width: 720px; margin: 0 auto; padding: 8px 0 0; font-size: 18px; line-height: 1.75; color: #d7d7e0; }
.article > * + * { margin-top: 1.25em; }
.article h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 700; letter-spacing: -.01em; color: var(--text); margin-top: 2em; scroll-margin-top: 90px; }
.article h3 { font-size: 21px; font-weight: 700; color: var(--text); margin-top: 1.6em; }
.article p { margin-top: 1.1em; }
.article strong { color: var(--text); font-weight: 700; }
.article em { font-style: italic; }
.article a { color: var(--accent); border-bottom: 1px solid rgba(255,78,107,.35); }
.article a:hover { border-bottom-color: var(--accent); }
.article ul, .article ol { margin: 1.1em 0; padding-left: 1.3em; display: grid; gap: .5em; }
.article li { padding-left: .2em; }
.article blockquote { margin: 1.4em 0; padding: 6px 20px; border-left: 3px solid var(--accent); color: var(--text-2); font-style: italic; }
.article code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 7px; font-size: .9em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.article hr { border: none; border-top: 1px solid var(--border); margin: 2.2em 0; }

/* CTA внутри статьи */
.cta-inline { max-width: 760px; margin: 48px auto 0; padding: 32px; border-radius: var(--radius-lg); background: linear-gradient(140deg, rgba(255,78,107,.14), rgba(99,102,241,.12)); border: 1px solid var(--border-2); }
.cta-inline h3 { font-size: 22px; font-weight: 700; }
.cta-inline p { color: var(--text-2); font-size: 15.5px; margin-top: 10px; }
.cta-inline .btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

/* автор */
.author-box { max-width: 760px; margin: 40px auto 0; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); display: flex; gap: 16px; align-items: center; }
.author-box .ava { flex: none; width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(180deg,#FF5E78,var(--accent)); display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 20px; }
.author-box .who { font-weight: 600; }
.author-box .bio { color: var(--text-2); font-size: 14px; margin-top: 3px; }

/* похожие */
.related { max-width: 980px; margin: 64px auto 0; }
.related h2 { font-size: 22px; margin-bottom: 22px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .article { font-size: 17px; }
}

/* honeypot формы (скрыт от людей, ловит ботов) */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
