:root {
  --bg: #080a0f;
  --panel: #10131b;
  --panel-soft: #0d1017;
  --text: #f4f5f7;
  --muted: #949aaa;
  --line: rgba(255,255,255,.1);
  --accent: #6f55ff;
  --accent-2: #9f8cff;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; background: var(--bg); }

body {
  min-height: 100dvh;
  overflow: hidden;
  color: var(--text);
  font-family: Inter, Manrope, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle 520px at 78% 34%, rgba(86, 57, 255, .17), transparent 72%),
    radial-gradient(circle 380px at 14% 108%, rgba(39, 63, 207, .1), transparent 72%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }

.page-shell {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100dvh;
  min-height: 600px;
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(24px, 3.2vw, 52px) clamp(24px, 5vw, 80px) clamp(18px, 2.4vw, 36px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to right, transparent, #000 50%, transparent);
}

.ambient { display: none; }
.ambient-one { width: 430px; height: 430px; right: 5%; top: 14%; background: #5639ff; }
.ambient-two { width: 300px; height: 300px; left: 8%; bottom: -18%; background: #273fcf; opacity: .1; }

.topbar, .footer { display: flex; align-items: center; justify-content: space-between; }
.topbar { border-bottom: 1px solid var(--line); padding-bottom: clamp(18px, 2vw, 26px); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 650; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; filter: drop-shadow(0 8px 16px rgba(111,85,255,.24)); }
.brand-mark img { display: block; width: 100%; height: 100%; }
.brand-name { font-size: 15px; }
.topbar-meta { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); font-size: 13px; }
.status { color: #b7bbc5; display: flex; align-items: center; gap: 8px; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #6ee7a4; box-shadow: 0 0 0 5px rgba(110,231,164,.08); animation: pulse 2.4s infinite; }
.telegram-link { font-weight: 650; }
.telegram-link span { color: var(--accent-2); margin-left: 3px; }

.hero { min-height: 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); gap: clamp(38px, 6vw, 100px); align-items: center; padding: clamp(22px, 4vh, 52px) 0; }
.intro { align-self: center; }
.eyebrow { color: #8d93a2; text-transform: uppercase; letter-spacing: .15em; font-size: 11px; font-weight: 700; margin-bottom: clamp(18px, 2.5vh, 30px); }
.eyebrow span { color: var(--accent-2); }
h1 { margin: 0; max-width: 790px; font-size: clamp(44px, 5.2vw, 78px); line-height: .98; letter-spacing: -.055em; font-weight: 660; }
h1 em { color: var(--accent-2); font-style: normal; font-weight: 540; }
.lead { max-width: 610px; margin: clamp(20px, 3vh, 32px) 0 0; color: #a6abba; font-size: clamp(15px, 1.3vw, 19px); line-height: 1.55; }
.actions { display: flex; align-items: center; gap: 14px; margin-top: clamp(22px, 3.3vh, 38px); }
.button { min-height: 50px; padding: 0 22px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; font-size: 13px; font-weight: 700; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); box-shadow: 0 12px 36px rgba(111,85,255,.22); }
.button-primary:hover { background: #8069ff; }
.button-primary span { font-size: 19px; line-height: 0; }
.button-ghost { color: #b6bac5; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.button-ghost:hover { border-color: rgba(255,255,255,.24); }

.proof { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); margin-top: clamp(26px, 4.4vh, 52px); }
.proof-item { display: flex; align-items: center; gap: 10px; }
.proof-item strong { font-size: 25px; letter-spacing: -.05em; }
.proof-item span { color: #727887; font-size: 10px; line-height: 1.35; text-transform: uppercase; letter-spacing: .08em; }
.proof-divider { width: 1px; height: 30px; background: var(--line); }

.expertise { display: grid; gap: 12px; min-width: 0; }
.visual-card { position: relative; height: clamp(220px, 30vh, 330px); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: radial-gradient(circle at 70% 45%, rgba(111,85,255,.14), transparent 37%), linear-gradient(145deg, #11141d, #0c0e14); box-shadow: 0 30px 80px rgba(0,0,0,.28); }
.visual-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,.035), transparent 28%); pointer-events: none; }
.code-window { position: absolute; left: 6%; top: 14%; width: 69%; min-width: 300px; padding-bottom: 17px; border: 1px solid rgba(255,255,255,.1); border-radius: 11px; background: rgba(7,9,14,.78); box-shadow: 0 20px 45px rgba(0,0,0,.35); transform: rotate(-2deg); }
.window-top { height: 34px; display: flex; align-items: center; gap: 5px; border-bottom: 1px solid rgba(255,255,255,.07); padding: 0 11px; }
.window-top span { width: 6px; height: 6px; background: #4b4f59; border-radius: 50%; }
.window-top b { margin-left: auto; color: #555b68; font-size: 8px; font-weight: 500; }
.code-lines { padding: 10px 14px 0; font-family: Consolas, monospace; font-size: clamp(7px, .72vw, 10px); color: #abb1c0; }
.code-lines p { margin: 7px 0; white-space: nowrap; }
.code-lines i { color: #393e49; font-style: normal; margin-right: 13px; }
.violet { color: #ae96ff; }.blue { color: #69a9ff; }.yellow { color: #e9cc75; }.green { color: #7bd6a3; }.muted { color: #525866; }
.bitrix-badge { position: absolute; right: 6%; bottom: 13%; z-index: 2; width: clamp(154px, 14vw, 196px); height: clamp(54px, 5vw, 68px); display: grid; place-items: center; padding: 14px 18px; border: 1px solid rgba(255,255,255,.55); border-radius: 15px; background: rgba(255,255,255,.96); box-shadow: 0 0 0 10px rgba(255,255,255,.035), 0 20px 50px rgba(0,0,0,.34); animation: float 5s ease-in-out infinite; }
.bitrix-badge img { display: block; width: 100%; height: auto; }
.orbit { position: absolute; right: -2%; bottom: -28%; border: 1px solid rgba(141,119,255,.18); border-radius: 50%; }
.orbit-one { width: 250px; height: 250px; }.orbit-two { width: 330px; height: 330px; right: -10%; bottom: -48%; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.service-card { min-width: 0; min-height: 112px; display: flex; gap: 12px; padding: 17px 14px; border: 1px solid var(--line); border-radius: 15px; background: rgba(15,18,26,.76); transition: border-color .25s ease, background .25s ease, transform .25s ease; }
.service-card:hover { transform: translateY(-3px); border-color: rgba(142,120,255,.35); background: rgba(20,23,34,.9); }
.service-number { color: var(--accent-2); font-family: Consolas, monospace; font-size: 9px; padding-top: 3px; }
.service-card h2 { font-size: clamp(12px, 1vw, 15px); margin: 0 0 8px; font-weight: 650; }
.service-card p { margin: 0; color: #747b8b; font-size: clamp(9px, .75vw, 11px); line-height: 1.45; }

.footer { border-top: 1px solid var(--line); padding-top: clamp(16px, 2vw, 23px); color: #676d7a; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.footer p { margin: 0; }
.footer-links { display: flex; gap: clamp(20px, 3vw, 44px); align-items: center; }
.footer-links a { color: #c8cbd2; transition: color .2s; }.footer-links a:hover { color: var(--accent-2); }

.reveal { opacity: 0; transform: translateY(12px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.expertise.reveal { transition-delay: .12s; }.footer.reveal { transition-delay: .2s; }

@keyframes pulse { 0%,100%{ box-shadow:0 0 0 5px rgba(110,231,164,.06) } 50%{ box-shadow:0 0 0 8px rgba(110,231,164,.015) } }
@keyframes float { 0%,100%{ transform:translateY(0) } 50%{ transform:translateY(-7px) } }

@media (max-width: 980px) {
  .page-shell { padding-left: 28px; padding-right: 28px; }
  .hero { grid-template-columns: 1fr .86fr; gap: 28px; }
  h1 { font-size: clamp(40px, 6.5vw, 60px); }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; padding: 12px 14px; }
  .service-card p { display: none; }
  .visual-card { height: 260px; }
}

@media (max-width: 720px) {
  body { overflow: auto; }
  .page-shell { height: auto; min-height: 100dvh; padding: 22px 20px; }
  .topbar-meta .status { display: none; }
  .hero { grid-template-columns: 1fr; padding: 34px 0 26px; }
  .expertise { display: none; }
  h1 { font-size: clamp(44px, 12.7vw, 66px); }
  .lead { font-size: 16px; max-width: 540px; }
  .proof { margin-top: 36px; }
  .footer { margin-top: auto; }
  .footer > p { display: none; }
  .footer-links { width: 100%; justify-content: space-between; }
}

@media (max-width: 480px) {
  .brand-name { font-size: 13px; }
  .telegram-link { font-size: 12px; }
  .actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .proof { gap: 12px; justify-content: space-between; }
  .proof-item { gap: 7px; }.proof-item strong { font-size: 21px; }.proof-item span { font-size: 8px; }
  .footer-links span { display: none; }
}

@media (max-height: 740px) and (min-width: 721px) {
  .page-shell { padding-top: 22px; padding-bottom: 18px; }
  .topbar { padding-bottom: 15px; }
  .hero { padding: 18px 0; }
  h1 { font-size: clamp(40px, 4.7vw, 65px); }
  .eyebrow { margin-bottom: 14px; }
  .lead { margin-top: 16px; }
  .actions { margin-top: 18px; }
  .proof { margin-top: 20px; }
  .visual-card { height: 220px; }
  .service-card { min-height: 92px; }
  .footer { padding-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
