/* Визуальный язык текущего hardcode.kz: тёмный фон, Roboto, заголовки капсом,
   синий #2f7df0 как единственный акцент, фото-карточки и тонкие рамки */
:root {
  --bg: #111111;
  --bg-alt: #131018;
  --navy-1: #050819;
  --navy-2: #0a1026;
  --navy-3: #0c142b;
  --text: #ffffff;
  --muted: #a9adb7;
  --dim: #7d828d;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.4);
  --card: rgba(255, 255, 255, 0.03);
  --blue: #2f7df0;
  --blue-dark: #0b5cd2;
  --font: "Roboto", "Helvetica Neue", Arial, sans-serif;
  /* до 90rem всё как раньше, на больших экранах растёт вместе с шириной */
  --container: clamp(77.5rem, 76vw, 112.5rem);
  --gutter: 1.5rem;
  --fs-body: clamp(1.0625rem, 0.5vw + 0.625rem, 1.375rem);
  --fs-sm: calc(var(--fs-body) * 0.94);
  --fs-xs: calc(var(--fs-body) * 0.85);
  --fs-lg: calc(var(--fs-body) * 1.06);
  --fs-h3: calc(var(--fs-body) * 1.3);
  --space-section: clamp(4.5rem, 4vw + 3.125rem, 11.875rem);
  --gap: clamp(1rem, 0.6vw + 0.75rem, 2rem);
  --pad: clamp(1.375rem, 1vw + 0.875rem, 2.75rem);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
/* Все размеры в rem: на десктопе страница целиком в масштабе 80%, как при
   зуме браузера, а на планшетах и телефонах остаётся крупнее и читаемой */
@media (min-width: 1081px) { html { font-size: 80%; } }
html { scroll-behavior: smooth; scroll-padding-top: 5.625rem; }
body { margin: 0; background: var(--bg); color: var(--text); font: 300 var(--fs-body)/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }

.container {
  max-width: var(--container); margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.blue { color: var(--blue); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.625rem;
  min-height: 3.2em; padding: 0.6em 1.5em; border-radius: 0.625rem; border: 1px solid var(--blue);
  font-size: var(--fs-lg); font-weight: 400; cursor: pointer; transition: background .2s, border-color .2s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-outline { background: transparent; }
.btn-sm { min-height: 2.6em; padding: 0.4em 1.1em; font-size: var(--fs-sm); }
.btn-outline:hover { background: rgba(47, 125, 240, 0.12); }
.btn:focus-visible, summary:focus-visible, .lang:focus-visible { outline: 2px solid var(--blue); outline-offset: 0.1875rem; }

/* Шапка */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .3s;
}
.header.scrolled { background: rgba(17, 17, 17, 0.96); }
.header .container { display: flex; align-items: center; gap: 2.5rem; height: clamp(5.25rem, 4.4vw, 6.5rem); border-bottom: 1px solid var(--line); }
.logo img { width: clamp(9.375rem, 6vw + 6.5rem, 15.625rem); }
.nav { display: flex; gap: clamp(1.5rem, 1.6vw, 2.75rem); font-size: var(--fs-sm); font-weight: 400; }
.nav a { opacity: .85; white-space: nowrap; }
.nav a:hover { opacity: 1; color: var(--blue); }
.header-right { margin-left: auto; display: flex; gap: 0.75rem; align-items: center; }
/* кнопки шапки не переносятся на две строки */
.header-right .btn, .lang { white-space: nowrap; }
.lang { height: 2.6em; padding: 0 0.9em; border-radius: 0.625rem; border: 1px solid var(--blue); background: transparent; font-size: var(--fs-sm); font-weight: 300; cursor: pointer; }
.burger { display: none; width: 2.75rem; height: 2.75rem; border: 0; background: none; cursor: pointer; padding: 0.625rem 0.375rem; }
.burger span { display: block; height: 2px; background: #fff; margin: 0.375rem 0; }

/* Первый экран */
.hero {
  position: relative; overflow: hidden; padding: clamp(9.375rem, 6vw + 6.5rem, 16.875rem) 0 clamp(4rem, 3vw + 1.875rem, 8.125rem);
  background: var(--bg-alt) url("../assets/new-design/hero-ai.jpg") 72% 50% / cover no-repeat;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
/* затемнение слева и снизу, чтобы заголовок и цифры читались поверх видео */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(19, 16, 24, 0.85) 0%, rgba(19, 16, 24, 0.4) 40%, rgba(19, 16, 24, 0) 65%),
    linear-gradient(to top, var(--bg) 0, rgba(17, 17, 17, 0) 11.25rem);
}
/* на узком экране сеть и карточка оказались бы за текстом, поэтому показываем потоки данных */
@media (max-width: 900px) {
  .hero { background-position: 20% 50%; }
  .hero-video { object-position: 20% 50%; }
  .hero::after { background: rgba(19, 16, 24, 0.5); }
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.375rem, 3.6vw + 1rem, 6.5rem); line-height: 1.09; text-transform: uppercase; }
.hero h1 .blue { display: block; font-weight: 300; }
.hero h1 .white { display: block; font-weight: 700; }
.hero-actions { display: flex; gap: 0.875rem; flex-wrap: wrap; margin-top: 2.5rem; }
.digits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(4.5rem, 4vw + 3.25rem, 10.625rem); }
.digit { display: flex; align-items: center; gap: 1rem; }
.digit b { font-size: clamp(3.5rem, 4vw + 2rem, 7.75rem); font-weight: 700; line-height: 1; }
.digit span { font-size: var(--fs-lg); line-height: 1.3; }

/* Общие элементы секций */
.section { padding: var(--space-section) 0; position: relative; }
.section.alt { background: var(--bg-alt); }
.h2 { font-size: clamp(1.75rem, 2.4vw + 0.875rem, 4.125rem); font-weight: 700; line-height: 1.15; text-transform: uppercase; }
.lead { max-width: 36em; margin-top: 0.9em; color: var(--muted); font-size: var(--fs-lg); }
.head { margin-bottom: clamp(2.25rem, 2vw + 1.75rem, 5rem); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 0.625rem; padding: var(--pad); }

/* Свечение за курсором: мягкая подсветка карточки под курсором и блик на
   рамках всех карточек рядом. Координаты курсора относительно каждой
   карточки пишет в --mx и --my один общий обработчик внизу страницы */
.glow { position: relative; isolation: isolate; }
.glow::before, .glow::after { content: ""; position: absolute; pointer-events: none; opacity: 0; transition: opacity .4s; }
.glow::before {
  inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(28.75rem circle at var(--mx, -62.4375rem) var(--my, -62.4375rem), rgba(47, 125, 240, 0.15), transparent 60%);
}
.glow::after {
  inset: -1px; padding: 1px; border-radius: inherit;
  background: radial-gradient(18.75rem circle at var(--mx, -62.4375rem) var(--my, -62.4375rem), rgba(140, 190, 255, 0.9), transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.glow:hover::before, .glow-on .glow::after { opacity: 1; }
@media (hover: none) { .glow::before, .glow::after { display: none; } }
.card h3 { font-size: var(--fs-h3); font-weight: 500; line-height: 1.3; margin-bottom: 0.75rem; }
.card p { color: var(--muted); font-size: var(--fs-sm); }

/* Что мы делаем */
/* Что мы делаем: бенто из живых сцен — каждая карточка показывает услугу
   в работе. Двигаются только transform и opacity, сцены стоят на паузе,
   пока блок не виден */
.bento {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap);
  grid-template-areas: "ai ai apps" "corp industry apps" "data data devops";
}
.svc-ai { grid-area: ai; }
.svc-apps { grid-area: apps; }
.svc-corp { grid-area: corp; }
.svc-industry { grid-area: industry; }
.svc-data { grid-area: data; }
.svc-devops { grid-area: devops; }
.svc { display: flex; flex-direction: column; padding: 0.75rem; }
.svc.main { border-color: rgba(47, 125, 240, 0.55); }
.svc.main h3 { color: var(--blue); }
.svc-text { padding: 1.375rem calc(var(--pad) - 0.75rem) calc(var(--pad) - 0.75rem); }


.demo {
  position: relative; height: clamp(14.375rem, 6vw + 9.375rem, 18.75rem); overflow: hidden; border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.07) 1px, transparent 0) 0 0 / 1.125rem 1.125rem,
    linear-gradient(180deg, #0b1124, #0a0d1a);
  color: #c9d4e8; font-size: 0.75rem; line-height: 1.4;
}
.svc-apps .demo { flex: 1; height: auto; min-height: 26.25rem; }
/* !important: правила сцен задают animation целиком, и без него
   часть из них перебивала паузу и крутилась за экраном */
[data-play]:not(.is-playing) *,
[data-play]:not(.is-playing) *::before,
[data-play]:not(.is-playing) *::after { animation-play-state: paused !important; }

/* ИИ: ассистент отвечает со ссылкой на документ, рядом распознаётся счёт */
.demo-ai { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.25rem; padding: 1.375rem; }
.chat { display: grid; grid-template-rows: auto auto; align-content: center; gap: 0.75rem; }
.msg { max-width: 92%; padding: 0.625rem 0.875rem; border-radius: 0.875rem; font-size: 0.8125rem; }
.msg-user { justify-self: end; border-bottom-right-radius: 0.25rem; background: var(--blue); color: #fff; animation: ai-user 10s infinite; }
.msg-typing, .msg-bot {
  grid-area: 2 / 1; justify-self: start; border-bottom-left-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08);
}
.msg-typing { display: flex; align-items: center; gap: 0.3125rem; align-self: start; height: 2.5rem; opacity: 0; animation: ai-typing 10s infinite; }
.msg-typing i { width: 0.375rem; height: 0.375rem; border-radius: 50%; background: #9fb3d6; animation: typing-dot 1s infinite; }
.msg-typing i:nth-child(2) { animation-delay: .15s; }
.msg-typing i:nth-child(3) { animation-delay: .3s; }
.msg-bot { color: #e6edf9; animation: ai-bot 10s infinite; }
.source {
  display: flex; align-items: center; gap: 0.375rem; width: fit-content; margin-top: 0.5rem; padding: 0.1875rem 0.5rem; border-radius: 0.375rem;
  background: rgba(47, 125, 240, 0.16); color: #9cc3ff; font-size: 0.6875rem; animation: ai-source 10s infinite;
}
.source::before { content: ""; width: 0.4375rem; height: 0.5625rem; border: 1px solid currentColor; border-radius: 1px; }
@keyframes ai-user { 0%, 3% { opacity: 0; transform: translateY(0.625rem); } 7%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }
@keyframes ai-typing { 0%, 10% { opacity: 0; } 13%, 30% { opacity: 1; } 33%, 100% { opacity: 0; } }
@keyframes ai-bot { 0%, 32% { opacity: 0; transform: translateY(0.625rem); } 37%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }
@keyframes ai-source { 0%, 44% { opacity: 0; transform: scale(0.9); } 48%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }
@keyframes typing-dot { 0%, 60%, 100% { opacity: .45; transform: none; } 30% { opacity: 1; transform: translateY(-0.25rem); } }

.doc { display: flex; align-items: center; gap: 0.875rem; min-width: 0; }
.doc-sheet {
  position: relative; flex: none; display: flex; flex-direction: column; gap: 0.5rem; width: 7.375rem; height: 10rem; padding: 1rem 0.75rem;
  overflow: hidden; border-radius: 0.375rem; background: #e6ecf7; box-shadow: 0 0.875rem 1.875rem rgba(0, 0, 0, 0.45);
}
.doc-sheet span { position: relative; height: 0.3125rem; border-radius: 0.1875rem; background: #bcc6d9; }
.doc-sheet .hl { background: #8fa1c2; }
.doc-sheet .hl::after {
  content: ""; position: absolute; inset: -0.25rem -0.3125rem; border: 1px solid var(--blue); border-radius: 0.1875rem;
  background: rgba(47, 125, 240, 0.18); animation: doc-mark 6s infinite backwards;
}
.doc-sheet .hl:nth-of-type(3)::after { animation-delay: 1.1s; }
.doc-sheet .hl:nth-of-type(6)::after { animation-delay: 1.9s; }
.doc-sheet .hl:nth-of-type(9)::after { animation-delay: 2.7s; }
.doc-beam { position: absolute; inset: 0; opacity: 0; animation: doc-scan 6s linear infinite; }
.doc-beam::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--blue); box-shadow: 0 0 0.75rem 0.1875rem rgba(47, 125, 240, 0.6); }
.doc-beam::after { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 2.25rem; background: linear-gradient(to top, rgba(47, 125, 240, 0.28), transparent); }
.tags { display: grid; gap: 0.5rem; min-width: 0; }
.tag {
  display: flex; align-items: center; gap: 0.375rem; padding: 0.3125rem 0.5625rem; border-radius: 0.375rem; white-space: nowrap;
  border: 1px solid rgba(47, 125, 240, 0.45); background: rgba(47, 125, 240, 0.1); color: #d6e6ff; font-size: 0.7188rem;
  animation: doc-tag 6s infinite backwards;
}
.tag::before { content: "✓"; color: var(--blue); font-weight: 700; }
.tag:nth-child(1) { animation-delay: 1.3s; }
.tag:nth-child(2) { animation-delay: 2.1s; }
.tag:nth-child(3) { animation-delay: 2.9s; }
@keyframes doc-scan { 0% { opacity: 0; transform: translateY(0); } 5% { opacity: 1; } 58% { opacity: 1; transform: translateY(100%); } 63%, 100% { opacity: 0; transform: translateY(100%); } }
@keyframes doc-mark { 0% { opacity: 0; } 5%, 62% { opacity: 1; } 70%, 100% { opacity: 0; } }
@keyframes doc-tag { 0% { opacity: 0; transform: translateX(-0.5rem); } 6%, 60% { opacity: 1; transform: none; } 68%, 100% { opacity: 0; transform: none; } }

/* Веб и мобильные: кабинет в браузере и приложение с живой лентой */
.browser {
  position: absolute; left: 7%; top: 7%; width: 80%; height: 44%; display: flex; flex-direction: column; overflow: hidden; border-radius: 0.5rem;
  background: #111a31; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.35);
}
.browser-bar { display: flex; align-items: center; gap: 0.3125rem; height: 1.5rem; padding: 0 0.5625rem; background: rgba(255, 255, 255, 0.04); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.browser-bar i { width: 0.375rem; height: 0.375rem; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.browser-bar span { margin-left: 0.5rem; padding: 1px 0.5rem; border-radius: 0.25rem; background: rgba(255, 255, 255, 0.05); color: #8d9bb5; font-size: 0.625rem; }
.browser-body { flex: 1; display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 0.625rem; padding: 0.75rem; }
.sk { height: 0.4375rem; border-radius: 0.25rem; background: rgba(255, 255, 255, 0.12); }
.w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; }
.browser-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.browser-cards div { height: 1.875rem; border-radius: 0.3125rem; background: rgba(47, 125, 240, 0.12); border: 1px solid rgba(47, 125, 240, 0.25); }
.browser-chart { display: flex; align-items: flex-end; gap: 0.3125rem; min-height: 2.5rem; }
.browser-chart i {
  flex: 1; height: 100%; border-radius: 2px 2px 0 0; transform-origin: bottom; transform: scaleY(var(--h));
  background: linear-gradient(to top, rgba(47, 125, 240, 0.25), rgba(47, 125, 240, 0.85));
  animation: bar-breathe 3.2s ease-in-out infinite alternate;
}
.browser-chart i:nth-child(odd) { animation-delay: -1.6s; }
.browser-chart i:nth-child(3n) { animation-delay: -.8s; }
@keyframes bar-breathe { from { transform: scaleY(var(--h)); } to { transform: scaleY(calc(var(--h) * 0.6)); } }

.phone {
  position: absolute; right: 8%; bottom: 5%; height: min(82%, 28.75rem); aspect-ratio: 9 / 18; padding: 0.4375rem; border-radius: 1.875rem;
  background: #0d1222; border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 1.875rem 3.75rem rgba(0, 0, 0, 0.6), 0 0 0 0.25rem rgba(255, 255, 255, 0.03);
}
.phone-screen { position: relative; height: 100%; overflow: hidden; border-radius: 1.4375rem; background: linear-gradient(180deg, #14213f, #0b1226); }
.phone-notch { position: absolute; top: 0.5625rem; left: 35%; width: 30%; height: 0.8125rem; border-radius: 0.5rem; background: #05070d; z-index: 3; }
.phone-head { padding: 2.125rem 0.875rem 0.75rem; }
.phone-head span { display: block; color: #8d9bb5; font-size: 0.625rem; }
.phone-head b { display: block; margin-top: 2px; color: #fff; font-size: 1.125rem; font-weight: 500; }
.phone-feed {
  position: absolute; left: 0; right: 0; top: 5.875rem; bottom: 0; overflow: hidden; padding: 0 0.5625rem;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 85%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 85%, transparent);
}
.feed-track { animation: feed-scroll 14s linear infinite; }
.feed-item { display: flex; align-items: center; gap: 0.5rem; height: 2.875rem; margin-bottom: 0.5rem; padding: 0 0.5625rem; border-radius: 0.625rem; background: rgba(255, 255, 255, 0.05); }
.feed-item i { flex: none; width: 1.5rem; height: 1.5rem; border-radius: 0.5rem; background: rgba(47, 125, 240, 0.3); border: 1px solid rgba(47, 125, 240, 0.5); }
.feed-item span { display: grid; min-width: 0; color: #e6edf9; font-size: 0.6562rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-item small { color: #7f93b8; font-size: 0.5938rem; }
@keyframes feed-scroll { to { transform: translateY(-50%); } }
.toast {
  position: absolute; left: 0.4375rem; right: 0.4375rem; top: 1.875rem; z-index: 2; display: flex; align-items: center; gap: 0.5rem; padding: 0.5625rem 0.625rem;
  border-radius: 0.75rem; background: #1c2b52; border: 1px solid rgba(47, 125, 240, 0.55); color: #fff; font-size: 0.6562rem;
  box-shadow: 0 0.625rem 1.375rem rgba(0, 0, 0, 0.45); opacity: 0; animation: toast 7s infinite;
}
.toast::before { content: "✓"; flex: none; display: grid; place-items: center; width: 1.125rem; height: 1.125rem; border-radius: 50%; background: var(--blue); font-size: 0.625rem; }
@keyframes toast { 0%, 40% { opacity: 0; transform: translateY(-130%); } 46%, 80% { opacity: 1; transform: none; } 86%, 100% { opacity: 0; transform: translateY(-130%); } }

/* Корпоративные системы: данные ходят между системами через общий узел */
.demo-corp { --node: 3.625rem; }
.demo-corp .node, .demo-corp .hub { position: absolute; display: grid; place-items: center; font-weight: 500; }
.demo-corp .node {
  width: var(--node); height: 2.125rem; border-radius: 0.625rem; font-size: 0.7188rem;
  background: #111a31; border: 1px solid rgba(255, 255, 255, 0.16); color: #dbe5f5;
}
.n-left { left: 7%; top: calc(50% - 1.0625rem); }
.n-right { right: 7%; top: calc(50% - 1.0625rem); }
.n-top { top: 9%; left: calc(50% - var(--node) / 2); }
.n-bottom { bottom: 9%; left: calc(50% - var(--node) / 2); }
.demo-corp .hub {
  left: calc(50% - 2rem); top: calc(50% - 2rem); width: 4rem; height: 4rem; border-radius: 1.125rem; font-size: 0.8125rem;
  background: #13244a; border: 1px solid rgba(47, 125, 240, 0.7); color: #fff; box-shadow: 0 0 2.125rem rgba(47, 125, 240, 0.35);
}
.demo-corp .hub::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 1px solid rgba(47, 125, 240, 0.8);
  opacity: 0; animation: hub-ring 2.4s ease-out infinite;
}
@keyframes hub-ring { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }
.wire { position: absolute; background: rgba(255, 255, 255, 0.14); }
.w-left { left: calc(7% + var(--node)); right: calc(50% + 2rem); top: 50%; height: 1px; }
.w-right { left: calc(50% + 2rem); right: calc(7% + var(--node)); top: 50%; height: 1px; }
.w-top { top: calc(9% + 2.125rem); bottom: calc(50% + 2rem); left: 50%; width: 1px; }
.w-bottom { top: calc(50% + 2rem); bottom: calc(9% + 2.125rem); left: 50%; width: 1px; }
/* пакет едет внутри обёртки размером с провод: сдвиг на 100% — ровно длина провода */
.wire b { position: absolute; inset: 0; opacity: 0; animation: packet-x 2.4s linear infinite; }
.w-top b, .w-bottom b { animation-name: packet-y; }
.wire b::before {
  content: ""; position: absolute; left: -0.1875rem; top: -0.1875rem; width: 0.4375rem; height: 0.4375rem; border-radius: 50%;
  background: #a9d0ff; box-shadow: 0 0 0.625rem 2px rgba(47, 125, 240, 0.85);
}
.w-right b { animation-delay: 1.2s; }
.w-top b { animation-delay: .6s; }
.w-bottom b { animation-delay: 1.8s; }
@keyframes packet-x { 0% { opacity: 0; transform: translateX(0); } 12%, 88% { opacity: 1; } 100% { opacity: 0; transform: translateX(100%); } }
@keyframes packet-y { 0% { opacity: 0; transform: translateY(0); } 12%, 88% { opacity: 1; } 100% { opacity: 0; transform: translateY(100%); } }

/* Промышленность: карта участка, радар, техника и сигнал о простое */
.terrain { position: absolute; inset: 0; width: 100%; height: 100%; }
.terrain path { fill: none; stroke: rgba(120, 160, 230, 0.16); stroke-width: 1; }
.terrain .road { stroke: rgba(255, 255, 255, 0.18); stroke-width: 2; stroke-dasharray: 5 7; }
.rings, .radar { position: absolute; left: calc(58% - 8.125rem); top: calc(54% - 8.125rem); width: 16.25rem; height: 16.25rem; border-radius: 50%; }
.rings { border: 1px solid rgba(47, 125, 240, 0.2); }
.rings::before { content: ""; position: absolute; inset: 25%; border-radius: 50%; border: 1px solid rgba(47, 125, 240, 0.2); }
.radar {
  background: conic-gradient(from 0deg, rgba(47, 125, 240, 0.4), rgba(47, 125, 240, 0) 24%, transparent);
  -webkit-mask-image: radial-gradient(circle, #000 62%, transparent 71%);
  mask-image: radial-gradient(circle, #000 62%, transparent 71%);
  animation: radar 5s linear infinite;
}
@keyframes radar { to { transform: rotate(360deg); } }
.live { position: absolute; left: 0.875rem; top: 0.75rem; display: flex; align-items: center; gap: 0.4375rem; color: #9fb3d6; font-size: 0.6562rem; letter-spacing: .06em; text-transform: uppercase; }
.live::before { content: ""; width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: #ff5d5d; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.unit { position: absolute; display: flex; align-items: center; gap: 0.375rem; white-space: nowrap; color: #d6e6ff; font-size: 0.6562rem; }
.unit i { position: relative; flex: none; width: 0.5625rem; height: 0.5625rem; border-radius: 50%; background: #7ab8ff; box-shadow: 0 0 0 0.1875rem rgba(122, 184, 255, 0.22); }
.unit span { padding: 2px 0.4375rem; border-radius: 0.3125rem; background: rgba(9, 14, 32, 0.85); border: 1px solid rgba(255, 255, 255, 0.12); }
.u1 { left: 14%; top: 32%; animation: u1 9s ease-in-out infinite; }
.u2 { left: 50%; top: 70%; animation: u2 11s ease-in-out infinite; }
.u3 { left: 64%; top: 26%; }
.u3 i { background: #ffb547; box-shadow: none; }
.u3 i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #ffb547; animation: alert-ring 1.6s ease-out infinite; }
.u3 span { border-color: rgba(255, 181, 71, 0.5); color: #ffd79a; }
@keyframes u1 { 0%, 100% { transform: translate(0, 0); } 35% { transform: translate(4.375rem, 1.125rem); } 70% { transform: translate(7.5rem, 2px); } }
@keyframes u2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-5.625rem, -1.5rem); } }
@keyframes alert-ring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(3.2); } }

/* Данные: источники стекаются в хранилище, отчёт обновляется сам */
.demo-data { display: flex; align-items: center; gap: 0; padding: 0 1.375rem; }
.data-sources { display: grid; gap: 0.875rem; flex: none; }
.data-sources span {
  display: grid; place-items: center; height: 1.75rem; padding: 0 0.75rem; border-radius: 0.5rem;
  background: #111a31; border: 1px solid rgba(255, 255, 255, 0.16); color: #dbe5f5; font-size: 0.7188rem;
}
.data-flow { flex: none; overflow: visible; width: 5.625rem; height: 9.625rem; }
.data-flow.out { width: 3rem; }
.dwh svg { width: 2rem; height: 2.25rem; }
.data-flow .flow { fill: none; stroke: rgba(255, 255, 255, 0.14); stroke-width: 1; }
.data-flow .pulse {
  fill: none; stroke: #8fc2ff; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 9 91;
  filter: drop-shadow(0 0 0.1875rem rgba(47, 125, 240, 0.9)); animation: flow-pulse 2.2s linear infinite;
}
.data-flow .pulse:nth-of-type(4) { animation-delay: -.6s; }
.data-flow .pulse:nth-of-type(6) { animation-delay: -1.3s; }
.data-flow .pulse:nth-of-type(8) { animation-delay: -1.8s; }
.data-flow.out .pulse { animation-duration: 1.4s; }
@keyframes flow-pulse { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.dwh {
  flex: none; display: grid; justify-items: center; gap: 0.375rem; padding: 0.75rem 0.625rem; border-radius: 0.75rem;
  background: #13244a; border: 1px solid rgba(47, 125, 240, 0.65); box-shadow: 0 0 1.875rem rgba(47, 125, 240, 0.3); font-size: 0.6875rem; color: #fff;
}
.dwh svg { fill: none; stroke: #8fc2ff; stroke-width: 1.6; }
.dash {
  flex: 1; min-width: 0; display: grid; gap: 0.75rem; padding: 0.875rem; border-radius: 0.625rem;
  background: #111a31; border: 1px solid rgba(255, 255, 255, 0.1);
}
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.kpis div { display: grid; padding: 0.4375rem 0.5625rem; border-radius: 0.4375rem; background: rgba(255, 255, 255, 0.04); }
.kpis small { color: #7f93b8; font-size: 0.625rem; }
.kpis b { color: #fff; font-size: 0.9375rem; font-weight: 500; }
.kpis div:first-child b { color: #6fb1ff; }
.chart { position: relative; height: 5.75rem; }
.bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 0.375rem; }
.bars i {
  flex: 1; height: 100%; border-radius: 2px 2px 0 0; transform-origin: bottom; transform: scaleY(var(--h));
  background: linear-gradient(to top, rgba(47, 125, 240, 0.12), rgba(47, 125, 240, 0.45));
  animation: bar-grow 6s cubic-bezier(.2, .8, .2, 1) infinite backwards;
}
.bars i:nth-child(2) { animation-delay: .08s; } .bars i:nth-child(3) { animation-delay: .16s; }
.bars i:nth-child(4) { animation-delay: .24s; } .bars i:nth-child(5) { animation-delay: .32s; }
.bars i:nth-child(6) { animation-delay: .4s; } .bars i:nth-child(7) { animation-delay: .48s; }
.bars i:nth-child(8) { animation-delay: .56s; } .bars i:nth-child(9) { animation-delay: .64s; }
.bars i:nth-child(10) { animation-delay: .72s; }
@keyframes bar-grow { 0% { transform: scaleY(0); } 18%, 90% { transform: scaleY(var(--h)); } 100% { transform: scaleY(0); } }
.trend { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.trend path {
  fill: none; stroke: #8fc2ff; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0;
  filter: drop-shadow(0 0 0.25rem rgba(47, 125, 240, 0.8)); animation: trend-draw 6s ease-in-out infinite backwards;
  animation-delay: .3s;
}
@keyframes trend-draw { 0% { stroke-dashoffset: 1; } 30%, 88% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }

/* DevOps: сборка, тесты и выкладка по очереди, пульс продакшена */
.demo-devops { display: grid; align-content: center; gap: 0.875rem; padding: 1.25rem 1.375rem; }
.pipeline { display: grid; gap: 0.625rem; }
.stage { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr) 1rem; align-items: center; gap: 0.625rem; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.7188rem; }
.progress { height: 0.375rem; overflow: hidden; border-radius: 0.1875rem; background: rgba(255, 255, 255, 0.08); }
.progress i {
  display: block; height: 100%; border-radius: inherit; transform-origin: left;
  background: linear-gradient(90deg, #2f7df0, #7ab8ff); animation: stage-fill 6s ease-in-out infinite backwards;
}
.stage em { color: #6fdc9a; font-style: normal; font-weight: 700; animation: stage-check 6s infinite backwards; }
.stage:nth-child(2) i, .stage:nth-child(2) em { animation-delay: 1.4s; }
.stage:nth-child(3) i, .stage:nth-child(3) em { animation-delay: 2.8s; }
@keyframes stage-fill { 0% { transform: scaleX(0); } 22%, 72% { transform: scaleX(1); opacity: 1; } 80%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes stage-check { 0%, 22% { opacity: 0; transform: scale(.4); } 27%, 72% { opacity: 1; transform: none; } 80%, 100% { opacity: 0; } }
.prod {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; padding: 0.5rem 0.6875rem; border-radius: 0.5rem;
  background: rgba(111, 220, 154, 0.08); border: 1px solid rgba(111, 220, 154, 0.3); color: #d9f5e4; font-size: 0.7188rem;
}
.prod b { margin-left: auto; color: #6fdc9a; font-weight: 500; }
.prod-dot { width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: #6fdc9a; box-shadow: 0 0 0.5rem #6fdc9a; animation: blink 2s ease-in-out infinite; }
.heartbeat { height: 2.125rem; overflow: hidden; }
.heartbeat svg { width: 200%; height: 100%; animation: heartbeat 4s linear infinite; }
.heartbeat path { fill: none; stroke: #6fb1ff; stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 0 0.1875rem rgba(47, 125, 240, 0.8)); }
@keyframes heartbeat { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  [data-play] *, [data-play] *::before, [data-play] *::after { animation: none !important; }
}

@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "ai ai" "apps corp" "apps industry" "data data" "devops devops"; }
}
@media (max-width: 720px) {
  .bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "ai" "apps" "corp" "industry" "data" "devops"; }
  .svc-apps .demo { min-height: 25rem; }
  .demo-ai { grid-template-columns: minmax(0, 1fr); padding: 1.125rem; }
  .demo-ai .doc, .demo-data .data-sources, .demo-data .data-flow, .demo-data .dwh { display: none; }
  .demo-data { padding: 0.875rem; }
}

/* Форматы работы */
.formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.format .term { font-size: clamp(2.5rem, 2.6vw + 1.125rem, 4.75rem); font-weight: 700; line-height: 1; color: var(--blue); margin-bottom: 1.125rem; }
.format h3 { text-transform: uppercase; font-size: calc(var(--fs-body) * 1.18); }
/* итог прижат к низу, чтобы линии над ним стояли на одном уровне во всех карточках */
.format, .usecase { display: flex; flex-direction: column; }
.format .note { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--text); }

.algorithm { position: relative; margin-top: 5rem; border: 1px solid var(--line-strong); border-radius: 0.625rem; padding: 2.875rem 1.75rem 2.125rem; }
.algorithm-title { position: absolute; top: -0.75rem; left: 1.5rem; z-index: 1; padding: 0 0.75rem; background: var(--bg-alt); color: #d9d9d9; font-size: var(--fs-sm); }
.steps {
  --icon: clamp(3.75rem, 2vw + 2.5rem, 6rem);
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); list-style: none; margin: 0; padding: 0;
}
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.875rem; text-align: center; }
.steps img { width: var(--icon); height: var(--icon); transition: transform .3s ease, filter .3s ease; }
.steps li:hover img { transform: translateY(-0.25rem); filter: drop-shadow(0 0.375rem 0.875rem rgba(47, 125, 240, 0.45)); }
.steps b { font-size: var(--fs-lg); font-weight: 300; }
/* стрелка между шагами: серая основа и синяя копия поверх, которая
   по очереди вспыхивает, показывая ход процесса */
.steps li::before, .steps li::after {
  content: ""; position: absolute; top: calc(var(--icon) / 2 - 1.125rem); right: calc(var(--gap) / -2 - 0.5625rem);
  width: 1.125rem; height: 2.25rem; background: no-repeat center / contain; pointer-events: none;
}
.steps li::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 28'%3E%3Cpath d='M2 2l10 12L2 26' fill='none' stroke='%23fff' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  opacity: .35;
}
.steps li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 28'%3E%3Cpath d='M2 2l10 12L2 26' fill='none' stroke='%232f7df0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  opacity: 0; z-index: 1;
}
.steps li:last-child::before, .steps li:last-child::after { display: none; }

/* Появление при первом показе: шаги выпрыгивают по очереди, как на текущем
   сайте, логотипы поднимаются волной. Анимируются только transform и opacity */
.js-reveal [data-reveal]:not(.is-visible) li { opacity: 0; }
[data-reveal].is-visible .steps li { animation: step-pop .8s cubic-bezier(.2, .8, .3, 1) backwards; animation-delay: calc(var(--i) * 0.16s + 0.1s); }
[data-reveal].is-visible .steps li::before { animation: step-flow 4.8s ease-in-out infinite; animation-delay: calc(1.4s + var(--i) * 0.4s); }
[data-reveal].is-visible .logos li { animation: logo-in .55s ease-out backwards; animation-delay: calc(var(--i) * 45ms + 0.1s); }
.js-reveal .bento[data-reveal]:not(.is-visible) > .svc { opacity: 0; }
.bento[data-reveal].is-visible > .svc { animation: card-in .8s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i) * 90ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(1.75rem) scale(0.98); } }
@keyframes step-pop {
  0% { opacity: 0; transform: scale(0.3); }
  70% { opacity: 1; transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes step-flow {
  0%, 34%, 100% { opacity: 0; transform: translateX(0); }
  12% { opacity: 1; transform: translateX(0.25rem); }
}
@keyframes logo-in {
  from { opacity: 0; transform: translateY(0.875rem) scale(0.9); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal].is-visible .steps li, [data-reveal].is-visible .steps li::before, [data-reveal].is-visible .logos li,
  .bento[data-reveal].is-visible > .svc { animation: none; }
}

/* Технологии */
.tech-section {
  background:
    radial-gradient(ellipse 34% 30% at 86% 34%, rgba(47, 125, 240, 0.13), rgba(47, 125, 240, 0) 100%),
    radial-gradient(ellipse 30% 28% at 8% 70%, rgba(234, 119, 255, 0.07), rgba(234, 119, 255, 0) 100%),
    var(--bg);
}
.tech { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 3rem var(--gap); }
.tech-group { min-width: 0; padding: calc(var(--pad) + 0.375rem) var(--pad) var(--pad); border: 1px solid var(--line-strong); border-radius: 0.625rem; }
.tech-group.wide { grid-column: 1 / -1; }
.tech-title {
  position: absolute; top: 0; left: calc(var(--pad) - 0.75rem); z-index: 1; transform: translateY(-50%);
  padding: 0 0.75rem; background: var(--bg); color: #d9d9d9; font-size: var(--fs-h3); font-weight: 500; line-height: 1.2;
}
.tech-group p { max-width: 40em; color: var(--muted); font-size: var(--fs-sm); }
.logos {
  --logo: clamp(3.75rem, 2vw + 2.375rem, 6.25rem);
  display: flex; flex-wrap: wrap; gap: 0.625rem; list-style: none; margin: 1.5rem 0 0; padding: 0;
}
.logos li {
  width: var(--logo); height: var(--logo); display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 0.75rem; background: rgba(255, 255, 255, 0.03);
  transition: transform .25s ease, border-color .25s ease, background-color .25s ease;
}
.logos li:hover { transform: translateY(-0.25rem); border-color: rgba(47, 125, 240, 0.6); background-color: rgba(47, 125, 240, 0.08); }
.logos img { width: 70%; height: 70%; object-fit: contain; }
.directions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(3rem, 2vw + 1.875rem, 5.25rem); }
.direction-head { display: flex; align-items: center; gap: 1.125rem; margin-bottom: 0.875rem; }
.direction-head img { width: clamp(3.25rem, 1.2vw + 2.25rem, 4.5rem); height: auto; flex: none; transition: transform .35s ease; }
.direction:hover .direction-head img { transform: scale(1.08) rotate(-4deg); }
.direction h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; }
.direction p { color: var(--muted); font-size: var(--fs-sm); }

/* ИИ для бизнеса */
.usecases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.usecase .area { color: var(--dim); font-size: var(--fs-xs); margin-bottom: 0.625rem; }
.format h3 + p, .usecase h3 + p { margin-bottom: 1.25rem; }
.usecase .result { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--muted); }
.usecase .result b { color: var(--blue); font-size: calc(var(--fs-body) * 1.4); font-weight: 700; margin-right: 0.375rem; }
.secure { margin-top: var(--gap); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 2rem; align-items: start; border-color: var(--line-strong); }
.secure h3 { text-transform: uppercase; font-size: calc(var(--fs-body) * 1.18); margin: 0; }
.secure ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1.75rem; }
.secure li { position: relative; padding-left: 1.375rem; color: var(--muted); font-size: var(--fs-sm); }
.secure li::before { content: ""; position: absolute; left: 0; top: 0.625rem; width: 0.5rem; height: 0.5rem; border-radius: 2px; background: var(--blue); }

/* ARAI HRMS */
.arai { background: linear-gradient(to bottom, var(--bg) 0%, var(--navy-1) 18%, var(--navy-2) 55%, var(--navy-3) 82%, var(--bg) 100%); }
.product { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 3vw + 1.125rem, 6.875rem); align-items: center; }
.features { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 0.625rem; }
.features li { padding-left: 1.375rem; position: relative; color: #e4e6ea; }
.features li::before { content: ""; position: absolute; left: 0; top: 0.6875rem; width: 0.5rem; height: 0.5rem; border-radius: 2px; background: var(--blue); }
.product .hero-actions { margin-top: 2.25rem; }

/* Живой макет главной ARAI в светлой теме самой системы и её ИИ-ассистент.
   Имена и цифры вымышленные, анимируются только transform и opacity */
.arai-shot { position: relative; padding-bottom: 7em; font-size: clamp(0.6562rem, 0.45vw + 0.3125rem, 0.875rem); line-height: 1.35; }
.arai-window { overflow: hidden; border-radius: 0.75rem; background: #f4f7fc; color: #1b2433; box-shadow: 0 2.5rem 5rem rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.12); }
.arai-bar { display: flex; align-items: center; gap: .45em; height: 2.6em; padding: 0 1em; background: #e8edf5; border-bottom: 1px solid #dbe2ee; }
.arai-bar i { width: .65em; height: .65em; border-radius: 50%; background: #c3ccdb; }
.arai-bar span { margin-left: .8em; padding: .15em .9em; border-radius: .4em; background: #fff; color: #6b7487; font-size: .9em; }
.arai-app { display: grid; grid-template-columns: 11em minmax(0, 1fr); }
.arai-side { display: grid; align-content: start; gap: .2em; padding: 1.1em .7em; background: #fff; border-right: 1px solid #e3e8f2; }
.arai-logo { display: flex; align-items: center; gap: .45em; margin: 0 .4em 1em; font-size: 1.25em; font-weight: 700; }
.arai-logo b { display: grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: .35em; background: #1a5ae0; color: #fff; font-size: .85em; }
.arai-side span { padding: .55em .7em; border-radius: .5em; color: #3d4757; white-space: nowrap; }
.arai-side .on { background: #e8effc; color: #1a5ae0; font-weight: 500; }
.arai-main { display: grid; align-content: start; gap: 1em; min-width: 0; padding: 1em 1.2em 1.4em; }
.arai-top { display: flex; align-items: center; gap: 1em; }
.arai-search {
  flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 1em; min-width: 0; padding: .5em .8em;
  overflow: hidden; white-space: nowrap; border-radius: .55em; background: #fff; border: 1px solid #e3e8f2; color: #8a93a5;
}
.arai-search kbd { padding: 0 .4em; border-radius: .3em; background: #eef2f8; color: #6b7487; font: inherit; font-size: .85em; }
.arai-langs { color: #8a93a5; font-weight: 500; letter-spacing: .04em; white-space: nowrap; }
.arai-langs b { color: #1a5ae0; }
.arai-hello b { display: block; font-size: 1.45em; }
.arai-hello small { color: #6b7487; font-size: .95em; }
.arai-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9em; }
.arai-card { display: grid; align-content: start; gap: .35em; padding: .9em 1em; border-radius: .8em; background: #fff; border: 1px solid #e3e8f2; }
.arai-card small { color: #3d4757; font-size: .95em; font-weight: 600; }
.arai-card > b { font-size: 1.9em; line-height: 1.1; }
.arai-card > b span { color: #6b7487; font-size: .5em; font-weight: 400; }
.arai-card em { color: #6b7487; font-size: .9em; font-style: normal; }
.arai-people { display: flex; align-items: center; margin-top: .2em; }
.arai-people i {
  display: grid; place-items: center; width: 2.6em; height: 2.6em; margin-right: -.6em; border-radius: 50%;
  background: #d3e0fa; border: 2px solid #fff; color: #1a5ae0; font-size: .8em; font-style: normal; font-weight: 600;
}
.arai-people i:nth-child(2) { background: #d5efe0; color: #1f8a55; }
.arai-people i:nth-child(3) { background: #fbe2c9; color: #b2621a; }
.arai-people span { margin-left: 1.1em; color: #6b7487; }
.arai-docs span { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .2em .6em; padding-top: .35em; border-top: 1px solid #eef1f7; font-size: .92em; }
.arai-docs b { white-space: nowrap; padding: .05em .5em; border-radius: .4em; background: #e6f4ec; color: #1f8a55; font-size: .9em; font-weight: 500; }
.arai-docs b.wait { background: #fdf3e2; color: #a5650f; }
.arai-day { position: relative; height: .45em; margin: .3em 0; border-radius: 1em; background: #e3e9f5; }
.arai-day i { position: absolute; left: 0; top: 0; bottom: 0; width: 42%; border-radius: inherit; background: #1a5ae0; }
.arai-day i::before, .arai-day i::after { content: ""; position: absolute; right: -.4em; top: 50%; width: .8em; height: .8em; margin-top: -.4em; border-radius: 50%; background: #1a5ae0; }
.arai-day i::before { animation: arai-now 2s ease-out infinite; }
@keyframes arai-now { from { opacity: .5; transform: scale(1); } to { opacity: 0; transform: scale(2.6); } }
.arai-route { grid-column: 1 / -1; }
.arai-route ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: .5em 0 0; padding: 0; list-style: none; }
.arai-route li { position: relative; display: grid; justify-items: start; gap: .25em; }
/* линия к следующему шагу: серая основа и синяя заливка поверх */
.arai-route li::before, .arai-route li::after { content: ""; position: absolute; left: 1.7em; right: .3em; top: .7em; height: 2px; margin-top: -1px; background: #e3e9f5; }
.arai-route li::after { background: #1a5ae0; transform-origin: left; animation: route-line 8s infinite backwards; }
.arai-route li:last-child::before, .arai-route li:last-child::after { display: none; }
.arai-route i { position: relative; display: grid; place-items: center; width: 1.4em; height: 1.4em; border-radius: 50%; background: #fff; border: 2px solid #cfd8e8; }
.arai-route i::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; background: #1a5ae0; animation: route-step 8s infinite backwards; }
.arai-route i::after { content: "✓"; position: relative; color: #fff; font-size: .75em; font-weight: 700; animation: route-step 8s infinite backwards; }
.arai-route span { font-size: .95em; font-weight: 600; }
.arai-route li:nth-child(1) i::before, .arai-route li:nth-child(1) i::after { animation-delay: .4s; }
.arai-route li:nth-child(1)::after { animation-delay: .7s; }
.arai-route li:nth-child(2) i::before, .arai-route li:nth-child(2) i::after { animation-delay: 1.6s; }
.arai-route li:nth-child(2)::after { animation-delay: 1.9s; }
.arai-route li:nth-child(3) i::before, .arai-route li:nth-child(3) i::after { animation-delay: 2.8s; }
.arai-route li:nth-child(3)::after { animation-delay: 3.1s; }
.arai-route li:nth-child(4) i::before, .arai-route li:nth-child(4) i::after { animation-delay: 4s; }
@keyframes route-step { 0% { opacity: 0; transform: scale(.6); } 4%, 80% { opacity: 1; transform: none; } 86%, 100% { opacity: 0; } }
@keyframes route-line { 0% { transform: scaleX(0); } 12%, 78% { opacity: 1; transform: scaleX(1); } 84%, 100% { opacity: 0; transform: scaleX(1); } }
.arai-toast {
  position: absolute; top: 3.8em; right: 1em; display: flex; align-items: center; gap: .6em; padding: .7em 1em;
  border-radius: .8em; background: #fff; border: 1px solid #e3e8f2; color: #1b2433; font-weight: 500;
  box-shadow: 0 1.125rem 2.5rem rgba(0, 0, 0, 0.3); opacity: 0; animation: arai-toast 9s infinite;
}
.arai-toast::before { content: "✓"; display: grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: #1fa463; color: #fff; font-size: .85em; }
@keyframes arai-toast { 0%, 50% { opacity: 0; transform: translateY(-.8em); } 55%, 86% { opacity: 1; transform: none; } 91%, 100% { opacity: 0; transform: translateY(-.8em); } }
.arai-bot {
  position: absolute; left: -2.5em; bottom: 0; width: 20em; padding: .9em; border-radius: .9em;
  background: #fff; border: 1px solid #e3e8f2; color: #1b2433; box-shadow: 0 1.5rem 3.75rem rgba(0, 0, 0, 0.45);
}
.arai-bot-head { display: flex; align-items: center; gap: .4em; margin-bottom: .7em; font-weight: 600; }
.arai-bot-head::before { content: "✦"; color: #1a5ae0; }
.arai-bot .chat { gap: .6em; align-content: start; min-height: 7.6em; }
.arai-bot .msg { padding: .6em .85em; border-radius: .9em; font-size: 1em; }
.arai-bot .msg-typing, .arai-bot .msg-bot { background: #f1f4fa; border-color: #e3e8f2; color: #1b2433; }
.arai-bot .msg-typing { height: 2.4em; }
.arai-bot .msg-typing i { background: #8a93a5; }

/* Клиенты и проекты */
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(var(--gap) * 1.2); }
.project-photo { position: relative; border-radius: 0.625rem; overflow: hidden; aspect-ratio: 490 / 300; }
.project-photo img { width: 100%; height: 100%; object-fit: cover; }
.project-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0) 55%); }
.project-photo h3 { position: absolute; left: 1.375rem; right: 1.375rem; bottom: 1.125rem; z-index: 1; font-size: var(--fs-h3); font-weight: 700; line-height: 1.25; text-transform: uppercase; }
.project p { margin-top: 1rem; color: var(--muted); }
.project .result { margin-top: 0.625rem; color: var(--text); }
.project .result b { color: var(--blue); font-weight: 700; }

/* пятая карточка — панорама на всю ширину под остальными */
.project-wide { grid-column: 1 / -1; }
.project-wide .project-photo { aspect-ratio: 1000 / 300; }
.project-wide p { max-width: 52em; }

/* Команда */
.team {
  overflow: hidden; padding-bottom: 18.75rem;
  background: linear-gradient(to bottom, rgb(17, 17, 17) 0%, rgb(5, 8, 25) 20%, rgb(10, 16, 38) 50%, rgb(12, 20, 43) 75%, rgb(10, 13, 28) 85%, rgb(16, 16, 18) 100%);
}
.team canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.team .container { position: relative; }
/* карусель: на экране --per карточек, остальные листаются свайпом, колесом или стрелками */
.people {
  --per: 5;
  display: grid; grid-auto-flow: column; gap: var(--gap);
  grid-auto-columns: calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.people::-webkit-scrollbar { display: none; }
.people:focus-visible { outline: 2px solid var(--blue); outline-offset: 0.375rem; border-radius: 0.625rem; }
.head-nav { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.carousel-nav { display: flex; gap: 0.75rem; flex-shrink: 0; }
.carousel-nav[hidden] { display: none; }
.carousel-btn {
  display: grid; place-items: center; width: 3.25rem; height: 3.25rem; padding: 0; border-radius: 50%;
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, opacity 0.2s;
}
.carousel-btn svg { width: 1.375rem; height: 1.375rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.carousel-btn:hover:not(:disabled) { background: var(--blue); border-color: var(--blue); }
.carousel-btn:disabled { opacity: 0.3; cursor: default; }
.person { position: relative; aspect-ratio: 3 / 4; border-radius: 0.625rem; border: 1px solid #2a63b9; background: #0d1530; scroll-snap-align: start; }
.person img { width: 100%; height: 100%; object-fit: cover; border-radius: 0.5625rem; }
.person .initial { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.75rem; font-weight: 700; color: #34436b; }
.person span { position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.75rem; font-size: var(--fs-sm); font-weight: 700; text-transform: uppercase; }
.person.more { display: grid; place-items: center; text-align: center; padding: 1rem; border-style: dashed; }
.person.more span { position: static; font-weight: 400; text-transform: none; color: var(--muted); }

/* Вопросы */
.faq { max-width: 52em; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.2em 2em 1.2em 0; position: relative; font-size: calc(var(--fs-body) * 1.18); font-weight: 400; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 1.25rem; font-size: 1.625rem; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.4em; color: var(--muted); max-width: 42em; }

/* Обсудим задачу */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 3vw + 1.25rem, 7.5rem); }
.contacts { margin-top: 2em; display: grid; gap: 1em; font-size: var(--fs-lg); }
.contacts small { display: block; color: var(--dim); font-size: var(--fs-xs); }
.form { display: grid; gap: 0.875rem; align-content: start; }
.form .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.875rem; }
.form label { display: grid; gap: 0.375rem; font-size: var(--fs-sm); color: var(--muted); }
.form input, .form textarea {
  width: 100%; padding: 0.875rem 1rem; border-radius: 0.625rem; border: 1px solid var(--line-strong);
  background: transparent; outline: none; font-weight: 300;
}
.form textarea { min-height: 8.125rem; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--blue); }
.form .hint { color: var(--dim); font-size: var(--fs-xs); }
.form .hint a { color: var(--blue); }
.form .sent { display: none; color: var(--blue); }
.form.done .sent { display: block; }
.form .failed-text { display: none; color: #ff8a8a; }
.form.failed .failed-text { display: block; }
.form button[disabled] { opacity: .6; cursor: progress; }

.map { position: relative; margin-top: clamp(3.5rem, 3vw + 1.875rem, 7.5rem); height: clamp(22.5rem, 26vw, 38.75rem); border-radius: 0.625rem; overflow: hidden; border: 1px solid var(--line); background: var(--bg-alt); }
/* встраиваемую карту нельзя стилизовать, поэтому затемняем её фильтром, как на сайте */
.map iframe { display: block; width: 100%; height: 100%; border: 0; filter: invert(90%) hue-rotate(180deg) saturate(0.6); }
.map-placeholder {
  height: 100%; display: grid; place-content: center; gap: 0.5rem; padding: 1.5rem; text-align: center; color: var(--muted);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 3rem 3rem;
}
.map-placeholder b { color: var(--text); font-weight: 500; font-size: 1.125rem; }
.map-link {
  position: absolute; right: 1rem; bottom: 1rem; padding: 0.625rem 1rem; border-radius: 0.625rem;
  background: var(--bg); border: 1px solid var(--blue); font-size: 0.9375rem; font-weight: 400;
}
.map-link:hover { background: var(--blue); }

.footer { border-top: 1px solid var(--line); padding: 2.25rem 0 2.75rem; color: var(--dim); font-size: var(--fs-sm); }
.footer .container { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer img { width: clamp(8.125rem, 3vw + 5.625rem, 11.875rem); }

@media (prefers-reduced-motion: reduce) { html, .people { scroll-behavior: auto; } }

/* на ноутбуках поуже сжимаем отступы, чтобы меню и кнопки влезли в строку */
@media (max-width: 1280px) {
  .header .container { gap: 1.75rem; }
  .nav { gap: 1.125rem; }
}
@media (max-width: 1200px) {
  .header .container { gap: 1.375rem; }
  .nav { gap: 0.875rem; }
}

@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: block; }
  .header-right .btn { display: none; }
  .nav.open {
    display: flex; flex-direction: column; gap: 0.25rem; position: fixed; left: 0; right: 0; top: calc(5.25rem + env(safe-area-inset-top, 0px));
    padding: 0.75rem max(var(--gutter), env(safe-area-inset-left, 0px)) 1.5rem; background: var(--bg); border-bottom: 1px solid var(--line); font-size: 1.25rem;
  }
  .nav.open a { padding: 0.625rem 0; }
  .formats, .usecases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.25rem; }
  .steps li:nth-child(3)::before, .steps li:nth-child(3)::after { display: none; }
  .tech { grid-template-columns: minmax(0, 1fr); }
  .product, .contact, .secure { grid-template-columns: minmax(0, 1fr); }
  .arai-shot { max-width: 47.5rem; }
  .arai-bot { left: 1em; }
  .people { --per: 3; }
}

@media (max-width: 720px) {
  .arai-shot { padding-bottom: 0; }
  .arai-app { grid-template-columns: minmax(0, 1fr); }
  .arai-side, .arai-route em { display: none; }
  .arai-bot { position: relative; left: auto; width: auto; margin: -1.6em .8em 0; }
  :root { --gutter: 1rem; --fs-body: 1rem; }
  .header .container { height: 4.375rem; }
  .logo img { width: 9.375rem; }
  .nav.open { top: calc(4.375rem + env(safe-area-inset-top, 0px)); }
  .hero { padding: 8.125rem 0 3.5rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .digits { grid-template-columns: minmax(0, 1fr); gap: 1.125rem; margin-top: 4rem; }
  .digit b { font-size: 3.5rem; min-width: 6rem; }
  .section { padding: 4.5rem 0; }
  .head { margin-bottom: 2.25rem; }
  .formats, .usecases, .projects { grid-template-columns: minmax(0, 1fr); }
  .project-wide .project-photo { aspect-ratio: 490 / 300; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.75rem; }
  .steps li::before, .steps li::after { display: none; }
  .algorithm { padding: 2.5rem 1rem 1.5rem; }
  .directions { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .logos { gap: 0.625rem; }
  .secure ul { grid-template-columns: minmax(0, 1fr); }
  /* край следующей карточки подсказывает, что ленту можно листать */
  .people { --per: 1.6; }
  /* на телефоне ленту листают пальцем, стрелки только занимают место */
  .carousel-nav { display: none; }
  .team { padding-bottom: 13.75rem; }
  .map { height: 20rem; margin-top: 3rem; }
  .form .row { grid-template-columns: minmax(0, 1fr); }
}

/* Контент из админки: заголовок первого экрана и цифры приходят разметкой
   редактора — h1/h2 или абзацы с классами count/count-text */
.hero-title { font-size: clamp(2.375rem, 3.6vw + 1rem, 6.5rem); line-height: 1.09; text-transform: uppercase; }
.hero-title > * { display: block; margin: 0; font-size: inherit; line-height: inherit; color: #fff; font-weight: 700; }
.hero-title > :first-child { color: var(--blue); font-weight: 300; }
.digit > * { margin: 0; }
.digit > p:only-child { display: flex; align-items: center; gap: 1rem; }
/* на проде число и подпись лежат в обёртке count-text-wrap */
.digit .count-text-wrap { display: flex; align-items: center; gap: 1rem; }
.digit .count, .digit > :first-child:not(:only-child) { font-size: clamp(3.5rem, 4vw + 2rem, 7.75rem); font-weight: 700; line-height: 1; }
.digit .count-text, .digit > :last-child:not(:only-child) { font-size: var(--fs-lg); line-height: 1.3; font-weight: 300; padding: 0; }
.rich p { margin: 0 0 .6em; }
.rich p:last-child { margin-bottom: 0; }
@media (max-width: 720px) {
  .digit .count, .digit > :first-child:not(:only-child) { font-size: 3.5rem; min-width: 6rem; }
}

/* Переключатель языков в шапке */
.lang-menu { position: relative; }
.lang-menu summary { display: inline-flex; align-items: center; list-style: none; line-height: 2.6em; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 60; display: grid; min-width: 100%; padding: 0.375rem;
  border-radius: 10px; background: #1d1f26; border: 1px solid var(--line);
}
.lang-list a { padding: 0.375rem 0.75rem; border-radius: 6px; font-size: var(--fs-sm); text-align: center; }
.lang-list a:hover { background: rgba(47, 125, 240, 0.15); }

/* События: фото с подписью, как карточки клиентов */
.events { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(var(--gap) * 1.2); }
.event .project-photo { aspect-ratio: 4 / 3; }

/* Тексты из визуального редактора внутри карточек */
.project .rich { margin-top: 1rem; color: var(--muted); }
.direction .rich, .tech-group .rich { color: var(--muted); font-size: var(--fs-sm); }
.contacts a:hover { color: var(--blue); }

@media (max-width: 1080px) {
  .events { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .events { grid-template-columns: minmax(0, 1fr); }
}
