/* NeuroSignals — лендинг. Тёмная тема, mobile-first адаптация. */
:root {
  --bg: #0f1013;
  --bg-alt: #121317;
  --card: #1b1d22;
  --line: rgba(255, 255, 255, .09);
  --cyan: #00e5ff;
  --blue: #2a52be;
  --blue-dark: #233f80;
  --text: #ffffff;
  --muted: #b9bdc7;
  --green: #3fbf6b;
  --radius: 10px;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.lock { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 100px 0; }
.section__head { text-align: center; margin-bottom: 56px; }
.section__title { font-size: 2.2rem; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.section__sub { margin-top: 18px; color: var(--muted); font-size: 1rem; }

/* ───────── Кнопки ───────── */
.btn {
  display: inline-block;
  padding: 13px 26px;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  border: 2px solid var(--cyan);
  border-radius: 4px;
  background: var(--cyan);
  color: #05080b;
  transition: transform .18s, box-shadow .18s, background .18s, color .18s;
  -webkit-tap-highlight-color: transparent;
}
.btn--ghost { background: transparent; color: var(--cyan); }
.btn:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { box-shadow: 0 0 0 4px rgba(0, 229, 255, .18); }
  .btn--ghost:hover { background: var(--cyan); color: #05080b; }
}
.btn:focus-visible, .nav a:focus-visible, .faq__q:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.btn--lg { padding: 15px 30px; }

/* ───────── Шапка ───────── */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .25s, box-shadow .25s;
}
.header.scrolled { background: rgba(15, 16, 19, .92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; }
.logo b { color: var(--cyan); font-weight: 800; }
.logo svg { width: 24px; height: 24px; }
.nav { display: flex; gap: 28px; font-size: .85rem; font-weight: 700; }
.nav a { padding: 6px 0; transition: color .15s; }
@media (hover: hover) { .nav a:hover { color: var(--cyan); } }

.burger {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; position: relative; -webkit-tap-highlight-color: transparent;
}
.burger span, .burger::before, .burger::after {
  content: ''; position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px;
  background: #fff; transition: transform .22s, opacity .22s, top .22s;
}
.burger::before { top: 15px; } .burger span { top: 21px; } .burger::after { top: 27px; }
.burger[aria-expanded="true"]::before { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"]::after { top: 21px; transform: rotate(-45deg); }
.burger[aria-expanded="true"] span { opacity: 0; }

/* ───────── Hero ───────── */
.hero {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 100vh; min-height: 100svh; padding: 110px 0 90px; text-align: center;
  background: #0e0f13 url('../img/hero.jpg') center / cover no-repeat;
  background-image: image-set(url('../img/hero.webp') type('image/webp'), url('../img/hero.jpg') type('image/jpeg'));
}
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }
.hero__in { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { font-size: 3.2rem; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.hero p { margin: 26px auto 0; max-width: 640px; color: #d6d9e0; font-size: 1.05rem; }
.hero__btns { display: flex; justify-content: center; gap: 16px; margin-top: 34px; }

/* ───────── Преимущества ───────── */
.grid { display: grid; gap: 30px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border-radius: var(--radius); padding: 30px; }
.feature__icon { width: 30px; height: 30px; color: var(--cyan); margin-bottom: 20px; }
.feature__icon svg { width: 100%; height: 100%; }
.feature h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 12px; }
.feature p { color: var(--muted); font-size: .92rem; line-height: 1.6; }

/* ───────── Как начать ───────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; max-width: 1040px; margin: 0 auto; }
.step { position: relative; text-align: center; padding: 0 14px; }
.step__num {
  width: 80px; height: 80px; margin: 0 auto 22px; display: grid; place-items: center;
  background: var(--blue); border-radius: 50%; font-size: 1.7rem; font-weight: 800;
}
.step:not(:last-child)::after {
  content: ''; position: absolute; top: 40px; left: calc(50% + 66px); width: calc(100% - 132px);
  height: 2px; background: linear-gradient(90deg, rgba(0, 229, 255, .55), rgba(0, 229, 255, .25));
}
.step h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .9rem; }
.steps-cta { text-align: center; margin-top: 64px; }

/* ───────── Тарифы ───────── */
.plans { align-items: stretch; max-width: 1160px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; text-align: center; padding: 40px 30px 36px; border: 2px solid transparent; }
.plan--pop { border-color: var(--cyan); }
.plan__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  padding: 3px 16px; font-size: .75rem; font-weight: 700; white-space: nowrap;
  background: var(--bg); color: var(--cyan); border: 1px solid var(--cyan); border-radius: 20px;
}
.plan h3 { font-size: 1.3rem; font-weight: 800; }
.plan__price { margin: 22px 0 6px; color: var(--cyan); font-size: 3rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.plan__price small { margin-left: 6px; font-size: .9rem; font-weight: 700; letter-spacing: 0; opacity: .85; }
.plan__save { color: var(--green); font-size: .82rem; font-weight: 600; margin-bottom: 4px; }
.plan ul { margin: 14px 0 28px; }
.plan li { padding: 12px 0; font-size: .85rem; color: #e7e9ee; border-top: 1px solid var(--line); }
.plan li:last-child { border-bottom: 1px solid var(--line); }
.plan .btn { margin-top: auto; align-self: center; }

/* ───────── FAQ ───────── */
.faq { max-width: 1160px; margin: 0 auto; display: grid; gap: 16px; }
.faq__item { background: var(--card); border-radius: 8px; overflow: hidden; }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px; background: none; border: 0; text-align: left; font-size: .95rem; font-weight: 700;
  -webkit-tap-highlight-color: transparent;
}
.faq__q svg { flex: none; width: 18px; height: 18px; transition: transform .25s; }
.faq__q[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.faq__q[aria-expanded="true"] + .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 24px 22px; color: var(--muted); font-size: .92rem; line-height: 1.65; }

/* ───────── CTA ───────── */
.cta { padding: 60px 0 100px; }
.cta__box {
  max-width: 1160px; margin: 0 auto; padding: 70px 30px; text-align: center; border-radius: 8px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
}
.cta h2 { font-size: 2rem; font-weight: 800; }
.cta p { max-width: 520px; margin: 18px auto 30px; color: #dfe6f8; font-size: 1rem; }

/* ───────── Подвал ───────── */
.footer { padding: 60px 0 30px; border-top: 1px solid var(--line); background: var(--bg-alt); }
.footer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1160px; margin: 0 auto; }
.footer h4 { margin: 0 0 16px; color: var(--cyan); font-size: 1rem; font-weight: 800; }
.footer p, .footer li { color: #dfe2e8; font-size: .85rem; }
.footer__links { display: flex; gap: 16px; margin-top: 12px; font-size: .72rem; color: var(--muted); }
.footer__links a:hover, .footer li a:hover { color: var(--cyan); }
.footer li { padding: 5px 0; }
.mail { display: inline-flex; align-items: center; gap: 8px; }
.mail svg { width: 14px; height: 14px; }
.footer__risk { max-width: 1160px; margin: 50px auto 0; text-align: center; color: var(--muted); font-size: .72rem; line-height: 1.6; }

/* ───────── Модальное окно заявки ───────── */
.modal {
  position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center;
  padding: 16px; background: rgba(5, 6, 9, .78); backdrop-filter: blur(4px); overflow-y: auto;
}
.modal.open { display: flex; }
.modal__box {
  position: relative; width: 100%; max-width: 440px; margin: auto; padding: 36px 30px 28px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55); animation: pop .22s ease both;
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__close {
  position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; display: grid; place-items: center;
  background: none; border: 0; color: var(--muted); font-size: 1.7rem; line-height: 1;
}
.modal__close:hover { color: #fff; }
.modal h2 { font-size: 1.4rem; font-weight: 800; padding-right: 24px; }
.modal__plan {
  display: inline-block; margin: 12px 0 22px; padding: 5px 12px; font-size: .78rem; font-weight: 700;
  color: var(--cyan); background: rgba(0, 229, 255, .09); border: 1px solid rgba(0, 229, 255, .3); border-radius: 20px;
}
.field { margin-bottom: 14px; }
.field input[type=text], .field input[type=tel], .field input[type=email] {
  width: 100%; height: 50px; padding: 0 16px; font: inherit; font-size: 16px; /* 16px — iOS не зумит */
  color: #fff; background: #121317; border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: #727886; }
.field input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 229, 255, .15); }
.field input.touched:invalid { border-color: #ff5a6a; }
.field__hint { display: none; margin-top: 6px; font-size: .75rem; color: #ff7d89; }
.field input.touched:invalid ~ .field__hint { display: block; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.agree { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 16px; font-size: .78rem; color: var(--muted); line-height: 1.45; }
.agree input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--cyan); }
.agree a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }
.form__error { display: none; margin-bottom: 14px; padding: 10px 12px; font-size: .82rem; color: #ffb3bb; background: rgba(255, 90, 106, .1); border: 1px solid rgba(255, 90, 106, .35); border-radius: 8px; }
.form__error.show { display: block; }
.modal .btn { width: 100%; height: 52px; font-size: 1rem; }
.modal .btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.modal .btn.loading { position: relative; color: transparent; }
.modal .btn.loading::after {
  content: ''; position: absolute; inset: 0; margin: auto; width: 22px; height: 22px;
  border: 3px solid rgba(5, 8, 11, .3); border-top-color: #05080b; border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ───────── Страница «Спасибо» и текстовые страницы ───────── */
.center-page { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: radial-gradient(60% 50% at 50% 0%, rgba(42, 82, 190, .22), transparent 70%), var(--bg); }
.thanks { width: 100%; max-width: 560px; padding: 48px 32px 40px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; animation: pop .5s ease both; }
.thanks__icon { width: 92px; height: 92px; margin: 0 auto 26px; }
.thanks__icon circle { fill: none; stroke: var(--cyan); stroke-width: 4; stroke-dasharray: 289; stroke-dashoffset: 289; animation: draw .7s ease forwards; }
.thanks__icon path { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .45s .6s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.thanks h1 { font-size: 1.9rem; font-weight: 800; margin-bottom: 14px; }
.thanks > p { color: var(--muted); max-width: 400px; margin: 0 auto 28px; }
.thanks ol { list-style: none; counter-reset: s; display: grid; gap: 10px; margin: 0 0 30px; padding: 0; text-align: left; }
.thanks li { counter-increment: s; display: flex; align-items: center; gap: 14px; padding: 13px 16px; font-size: .88rem; color: var(--muted); background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 10px; }
.thanks li::before { content: counter(s); flex: none; width: 32px; height: 32px; display: grid; place-items: center; font-weight: 800; background: var(--blue); border-radius: 50%; color: #fff; }
.thanks li b { color: #fff; font-weight: 700; }

.doc { max-width: 820px; margin: 0 auto; padding: 120px 20px 70px; }
.doc h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.doc .doc__date { color: var(--muted); font-size: .85rem; margin-bottom: 30px; }
.doc h2 { font-size: 1.15rem; font-weight: 800; margin: 28px 0 10px; }
.doc p, .doc li { color: #d3d6de; font-size: .95rem; line-height: 1.7; }
.doc ul { list-style: disc; padding-left: 22px; margin-top: 8px; }
.doc a { color: var(--cyan); }

/* ───────── Адаптив ───────── */
@media (max-width: 1024px) {
  .section { padding: 80px 0; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 460px; }
  .plan--pop { order: -1; }
  .plan__badge { top: -13px; }
  .hero h1 { font-size: 2.6rem; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 36px; }
  .section__title { font-size: 1.7rem; }
  .header__in { height: 60px; }
  .burger { display: block; }
  .nav {
    position: fixed; top: 60px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 20px 18px;
    background: rgba(15, 16, 19, .98); border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .2s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 15px 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .header.menu-open { background: rgba(15, 16, 19, .98); }

  .hero { padding: 90px 0 70px; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: .98rem; margin-top: 18px; }
  .hero__btns { flex-direction: column; align-items: stretch; max-width: 320px; margin: 28px auto 0; gap: 12px; }
  .hero__btns .btn { padding: 15px 20px; }

  .grid { gap: 16px; }
  .grid--3 { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .feature { display: grid; grid-template-columns: 34px 1fr; column-gap: 16px; }
  .feature__icon { grid-row: span 2; margin: 2px 0 0; }
  .feature h3 { margin-bottom: 6px; }

  .steps { grid-template-columns: 1fr; gap: 6px; }
  .step { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; text-align: left; padding: 0 0 26px; }
  .step__num { width: 64px; height: 64px; margin: 0; grid-row: span 2; font-size: 1.4rem; }
  .step h3 { align-self: end; margin-bottom: 4px; }
  .step:not(:last-child)::after { top: 68px; bottom: 4px; left: 31px; width: 2px; height: auto; background: linear-gradient(rgba(0, 229, 255, .5), rgba(0, 229, 255, .15)); }
  .steps-cta { margin-top: 24px; }
  .steps-cta .btn { width: 100%; max-width: 320px; }

  .plan { padding: 36px 22px 30px; }
  .plan__price { font-size: 2.6rem; }
  .plan .btn { width: 100%; }

  .faq { gap: 12px; }
  .faq__q { padding: 18px 18px; font-size: .92rem; }
  .faq__a p { padding: 0 18px 18px; }

  .cta { padding: 20px 0 64px; }
  .cta__box { padding: 44px 20px; }
  .cta h2 { font-size: 1.55rem; }
  .cta .btn { width: 100%; max-width: 320px; }

  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer { padding-top: 44px; }
  .footer__risk { margin-top: 36px; }

  .modal { align-items: flex-end; padding: 0; }
  .modal__box { max-width: none; margin: 0; border-radius: 18px 18px 0 0; padding: 32px 20px calc(22px + env(safe-area-inset-bottom, 0px)); animation: sheet .28s ease both; }
  @keyframes sheet { from { transform: translateY(100%); } to { transform: none; } }
  .thanks { padding: 38px 20px 28px; }
  .thanks .btn { width: 100%; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 1.75rem; }
  .plan__price { font-size: 2.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
