/* ===========================================================
   NeyroSync — общие стили
   Типографика, отступы, эффекты сверены 1:1 с оригиналом
   (computed styles сняты напрямую со страницы Lovable).
   Палитра фона — как в оригинале (тёплый off-white #f9f8f6).
   =========================================================== */

:root{
  /* Фон как в оригинале */
  --bg:        #f9f8f6;
  --bg-alt:    #f6f5f2;   /* секции-«подложки» */
  --white:     #ffffff;   /* card-surface + светлые секции */
  --text:      #131311;
  --text-muted:#6b6b6b;
  --text-faint:#9a9a95;
  --accent:      #1a2ae6;
  --accent-hover:#1522c2;
  --accent-soft: rgba(26,42,230,.06);
  --border:    #e8e6e3;

  --r-card: 16px;   /* rounded-2xl / card-radius */
  --r-btn:  10px;
  --shadow:     0 2px 32px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 15px -3px rgba(0,0,0,.10), 0 4px 6px -4px rgba(0,0,0,.10);
  --glow:       0 0 20px rgba(26,42,230,.30);
  --glow-strong:0 0 30px rgba(26,42,230,.50);

  --container: 1400px;
  --section-y: 120px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size:16px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
button{ font:inherit; cursor:pointer; border:none; background:none; color:inherit; }

.container{ max-width: var(--container); margin:0 auto; padding: 0 16px; }
@media (min-width:1024px){ .container{ padding: 0 32px; } }

/* ---------- Типографика ---------- */
h1,h2,h3,h4{ line-height:1.25; letter-spacing:-.01em; }

/* label-caps — маленькая надпись капсом над заголовком */
.eyebrow{
  font-size:11px; font-weight:500; text-transform:uppercase;
  letter-spacing:.15em; color: var(--text-muted);
  margin-bottom:16px;
}

/* h2 секций: первая часть — сверхжирная, вторая (span.light) — сверхтонкая */
h2.h-sec, .section-head h2, .founder-copy h2{
  font-size:24px; font-weight:900; line-height:1.25; letter-spacing:-.02em;
}
@media (min-width:640px){ h2.h-sec, .section-head h2, .founder-copy h2{ font-size:30px; } }
@media (min-width:1024px){ h2.h-sec, .section-head h2, .founder-copy h2{ font-size:36px; } }
h2 .light, .founder-copy h2 .light{ font-weight:200; }
h2 b{ font-weight:900; }

.section{ padding: var(--section-y) 0; }
.section--tight{ padding: var(--section-y) 0; }
.section--alt{ background: var(--bg-alt); }
.section--white{ background: var(--white); }

.section-head{ max-width: 820px; margin-bottom:48px; }
.section-head h2{ margin-bottom:16px; }
.section-head p{ color: var(--text-muted); font-size:16px; line-height:1.625; max-width:672px; }
@media (min-width:1024px){ .section-head p{ font-size:18px; } }

/* ---------- Иконки (lucide, 20×20, обводка 1.5) ---------- */
.ic{
  width:20px; height:20px; flex:none;
  fill:none; stroke:currentColor; stroke-width:1.5;
  stroke-linecap:round; stroke-linejoin:round;
  color: var(--accent);
}
.ic-sm{ width:16px; height:16px; }

/* ---------- Кнопки ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:16px 32px; border-radius: var(--r-btn);
  font-weight:600; font-size:16px; white-space:nowrap;
  transition: all .3s cubic-bezier(.4,0,.2,1);
}
.btn-primary{ background: var(--accent); color:#fff; box-shadow: var(--glow); }
.btn-primary:hover{ transform: scale(1.02); background: var(--accent-hover); box-shadow: var(--glow-strong); }
.btn-glow-idle{ animation: glow-pulse 3s ease-in-out infinite; }
@keyframes glow-pulse{
  0%,100%{ box-shadow: 0 0 20px rgba(26,42,230,.30); }
  50%    { box-shadow: 0 0 35px rgba(26,42,230,.50); }
}
.btn-outline{ background:transparent; border:1.5px solid var(--accent); color: var(--accent); }
.btn-outline:hover{ background: var(--accent-soft); }
.btn-dark{ background: var(--text); color:#fff; }
.btn-dark:hover{ opacity:.9; }
.btn-soft{ background: rgba(26,42,230,.10); color: var(--accent); padding:12px 20px; font-size:14px; font-weight:500; border-radius: var(--r-btn); }
.btn-soft:hover{ background: rgba(26,42,230,.20); }
.btn-sm{ padding:12px 20px; font-size:14px; }
.btn-block{ width:100%; }
.link-accent{ display:inline-flex; align-items:center; gap:6px; color: var(--accent); font-weight:500; font-size:14px; }
.link-accent:hover{ text-decoration:underline; }

/* ---------- Шапка ---------- */
.site-header{
  position: sticky; top:0; z-index:50;
  background: transparent;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom:1px solid transparent;
}
.site-header.scrolled{
  background: rgba(249,248,246,.85);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.site-header .container{ display:flex; align-items:center; justify-content:space-between; height:64px; }
.logo{ display:flex; align-items:center; }
.logo svg{ height:34px; width:auto; display:block; }
.footer-brand .logo svg{ height:24px; }
.nav-links{ display:flex; align-items:center; gap:24px; }
.nav-links a, .nav-links button{ font-size:14px; font-weight:500; color: var(--text-muted); transition: color .2s; }
.nav-links a:hover, .nav-links button:hover{ color: var(--text); }
.nav-right{ display:flex; align-items:center; gap:24px; }
.nav-phone{ display:inline-flex; align-items:center; gap:8px; font-size:14px; color: var(--text); }
.nav-phone:hover{ color: var(--accent); }
.nav-toggle{ display:none; font-size:22px; line-height:1; }

@media (max-width: 1023px){ .nav-phone span{ display:none; } }
@media (max-width: 900px){
  .nav-links, .nav-phone, .nav-cta{ display:none; }
  .nav-toggle{ display:block; }
}

/* ---------- Hero ---------- */
.hero{
  position:relative; min-height:100vh; display:flex; align-items:center; overflow:hidden;
  margin-top:-64px; padding-top:64px;
  background:
    radial-gradient(80% 60% at 20% 50%, rgba(26,42,230,.05) 0%, transparent 70%),
    radial-gradient(60% 80% at 80% 30%, rgba(71,85,235,.04) 0%, transparent 60%),
    radial-gradient(50% 50% at 50% 80%, rgba(117,199,240,.03) 0%, transparent 50%),
    linear-gradient(135deg, #f9f8f6, #f4f3f0);
}
.hero > .container{ padding-top:32px; padding-bottom:64px; }
.hero-tag{
  font-size:11px; font-weight:500; text-transform:uppercase;
  letter-spacing:.15em; color: var(--text-muted); margin-bottom:24px;
}
.hero h1{
  font-size:30px; line-height:1.25; max-width:896px; margin:0;
  font-weight:900; letter-spacing:-.02em;
}
@media (min-width:640px){ .hero h1{ font-size:36px; } }
@media (min-width:1024px){ .hero h1{ font-size:60px; } }
.hero h1.thin{ font-weight:200; }
.hero-head{ margin-bottom:24px; }
.hero-sub{ margin-bottom:40px; font-size:16px; color: var(--text-muted); max-width:672px; line-height:1.625; }
@media (min-width:1024px){ .hero-sub{ font-size:18px; } }
.hero-list{ display:flex; flex-direction:column; gap:12px; max-width:672px; margin-bottom:40px; }
.hero-list li{ display:flex; align-items:flex-start; gap:12px; font-size:14px; color: rgba(19,19,17,.9); line-height:1.6; }
@media (min-width:1024px){ .hero-list li{ font-size:16px; } }
.hero-list .ic{ margin-top:2px; }
.hero-actions{ display:flex; flex-direction:column; gap:16px; margin-bottom:64px; }
@media (min-width:640px){ .hero-actions{ flex-direction:row; } }
.hero-trust{
  display:flex; flex-wrap:wrap; align-items:center; gap:16px 24px;
  font-size:11px; font-weight:500; text-transform:uppercase;
  letter-spacing:.15em; color: rgba(107,111,120,.7);
}
@media (min-width:1024px){ .hero-trust{ gap:16px 40px; } }
.hero-trust .badge{ display:inline-flex; align-items:center; gap:8px; }
.hero-trust .badge img{ height:24px; width:auto; display:block; }

/* партнёрские логотипы — отдельной строкой, без подписей */
.hero-partners{
  display:flex; flex-wrap:wrap; align-items:center;
  gap:20px 36px; margin-top:24px;
}
.hero-partners img{
  height:26px; width:auto; display:block;
  opacity:.85; transition: opacity .3s;
}
.hero-partners img:hover{ opacity:1; }
.hero-partners img[alt*="Битрикс24"]{ height:21px; }
.hero-partners img[alt*="Sipuni"]{ height:19px; }
.hero-partners img[alt*="amoCRM"]{ height:17px; }

/* ---------- Основатель ---------- */
.founder-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:64px; align-items:start; }
@media (max-width: 1023px){ .founder-grid{ grid-template-columns:1fr; gap:40px; } }
.founder-photo{
  aspect-ratio: 4/5; border-radius: var(--r-card); overflow:hidden;
  background: linear-gradient(160deg,#efedea,#e2dfd9);
}
.founder-photo img{ width:100%; height:100%; object-fit:cover; object-position: top; }
.founder-copy{ display:flex; flex-direction:column; gap:24px; }
.founder-copy p{ font-size:16px; line-height:1.7; color: rgba(19,19,17,.85); }
@media (min-width:1024px){ .founder-copy p{ font-size:18px; } }
.founder-quote{
  border-left:2px solid var(--accent); padding-left:24px;
  font-size:18px; font-style:italic; font-weight:300; line-height:1.625; color: var(--text);
}
@media (min-width:1024px){ .founder-quote{ font-size:20px; } }
.founder-quote cite{
  display:block; margin-top:16px; font-style:normal;
  font-size:11px; font-weight:500; text-transform:uppercase; letter-spacing:.15em; color: var(--text-muted);
}

/* ---------- Карточка-поверхность (card-surface) ---------- */
.card-surface{ background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow); }

/* ---------- Цифры / метрики ---------- */
.stats-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:24px; }
@media (max-width: 1023px){ .stats-grid{ grid-template-columns: repeat(2,1fr); gap:16px; } }
@media (max-width: 639px){ .stats-grid{ grid-template-columns: 1fr; } }
.stat-card{
  background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow);
  padding:32px 24px; text-align:center;
}
.stat-card .num{ font-size:30px; font-weight:900; color: var(--accent); margin-bottom:8px; letter-spacing:-.02em; }
@media (min-width:1024px){ .stat-card .num{ font-size:36px; } }
.stat-card .label{ font-size:14px; color: var(--text-muted); line-height:1.625; }

/* ---------- «Как мы работаем» — вертикальный таймлайн ---------- */
.timeline{ position:relative; max-width:768px; margin:0 auto; }
.timeline-line{ position:absolute; left:24px; top:0; bottom:0; width:1px; background: var(--border); }
@media (min-width:1024px){ .timeline-line{ left:32px; } }
.tl-step{ position:relative; padding-left:64px; }
@media (min-width:1024px){ .tl-step{ padding-left:80px; } }
.tl-step + .tl-step{ margin-top:24px; }
.tl-dot{
  position:absolute; left:12px; top:12px; z-index:10;
  width:24px; height:24px; border-radius:999px;
  background: var(--bg); border:2px solid var(--accent);
  display:flex; align-items:center; justify-content:center;
  transition: background-color .3s;
}
@media (min-width:1024px){ .tl-dot{ left:20px; } }
.tl-dot i{ width:8px; height:8px; border-radius:999px; background: var(--accent); transition: background-color .3s; }
.tl-step:hover .tl-dot{ background: var(--accent); }
.tl-step:hover .tl-dot i{ background:#fff; }
.tl-card{
  background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow);
  padding:24px; display:flex; align-items:flex-start; gap:16px;
  transition: all .3s cubic-bezier(.4,0,.2,1);
}
.tl-step:hover .tl-card{ transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tl-card .ic{ margin-top:2px; }
.tl-num{
  display:block; font-size:11px; font-weight:500; text-transform:uppercase;
  letter-spacing:.15em; color: var(--accent);
}
.tl-card h3{ font-size:18px; font-weight:700; margin:2px 0 8px; }
.tl-card p{ font-size:14px; color: var(--text-muted); line-height:1.625; }

/* ---------- Шапка внутренних страниц ---------- */
.page-hero{
  padding: 48px 0 64px;
  background: linear-gradient(135deg, #f9f8f6, #f4f3f0);
}
.page-hero h1{ font-size:30px; font-weight:900; line-height:1.25; max-width:900px; letter-spacing:-.02em; }
@media (min-width:640px){ .page-hero h1{ font-size:36px; } }
@media (min-width:1024px){ .page-hero h1{ font-size:48px; } }
.page-hero h1 .light{ display:block; font-weight:200; }
.page-hero .hero-sub{ margin-top:24px; margin-bottom:0; }
.page-hero .hero-actions{ margin-top:32px; margin-bottom:0; }

/* ---------- Таймлайн на старой разметке (.steps / .step) ---------- */
.steps{ position:relative; max-width:768px; padding-left:64px; }
.steps::before{ content:""; position:absolute; left:24px; top:0; bottom:0; width:1px; background: var(--border); }
@media (min-width:1024px){ .steps{ padding-left:80px; } .steps::before{ left:32px; } }
.step{
  position:relative; background: var(--white); border-radius: var(--r-card);
  box-shadow: var(--shadow); padding:24px;
  transition: all .3s cubic-bezier(.4,0,.2,1);
}
.step + .step{ margin-top:24px; }
.step:hover{ transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step::before{
  content:""; position:absolute; left:-52px; top:12px; width:24px; height:24px;
  border-radius:999px; background: var(--bg); border:2px solid var(--accent);
  transition: background-color .3s;
}
.step::after{
  content:""; position:absolute; left:-44px; top:20px; width:8px; height:8px;
  border-radius:999px; background: var(--accent); transition: background-color .3s;
}
@media (min-width:1024px){ .step::before{ left:-60px; } .step::after{ left:-52px; } }
.step:hover::before{ background: var(--accent); }
.step:hover::after{ background:#fff; }
.step-head{ display:block; }
.step-num{
  display:block; font-size:11px; font-weight:500; text-transform:uppercase;
  letter-spacing:.15em; color: var(--accent);
}
.step h3{ font-size:18px; font-weight:700; margin:2px 0 8px; }
.step p{ font-size:14px; color: var(--text-muted); line-height:1.625; }
.step p + p{ margin-top:8px; }

/* ---------- Карточки с иконкой и синей полоской при наведении ---------- */
.cards-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:20px; }
@media (max-width: 1023px){ .cards-grid{ grid-template-columns: repeat(2,1fr); gap:16px; } }
@media (max-width: 639px){ .cards-grid{ grid-template-columns: 1fr; } }

.icard{
  position:relative; border-radius: var(--r-card);
  border:1px solid var(--border); background: var(--bg);
  padding:24px; transition: all .3s cubic-bezier(.4,0,.2,1);
}
.icard:hover{ transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.icard .bar{
  position:absolute; left:0; top:16px; bottom:16px; width:3px;
  border-radius:999px; background: var(--accent);
  transform: scaleY(0); transform-origin:center;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.icard:hover .bar{ transform: scaleY(1); }
.icard .ic{ margin-bottom:16px; }
.icard--link{ display:flex; flex-direction:column; }
.icard--link .link-accent{ margin-top:16px; }
.icard--link:hover .link-accent{ text-decoration:underline; }
.icard h3{ font-size:16px; font-weight:700; margin-bottom:8px; }
.icard p{ font-size:14px; color: var(--text-muted); line-height:1.625; }
/* на белых секциях карточки чуть «подложены» фоном страницы */
.section--white .icard,
.section--white .service-card,
.section--white .voice-card{ background: var(--bg); }

/* совместимость со старой разметкой (case.html / real-estate.html) */
.service-card, .voice-card{
  position:relative; border-radius: var(--r-card);
  border:1px solid var(--border); background: var(--bg);
  padding:24px; transition: all .3s cubic-bezier(.4,0,.2,1);
}
.service-card:hover, .voice-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card .bar, .voice-card .bar{
  position:absolute; left:0; top:16px; bottom:16px; width:3px;
  border-radius:999px; background: var(--accent);
  transform: scaleY(0); transform-origin:center;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.service-card:hover .bar, .voice-card:hover .bar{ transform: scaleY(1); }
.service-card .ic, .voice-card .ic{ margin-bottom:16px; }
.service-card h3, .voice-card h3{ font-size:16px; font-weight:700; margin-bottom:8px; }
.service-card p, .voice-card p{ font-size:14px; color: var(--text-muted); line-height:1.625; }

/* ---------- Экосистема ---------- */
.ecosystem-grid{ display:grid; grid-template-columns:1fr 1fr; gap:64px; margin-bottom:56px; }
@media (max-width: 1023px){ .ecosystem-grid{ grid-template-columns:1fr; gap:40px; } }
.ecosystem-lead{ font-size:18px; line-height:1.625; font-weight:300; color: rgba(19,19,17,.85); }
@media (min-width:1024px){ .ecosystem-lead{ font-size:20px; } }
.ecosystem-list{ display:flex; flex-direction:column; gap:16px; }
.ecosystem-list li{ display:flex; align-items:flex-start; gap:12px; font-size:14px; color: rgba(19,19,17,.9); }
@media (min-width:1024px){ .ecosystem-list li{ font-size:16px; } }
.ecosystem-list .ic{ width:16px; height:16px; margin-top:4px; }
.pull-quote{
  max-width:672px; margin:0 auto; text-align:center;
  font-size:18px; font-weight:300; font-style:italic; line-height:1.625;
}
@media (min-width:1024px){ .pull-quote{ font-size:20px; } }
.pull-quote cite{
  display:block; margin-top:16px; font-style:normal;
  font-size:11px; font-weight:500; text-transform:uppercase; letter-spacing:.15em; color: var(--text-muted);
}

/* ---------- Ниши (эмодзи) ---------- */
.niche-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:16px; }
@media (max-width: 1023px){ .niche-grid{ grid-template-columns: repeat(2,1fr); } }
.niche-card{
  background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow);
  padding:20px; text-align:center;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.niche-card:hover{ transform: translateY(-4px); }
.niche-card .emoji{ font-size:30px; line-height:1.2; margin-bottom:8px; }
.niche-card .title{ font-size:14px; font-weight:600; }

/* ---------- Кейсы ---------- */
.cases-grid{ display:grid; grid-template-columns: 2fr 1fr; gap:20px; align-items:start; }
@media (max-width: 1023px){ .cases-grid{ grid-template-columns:1fr; } }

.case-hero-card{
  position:relative; overflow:hidden; border-radius: var(--r-card);
  padding:32px; background: var(--text); color: var(--bg); display:block;
}
@media (min-width:1024px){ .case-hero-card{ padding:40px; } }
.case-hero-card .x-num{
  position:absolute; right:-16px; bottom:-32px;
  font-size:192px; font-weight:900; line-height:1;
  color: rgba(26,42,230,.22); user-select:none; pointer-events:none;
}
.case-hero-card .inner{ position:relative; z-index:10; }
/* совместимость со старой разметкой на внутренних страницах */
.case-hero-card > *{ position:relative; z-index:10; }
.case-hero-card > .x-num{ position:absolute; z-index:0; }
.case-hero-card .tag{
  display:inline-block; font-size:12px; padding:4px 12px; border-radius:999px;
  background: rgba(26,42,230,.25); color:#9fb0ff; font-weight:500; margin-bottom:12px;
}
.case-hero-card p{ font-size:14px; color: rgba(249,248,246,.75); line-height:1.625; margin-bottom:20px; }
.case-hero-card > .btn{ margin-top:8px; }
.case-hero-card .chip{
  display:inline-block; font-size:12px; padding:4px 12px; border-radius:999px;
  background: rgba(26,42,230,.25); color:#9fb0ff; font-weight:500; margin-bottom:16px;
}
.case-hero-card .who{
  font-size:11px; font-weight:500; text-transform:uppercase; letter-spacing:.15em;
  color: rgba(249,248,246,.5); margin-bottom:8px;
}
.case-hero-card h3{ font-size:20px; font-weight:900; margin-bottom:16px; line-height:1.25; }
@media (min-width:1024px){ .case-hero-card h3{ font-size:24px; } }
.case-hero-card .facts{ display:flex; flex-wrap:wrap; gap:12px; margin-bottom:24px; }
.case-hero-card .facts span{
  font-size:14px; font-weight:600; padding:6px 12px; border-radius:8px;
  background: rgba(249,248,246,.10);
}
.case-hero-card .link-accent{ color:#8ea0ff; }

.case-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:20px; }
@media (max-width: 1023px){ .case-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 639px){ .case-grid{ grid-template-columns: 1fr; } }
/* колонка мелких кейсов рядом с большим кейсом (главная) */
.cases-grid .case-grid{ display:flex; flex-direction:column; grid-template-columns:none; }
@media (max-width: 1023px){ .cases-grid .case-grid{ display:grid; grid-template-columns: repeat(2,1fr); } }
@media (max-width: 639px){ .cases-grid .case-grid{ grid-template-columns: 1fr; } }
.case-card{
  display:block; background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow);
  padding:20px; transition: all .3s cubic-bezier(.4,0,.2,1);
}
.case-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.case-card .tag{
  display:inline-block; font-size:10px; padding:2px 8px; border-radius:999px;
  background: rgba(26,42,230,.10); color: var(--accent); font-weight:500;
}
.case-card h4{ font-size:14px; font-weight:700; margin:12px 0 8px; line-height:1.4; transition: color .2s; }
.case-card:hover h4{ color: var(--accent); }
.case-card p{ font-size:12px; color: var(--text-muted); line-height:1.625; margin-bottom:12px; }
.case-card .link{ font-size:12px; font-weight:500; color: var(--accent); }

/* ---------- Финальный CTA ---------- */
.cta-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
@media (max-width: 767px){ .cta-grid{ grid-template-columns:1fr; } }
.cta-card{ border-radius: var(--r-card); padding:32px; }
.cta-card--dark{ background: var(--text); color: var(--bg); }
.cta-card--dark p{ color: rgba(249,248,246,.7); }
.cta-card--light{ background: var(--white); border:1px solid var(--border); }
.cta-card--light p{ color: var(--text-muted); }
.cta-card h3{ font-size:20px; font-weight:700; margin-bottom:12px; }
.cta-card p{ font-size:14px; line-height:1.625; margin-bottom:24px; }

/* ---------- Подвал ---------- */
.site-footer{ padding:64px 0; border-top:1px solid var(--border); }
.footer-grid{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:32px; margin-bottom:40px; }
@media (max-width: 1023px){ .footer-grid{ flex-direction:column; align-items:flex-start; } }
.footer-brand p{ font-size:14px; color: var(--text-muted); margin-top:6px; }
.footer-links{ display:flex; flex-wrap:wrap; align-items:center; gap:24px; }
.footer-links a, .footer-links button{ font-size:14px; color: var(--text-muted); transition: color .2s; }
.footer-links a:hover{ color: var(--text); }
.footer-bottom{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px;
  padding-top:32px; border-top:1px solid var(--border);
  font-size:12px; color: var(--text-muted);
}
.footer-contact{ display:flex; align-items:center; gap:16px; font-size:12px; color: var(--text-muted); }
.footer-contact a:hover{ color: var(--text); }

/* ---------- Хлебные крошки ---------- */
.breadcrumb{ display:inline-flex; align-items:center; gap:6px; font-size:14px; color: var(--text-muted); margin-bottom:24px; }
.breadcrumb:hover{ color: var(--accent); }

/* ---------- Таблица метрик ---------- */
.table-wrap{ overflow-x:auto; }
.metrics-table{ width:100%; border-collapse:collapse; background: var(--white); border-radius: var(--r-card); overflow:hidden; box-shadow: var(--shadow); }
.metrics-table th, .metrics-table td{ padding:16px 18px; text-align:left; font-size:14px; border-bottom:1px solid var(--border); }
.metrics-table th{ background: var(--bg-alt); font-weight:500; font-size:11px; text-transform:uppercase; letter-spacing:.15em; color: var(--text-muted); }
.metrics-table td.growth{ color: var(--accent); font-weight:700; }
.metrics-note{ margin-top:14px; font-size:12px; color: var(--text-faint); }

/* ---------- Список проблем ---------- */
.problem-list{ display:grid; grid-template-columns:1fr 1fr; gap:0 32px; }
@media (max-width:767px){ .problem-list{ grid-template-columns:1fr; } }
.problem-list li{ display:flex; gap:12px; font-size:14px; padding:14px 0; border-bottom:1px solid var(--border); color: var(--text-muted); }
.problem-list li::before{ content:"✕"; color:#d14343; font-weight:700; flex:none; }

/* ---------- Дорожная карта ---------- */
.roadmap-list{ display:flex; flex-direction:column; gap:12px; max-width:768px; }
.roadmap-list li{ display:flex; gap:12px; align-items:flex-start; font-size:14px; padding:16px 20px; background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow); }
.roadmap-list .ic{ width:16px; height:16px; margin-top:2px; }

/* ---------- Скриншоты-заглушки ---------- */
.shot-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
@media (max-width:699px){ .shot-grid{ grid-template-columns:1fr; } }
.shot{
  aspect-ratio:16/10; border-radius: var(--r-card);
  background: var(--bg-alt); border:1px dashed var(--border);
  display:flex; align-items:center; justify-content:center;
  color: var(--text-faint); font-size:12px; text-align:center; padding:16px;
}

/* ---------- Модалка ---------- */
.modal-overlay{
  position:fixed; inset:0; background: rgba(19,19,17,.5);
  display:flex; align-items:center; justify-content:center; padding:20px; z-index:200;
  opacity:0; pointer-events:none; transition: opacity .2s;
}
.modal-overlay.open{ opacity:1; pointer-events:auto; }
.modal{
  background: var(--white); border-radius: var(--r-card); padding:32px; max-width:420px; width:100%;
  box-shadow: var(--shadow-lg); transform: translateY(12px); transition: transform .2s;
}
.modal-overlay.open .modal{ transform:none; }
.modal-close{ float:right; width:32px; height:32px; border-radius:50%; border:1px solid var(--border); display:flex; align-items:center; justify-content:center; }
.modal h3{ font-size:20px; font-weight:700; margin-bottom:6px; }
.modal p.sub{ color: var(--text-muted); font-size:14px; margin-bottom:24px; }
.contact-options{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:12px; }
.contact-opt{
  border:1px solid var(--border); border-radius: var(--r-card); padding:18px;
  display:flex; flex-direction:column; align-items:center; gap:8px; text-align:center;
  transition: all .2s;
}
.contact-opt:hover{ border-color: var(--accent); background: var(--accent-soft); }
.contact-opt .ico{ width:40px; height:40px; border-radius:50%; background: rgba(26,42,230,.10); display:flex; align-items:center; justify-content:center; color: var(--accent); }
.contact-opt .name{ font-weight:600; font-size:14px; }
.contact-opt .sub{ font-size:12px; color: var(--text-muted); }
.contact-call{ border:1px solid var(--border); border-radius: var(--r-card); padding:16px 18px; display:flex; align-items:center; gap:14px; }
.contact-call:hover{ border-color: var(--accent); }
.contact-call .ico{ width:40px; height:40px; border-radius:50%; background: rgba(26,42,230,.10); display:flex; align-items:center; justify-content:center; color: var(--accent); }

/* ---------- Мобильное меню ---------- */
.mobile-menu{
  display:none; position:fixed; inset:0; background: var(--bg); z-index:150;
  padding:24px; flex-direction:column; gap:24px;
}
.mobile-menu.open{ display:flex; }
.mobile-menu a{ font-size:20px; font-weight:600; }
.mobile-menu-top{ display:flex; justify-content:space-between; align-items:center; }

/* ---------- Появление при скролле ---------- */
[data-reveal]{
  opacity:0; transform: translateY(20px);
  transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1);
}
[data-reveal].is-visible{ opacity:1; transform:none; }

/* каскад для детей сетки/таймлайна */
[data-stagger] > *{
  opacity:0; transform: translateY(16px);
  transition: opacity .5s cubic-bezier(.22,1,.36,1), transform .5s cubic-bezier(.22,1,.36,1);
}
[data-stagger].is-visible > *{ opacity:1; transform:none; }
[data-stagger].is-visible > *:nth-child(1){ transition-delay:.00s; }
[data-stagger].is-visible > *:nth-child(2){ transition-delay:.07s; }
[data-stagger].is-visible > *:nth-child(3){ transition-delay:.14s; }
[data-stagger].is-visible > *:nth-child(4){ transition-delay:.21s; }
[data-stagger].is-visible > *:nth-child(5){ transition-delay:.28s; }
[data-stagger].is-visible > *:nth-child(6){ transition-delay:.35s; }
[data-stagger].is-visible > *:nth-child(7){ transition-delay:.42s; }
[data-stagger].is-visible > *:nth-child(8){ transition-delay:.49s; }
[data-stagger].is-visible > *:nth-child(9){ transition-delay:.56s; }
/* линия таймлайна не должна «прыгать» вместе с шагами */
[data-stagger].is-visible > .timeline-line,
[data-stagger] > .timeline-line{ opacity:1; transform:none; transition:none; }

@media (prefers-reduced-motion: reduce){
  [data-reveal], [data-stagger] > *{ opacity:1 !important; transform:none !important; transition:none !important; }
  .btn-glow-idle{ animation:none; }
}

/* ---------- Утилиты ---------- */
.mt-8{margin-top:8px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}.mt-32{margin-top:32px}.mt-40{margin-top:40px}.mt-48{margin-top:48px}.mt-64{margin-top:64px}
.mb-12{margin-bottom:12px}.mb-24{margin-bottom:24px}.mb-32{margin-bottom:32px}.mb-48{margin-bottom:48px}
.text-center{ text-align:center; }
.max-w-960{ max-width:960px; margin:0 auto; }
.lead{ font-size:16px; color: var(--text-muted); line-height:1.625; max-width:672px; }
@media (min-width:1024px){ .lead{ font-size:18px; } }

/* ---------- Квиз (бесплатный аудит) ---------- */
.quiz{
  position:relative; background: var(--bg); border:1px solid var(--border);
  border-radius: var(--r-card); padding:32px;
}
@media (min-width:1024px){ .quiz{ padding:40px; } }

.quiz-bar{ height:3px; border-radius:999px; background: var(--border); overflow:hidden; margin-bottom:16px; }
.quiz-bar span{
  display:block; height:100%; width:33.33%; border-radius:999px;
  background: var(--accent); transition: width .4s cubic-bezier(.4,0,.2,1);
}
.quiz-meta{
  font-size:11px; font-weight:500; text-transform:uppercase;
  letter-spacing:.15em; color: var(--text-muted); margin-bottom:24px;
}

.quiz-step{ display:none; }
.quiz-step.is-active{ display:block; animation: quiz-in .35s cubic-bezier(.22,1,.36,1); }
@keyframes quiz-in{ from{ opacity:0; transform: translateY(12px); } to{ opacity:1; transform:none; } }

.quiz-q{ font-size:20px; font-weight:700; margin-bottom:8px; }
@media (min-width:1024px){ .quiz-q{ font-size:24px; } }
.quiz-hint{ font-size:13px; color: var(--text-muted); margin-bottom:20px; }
.quiz-q + .quiz-options{ margin-top:24px; }

.quiz-options{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media (max-width:639px){ .quiz-options{ grid-template-columns:1fr; } }
.quiz-opt{
  position:relative; text-align:left; padding:16px 44px 16px 18px;
  border:1px solid var(--border); border-radius:12px; background: var(--white);
  font-size:14px; line-height:1.45; color: var(--text);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.quiz-opt:hover{ border-color: var(--accent); }
.quiz-opt::after{
  content:""; position:absolute; right:16px; top:50%; margin-top:-9px;
  width:18px; height:18px; border-radius:50%; border:1.5px solid var(--border);
  transition: border-color .2s, background .2s;
}
.quiz-opt.is-picked{ border-color: var(--accent); background: var(--accent-soft); font-weight:500; }
.quiz-opt.is-picked::after{
  border-color: var(--accent); background: var(--accent);
  box-shadow: inset 0 0 0 3px var(--white);
}

.quiz-fields{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:24px; }
@media (max-width:639px){ .quiz-fields{ grid-template-columns:1fr; } }
.quiz-field-wide{ grid-column:1 / -1; }
.quiz-fields label{
  display:flex; flex-direction:column; gap:8px;
  font-size:13px; font-weight:500; color: var(--text-muted);
}
.quiz-opt-note{ font-weight:400; font-style:normal; color: var(--text-faint); }
.quiz-fields input{
  font:inherit; font-size:15px; color: var(--text);
  padding:14px 16px; border:1px solid var(--border); border-radius:10px;
  background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.quiz-fields input:focus{
  outline:none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.quiz-hp{ position:absolute !important; left:-9999px !important; opacity:0 !important; }

.quiz-consent{
  display:flex; align-items:flex-start; gap:10px; margin-top:20px;
  font-size:13px; line-height:1.5; color: var(--text-muted); cursor:pointer;
}
.quiz-consent input{ margin-top:2px; width:16px; height:16px; accent-color: var(--accent); flex:none; }

.quiz-nav{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; margin-top:32px; padding-top:24px; border-top:1px solid var(--border);
}
.quiz-back{ font-size:14px; font-weight:500; color: var(--text-muted); visibility:hidden; }
.quiz-back:hover{ color: var(--text); }
.quiz-back.is-shown{ visibility:visible; }
.quiz-next{ padding:14px 28px; font-size:15px; }
.quiz-next:disabled{ opacity:.4; cursor:not-allowed; box-shadow:none; transform:none; }
.quiz-next:disabled:hover{ background: var(--accent); transform:none; box-shadow:none; }

.quiz-done{ text-align:center; padding:24px 0 8px; animation: quiz-in .4s cubic-bezier(.22,1,.36,1); }
.quiz-done-ic{ width:44px; height:44px; margin:0 auto 16px; }
.quiz-done h3{ font-size:22px; font-weight:700; margin-bottom:10px; }
.quiz-done p{ font-size:15px; color: var(--text-muted); line-height:1.625; max-width:460px; margin:0 auto 24px; }

.quiz-error{
  margin-top:16px; font-size:14px; color:#c0392b;
  background: rgba(192,57,43,.07); border-radius:10px; padding:12px 16px;
}
#quiz, #about{ scroll-margin-top: 84px; }
[hidden]{ display:none !important; }
