/* Analytic Place — стили сайта. Один файл, без сборки. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #090b0f;
  --bg-alt: #0c0f14;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #eef1f5;
  --muted: #a7b0bd;
  --accent: #c8ff4d;
  --accent-ink: #0c1002;
  --accent-soft: rgba(200, 255, 77, .12);
  --cool: #4de1ff;
  --r: 22px;
  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 40px);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- Шапка ---------- */
.header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.header.is-open { background: #0a0c10 !important; }
.header.is-stuck, .header.is-open { background: rgba(9, 11, 15, .82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-color: var(--line); }
html:not(.js) .header { background: rgba(9, 11, 15, .9); border-color: var(--line); }
.header__in { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; white-space: nowrap; }
.logo__text span { color: var(--muted); font-weight: 600; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.header__act { display: flex; align-items: center; gap: 10px; }
.burger { display: none; }

/* ---------- Кнопки ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 700 16px/1.2 var(--font); white-space: nowrap; cursor: pointer;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, background .25s, border-color .25s;
}
.btn svg { transition: transform .25s cubic-bezier(.2, .8, .2, 1); flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 0 rgba(200, 255, 77, 0); }
.btn--accent:hover { box-shadow: 0 10px 40px -8px rgba(200, 255, 77, .55); }
.btn--accent:hover svg { transform: translateX(4px); }
.btn--ghost { background: var(--surface); border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn--sm { padding: 10px 18px; font-size: 15px; }
.btn--lg { padding: 17px 28px; font-size: 17px; }
.btn--xl { padding: 22px 38px; font-size: clamp(18px, 2vw, 21px); }

/* ---------- Первый экран ---------- */
.hero { position: relative; margin-top: -72px; padding: calc(72px + clamp(48px, 9vh, 110px)) 0 clamp(64px, 10vh, 120px); overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 10%, transparent 75%);
  opacity: .6;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.glow--a { width: 620px; height: 620px; right: -120px; top: -160px; background: radial-gradient(circle, rgba(200, 255, 77, .2), transparent 65%); animation: drift 16s ease-in-out infinite alternate; }
.glow--b { width: 520px; height: 520px; left: -200px; bottom: -220px; background: radial-gradient(circle, rgba(77, 225, 255, .14), transparent 65%); animation: drift 20s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate3d(60px, 40px, 0) scale(1.12); } }

.hero__in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(24px, 4vw, 64px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(200, 255, 77, .6); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 10px rgba(200, 255, 77, 0); } }

h1 { margin-top: 22px; font-size: clamp(2.05rem, 4.5vw, 4.1rem); line-height: 1.06; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
h1 em { font-style: normal; background: linear-gradient(100deg, var(--accent) 10%, var(--cool) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 26px; max-width: 600px; color: var(--muted); font-size: clamp(1.05rem, 1.35vw, 1.24rem); line-height: 1.6; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.hero__art { position: relative; }
.net { width: 100%; height: auto; max-width: 560px; margin-left: auto; overflow: visible; font-family: var(--font); }
.net__ring { fill: none; stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 9; transform-origin: 260px 250px; animation: spin 80s linear infinite; }
.net__ring--2 { stroke: var(--line); animation-duration: 140s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.net__links path { stroke: var(--line-2); stroke-width: 1.2; fill: none; }
.net__flow path { stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; fill: none; stroke-dasharray: 14 400; stroke-dashoffset: 14; animation: flow 3.6s linear infinite; animation-delay: var(--d); opacity: 0; }
@keyframes flow { 0% { stroke-dashoffset: 14; opacity: 0; } 12% { opacity: 1; } 75% { opacity: 1; } 100% { stroke-dashoffset: -230; opacity: 0; } }
.chip { animation: bob 6s ease-in-out infinite; animation-delay: calc(var(--d) * -1); }
.chip rect { fill: #12161c; stroke: var(--line-2); stroke-width: 1; }
.chip text, .net__hub text { fill: var(--text); font-size: 15px; font-weight: 600; text-anchor: middle; }
.chip--ai rect { stroke: rgba(200, 255, 77, .55); fill: #141a0c; }
.chip--ai text { fill: var(--accent); }
@keyframes bob { 50% { transform: translateY(-7px); } }
.net__hub circle { fill: #10140b; stroke: var(--accent); stroke-width: 1.5; }
.net__hub text { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.net__hub .net__pulse { fill: none; stroke: var(--accent); transform-origin: 260px 250px; animation: pulse 3.2s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.75); opacity: 0; } }

/* ---------- Секции ---------- */
.section { position: relative; padding: clamp(72px, 11vw, 140px) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 64px); }
h2 { margin-top: 16px; font-size: clamp(1.8rem, 3.6vw, 3.1rem); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
.head__sub { margin-top: 20px; max-width: 640px; color: var(--muted); font-size: clamp(1.02rem, 1.25vw, 1.15rem); }
h3 { font-size: 1.28rem; line-height: 1.25; font-weight: 700; letter-spacing: -.015em; }

/* ---------- Карточки ---------- */
.cards { display: grid; gap: 18px; }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card, .sol, .step {
  position: relative; overflow: hidden;
  padding: 28px 26px 30px; border-radius: var(--r);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .35s, box-shadow .35s;
}
.card::before, .sol::before, .step::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(200, 255, 77, .13), transparent 60%);
  transition: opacity .35s;
}
.card:hover, .sol:hover, .step:hover { transform: translateY(-5px); border-color: rgba(200, 255, 77, .38); box-shadow: 0 24px 60px -30px rgba(200, 255, 77, .35); }
.card:hover::before, .sol:hover::before, .step:hover::before { opacity: 1; }
.card { display: flex; flex-direction: column; gap: 14px; }
.card__num { position: absolute; right: 22px; top: 22px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .1em; opacity: .7; }
.card__ico, .ai__item svg { width: 44px; height: 44px; padding: 9px; border-radius: 13px; background: var(--accent-soft); fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.card h3 { margin-top: 8px; }
.card p { color: var(--muted); font-size: 16px; }
.card__note { font-size: 14.5px !important; margin-top: auto; padding-top: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags li { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; color: var(--text); }
.list { display: grid; gap: 9px; font-size: 15.5px; color: var(--text); }
.list li { position: relative; padding-left: 20px; line-height: 1.45; }
.list li::before { content: ""; position: absolute; left: 2px; top: .58em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.status { display: inline-flex; align-items: center; gap: 9px; align-self: flex-start; padding: 6px 13px 6px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent) !important; font-size: 13.5px !important; font-weight: 700; }
.status__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; color: var(--text); font-weight: 700; font-size: 15.5px; }
.more svg { transition: transform .25s; }
.more:hover { color: var(--accent); }
.more:hover svg { transform: translateX(4px); }

/* ---------- Витрина решений ---------- */
.sols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sol { display: flex; flex-direction: column; gap: 18px; min-height: 250px; }
.sol--soon { border-style: dashed; border-color: var(--line-2); background: var(--surface); }
.sol__skel { display: grid; gap: 11px; margin-top: 6px; }
.sol__skel i { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2) 25%, rgba(255, 255, 255, .13) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 2.6s linear infinite; }
.sol__skel i:nth-child(1) { width: 58%; height: 18px; }
.sol__skel i:nth-child(2) { width: 92%; }
.sol__skel i:nth-child(3) { width: 74%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.sol__txt { margin-top: auto; color: var(--muted); font-size: 15px; }
.sol--cta { border-color: rgba(200, 255, 77, .3); background: linear-gradient(160deg, rgba(200, 255, 77, .1), var(--surface) 60%); }
.sol--cta p { color: var(--muted); font-size: 16px; }
.sol--cta .btn { align-self: flex-start; margin-top: auto; }
/* Карточка готового решения (для будущего каталога) */
.sol__name { font-size: 1.28rem; font-weight: 700; }
.sol__desc { color: var(--muted); font-size: 16px; }

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.step { padding-top: 26px; }
.step__n { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 22px; border-radius: 50%; border: 1px solid rgba(200, 255, 77, .5); color: var(--accent); font-weight: 800; font-size: 18px; }
.step p { margin-top: 12px; color: var(--muted); font-size: 16px; }

/* ---------- ИИ ---------- */
.ai { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.head--side { margin-bottom: 0; position: sticky; top: 110px; }
.ai__list { display: grid; }
.ai__item { display: flex; gap: 22px; padding: 28px 0; border-top: 1px solid var(--line); }
.ai__item:first-child { border-top: 0; padding-top: 4px; }
.ai__item p { margin-top: 8px; color: var(--muted); font-size: 16.5px; }

/* ---------- Контакты ---------- */
.contact__box { position: relative; overflow: hidden; isolation: isolate; padding: clamp(36px, 6vw, 84px); border-radius: clamp(24px, 3vw, 40px); border: 1px solid var(--line-2); background: linear-gradient(140deg, rgba(200, 255, 77, .09), var(--surface) 55%); }
.glow--c { z-index: -1; width: 520px; height: 520px; right: -140px; bottom: -260px; background: radial-gradient(circle, rgba(200, 255, 77, .28), transparent 65%); }
.contact__links { display: flex; flex-wrap: wrap; gap: 14px 56px; margin: 40px 0 44px; }
.contact__link span { display: block; color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.contact__link strong { display: inline-block; margin-top: 6px; font-size: clamp(1.3rem, 2.8vw, 2.2rem); font-weight: 700; letter-spacing: -.02em; background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 0 2px; transition: background-size .35s, color .25s; }
.contact__link:hover strong { background-size: 100% 2px; color: var(--accent); }

.contact__act { display: flex; flex-wrap: wrap; gap: 14px; }
.btn--im { padding-inline: 28px; font-weight: 600; }

/* ---------- Подвал ---------- */
.footer { border-top: 1px solid var(--line); padding: 34px 0 40px; color: var(--muted); font-size: 15px; }
.footer__in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer__copy { color: var(--text); font-weight: 600; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-left: auto; }
.footer__nav a:hover, .footer__legal a:hover { color: var(--text); }
.footer__im { display: flex; gap: 10px; }
.im { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--text); transition: color .25s, border-color .25s, background .25s, transform .25s; }
.im:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
.footer__legal { flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.5; }
.footer__legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Появление при прокрутке (только с JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1), border-color .35s, box-shadow .35s; transition-delay: var(--rd, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal.is-in:hover { transition-delay: 0s; }
.js .card.reveal.is-in:hover, .js .sol.reveal.is-in:hover, .js .step.reveal.is-in:hover { transform: translateY(-5px); }

/* ---------- Простые страницы (404, решение) ---------- */
.page { min-height: 70vh; padding: clamp(56px, 9vw, 110px) 0; }
.page--center { display: grid; place-items: center; text-align: center; }
.page__code { font-size: clamp(5rem, 18vw, 11rem); line-height: 1; font-weight: 800; letter-spacing: -.05em; background: linear-gradient(100deg, var(--accent), var(--cool)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page .lead { margin-inline: auto; }
.page--center .hero__btns { justify-content: center; }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-top: 56px; }
.prose p, .prose ul, .prose ol { margin-top: 16px; color: var(--muted); }
.prose ol { list-style: decimal; padding-left: 22px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose li { margin-top: 8px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin-top: 0; }
.prose .status { margin-top: 20px; }
.prose ol li { margin-top: 8px; }
.crumbs { color: var(--muted); font-size: 15px; margin-bottom: 26px; }
.crumbs a:hover { color: var(--accent); }

/* ---------- Адаптив ---------- */
@media (min-width: 1600px) {
  :root { --wrap: 1480px; }
  body { font-size: 18.5px; }
  h1 { font-size: 5rem; }
  .hero { padding-top: calc(72px + 130px); padding-bottom: 150px; }
  .net { max-width: 640px; }
  .card, .sol, .step { padding: 34px 32px 36px; }
}
@media (max-width: 1100px) {
  .cards--4, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav a { padding: 8px 10px; }
}
@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__art { max-width: 460px; margin: 8px auto 0; width: 100%; }
  .net { margin: 0 auto; }
  .ai { grid-template-columns: 1fr; }
  .head--side { position: static; }
  .sols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sol--cta { grid-column: 1 / -1; min-height: 0; }

  /* Меню: без JS ссылки остаются в подвале, с JS — выпадающая панель */
  .nav { display: none; }
  .js .burger { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); cursor: pointer; }
  .burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s; }
  .is-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .is-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .js .is-open .nav {
    display: flex; flex-direction: column; gap: 0; margin: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    padding: 8px var(--pad) 20px; background: #0a0c10; border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0, 0, 0, .6);
  }
  .js .is-open .nav a { padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 18px; font-weight: 600; }
  .js .is-open .nav a:last-child { border-bottom: 0; }
  .header__act { margin-left: auto; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .cards--4, .cards--3, .steps, .sols { grid-template-columns: 1fr; }
  .sol { min-height: 0; }
  .sol--soon { min-height: 190px; }
  .hero__btns .btn { flex: 1 1 100%; }
  .contact__box .btn { width: 100%; white-space: normal; }
  .ai__item { gap: 16px; }
  .footer__in { flex-direction: column; align-items: flex-start; }
  .footer__nav { margin-left: 0; }
  .contact__act .btn { flex: 1 1 auto; }
  .chip text { font-size: 18px; }
  .net__hub text { font-size: 21px; }
}
@media (max-width: 400px) {
  .header__in { gap: 10px; }
  .header__act { gap: 8px; }
  .logo { font-size: 16px; gap: 8px; }
  .logo__mark { width: 28px; height: 28px; }
  .btn--sm { padding: 9px 13px; font-size: 14px; }
  .js .burger { width: 40px; height: 40px; }
}

/* ---------- Без анимаций ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .net__flow path { opacity: .9; stroke-dasharray: 3 12; stroke-dashoffset: 0; stroke-width: 1.6; }
  .net__pulse { display: none; }
  .hero__canvas { display: none; }
}

@media print {
  .header, .hero__bg, .hero__art, .burger { display: none; }
  body { background: #fff; color: #000; }
}
