/* NEUROESKA — landing for AI services for 1C:Enterprise.
   Visual language: Linear.app — near-black canvas, hairline borders,
   one indigo accent, Inter, restrained motion. */

:root {
  --bg: #08090a;
  --bg-soft: #0d0e10;
  --panel: #111214;
  --panel-2: #16171a;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);
  --text: #f7f8f8;
  --muted: #8a8f98;
  --muted-2: #6b7079;
  --accent: #5e6ad2;
  --accent-soft: #7b86e8;
  --violet: #8b5cf6;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 60px -24px rgba(0, 0, 0, .8);
  --container: 1160px;
  --header-h: 60px;
}

* { box-sizing: border-box }

html { scroll-behavior: smooth }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(94, 106, 210, .45) }

h1, h2, h3 { font-weight: 600; letter-spacing: -.028em; line-height: 1.12; margin: 0 }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem) }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem) }
h3 { font-size: 1.05rem; letter-spacing: -.016em }
p { margin: 0 }
a { color: inherit; text-decoration: none }
img, svg { display: block; max-width: 100% }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px }

/* ---------- ambient background ---------- */
.page-glow {
  position: fixed;
  inset: -20% 0 auto 0;
  height: 720px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(720px 420px at 22% 0%, rgba(94, 106, 210, .22), transparent 70%),
    radial-gradient(620px 380px at 78% 6%, rgba(139, 92, 246, .16), transparent 72%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
}

.page-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(700px 420px at 50% 0%, #000, transparent 75%);
}

main, .site-header, .site-footer { position: relative; z-index: 1 }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: rgba(8, 9, 10, .72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  transition: border-color .25s ease, background .25s ease;
}

.site-header.scrolled { border-bottom-color: var(--line); background: rgba(8, 9, 10, .88) }

.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 20px }

.brand { display: inline-flex; align-items: center; gap: 10px }

.brand-mark {
  width: 26px; height: 26px; border-radius: 7px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 6px 18px -8px rgba(94, 106, 210, .9);
}
.brand-mark svg { width: 15px; height: 15px }

.brand-name { font-weight: 600; letter-spacing: .04em; font-size: .95rem }

.site-nav { display: flex; gap: 4px; margin-left: 12px }
.site-nav a {
  padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--muted); font-size: .9rem; font-weight: 500;
  transition: color .18s ease, background .18s ease;
}
.site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05) }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px }

.burger {
  display: none; width: 38px; height: 34px; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid var(--line); color: var(--text);
  cursor: pointer; padding: 0; flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.burger span { display: block; width: 16px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.2px) rotate(45deg) }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.2px) rotate(-45deg) }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 16px; height: 38px; border-radius: 9px;
  font: 500 .9rem/1 Inter, sans-serif; letter-spacing: -.01em; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn:active { transform: translateY(1px) }
.btn:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px }

.btn-primary {
  background: linear-gradient(180deg, #6c78e0, var(--accent));
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .16) inset, 0 10px 30px -12px rgba(94, 106, 210, .95);
}
.btn-primary:hover { background: linear-gradient(180deg, #7c86e8, #6a75db) }

.btn-secondary {
  background: rgba(255, 255, 255, .04);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-secondary:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .22) }

.btn-ghost { background: transparent; color: var(--muted); border-color: transparent }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, .06) }

.btn-block { width: 100% }
.btn .arrow { transition: transform .18s ease }
.btn:hover .arrow { transform: translateX(3px) }

/* ---------- hero ---------- */
.hero { padding: 84px 0 24px; position: relative }

.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 8px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  color: var(--muted); font-size: .8rem; font-weight: 500;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .16) }

.hero h1 { margin: 18px 0 0 }
.grad {
  background: linear-gradient(96deg, #b9bffb, var(--accent-soft) 40%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.lead { margin-top: 18px; color: var(--muted); font-size: 1.06rem; max-width: 34rem }

/* Про безопасность данных — отдельным блоком, а не хвостом абзаца:
   это возражение №1 у того, кто отдаёт учётную систему ИИ. */
.hero-safe {
  margin-top: 20px; max-width: 34rem; padding: 12px 14px;
  display: flex; gap: 11px; align-items: flex-start;
  border: 1px solid rgba(94, 106, 210, .3); border-radius: 11px;
  background: linear-gradient(180deg, rgba(94, 106, 210, .12), rgba(94, 106, 210, .04));
  color: #c9cdda; font-size: .88rem; line-height: 1.5;
}
.hero-safe svg {
  width: 19px; height: 19px; flex: none; margin-top: 1px;
  fill: none; stroke: var(--accent-soft); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px }

.hero-meta { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px }
.hero-meta li {
  font-size: .78rem; color: var(--muted-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px;
  background: rgba(255, 255, 255, .02);
}

/* mock window */
.hero-visual { position: relative }
.hero-visual::before {
  content: ""; position: absolute; inset: -18% -12% -30% -12%;
  background: radial-gradient(closest-side, rgba(94, 106, 210, .28), transparent 70%);
  filter: blur(14px); z-index: -1;
}

.mock {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, #131417, #0c0d0f);
  box-shadow: var(--shadow);
}
.mock-titlebar {
  display: flex; align-items: center; gap: 7px; padding: 10px 14px;
  border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #2a2c31 }
.dot.red { background: #f6706a } .dot.yellow { background: #f5bf4f } .dot.green { background: #57c26b }
.mock-title { margin-left: 8px; font-size: .74rem; color: var(--muted-2); letter-spacing: .01em }

.mock-body { padding: 18px; display: flex; flex-direction: column; gap: 12px }
.chat-row { display: flex }
.chat-row.user { justify-content: flex-end }
.chat-bubble {
  max-width: 84%; padding: 10px 13px; border-radius: 11px; font-size: .86rem; line-height: 1.5;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
}
.chat-row.user .chat-bubble { background: linear-gradient(180deg, #6c78e0, var(--accent)); border-color: transparent; color: #fff }
.ai-bubble { background: var(--panel-2) }
.ai-tag {
  font-size: .62rem; letter-spacing: .12em; color: var(--accent-soft);
  font-weight: 600; margin-bottom: 6px;
}
.mock-chart { margin-top: 12px; height: 62px; display: flex; align-items: flex-end; gap: 6px }
.mock-chart i {
  flex: 1; height: var(--h); border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, rgba(123, 134, 232, .95), rgba(94, 106, 210, .28));
  animation: grow .9s cubic-bezier(.2, .8, .2, 1) both;
}
.mock-chart i:nth-child(2) { animation-delay: .06s } .mock-chart i:nth-child(3) { animation-delay: .12s }
.mock-chart i:nth-child(4) { animation-delay: .18s } .mock-chart i:nth-child(5) { animation-delay: .24s }
.mock-chart i:nth-child(6) { animation-delay: .3s } .mock-chart i:nth-child(7) { animation-delay: .36s }
.mock-chart i:nth-child(8) { animation-delay: .42s }
@keyframes grow { from { height: 4%; opacity: 0 } to { height: var(--h); opacity: 1 } }

.scan-card {
  display: flex; gap: 12px; align-items: center; width: 100%;
  padding: 11px 13px; border-radius: 11px;
  border: 1px dashed rgba(123, 134, 232, .4);
  background: rgba(94, 106, 210, .08);
}
.scan-ic {
  width: 28px; height: 28px; flex: none; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--violet)); color: #fff; font-size: 15px;
}
.scan-title { font-size: .82rem; font-weight: 600 }
.scan-sub { font-size: .74rem; color: var(--muted) }

/* stats */
.stats {
  margin-top: 72px; display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01));
}
.stat { padding: 22px 24px; border-right: 1px solid var(--line) }
.stat:last-child { border-right: 0 }
.stat b { display: block; font-size: 1.5rem; font-weight: 600; letter-spacing: -.03em }
.stat span { display: block; margin-top: 4px; font-size: .8rem; color: var(--muted); line-height: 1.45 }

/* ---------- sections ---------- */
.section { padding: 104px 0 }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--line) }

.section-head { max-width: 640px; margin-bottom: 44px }
.section-head p { margin-top: 14px; color: var(--muted) }

.eyebrow {
  font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-soft); margin-bottom: 14px;
}

/* ---------- cards ---------- */
.grid { display: grid; gap: 16px }
.grid-services { grid-template-columns: repeat(3, 1fr) }
.grid-cases { grid-template-columns: repeat(3, 1fr) }
.grid-pricing { grid-template-columns: repeat(3, 1fr); align-items: start }
/* 2×2: карточки про данные заметно текстовые, в три колонки они бы мелькали */
.grid-privacy { grid-template-columns: repeat(2, 1fr) }

.privacy-note {
  margin-top: 22px; padding: 14px 16px; border-radius: var(--radius);
  border: 1px solid var(--line); background: rgba(255, 255, 255, .02);
  color: var(--muted-2); font-size: .84rem;
}

.card {
  position: relative; padding: 22px; border-radius: var(--radius);
  border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  transition: border-color .22s ease, transform .22s ease, background .22s ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px) }
.card h3 { margin-bottom: 8px }
.card p { color: var(--muted); font-size: .9rem }

.card-ic {
  width: 34px; height: 34px; border-radius: 9px; margin-bottom: 16px;
  display: grid; place-items: center; color: var(--accent-soft);
  background: rgba(94, 106, 210, .12); border: 1px solid rgba(94, 106, 210, .28);
}
.card-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round }

.card-chip {
  margin-top: 16px; display: inline-block; padding: 4px 9px; border-radius: 6px;
  font-size: .72rem; color: var(--muted-2);
  border: 1px solid var(--line); background: rgba(0, 0, 0, .25);
}

/* Цена за операцию — не обычная подпись, а часть предложения */
.price-chip {
  color: var(--accent-soft); border-color: rgba(94, 106, 210, .38);
  background: rgba(94, 106, 210, .1); font-weight: 600;
}

.card-cta {
  display: flex; flex-direction: column; justify-content: center; gap: 10px; align-items: flex-start;
  background: linear-gradient(160deg, rgba(94, 106, 210, .16), rgba(139, 92, 246, .06));
  border-color: rgba(94, 106, 210, .32);
}
.card-cta .btn { margin-top: 6px }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px }
.steps li { position: relative; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel) }
.step-n {
  font: 600 .78rem/1 Inter, sans-serif; letter-spacing: .1em; color: var(--accent-soft);
  padding: 5px 8px; border-radius: 6px; border: 1px solid rgba(94, 106, 210, .3); background: rgba(94, 106, 210, .1);
}
.steps h3 { margin: 16px 0 8px }
.steps p { color: var(--muted); font-size: .88rem }

/* ---------- cases ---------- */
.case-num {
  font-size: 2.1rem; font-weight: 600; letter-spacing: -.04em; line-height: 1;
  background: linear-gradient(96deg, #c3c8fd, var(--accent-soft) 55%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 14px;
}

/* ---------- pricing ---------- */
.price { display: flex; flex-direction: column }
.price .price-val { font-size: 1.6rem; font-weight: 600; letter-spacing: -.03em; margin-top: 4px }
.price-note { font-size: .78rem; color: var(--muted-2); margin-top: 4px }
.price-list { list-style: none; margin: 18px 0 22px; padding: 0; display: flex; flex-direction: column; gap: 9px }
.price-list li { position: relative; padding-left: 20px; font-size: .87rem; color: var(--muted) }
.price-list li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 6px;
  border-left: 1.6px solid var(--accent-soft); border-bottom: 1.6px solid var(--accent-soft);
  transform: rotate(-45deg);
}
.price-list em { color: var(--text); font-style: normal }
.price-meter {
  margin: 0 0 18px; padding: 9px 11px; border-radius: 9px;
  border: 1px solid rgba(94, 106, 210, .28); background: rgba(94, 106, 210, .08);
  font-size: .78rem; color: var(--muted);
}
.price-meter em { color: var(--accent-soft); font-style: normal; font-weight: 600 }

.price .btn { margin-top: auto }

.price.featured {
  border-color: rgba(94, 106, 210, .5);
  background: linear-gradient(180deg, rgba(94, 106, 210, .14), rgba(255, 255, 255, .02));
  box-shadow: var(--shadow);
}
.price-flag {
  position: absolute; top: -11px; left: 22px; padding: 3px 9px; border-radius: 999px;
  font-size: .68rem; font-weight: 600; letter-spacing: .02em; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--violet));
}

/* ---------- contact ---------- */
.contact-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start }
.contact-copy p { margin-top: 14px; color: var(--muted) }
.contact-list { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px }
.contact-list li { display: flex; gap: 14px; font-size: .9rem; border-top: 1px solid var(--line); padding-top: 12px }
.contact-list span { width: 168px; flex: none; color: var(--muted-2); font-size: .82rem }
.contact-list a { color: var(--accent-soft) }
.contact-list a:hover { color: #fff }

.contact-form { display: flex; flex-direction: column; gap: 14px; padding: 26px }
.field { display: flex; flex-direction: column; gap: 7px }
.field label { font-size: .8rem; font-weight: 500; color: var(--muted) }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border-radius: 9px; color: var(--text);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  font: 400 .92rem/1.5 Inter, sans-serif;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; min-height: 96px }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 17px, calc(100% - 11px) 17px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat }
.field select option { background: #141518; color: var(--text) }
.field input::placeholder, .field textarea::placeholder { color: #5a5f68 }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: rgba(123, 134, 232, .8); background: rgba(255, 255, 255, .06);
  box-shadow: 0 0 0 3px rgba(94, 106, 210, .18);
}
.field.invalid input, .field.invalid textarea { border-color: rgba(246, 112, 106, .8) }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; color: var(--muted); cursor: pointer }
.consent input { margin-top: 3px; accent-color: var(--accent); width: 15px; height: 15px }

.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none }

.form-status { min-height: 20px; font-size: .84rem; color: var(--muted); margin: 2px 0 0 }
.form-status.ok { color: #57c26b }
.form-status.err { color: #f6706a }
.contact-form.busy .btn[type="submit"] { opacity: .65; pointer-events: none }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 40px 0 }
.footer-inner { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between }
.footer-brand { display: flex; gap: 12px; align-items: flex-start }
.footer-note { margin-top: 4px; font-size: .78rem; color: var(--muted-2); line-height: 1.5 }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px }
.footer-nav a { padding: 6px 10px; border-radius: 7px; font-size: .84rem; color: var(--muted); transition: color .18s ease, background .18s ease }
.footer-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05) }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right }
.footer-mail { font-size: .84rem; color: var(--accent-soft) }
.footer-mail:hover { color: #fff }
.footer-made { font-size: .76rem; color: var(--muted-2); letter-spacing: .02em; transition: color .18s ease }
.footer-made:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong) }
.footer-made:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; border-radius: 4px }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s cubic-bezier(.2, .7, .2, 1), transform .6s cubic-bezier(.2, .7, .2, 1) }
.reveal.in { opacity: 1; transform: none }
.d1 { transition-delay: .06s } .d2 { transition-delay: .12s }
.d3 { transition-delay: .18s } .d4 { transition-delay: .24s }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px }
  .grid-services, .grid-cases, .grid-pricing { grid-template-columns: repeat(2, 1fr) }
  .steps { grid-template-columns: repeat(2, 1fr) }
  .stats { grid-template-columns: repeat(2, 1fr) }
  .stat:nth-child(2) { border-right: 0 }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line) }
  .contact-wrap { grid-template-columns: 1fr; gap: 36px }
}

@media (max-width: 760px) {
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 2px; margin: 0; padding: 10px 16px 16px;
    background: rgba(10, 11, 13, .97); border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
    display: none;
  }
  .site-nav.open { display: flex }
  .site-nav a { padding: 11px 12px }
  .burger { display: flex }
  .nav-cta { display: none }
  .section { padding: 76px 0 }
  .hero { padding-top: 56px }
  .grid-services, .grid-cases, .grid-pricing, .grid-privacy, .steps, .stats { grid-template-columns: 1fr }
  .stat { border-right: 0; border-bottom: 1px solid var(--line) }
  .stat:last-child { border-bottom: 0 }
  .price.featured { order: -1 }
  .contact-list li { flex-direction: column; gap: 2px }
  .contact-list span { width: auto }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px }
  .footer-right { align-items: flex-start; text-align: left }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  .reveal { opacity: 1; transform: none; transition: none }
  .mock-chart i { animation: none }
}
