:root {
  --bg: #0b0a14;
  --bg-2: #12101f;
  --card: #15132496;
  --line: #2a2742;
  --text: #f2f0fa;
  --muted: #a7a3bd;
  --violet: #7c5cff;
  --violet-2: #5b3df0;
  --green: #35d07f;
  --radius: 22px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 75% -5%, #2a1f6b55, transparent 70%),
    radial-gradient(700px 500px at 0% 40%, #1b1540aa, transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
svg { flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.accent {
  background: linear-gradient(90deg, #9b7bff, #6a4dff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Шапка */
.top { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); background: #0b0a14cc; border-bottom: 1px solid #ffffff0a; }
.top-row { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 600; }
.mark { width: 40px; height: 40px; }
.brand b { font-weight: 400; color: #b9a8ff; }
.menu { display: flex; gap: 8px; margin-inline: auto; }
.menu a { padding: 10px 18px; color: var(--muted); border-bottom: 2px solid transparent; transition: color .2s; }
.menu a:hover { color: var(--text); }
.menu a.active { color: var(--text); border-color: var(--violet); }
.pill-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 14px; transition: border-color .2s;
}
.pill-link:hover { border-color: var(--violet); }
.pill-link svg { width: 16px; height: 16px; }

/* Кнопки */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px; font-weight: 600;
  border: 1px solid transparent; transition: transform .15s, box-shadow .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: linear-gradient(90deg, var(--violet), var(--violet-2)); box-shadow: 0 10px 30px #6a4dff55; }
.btn-light { background: #fff; color: #14112a; }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--violet); }
.btn.small { min-height: 48px; padding: 0 22px; font-weight: 500; }

/* Первый экран */
.hero { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 24px; min-height: 480px; padding: 48px 0 24px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 999px; background: #ffffff08; font-size: 14px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); display: inline-block; }
.hero h1 { font-size: clamp(40px, 6.2vw, 74px); line-height: 1.04; font-weight: 800; white-space: nowrap; }
.lead { color: #c9c5dc; font-size: 19px; margin: 22px 0 0; }

.hero-art { position: relative; height: 420px; overflow-x: clip; }
.beam {
  position: absolute; right: 2%; top: -120px; width: 260px; height: 520px;
  background: linear-gradient(180deg, #7c5cff00, #7c5cff33 45%, #7c5cff00);
  transform: rotate(32deg); filter: blur(6px);
}
.ring {
  position: absolute; left: 6%; right: 0; top: 34%; height: 190px;
  border: 1.5px solid #7c5cff99; border-radius: 50%;
  box-shadow: 0 0 40px #7c5cff44, inset 0 0 40px #7c5cff22;
  transform: rotate(-8deg);
}
.slab {
  position: absolute; left: 4%; right: 0; bottom: 22px; height: 130px;
  background: linear-gradient(160deg, #1d1838, #0d0b1a);
  clip-path: polygon(0 40%, 70% 0, 100% 35%, 100% 70%, 30% 100%, 0 75%);
  opacity: .9;
}
.cube { position: absolute; left: 32%; top: 40px; width: 230px; height: 230px; perspective: 900px; }
.cube-face {
  width: 100%; height: 100%; border-radius: 44px;
  background: linear-gradient(145deg, #2c2850, #121024 70%);
  border: 1px solid #ffffff1f;
  display: grid; place-items: center;
  transform: rotateX(28deg) rotateY(-16deg) rotateZ(-14deg);
  box-shadow:
    0 2px 0 #3a3466, 0 4px 0 #2e2953, 0 8px 0 #221e40, 0 14px 0 #1a1733,
    0 40px 60px #000000aa, 0 0 80px #6a4dff44;
}
.cube-face svg { width: 52%; height: 52%; filter: drop-shadow(0 0 18px #7c5cffaa); }

/* Заголовки разделов */
section { scroll-margin-top: 90px; }
.section-head { display: flex; align-items: center; gap: 22px; margin: 56px 0 22px; }
.section-head h2 { font-size: 28px; font-weight: 700; white-space: nowrap; }
.section-head .line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.more { display: inline-flex; gap: 8px; color: #d9d5ec; font-size: 15px; white-space: nowrap; }
.more span { color: var(--violet); }

/* Карточка проекта */
.project {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(110deg, #1b1833 0%, #15132a 55%, #1e1946 100%);
  padding: 40px 40px 34px;
}
.project-bg { position: absolute; inset: auto 0 0 30%; height: 100%; opacity: .9; pointer-events: none; }
.project-bg svg { width: 100%; height: 100%; }
.project-body { position: relative; }
.project-title { display: flex; align-items: center; gap: 28px; }
.app-icon {
  width: 132px; height: 132px; border-radius: 32px; display: grid; place-items: center;
  background: linear-gradient(150deg, #6f53ff, #3b2bb8);
  box-shadow: 0 20px 50px #4b35d955, inset 0 1px 0 #ffffff33;
}
.app-icon svg { width: 70%; height: 70%; }
.project h3 { font-size: 34px; font-weight: 700; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.badge { font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--violet); color: #d8ceff; background: #7c5cff1f; letter-spacing: 0; }
.tagline { margin: 6px 0 0; font-size: 18px; color: #d9d5ec; }
.project-text { color: var(--muted); max-width: 520px; margin: 22px 0 0; font-size: 16px; }
.features { list-style: none; display: flex; flex-wrap: wrap; gap: 26px 40px; padding: 0; margin: 24px 0 0; }
.features li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: #cfcae3; line-height: 1.35; }
.features svg { width: 22px; height: 22px; color: var(--violet); margin-top: 2px; }

/* Телефон */
.phone {
  position: relative; justify-self: end; align-self: start; margin: -16px 0 -120px 0;
  width: 270px; height: 470px; border-radius: 46px; padding: 12px;
  background: linear-gradient(160deg, #3a3a44, #121216 40%, #2a2a33);
  box-shadow: 0 30px 70px #000000cc, inset 0 0 0 1px #ffffff22;
  transform: rotate(8deg);
}
.phone-screen {
  height: 100%; border-radius: 36px; overflow: hidden; text-align: center;
  background: radial-gradient(260px 260px at 50% 45%, #2a1f6b, #0d0b1a 75%);
  padding: 16px 18px;
}
.phone-status { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; padding: 0 8px; }
.bars { width: 40px; height: 10px; background: linear-gradient(90deg, #fff 0 20%, transparent 20% 30%, #fff 30% 50%, transparent 50% 60%, #fff 60% 100%); border-radius: 3px; opacity: .85; }
.phone-logo { width: 60px; height: 60px; margin-top: 26px; }
.phone-name { margin: 0; font-weight: 600; font-size: 17px; }
.power {
  width: 110px; height: 110px; margin: 30px auto 0; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, #8a6dff, #5b3df0);
  box-shadow: 0 0 0 10px #6a4dff2e, 0 0 0 22px #6a4dff17, 0 0 60px #7c5cffaa;
}
.power svg { width: 44px; height: 44px; color: #fff; }
.phone-state { margin: 34px 0 0; color: var(--green); font-size: 15px; display: inline-flex; gap: 8px; align-items: center; }
.phone-server {
  margin-top: 26px; display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; border-radius: 14px; background: #ffffff10; border: 1px solid #ffffff14; font-size: 14px;
}
.phone-server b { font-weight: 500; }

/* Загрузка */
.download { margin-top: 56px; }
.download-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 36px 40px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #14122699;
}
.download h2 { font-size: 28px; }
.download .muted { margin: 8px 0 0; }
.hash { margin: 22px 0 0; color: var(--muted); font-size: 13px; word-break: break-all; }
.hash code { color: #cfc8f5; font-family: ui-monospace, Consolas, monospace; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 16px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; color: var(--muted); }
.steps p { margin: 6px 0 0; }
.steps li::before {
  content: counter(step); width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  background: #7c5cff26; color: #d8ceff; font-weight: 700;
}
.steps b { color: var(--text); font-weight: 600; }
.legal-links { color: var(--muted); font-size: 14px; margin: 16px 4px 0; }
.legal-links a { color: #c8b9ff; text-decoration: underline; text-underline-offset: 3px; }

/* Другие проекты */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  position: relative; padding: 26px 26px 28px; border: 1px solid var(--line); border-radius: 18px;
  background: #15132499; min-height: 180px;
}
.card > svg { width: 38px; height: 38px; color: var(--violet); }
.card h3 { font-size: 17px; margin-top: 16px; }
.card p { color: var(--muted); font-size: 14px; margin: 8px 0 0; max-width: 200px; }
.card p { max-width: none; }

/* Коротко о компании */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 24px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--line); }
.fact { background: #100e1d; padding: 22px 24px; display: grid; gap: 6px; }
.fact b { font-size: 16px; }
.fact span { color: var(--muted); font-size: 14px; line-height: 1.45; }

/* Как мы работаем */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.process li { padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(160deg, #191631, #110f20); }
.process span { display: block; font-size: 30px; font-weight: 800; color: #6f55f5; letter-spacing: -0.02em; }
.process b { display: block; margin-top: 10px; font-size: 17px; }
.process p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

/* Обо мне и контакты */
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; margin-top: 64px; align-items: start; }
.split h2 { font-size: 28px; margin-bottom: 14px; }
.split .muted { margin-top: 14px; }
.contact-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #15132499; scroll-margin-top: 90px; }
.contact-card .actions { margin-top: 20px; }

/* Подвал */
.foot { margin-top: 80px; border-top: 1px solid #ffffff0d; background: #09080f; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 28px; padding: 44px 0 30px; }
.foot-grid nav { display: grid; gap: 10px; align-content: start; }
.foot-grid h3 { font-size: 14px; color: var(--text); margin-bottom: 4px; }
.foot-grid nav a { color: var(--muted); font-size: 14px; }
.foot-grid nav a:hover { color: var(--text); }
.foot .brand { font-size: 20px; }
.foot .mark { width: 34px; height: 34px; }
.foot p { margin: 12px 0 0; font-size: 14px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #ffffff0d; padding: 18px 0 26px; }
.foot-bottom p { margin: 0; font-size: 13px; }

/* Документы */
.doc { max-width: 820px; padding: 40px 0 20px; }
.doc h1 { font-size: 34px; margin-bottom: 18px; }
.doc h2 { font-size: 21px; margin: 30px 0 10px; }
.doc p, .doc li { color: #cfcae3; }
.doc a { color: #c8b9ff; }
.back { display: inline-flex; gap: 8px; color: var(--muted); margin-bottom: 18px; }

@media (max-width: 960px) {
  .menu { display: none; }
  .pill-link { margin-left: auto; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero h1 { white-space: normal; }
  .hero-art { height: 300px; }
  .cube { width: 170px; height: 170px; left: 34%; }
  .project { grid-template-columns: 1fr; padding: 28px 22px; }
  .phone { justify-self: center; margin: 28px 0 -120px; transform: rotate(4deg); }
  .download-card { grid-template-columns: 1fr; padding: 28px 22px; }
  .cards, .facts, .process { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .brand { font-size: 20px; }
  .lead { font-size: 17px; }
  .lead br { display: none; }
  .project-title { gap: 18px; }
  .app-icon { width: 84px; height: 84px; border-radius: 22px; }
  .project h3 { font-size: 26px; }
  .cards, .facts, .process, .foot-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .section-head .more { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
