/* Abai IT Core — общий стиль всех шести сайтов. Цвет сайта приходит в --accent из <html>. */
:root {
  --bg: #000;
  --fg: #f4f4f1;
  --mute: #9d9da3;
  --line: rgba(255, 255, 255, .14);
  --panel: rgba(255, 255, 255, .045);
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --r: 14px;
  --font: 'Geologica', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 300 17px/1.6 var(--font); font-variation-settings: 'SHRP' 0;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Типографика: острые окончания (SHRP) у заголовков — от треугольника эмблемы */
.display, .h2, .h3, .brand-name, .div-name, .quote, .facts dt, .big-link, .step-n, .svc-grid h3, .sol-list h3 {
  font-variation-settings: 'SHRP' 100; letter-spacing: -.02em;
}
.display { font-weight: 800; font-size: clamp(64px, 11.5vw, 176px); line-height: .9; margin: 0 0 32px; letter-spacing: -.045em; }
.display--div { font-size: clamp(40px, 6.2vw, 92px); line-height: .98; letter-spacing: -.035em; max-width: 13ch; }
.h2 { font-weight: 700; font-size: clamp(32px, 4.4vw, 60px); line-height: 1.02; margin: 0 0 20px; max-width: 18ch; }
.h3 { font-weight: 700; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; margin: 0 0 14px; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: #cfcfd2; max-width: 56ch; margin: 0 0 32px; }
section { padding: clamp(72px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
.hero { border-top: 0; }
.sec-head { margin-bottom: clamp(36px, 5vw, 64px); }

/* Кнопки */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  border-radius: 999px; font-weight: 500; font-size: 16px; text-decoration: none; transition: background .2s, color .2s, border-color .2s;
}
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--fg); color: #000; }
.btn--ghost { border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--fg); }

/* Эмблема: инлайн-SVG, точка в центре (.core) = --core */
.emblem { display: inline-block; color: var(--fg); --core: var(--accent); line-height: 0; }
.emblem svg { width: 100%; height: auto; overflow: visible; }
.emblem .core { transition: fill .35s ease; }
.emblem--sm { width: 30px; }
.emblem--row { width: 44px; flex: none; }

/* Шапка */
.top { position: sticky; top: 0; z-index: 50; background: rgba(0, 0, 0, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; }
.top-in { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand-name { font-weight: 700; font-size: 18px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--mute); font-size: 15px; transition: color .2s; }
.nav a:hover { color: var(--fg); }
.top-tools { display: flex; align-items: center; gap: 16px; }
.langs { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.langs a { text-decoration: none; font-size: 13px; padding: 5px 10px; border-radius: 999px; color: var(--mute); }
.langs a[aria-current] { background: var(--fg); color: #000; }
.burger { display: none; position: relative; }
.burger summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 50%; }
.burger summary::-webkit-details-marker { display: none; }
.burger summary span { display: block; width: 18px; height: 1.5px; background: var(--fg); transition: transform .2s; }
.burger[open] summary span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[open] summary span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.burger-panel { position: absolute; right: 0; top: 54px; width: min(300px, calc(100vw - 32px)); background: #000; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; }
.burger-panel a:not(.btn) { padding: 12px 10px; text-decoration: none; font-size: 18px; border-bottom: 1px solid var(--line); }
.burger-panel .btn { margin-top: 12px; }

/* Первый экран */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(72px, 9vw, 120px); }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(24px, 4vw, 64px); }
.hero-mark { display: flex; justify-content: center; }
.emblem--hero { width: min(100%, 520px); }
.hero-name { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--mute); margin: 0 0 20px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--accent)); flex: none; }

/* Главный сайт: точка один раз проходит цвета всех подразделений и становится белой */
.emblem--ignite .core { animation: ignite 2.6s .4s ease-in-out both; }
@keyframes ignite {
  0% { fill: #fff; } 14% { fill: #9D6BFF; } 30% { fill: #FF3B3B; } 46% { fill: #FFD028; }
  62% { fill: #2EDB74; } 78% { fill: #FF8A1E; } 100% { fill: #fff; }
}
/* Подразделение: точка загорается своим цветом, за ней мягкое свечение */
.emblem--glow { position: relative; }
.emblem--glow::before {
  content: ''; position: absolute; left: 50%; top: 49.5%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent) 0%, transparent 68%); opacity: .5; filter: blur(30px);
  animation: glow 1.4s .3s ease-out both;
}
.emblem--glow .core { animation: light 1s .3s ease-out both; }
@keyframes light { from { fill: #2a2a2e; } to { fill: var(--accent); } }
@keyframes glow { from { opacity: 0; } to { opacity: .5; } }

/* Подразделения на главной: большая эмблема меняет цвет точки по наведению на строку */
.div-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.div-mark { position: sticky; top: 120px; }
.emblem--big { width: 100%; max-width: 420px; --core: #fff; }
.div-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.div-row a {
  display: grid; grid-template-columns: 44px 1fr auto; grid-template-areas: 'm n g' 'm d d'; column-gap: 20px; row-gap: 6px;
  padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; position: relative;
}
.div-row .emblem { grid-area: m; margin-top: 4px; }
.div-name { grid-area: n; font-weight: 700; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; transition: color .25s; }
.div-desc { grid-area: d; color: var(--mute); max-width: 52ch; }
.div-go { grid-area: g; align-self: center; font-size: 14px; color: var(--mute); border-bottom: 1px solid currentColor; white-space: nowrap; }
.div-row a:hover .div-name, .div-row a:focus-visible .div-name { color: var(--c); }
.div-row a:hover .div-go { color: var(--c); }

/* Проекты */
.project { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(40px, 6vw, 80px) 0; border-bottom: 1px solid var(--line); }
.project:last-child { border-bottom: 0; padding-bottom: 0; }
.project:not(.has-img) { grid-template-columns: 1fr; }
.project:not(.has-img) .project-text { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 5vw, 72px); }
.project:not(.has-img) .project-text > p:not(.project-where):not(.project-note) { grid-column: 1; }
.project:not(.has-img) .facts { grid-column: 2; grid-row: 1 / span 4; align-self: center; margin: 0; }
.project.has-img:nth-of-type(odd) .project-img { order: -1; }
.project-where { color: var(--mute); font-size: 15px; margin: 0 0 10px; }
.project-text > p { max-width: 58ch; }
.project-img { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; }
.project-img img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: flex; flex-wrap: wrap; gap: 28px 40px; margin: 28px 0 0; }
.facts dt { font-weight: 800; font-size: clamp(30px, 3.4vw, 48px); line-height: 1; }
.facts dd { margin: 8px 0 0; color: var(--mute); font-size: 15px; max-width: 22ch; }
.project:not(.has-img) .facts { flex-direction: column; gap: 28px; padding-left: clamp(20px, 3vw, 40px); border-left: 2px solid var(--fg); }
.project-note { color: var(--mute); font-size: 15px; margin-top: 24px; }

/* Решения */
.sol-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.sol-list li { padding: 28px 28px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.sol-list h3 { font-weight: 700; font-size: 21px; line-height: 1.2; margin: 0 0 10px; }
.sol-list p { margin: 0 0 20px; color: var(--mute); font-size: 16px; flex: 1; }
.sol-div { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; text-decoration: none; color: var(--mute); align-self: flex-start; }
.sol-div:hover { color: var(--c); }

/* О компании */
.quote { margin: 0 0 clamp(40px, 6vw, 72px); font-weight: 700; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.12; max-width: 24ch; }
.about-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin: 0; }
.about-facts dt { font-weight: 600; font-size: 19px; margin-bottom: 8px; }
.about-facts dd { margin: 0; color: var(--mute); font-size: 16px; }
.about-proofs { margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--mute); }

/* Подразделение: услуги, этапы, объекты, семья */
.svc-grid { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.svc-grid li { padding: 32px 32px 32px 0; border-bottom: 1px solid var(--line); }
.svc-grid li:not(:nth-child(3n + 1)) { padding-left: 32px; border-left: 1px solid var(--line); }
.svc-grid h3 { font-weight: 700; font-size: 22px; margin: 0 0 10px; display: flex; align-items: center; gap: 12px; }
.svc-grid h3::before { content: ''; width: 12px; height: 11px; background: var(--accent); clip-path: polygon(50% 0, 100% 100%, 0 100%); flex: none; }
.svc-grid p { margin: 0; color: var(--mute); }
.step-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 20px; counter-reset: s; position: relative; }
.step-list::before { content: ''; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: var(--line); }
.step-list li { position: relative; }
.step-n { display: grid; place-content: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--bg); border: 1px solid var(--accent); color: var(--accent); font-weight: 700; font-size: 18px; position: relative; }
.step-list li:first-child .step-n { background: var(--accent); color: var(--accent-ink); }
.step-list p { margin: 18px 0 0; font-size: 17px; line-height: 1.4; max-width: 22ch; }
.extra-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 12px 20px; border: 1px solid var(--line); border-radius: 999px; font-size: 17px; }
.family-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; }
.family-head .h3 { margin: 0; }
.family-main { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--mute); }
.family-main .emblem { width: 30px; }
.family-main:hover { color: var(--fg); }
.family-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.family-list a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 24px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; transition: border-color .25s; }
.family-list a:hover { border-color: var(--c); }
.fam-name { font-weight: 700; font-size: 19px; font-variation-settings: 'SHRP' 100; }
.fam-desc { color: var(--mute); font-size: 15px; line-height: 1.5; }

/* Контакты и подвал */
.contacts-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-list { margin: 0; display: grid; gap: 28px; }
.contact-list dt { color: var(--mute); font-size: 15px; margin-bottom: 4px; }
.contact-list dd { margin: 0; font-size: 18px; }
.big-link { font-weight: 700; font-size: clamp(24px, 2.8vw, 36px); text-decoration: none; overflow-wrap: anywhere; }
.big-link:hover { color: var(--accent); }
.site-main .big-link:hover { color: var(--mute); }
.foot { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--mute); font-size: 15px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.foot-brand { display: flex; align-items: center; gap: 12px; color: var(--fg); font-weight: 600; }
.foot-part a { text-decoration: none; border-bottom: 1px solid var(--line); }
.foot-part a:hover { color: var(--fg); }
.foot p { margin: 0; }
.foot-copy { margin-left: auto !important; }

/* Адаптив */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: block; }
  .top-tools { margin-left: auto; }
  .sol-list { grid-template-columns: repeat(2, 1fr); }
  .about-facts { grid-template-columns: repeat(2, 1fr); }
  .family-list { grid-template-columns: repeat(2, 1fr); }
  .step-list { grid-template-columns: 1fr; gap: 0; }
  .step-list::before { left: 23px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .step-list li { display: flex; align-items: center; gap: 20px; padding: 10px 0; }
  .step-list p { margin: 0; max-width: none; }
}
@media (max-width: 860px) {
  .hero-in, .div-grid, .project, .project:not(.has-img) .project-text, .extra-in, .contacts-in { grid-template-columns: 1fr; }
  .hero-mark { order: -1; justify-content: flex-start; }
  .hero-mark { order: -1; }
  .div-mark { display: none; }
  .project.has-img:nth-of-type(odd) .project-img { order: 0; }
  .project:not(.has-img) .facts { grid-column: 1; grid-row: auto; margin-top: 28px; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-grid li, .svc-grid li:not(:nth-child(3n + 1)) { padding: 24px 0; border-left: 0; }
  .foot-copy { margin-left: 0 !important; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding: 56px 0; }
  .top-in { min-height: 60px; gap: 12px; }
  .top-cta { display: none; }
  .brand { gap: 10px; }
  .brand-name { font-size: 15px; }
  .langs a { padding: 5px 8px; }
  .burger summary { width: 40px; height: 40px; }
  .burger-panel { top: 50px; }

  /* Первый экран: эмблема рядом с названием, кнопки видны без прокрутки */
  .hero { padding: 24px 0 56px; }
  .hero-in { gap: 20px; }
  .display { font-size: clamp(56px, 17vw, 76px); margin-bottom: 20px; }
  .display--div { font-size: clamp(34px, 10vw, 44px); margin-bottom: 18px; }
  .hero-name { margin-bottom: 14px; }
  .lead { font-size: 16px; margin-bottom: 24px; }
  .h2 { font-size: clamp(28px, 8vw, 34px); }
  .sec-head { margin-bottom: 28px; }
  .actions .btn { flex: 1 1 100%; }

  .div-row a { grid-template-columns: 36px 1fr; grid-template-areas: 'm n' 'm d' 'm g'; padding: 22px 0; }
  .div-row .emblem { width: 36px; }
  .div-name { font-size: 22px; }
  .div-go { justify-self: start; margin-top: 6px; }

  .project { padding: 36px 0; gap: 22px; }
  .project-img { aspect-ratio: 16 / 10; }
  .facts { gap: 20px 28px; margin-top: 20px; }
  .facts dt { font-size: 30px; }
  .project:not(.has-img) .facts { gap: 18px; }

  .sol-list, .about-facts { grid-template-columns: 1fr; }
  .sol-list li { padding: 20px; }
  .sol-list h3 { font-size: 19px; }
  .sol-list p { margin-bottom: 14px; }
  .about-facts { gap: 20px; }
  .quote { font-size: 26px; }

  .svc-grid h3 { font-size: 19px; }
  .step-list p { font-size: 16px; }
  .chips { gap: 8px; }
  .chips li { padding: 9px 15px; font-size: 15px; }

  /* Другие подразделения — компактные строки вместо карточек */
  .family-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
  .family-list { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
  .family-list a { display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; row-gap: 4px; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .family-list .emblem { width: 36px; grid-row: span 2; }
  .fam-name { font-size: 17px; }
  .fam-desc { font-size: 14px; }

  .contact-list { gap: 20px; }
  .big-link { font-size: 24px; }
  .foot { padding-bottom: 96px; }
}

/* Плавающая кнопка WhatsApp на телефоне: появляется, когда первый экран ушёл вверх */
.wa-float {
  display: flex; position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  align-items: center; justify-content: center; min-height: 52px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-weight: 600; text-decoration: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .6);
  transform: translateY(140%); transition: transform .3s ease;
}
.wa-float.is-on { transform: none; }
@media (min-width: 601px) { .wa-float { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before { animation: none !important; transition: none !important; }
}

/* В мелких эмблемах точка чуть крупнее, иначе цвет подразделения не различить */
.emblem--sm .core, .emblem--row .core { transform-box: fill-box; transform-origin: center; transform: scale(1.35); }

/* ================= АНИМАЦИИ ================= */
/* Прогресс прокрутки и световое пятно за курсором */
.progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 60; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.site-main .progress { background: linear-gradient(90deg, #9D6BFF, #FF3B3B, #FFD028, #2EDB74, #FF8A1E); }
.spot { position: fixed; left: 0; top: 0; width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 60%);
  transform: translate3d(var(--mx, -999px), var(--my, -999px), 0); opacity: 0; transition: opacity .6s; }
.has-pointer .spot { opacity: 1; }
main, .foot, .top { position: relative; z-index: 1; }
.top { position: sticky; z-index: 50; transition: border-color .3s, background .3s; }
.top.scrolled { border-bottom-color: var(--line); background: rgba(0, 0, 0, .88); }

/* Первый экран: сфера частиц, орбиты, эмблема собирается */
.hero { position: relative; overflow: hidden; }
.hero-mark { position: relative; aspect-ratio: 1; width: 100%; max-width: 620px; justify-self: center; display: flex; align-items: center; justify-content: center; }
.sphere { position: absolute; inset: -18%; width: 136%; height: 136%; pointer-events: none; }
.hero-mark .emblem--hero { width: 74%; position: relative; z-index: 2; will-change: transform; transform: translate3d(var(--tx, 0), var(--ty, 0), 0) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); }
.js .hero-mark .emblem--hero svg { animation: emb-in 1.8s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes emb-in { from { opacity: 0; transform: scale(.45) rotate(-140deg); filter: blur(14px); } 60% { filter: blur(0); } to { opacity: 1; transform: none; } }
.emblem--hero .core { filter: drop-shadow(0 0 18px var(--core)); }
.emblem--ignite .core { animation: ignite 3.2s 1.2s ease-in-out both, pulse 3s 4.6s ease-in-out infinite; }
.js .emblem--glow .core { animation: light 1s 1.1s ease-out both, pulse 2.6s 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { filter: drop-shadow(0 0 10px var(--core)); } 50% { filter: drop-shadow(0 0 34px var(--core)) drop-shadow(0 0 60px var(--core)); } }
.orbits { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.orbit { position: absolute; left: 50%; top: 50%; width: calc(var(--r) * 2); aspect-ratio: 1; margin: 0; transform: translate(-50%, -50%) rotate(var(--a));
  border: 1px solid rgba(255, 255, 255, .07); border-radius: 50%; }
.orbit i { position: absolute; left: 50%; top: 0; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%;
  background: var(--c); box-shadow: 0 0 14px var(--c), 0 0 34px var(--c); }
.js .orbit { animation: orb-in 1.4s calc(.6s + var(--a) / 360deg * .8s) cubic-bezier(.16, 1, .3, 1) both, spin var(--t) linear infinite; }
@keyframes spin { from { transform: translate(-50%, -50%) rotate(var(--a)); } to { transform: translate(-50%, -50%) rotate(calc(var(--a) + 360deg)); } }
@keyframes orb-in { from { opacity: 0; width: 0; } to { opacity: 1; } }

/* Заголовок первого экрана: буквы влетают по очереди */
.split .ch { display: inline-block; white-space: pre; }
.js .split .ch { opacity: 0; transform: translateY(.55em) rotate(6deg); filter: blur(10px); animation: ch-in .9s calc(.15s + var(--i) * 38ms) cubic-bezier(.16, 1, .3, 1) forwards; }
@keyframes ch-in { to { opacity: 1; transform: none; filter: blur(0); } }
.js .hero-text > :not(.display) { opacity: 0; transform: translateY(24px); animation: up-in 1s cubic-bezier(.16, 1, .3, 1) forwards; }
.js .hero-text > .lead { animation-delay: .7s; }
.js .hero-text > .actions { animation-delay: .9s; }
.js .hero-text > .hero-name { animation-delay: .05s; }
@keyframes up-in { to { opacity: 1; transform: none; } }
.display .ch:hover { color: var(--accent); transition: color .2s; }
.site-main .display .ch:hover { color: var(--h, #fff); }

/* Бегущая строка */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 26px 0; position: relative; z-index: 1; }
.mq-track { display: flex; width: max-content; animation: mq 38s linear infinite; }
.marquee:hover .mq-track { animation-play-state: paused; }
.mq-group { display: flex; flex: none; }
.mq-item { display: inline-flex; align-items: center; gap: 22px; padding-right: 56px; font-weight: 800; font-size: clamp(34px, 5.4vw, 76px); line-height: 1; letter-spacing: -.03em;
  font-variation-settings: 'SHRP' 100; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .55); transition: color .3s, -webkit-text-stroke-color .3s; }
.mq-item:nth-child(even) { color: var(--fg); -webkit-text-stroke-color: transparent; }
.mq-item:hover { color: var(--c, var(--accent)); -webkit-text-stroke-color: transparent; }
.mq-item .dot { width: .32em; height: .32em; background: var(--c); box-shadow: 0 0 20px var(--c); }
.mq-item .tri { width: .4em; height: .36em; background: var(--accent); clip-path: polygon(50% 0, 100% 100%, 0 100%); flex: none; }
@keyframes mq { to { transform: translateX(-50%); } }

/* Появление при прокрутке */
.js .rv { opacity: 0; transform: translateY(46px); filter: blur(6px); transition: opacity 1s cubic-bezier(.16, 1, .3, 1), transform 1s cubic-bezier(.16, 1, .3, 1), filter 1s; transition-delay: calc(var(--d, 0) * 90ms); }
.js .rv.in { opacity: 1; transform: none; filter: none; }
.js .rv-h2 { clip-path: inset(0 0 100% 0); transform: translateY(30px); transition: clip-path 1.1s cubic-bezier(.16, 1, .3, 1), transform 1.1s cubic-bezier(.16, 1, .3, 1); }
.js .rv-h2.in { clip-path: inset(0 0 0 0); transform: none; }
.rv-h2 { padding-bottom: .12em; margin-bottom: calc(20px - .12em); }

/* Фото проектов: шторка + параллакс */
.project-img { position: relative; }
.js .project-img { clip-path: inset(12% 12% 12% 12% round 24px); transition: clip-path 1.4s cubic-bezier(.16, 1, .3, 1); }
.js .project-img.in { clip-path: inset(0 0 0 0 round var(--r)); }
.project-img img { transform: translateY(var(--py, 0)) scale(1.16); will-change: transform; }
.project-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .45)); pointer-events: none; }
.project-img figcaption { display: none; }

/* Цифры фактов: свечение после отсчёта */
.facts dt { font-variant-numeric: tabular-nums; }
.facts .done dt { animation: glow-num 1.2s ease-out; }
@keyframes glow-num { 0% { text-shadow: 0 0 0 transparent; } 30% { text-shadow: 0 0 30px rgba(255, 255, 255, .7); } 100% { text-shadow: 0 0 0 transparent; } }

/* Карточки: подсветка под курсором и рамка цвета */
.sol-list li, .svc-grid li, .family-list a, .about-facts > div { position: relative; isolation: isolate; }
.sol-list li::before, .svc-grid li::before, .family-list a::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; border-radius: inherit;
  background: radial-gradient(420px circle at var(--cx, 50%) var(--cy, 50%), color-mix(in srgb, var(--c, var(--accent)) 22%, transparent), transparent 70%); }
.sol-list li:hover::before, .svc-grid li:hover::before, .family-list a:hover::before { opacity: 1; }
.sol-list li { transition: transform .4s cubic-bezier(.16, 1, .3, 1); }
.svc-grid h3::before { transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.svc-grid li:hover h3::before { transform: rotate(360deg) scale(1.5); }

/* Подразделения на главной: полоска цвета пробегает по строке */
.div-row a::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--c); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.div-row a:hover::after, .div-row a:focus-visible::after { transform: scaleX(1); }
.div-row .emblem { transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.div-row a:hover .emblem { transform: rotate(120deg) scale(1.15); }
.div-row .div-name { transition: color .25s, transform .5s cubic-bezier(.16, 1, .3, 1); }
.div-row a:hover .div-name { transform: translateX(10px); }
#core-mark { transition: filter .5s; }
#core-mark .core { filter: drop-shadow(0 0 24px var(--core)); transition: fill .35s, filter .35s; }

/* Этапы: линия прорисовывается по мере прокрутки, шаги загораются */
.step-list::after { content: ''; position: absolute; left: 0; top: 23px; height: 2px; width: 100%; background: var(--accent); box-shadow: 0 0 12px var(--accent);
  transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); transition: transform .2s linear; }
.step-list li .step-n { transition: background .4s, color .4s, box-shadow .4s, transform .4s cubic-bezier(.16, 1, .3, 1); }
.step-list li.lit .step-n { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 24px var(--accent); transform: scale(1.08); }
@media (max-width: 1100px) {
  .step-list::after { left: 23px; top: 0; width: 2px; height: 100%; transform-origin: 50% 0; transform: scaleY(var(--sp, 0)); margin-left: -.5px; }
}

/* Кнопки: блик */
.btn { position: relative; overflow: hidden; will-change: transform; }
.btn--accent::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); animation: shine 4.5s 2.5s ease-in-out infinite; }
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.chips li { transition: border-color .3s, background .3s, transform .3s; }
.chips li:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); transform: translateY(-3px); }

@media (max-width: 860px) {
  .hero-mark { max-width: 340px; width: 78%; justify-self: start; }
}
@media (max-width: 600px) {
  .hero-mark { width: 168px; }
  .hero--main .hero-mark { width: 200px; }
  .hero-mark .emblem--hero { width: 74%; }
  .marquee { padding: 18px 0; }
  .mq-item { font-size: 34px; padding-right: 36px; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .rv, .js .rv-h2, .js .project-img, .js .split .ch, .js .hero-text > * { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
  .mq-track { animation: none; }
  .spot, .sphere { display: none; }
}

/* ================= ОБЩИЙ ФОН: «прогулка по цифровому миру» ================= */
.world { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; opacity: .7; }
body { background: radial-gradient(1200px 700px at 70% -10%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%), #000; background-attachment: fixed; }
section { background: transparent; }
.word { font-weight: inherit; }
.hero-parent { margin-left: 8px; font-size: 13px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--mute); }
.hero-parent:hover { color: var(--fg); border-color: var(--fg); }
.lang-zh { --font: 'Geologica', 'Noto Sans SC', system-ui, sans-serif; }
.lang-zh body, body.lang-zh { word-break: normal; line-break: strict; }
.split .ch { white-space: normal; }
.lang-zh .display, .lang-zh .h2, .lang-zh .h3, .lang-zh .quote, .lang-zh .mq-item { letter-spacing: 0; }
.lang-zh .display--div { max-width: 11em; }

/* ================= ГЛАВНАЯ: карта резидентов ================= */
.map { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: stretch; }
.map-panel { position: relative; border: 1px solid var(--line); border-radius: 20px; padding: 28px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(8px); min-height: 380px; display: flex; flex-direction: column; }
.map-info { display: none; flex-direction: column; gap: 12px; animation: info-in .5s cubic-bezier(.16, 1, .3, 1); }
.map-info.is-on { display: flex; }
.map-info .h3 { margin: 6px 0 0; }
.map-info p { margin: 0; color: var(--mute); }
.map-info .btn { align-self: flex-start; margin-top: 10px; }
.map-info-emb { width: 72px; }
.map-info-emb .core { filter: drop-shadow(0 0 16px var(--core)); }
@keyframes info-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.map-hint { margin: auto 0 0; padding-top: 20px; font-size: 14px; color: var(--mute); border-top: 1px solid var(--line); }
.btn--c { border: 1px solid var(--c); color: var(--fg); }
.btn--c:hover { background: var(--c); color: #000; }
.map-stage { position: relative; aspect-ratio: 1000 / 700; border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .06), transparent 60%), rgba(0, 0, 0, .5); }
.map-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-link { fill: none; stroke: var(--c); stroke-opacity: .25; stroke-width: 1.5; }
.map-flow { fill: none; stroke: var(--c); stroke-width: 2.5; stroke-dasharray: 6 18; animation: flow 1.6s var(--d) linear infinite; opacity: .9; filter: drop-shadow(0 0 4px var(--c)); }
@keyframes flow { to { stroke-dashoffset: -24; } }
.map-mesh { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 1; stroke-dasharray: 2 6; }
.map-packet { filter: drop-shadow(0 0 6px currentColor); }
.map-core { position: absolute; width: 15%; transform: translate(-50%, -50%); z-index: 2; }
.map-core .emblem { width: 100%; }
.map-core::before { content: ''; position: absolute; inset: -40%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 65%); animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.15); opacity: .6; } }
.map-node { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; z-index: 3; width: 150px; }
.map-node .emblem { width: 58px; transition: transform .5s cubic-bezier(.16, 1, .3, 1); position: relative; z-index: 1; }
.map-node .core { filter: drop-shadow(0 0 10px var(--core)); }
.map-ring { position: absolute; top: 29px; left: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; border: 2px solid var(--c); opacity: .0; animation: ring 2.8s calc(var(--i) * .35s) ease-out infinite; }
@keyframes ring { 0% { transform: scale(.9); opacity: .8; } 100% { transform: scale(2.1); opacity: 0; } }
.map-label { font-weight: 700; font-size: 15px; white-space: nowrap; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .7); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.map-node:hover .emblem, .map-node:focus-visible .emblem, .map-node.is-on .emblem { transform: scale(1.25) rotate(120deg); }
.map-node:hover .map-label, .map-node:focus-visible .map-label, .map-node.is-on .map-label { border-color: var(--c); background: color-mix(in srgb, var(--c) 18%, #000); }
.js .map-node { opacity: 0; animation: node-in .9s calc(.2s + var(--i) * .12s) cubic-bezier(.16, 1, .3, 1) forwards; animation-play-state: paused; }
.js .map.in .map-node { animation-play-state: running; }
@keyframes node-in { from { opacity: 0; transform: translate(-50%, -50%) scale(.3); } to { opacity: 1; transform: translate(-50%, -50%); } }
.divisions .div-list { display: none; }
@media (max-width: 860px) {
  .map { display: none; }
  .divisions .div-list { display: block; }
}

/* видео благодарности */
.thanks-frame { margin-top: 32px; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.thanks-frame iframe, .thanks-frame video { width: 100%; height: 100%; border: 0; display: block; }

/* ================= БЛОКИ ПОДРАЗДЕЛЕНИЙ ================= */
.callout-box { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(36px, 6vw, 80px); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, #000), #000 60%); }
.callout-glow { position: absolute; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--accent), transparent 65%); opacity: .35; filter: blur(40px); animation: drift 9s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-30%, 30%) scale(1.2); } }
.callout-title { font-size: clamp(36px, 5.6vw, 84px); max-width: 16ch; position: relative; }
.callout-box .lead, .callout-box .btn { position: relative; }

.teaser { position: relative; overflow: hidden; padding: clamp(100px, 14vw, 200px) 0; text-align: center; }
.garage { position: absolute; inset: 0; z-index: 0; }
.garage-door { position: absolute; inset: 0 0 18% 0; background: repeating-linear-gradient(180deg, #121212 0 34px, #0a0a0a 34px 38px); transform-origin: top; animation: door 7s ease-in-out infinite; box-shadow: inset 0 -30px 60px #000; }
.garage-light { position: absolute; left: 0; right: 0; bottom: 18%; height: 40%; background: linear-gradient(0deg, transparent, color-mix(in srgb, var(--accent) 45%, transparent)); filter: blur(10px); transform-origin: bottom; animation: leak 7s ease-in-out infinite; }
@keyframes door { 0%, 100% { transform: scaleY(1); } 45%, 60% { transform: scaleY(.84); } }
@keyframes leak { 0%, 100% { opacity: .3; transform: scaleY(.4); } 45%, 60% { opacity: 1; transform: scaleY(1); } }
.teaser-in { position: relative; z-index: 1; }
.teaser-label { display: inline-block; margin: 0 0 20px; padding: 6px 16px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .55; } }
.teaser-title { margin: 0 auto 18px; font-weight: 800; font-size: clamp(42px, 8vw, 120px); line-height: .92; letter-spacing: -.04em; font-variation-settings: 'SHRP' 100; max-width: 12ch;
  color: transparent; -webkit-text-stroke: 2px var(--accent); text-shadow: 0 0 40px color-mix(in srgb, var(--accent) 40%, transparent); }
.teaser .lead { margin: 0 auto; }

.video-grid { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.video-grid figure { margin: 0; }
.video-grid video { width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; background: #111; border: 1px solid var(--line); display: block; object-fit: cover; }
.video-grid figcaption { margin-top: 12px; font-weight: 600; }

.gal-grid { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gal-grid li:first-child { grid-column: 1 / -1; }
.gal-grid li:first-child img { aspect-ratio: 21 / 8; }
.gal-grid figure { position: relative; margin: 0; height: 100%; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.gal-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 1.2s cubic-bezier(.16, 1, .3, 1); }
.gal-grid figure:hover img { transform: scale(1.08); }
.gal-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; font-size: 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); }
.gal-rec { position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 700; color: var(--accent); background: rgba(0, 0, 0, .6); padding: 3px 8px; border-radius: 6px; animation: blink 1.6s steps(2) infinite; }
.gal-grid figure::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 3px); }

.partner-card { display: flex; gap: clamp(20px, 4vw, 48px); align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: 24px; text-decoration: none; border: 1px solid color-mix(in srgb, var(--c) 50%, transparent);
  background: linear-gradient(120deg, color-mix(in srgb, var(--c) 14%, #000), #000 70%); position: relative; overflow: hidden; transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.partner-card:hover { transform: translateY(-4px); }
.partner-emb { width: clamp(80px, 12vw, 140px); flex: none; }
.partner-emb .core { filter: drop-shadow(0 0 18px var(--core)); animation: pulse 2.6s ease-in-out infinite; }
.partner-text { display: flex; flex-direction: column; gap: 10px; }
.partner-title { margin: 0; }
.partner-desc { color: #cfcfd2; max-width: 60ch; }
.partner-card .div-go { align-self: flex-start; color: var(--c); }

/* ================= ПЕРВЫЕ ЭКРАНЫ ПО ТЕМАМ ================= */
/* Store: дрон с ИИ на заднем фоне */
.hm-drone { max-width: 680px; }
.hm-drone .drone { width: 118%; height: auto; overflow: visible; margin-right: -18%; animation: hover 5s ease-in-out infinite; }
@keyframes hover { 50% { transform: translateY(-14px) rotate(-1.5deg); } }
.d-blade { transform-box: fill-box; transform-origin: center; animation: blade .09s linear infinite; }
@keyframes blade { 50% { transform: scaleX(-1); } }
.d-r2 .d-blade { animation-duration: .1s; }
.d-scan { animation: scan 2.4s ease-in-out infinite; }
@keyframes scan { 0% { transform: translateY(360px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(610px); opacity: 0; } }
.d-beam { animation: beam 3s ease-in-out infinite; transform-box: fill-box; transform-origin: top center; }
@keyframes beam { 50% { transform: scaleX(1.12); opacity: .75; } }
.d-target { transform-box: fill-box; transform-origin: center; animation: lock 2.4s ease-in-out infinite; }
@keyframes lock { 0% { transform: scale(1.8); opacity: 0; } 40%, 80% { transform: scale(1); opacity: 1; } 100% { opacity: 0; } }
.d-eye { animation: eye 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes eye { 50% { transform: scale(1.18); } }
.d-led { stroke-dasharray: 140; animation: led 2s linear infinite; }
@keyframes led { to { stroke-dashoffset: -280; } }
.d-blink { animation: blink 1.2s steps(2) infinite; }
.d-hud { animation: hud 4s ease-in-out infinite; }
@keyframes hud { 50% { opacity: .35; } }

/* Systems: живая картинка с камеры с рамками ИИ */
.hm-camera { aspect-ratio: auto; max-width: 640px; }
.feed { position: relative; width: 100%; border-radius: 18px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: 0 0 60px color-mix(in srgb, var(--accent) 22%, transparent); }
.feed img { width: 100%; display: block; filter: saturate(.85) contrast(1.05); }
.feed::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px); pointer-events: none; }
.feed-scan { position: absolute; left: 0; right: 0; height: 30%; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 30%, transparent), transparent); animation: fscan 3.2s linear infinite; z-index: 1; }
@keyframes fscan { from { top: -30%; } to { top: 100%; } }
.bbox { position: absolute; border: 2px solid var(--accent); z-index: 2; box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 60%, transparent); animation: track 3.5s ease-in-out infinite alternate; }
.bbox i { position: absolute; left: -2px; top: -22px; font-style: normal; font-size: 11px; font-weight: 700; color: #000; background: var(--accent); padding: 2px 6px; white-space: nowrap; }
.b1 { left: 38%; top: 40%; width: 15%; height: 58%; }
.b2 { left: 58%; top: 37%; width: 18%; height: 61%; animation-delay: -1.2s; }
.b3 { left: 84%; top: 50%; width: 14%; height: 46%; animation-delay: -2s; }
@keyframes track { 0% { transform: translate(0, 0); } 50% { transform: translate(6px, -3px); } 100% { transform: translate(-4px, 2px); } }
.js .bbox { opacity: 0; animation: track 3.5s ease-in-out infinite alternate, box-in .5s 1.4s ease-out forwards; }
.js .b2 { animation-delay: -1.2s, 1.7s; } .js .b3 { animation-delay: -2s, 2s; }
@keyframes box-in { to { opacity: 1; } }
.feed-hud, .feed-foot { position: absolute; left: 14px; right: 14px; display: flex; justify-content: space-between; z-index: 3; font-size: 13px; font-weight: 700; }
.feed-hud { top: 12px; } .feed-foot { bottom: 12px; color: var(--accent); }
.rec { color: #ff3b3b; animation: blink 1.2s steps(2) infinite; }
.ts { font-variant-numeric: tabular-nums; background: rgba(0, 0, 0, .5); padding: 2px 8px; border-radius: 6px; }

/* TV: видеостена */
.hm-screens { aspect-ratio: auto; max-width: 640px; flex-direction: column; gap: 14px; }
.tv-main { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 0 80px color-mix(in srgb, var(--accent) 25%, transparent); }
.tv-main video { width: 100%; height: 100%; object-fit: cover; display: block; }
.live { position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff; font-weight: 800; font-size: 12px; padding: 3px 9px; border-radius: 6px; animation: blink 1.4s steps(2) infinite; }
.scanlines { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px); pointer-events: none; }
.tv-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; }
.tile { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.tile img { width: 100%; height: 100%; object-fit: cover; animation: kb 9s calc(var(--i) * -3s) ease-in-out infinite alternate; }
@keyframes kb { to { transform: scale(1.2) translate(4%, -3%); } }
.tile span { position: absolute; right: 8px; bottom: 8px; font-size: 11px; font-weight: 800; background: rgba(0, 0, 0, .6); padding: 2px 6px; border-radius: 5px; }

/* SMM: телефон с лентой */
.hm-phone { max-width: 520px; }
.phone { position: relative; width: 52%; aspect-ratio: 9 / 19; border-radius: 42px; border: 8px solid #1c1c22; background: #050507; overflow: hidden; box-shadow: 0 0 0 1px #333, 0 30px 90px color-mix(in srgb, var(--accent) 30%, transparent); animation: hover 6s ease-in-out infinite; z-index: 1; }
.phone-notch { position: absolute; top: 8px; left: 50%; width: 36%; height: 20px; margin-left: -18%; border-radius: 12px; background: #000; z-index: 2; }
.feed-scroll { padding: 36px 10px 10px; display: flex; flex-direction: column; gap: 12px; animation: feedup 16s linear infinite; }
@keyframes feedup { to { transform: translateY(-50%); } }
.post { border-radius: 14px; background: #111117; padding: 8px; }
.post-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.post-head .ava { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); }
.post-head b { height: 7px; width: 50%; border-radius: 4px; background: #2a2a33; }
.post-img { aspect-ratio: 1; border-radius: 10px; }
.g1 { background: linear-gradient(135deg, #19B4FF, #6C3BFF); } .g2 { background: linear-gradient(135deg, #FF6A3D, #FFD21F); } .g3 { background: linear-gradient(135deg, #00E35A, #19B4FF); }
.g4 { background: linear-gradient(135deg, #FF3366, #A06BFF); } .g5 { background: linear-gradient(135deg, #222, #19B4FF); }
.post-foot { display: flex; gap: 14px; font-size: 11px; font-weight: 700; margin-top: 8px; color: #ddd; }
.bubble { position: absolute; z-index: 2; padding: 10px 16px; border-radius: 16px; background: rgba(10, 10, 14, .85); border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); font-weight: 800; font-size: 18px; color: var(--accent); backdrop-filter: blur(6px); animation: bob 4s ease-in-out infinite; }
.bb1 { left: 2%; top: 20%; } .bb2 { right: 0; top: 46%; animation-delay: -1.3s; } .bb3 { left: 8%; bottom: 16%; animation-delay: -2.4s; }
@keyframes bob { 50% { transform: translateY(-12px); } }
.heart { position: absolute; z-index: 2; color: #ff3b6b; font-size: 26px; bottom: 20%; animation: float-up 3.6s ease-in infinite; opacity: 0; }
.ht1 { right: 22%; } .ht2 { right: 30%; animation-delay: -1.2s; font-size: 20px; } .ht3 { right: 16%; animation-delay: -2.4s; font-size: 32px; }
@keyframes float-up { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-260px) scale(1.2) rotate(-15deg); opacity: 0; } }

/* Hub: кузница — искры летят вверх, эмблема раскалена */
.sparks, .net { position: absolute; inset: -20%; width: 140%; height: 140%; pointer-events: none; }
.ember { position: absolute; left: 50%; bottom: 4%; width: 90%; height: 30%; transform: translateX(-50%); background: radial-gradient(ellipse at 50% 100%, color-mix(in srgb, var(--accent) 70%, #ff5a00), transparent 70%); filter: blur(24px); animation: emberglow 2.2s ease-in-out infinite alternate; }
@keyframes emberglow { from { opacity: .45; } to { opacity: .9; } }
.hm-forge .emblem--hero svg path { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 40%, transparent)); }

/* Education: терминал с кодом */
.hm-terminal { aspect-ratio: auto; max-width: 600px; }
.term { width: 100%; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); background: rgba(6, 8, 20, .92); box-shadow: 0 0 80px color-mix(in srgb, var(--accent) 28%, transparent); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.term-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; } .term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 10px; font-size: 13px; color: var(--mute); }
.term-body { margin: 0; padding: 22px 22px 8px; min-height: 210px; font: 500 16px/1.7 ui-monospace, 'Cascadia Code', 'DejaVu Sans Mono', monospace; color: #e6e9ff; white-space: pre-wrap; }
.term-body .kw { color: var(--accent); font-weight: 700; } .term-body .fn { color: #7cf2ff; } .term-body .str { color: #b7ff7c; } .term-body .cm { color: #9aa0b8; }
.term-body .cur { display: inline-block; width: .6em; height: 1.1em; vertical-align: -.2em; background: var(--accent); animation: blink 1s steps(2) infinite; }
.term-bars { padding: 10px 22px 24px; display: grid; gap: 12px; }
.term-bars div { display: grid; grid-template-columns: 80px 1fr; align-items: center; gap: 12px; font-size: 13px; color: var(--mute); }
.term-bars i { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .08); position: relative; overflow: hidden; }
.term-bars i::after { content: ''; position: absolute; inset: 0; width: var(--w); background: linear-gradient(90deg, var(--accent), #7cf2ff); border-radius: 4px; transform-origin: left; animation: fill 2.2s 1.2s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes fill { from { transform: scaleX(0); } }

@media (max-width: 860px) {
  .video-grid { grid-template-columns: 1fr; }
  .gal-grid { grid-template-columns: 1fr 1fr; }
  .gal-grid li:first-child img { aspect-ratio: 16 / 9; }
  .partner-card { flex-direction: column; align-items: flex-start; }
  .hm-drone .drone { width: 100%; margin: 0; }
  .hm-camera, .hm-screens, .hm-terminal, .hm-phone, .hm-drone { width: 100% !important; max-width: 520px; }
}
@media (max-width: 600px) {
  .hm-camera, .hm-screens, .hm-terminal { width: 100% !important; }
  .hm-phone { height: 380px; }
  .phone { width: 46%; }
  .bubble { font-size: 14px; padding: 7px 11px; }
  .gal-grid { grid-template-columns: 1fr; }
  .gal-grid li:first-child { grid-column: auto; grid-row: auto; }
  .term-body { font-size: 13px; min-height: 170px; padding: 16px; }
  .tv-tiles { gap: 8px; }
  .callout-box { border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .world, .sparks, .net { display: none; }
}

/* языки: в шапке на компьютере, в меню на телефоне */
.langs a { white-space: nowrap; }
.langs--menu { display: none; align-self: flex-start; margin-bottom: 8px; }
@media (max-width: 600px) {
  .top-tools > .langs { display: none; }
  .langs--menu { display: flex; }
  .langs--menu a { padding: 7px 14px; font-size: 15px; border-bottom: 0 !important; }
  .brand-name { font-size: 16px; }
}

/* Логотип резидента как в официальном: эмблема, под ней подпись засечным шрифтом */
.lockup { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; }
.lockup-emb { width: 112px; }
.lockup-emb .core { filter: drop-shadow(0 0 14px var(--core)); animation: pulse 2.6s 1s ease-in-out infinite; }
.lockup-name { font-family: 'Tinos', 'Liberation Serif', 'Times New Roman', serif; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: 24px; line-height: 1; color: var(--fg); white-space: nowrap; font-variation-settings: normal; }
.hero-lockup { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 26px; color: var(--fg); }
.js .hero-lockup .lockup-emb svg { animation: emb-in 1.6s cubic-bezier(.16, 1, .3, 1) both; }
.lockup--big { position: relative; z-index: 2; width: 74%; gap: 18px; }
.lockup--big .emblem--hero { width: 100% !important; }
.lockup--big .lockup-name { font-size: clamp(22px, 2.6vw, 34px); text-shadow: 0 0 24px rgba(0, 0, 0, .9); }
@media (max-width: 600px) {
  .lockup-emb { width: 64px; }
  .lockup-name { font-size: 16px; }
  .lockup--big .lockup-name { font-size: 15px; }
  .hero-lockup { margin-bottom: 18px; }
}

/* ================= 3D-мир (world3d.js) ================= */
.world3d { position: fixed; inset: 0; width: 100vw !important; height: 100vh !important; z-index: 0; pointer-events: none; display: block; }
.world-dim { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: #000; opacity: 0; }
.has-3d canvas.world { display: none; }
.has-3d body { background: #000; }
/* на главной 3D-эмблема встаёт на место 2D: прячем 2D-версию, место оставляем */
.has-3d .site-main .hero .hm-sphere > * { opacity: 0 !important; animation: none !important; }
/* текст поверх яркого мира читается лучше с мягкой тенью */
.has-3d .hero .lead, .has-3d .hero .display { text-shadow: 0 2px 30px rgba(0, 0, 0, .85); }

@media (max-width: 600px) { .site-main .hero .hero-mark { justify-self: center; } }
