/* NEYROMARKETING.UZ — shared styles of the site (prototype v2). Base copied from the home page.
   Direction colours: research = --att (cyan), marketing = --heat (violet), development = --good (green). */
:root {
  color-scheme: dark;
  --ink: #0a1430;
  --ink-2: #0e1a3d;
  --ink-3: #13224d;
  --line: rgba(130, 165, 255, 0.16);
  --line-2: rgba(130, 165, 255, 0.3);
  --fg: #eaf0ff;
  --muted: #8e9cc6;
  --dim: #5f6d96;
  --signal: #4fd1ff;   /* мозг, взгляд, внимание */
  --heat: #8b7cf6;     /* тело и эмоция; в нейронах эмоции красные (--emo) */
  --good: #4fd18b;
  --warn: #f2d264;
  --bad: #ff6b81;
  --bg: var(--ink);
  --bg-2: var(--ink-2);
  --bg-3: var(--ink-3);
  --att: #4fd1ff;
  --emo: #ff4d6d;
  --mem: #8b7cf6;
  --display: "Geologica", "Onest", "Segoe UI", Arial, sans-serif;
  --sans: "Onest", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--fg);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--ink); }
/* тонкая сетка миллиметровки, как на бумаге самописца */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .35;
  mask-image: radial-gradient(ellipse 80% 60% at 70% 10%, #000 10%, transparent 70%);
}
main, header, footer { position: relative; z-index: 1; }
a { color: inherit; }
p { margin: 0; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 500; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 700px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--signal); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.eyebrow.warm { color: var(--heat); }

/* ---------- header ---------- */
header.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; backdrop-filter: blur(14px) saturate(120%); -webkit-backdrop-filter: blur(14px) saturate(120%); background: color-mix(in srgb, var(--ink) 72%, transparent); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 600; letter-spacing: .06em; font-size: 15px; }
.logo svg { flex: none; }
.logo .lw { white-space: nowrap; }
.logo .lw span { color: var(--signal); }
nav.links { display: flex; gap: 24px; font-size: 14.5px; margin-left: auto; }
nav.links a { text-decoration: none; color: var(--muted); transition: color .2s; }
nav.links a:hover { color: var(--fg); }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 14px 12px 20px; border-radius: 999px;
  background: var(--fg); color: var(--ink); font: 600 15px/1 var(--sans); text-decoration: none; border: 0; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn .arr { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--fg); display: grid; place-items: center; transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--signal) 60%, transparent); }
.btn:hover .arr { transform: translateX(3px) rotate(-45deg); }
.btn.small { padding: 8px 8px 8px 16px; font-size: 14px; }
.btn.small .arr { width: 24px; height: 24px; }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line-2); padding: 12px 20px; }
.btn.ghost:hover { border-color: var(--signal); box-shadow: none; }
@media (max-width: 860px) { nav.links { display: none; } header.site .btn { margin-left: auto; } }
@media (max-width: 480px) { header.site .wrap { gap: 12px; } .logo { font-size: 13px; letter-spacing: .03em; } header.site .btn .arr { display: none; } header.site .btn { padding: 8px 14px; } }

/* ---------- sections ---------- */
section.block { padding-block: 112px; }
.head { display: grid; gap: 16px; max-width: 780px; margin-bottom: 48px; }
.head h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.04; letter-spacing: -.03em; font-weight: 400; }
.head p { color: var(--muted); font-size: 17.5px; max-width: 60ch; }

/* scroll-driven reveal; at rest the element is fully visible */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rv { animation: rv linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
}
@keyframes rv { from { opacity: .35; transform: translateY(32px); } }

/* process */
.steps { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; padding-top: 34px; }
.steps::before, .steps::after { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: var(--line); border-radius: 2px; }
.steps::after { background: linear-gradient(90deg, var(--signal), var(--heat)); transform-origin: left; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .steps::after { animation: fill linear both; animation-timeline: view(); animation-range: entry 40% cover 55%; }
  }
}
@keyframes fill { from { transform: scaleX(0); } }
.step { position: relative; display: grid; gap: 8px; align-content: start; min-width: 0; }
.step::before { content: ""; position: absolute; top: -32px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 2px solid var(--signal); z-index: 1; }
.step .n { font: 12px/1 var(--mono); color: var(--dim); }
.step h3 { font-size: 18px; }
.step p { font-size: 14px; color: var(--muted); }
@media (max-width: 960px) {
  .steps { grid-template-columns: minmax(0, 1fr); padding-top: 0; padding-left: 34px; gap: 26px; }
  .steps::before, .steps::after { top: 0; bottom: 0; left: 6px; right: auto; width: 2px; height: auto; }
  .steps::after { transform-origin: top; animation-name: fillY; }
  .step::before { top: 2px; left: -34px; }
}
@keyframes fillY { from { transform: scaleY(0); } }

/* cta */
.cta { position: relative; border-radius: 28px; overflow: hidden; border: 1px solid var(--line-2); background: var(--ink-2); padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.cta canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; pointer-events: none; }
.cta > *:not(canvas) { position: relative; }
.cta h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.04; letter-spacing: -.03em; font-weight: 400; }
.cta .sub { color: var(--muted); margin-top: 16px; max-width: 44ch; }
form.req { display: grid; gap: 12px; background: color-mix(in srgb, var(--ink) 80%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.req label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.req input, .req select { font: 15px var(--sans); color: var(--fg); background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; width: 100%; }
.req input:focus, .req select:focus { outline: none; border-color: var(--signal); }
.req .btn { justify-self: start; margin-top: 4px; }
.req .ok { font-size: 14px; color: var(--good); }
@media (max-width: 860px) { .cta { grid-template-columns: minmax(0, 1fr); } }

footer { border-top: 1px solid var(--line); padding-block: 32px 48px; color: var(--dim); font-size: 13.5px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--fg); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }

.proto { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; font: 11px/1 var(--mono); color: var(--ink); background: var(--warn); padding: 8px 10px; border-radius: 999px; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 8px 24px -8px rgba(0,0,0,.6); }

.faq { display: grid; max-width: 880px; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font: 500 18px/1.35 var(--display); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 400 22px/1 var(--mono); color: var(--att); transition: transform .3s var(--ease); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { color: var(--muted); padding-bottom: 18px; max-width: 70ch; }
.contacts { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; }
.contacts li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; font-size: 15px; }
.contacts span { font: 11px/1.9 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.contacts a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line-2); justify-self: start; user-select: text; }
.contacts a:hover { border-color: var(--att); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 11.5px/1 var(--mono); padding: 6px 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--fg); }
.chip i { width: 7px; height: 7px; border-radius: 50%; }
.chip.down { color: var(--muted); }
/* ---------- flowing neurons in the background ---------- */
#flow { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
