/* ============================================
   INIBYL — стили сайта
   Тёмный техно-стиль · фиолетово-розовый градиент
   ============================================ */

:root {
  --bg: #07050d;
  --bg-2: #0d0918;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f0ff;
  --text-dim: #a8a4bd;
  --text-mute: #6b6884;
  --accent-1: #a855f7;
  --accent-2: #ec4899;
  --accent-3: #f472b6;
  --grad: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  --grad-soft: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(236, 72, 153, 0.12));
  --grad-line: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.6), rgba(236, 72, 153, 0.6), transparent);
  --shadow-card: 0 20px 60px -20px rgba(168, 85, 247, 0.25), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1240px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(168, 85, 247, 0.15), transparent 60%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--accent-3); }
button { font-family: inherit; cursor: pointer; }

/* Контейнер */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Декоративный фон
   ============================================ */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 100% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 100% 60% at 50% 30%, #000 30%, transparent 80%);
  pointer-events: none;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.55;
}

.bg-glow {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}
.bg-glow-1 {
  width: 480px; height: 480px;
  top: -120px; left: -120px;
  background: radial-gradient(circle, #a855f7, transparent 70%);
  animation: floatGlow 18s ease-in-out infinite;
}
.bg-glow-2 {
  width: 560px; height: 560px;
  bottom: -200px; right: -180px;
  background: radial-gradient(circle, #ec4899, transparent 70%);
  animation: floatGlow 22s ease-in-out infinite reverse;
}
@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(60px, 40px); }
}

/* Кастомный курсор */
.cursor, .cursor-dot {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), opacity 0.2s;
  opacity: 0;
}
.cursor {
  width: 28px; height: 28px;
  border: 1.5px solid #fff;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: #fff;
}
.cursor.is-hover { width: 56px; height: 56px; }

@media (hover: hover) and (pointer: fine) {
  body.cursor-ready { cursor: none; }
  body.cursor-ready a, body.cursor-ready button, body.cursor-ready input, body.cursor-ready textarea, body.cursor-ready select { cursor: none; }
  body.cursor-ready .cursor, body.cursor-ready .cursor-dot { opacity: 1; }
}

/* Прогресс прокрутки */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--grad);
  z-index: 100;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.6);
}

/* ============================================
   Кнопки
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  position: relative;
  text-decoration: none;
  white-space: nowrap;
}
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 17px 28px; font-size: 16px; width: 100%; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(168, 85, 247, 0.6), 0 4px 12px -4px rgba(236, 72, 153, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(168, 85, 247, 0.8), 0 8px 16px -4px rgba(236, 72, 153, 0.5);
  color: #fff;
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: rgba(236, 72, 153, 0.4);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================
   Шапка
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  background: rgba(7, 5, 13, 0.6);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(7, 5, 13, 0.85);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.logo { display: inline-flex; align-items: center; }

.nav-main {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 8px;
}
.nav-main a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.nav-main a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease);
}
.nav-main a:hover { color: #fff; }
.nav-main a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 42px; height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 16px 24px 24px;
  background: rgba(7, 5, 13, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}
.nav-mobile a {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
}
.nav-mobile a.btn { margin-top: 12px; border-bottom: none; }
.nav-mobile.is-open { display: flex; }

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: calc(var(--header-h) + 60px) 0 80px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px #22c55e, 0 0 0 4px rgba(34, 197, 94, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(1.15); }
}

.hero-title {
  font-size: clamp(40px, 6.5vw, 84px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin: 24px 0 28px;
  color: #fff;
}
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  background-size: 200% 200%;
  animation: gradShift 8s ease-in-out infinite;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-dim);
  margin: 0 0 36px;
  max-width: 560px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--text-mute);
}
.hero-trust strong {
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Терминал в hero */
.hero-visual {
  position: relative;
  min-height: 360px;
}
.terminal {
  background: linear-gradient(180deg, rgba(20, 14, 36, 0.85), rgba(13, 9, 24, 0.95));
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(168, 85, 247, 0.35), 0 8px 24px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  position: relative;
}
.terminal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), transparent 50%);
  pointer-events: none;
}
.terminal-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--border);
}
.terminal-head .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot.red { background: #ff5f57; }
.dot.yel { background: #febc2e; }
.dot.grn { background: #28c840; }
.terminal-title {
  margin-left: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-mute);
}
.terminal-body {
  margin: 0;
  padding: 24px 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  line-height: 1.7;
  color: #e6e3ff;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 260px;
}
.terminal-body .ln-kw { color: #ec4899; }
.terminal-body .ln-fn { color: #a855f7; }
.terminal-body .ln-str { color: #f472b6; }
.terminal-body .ln-cmt { color: var(--text-mute); }
.terminal-body .ln-ok { color: #22c55e; }
.terminal-body .ln-warn { color: #fbbf24; }
.terminal-body .ln-num { color: #38bdf8; }
.caret {
  display: inline-block;
  color: #ec4899;
  animation: blink 1s steps(2) infinite;
  font-family: 'JetBrains Mono', monospace;
}
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.floater {
  position: absolute;
  padding: 10px 14px;
  background: rgba(13, 9, 24, 0.85);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6);
  animation: floatY 6s ease-in-out infinite;
}
.f1 { top: -10px; left: -20px; }
.f2 { top: 50%; right: -16px; animation-delay: -2s; }
.f3 { bottom: -10px; left: 30%; animation-delay: -4s; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* ============================================
   Статистика
   ============================================ */
.stats {
  padding: 40px 0 60px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 36px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.stats-grid::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: var(--grad-line);
}
.stat { text-align: center; }
.stat-num {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.stat-lbl {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-dim);
}

/* ============================================
   Секции
   ============================================ */
.section { padding: 100px 0; position: relative; }
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-3);
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.25);
  border-radius: 100px;
  margin-bottom: 18px;
}
.section-title {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  color: #fff;
}
.section-sub {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   Услуги
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  position: relative;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
  overflow: hidden;
  isolation: isolate;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-6px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}
.service-card:hover::before { opacity: 1; }

.card-glow {
  position: absolute;
  top: var(--my, 50%); left: var(--mx, 50%);
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.22), transparent 60%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: -1;
}
.service-card:hover .card-glow { opacity: 1; }

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  border-radius: 12px;
  background: var(--grad-soft);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: #fff;
  margin-bottom: 18px;
}
.service-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-3);
  margin-bottom: 8px;
}
.service-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: #fff;
}
.service-desc {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0 0 18px;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.service-tags span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.025);
}

/* ============================================
   Технологический стек
   ============================================ */
.section-stack { background: linear-gradient(180deg, transparent, rgba(168, 85, 247, 0.04), transparent); }

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.stack-card {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.stack-card:hover {
  transform: translateY(-4px);
  border-color: rgba(236, 72, 153, 0.3);
}
.stack-cat {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px;
  color: #fff;
}
.stack-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stack-chip {
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.18);
  color: #e7e0ff;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
.stack-chip:hover {
  background: var(--grad-soft);
  border-color: rgba(236, 72, 153, 0.5);
  transform: translateY(-2px);
}

.marquee {
  margin-top: 30px;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: scroll 50s linear infinite;
}
.marquee-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-mute);
  white-space: nowrap;
  letter-spacing: 0.02em;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================
   Процесс
   ============================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.process-step {
  position: relative;
  padding: 30px 28px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.process-step:hover {
  transform: translateY(-4px);
  border-color: rgba(236, 72, 153, 0.35);
}
.process-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 36px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 14px;
}
.process-title {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
}
.process-desc {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0;
}

/* ============================================
   Кейсы
   ============================================ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.case-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
  min-height: 320px;
}
.case-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: var(--shadow-card);
}
.case-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 12px;
}
.case-sector {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 5px 10px;
  background: var(--grad);
  color: #fff;
  border-radius: 6px;
}
.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}
.case-tags span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-dim);
}
.case-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: #fff;
}
.case-desc {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0 0 20px;
  flex-grow: 1;
}
.case-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.case-metric {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  background: rgba(168, 85, 247, 0.1);
  color: var(--accent-3);
  border-radius: 6px;
  border: 1px solid rgba(236, 72, 153, 0.2);
}

/* ============================================
   Команда
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.team-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.team-card:hover {
  transform: translateY(-4px);
  border-color: rgba(236, 72, 153, 0.3);
}
.team-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  box-shadow: 0 8px 24px -8px rgba(168, 85, 247, 0.6);
}
.team-name {
  font-size: 16.5px;
  font-weight: 700;
  margin: 0 0 2px;
  color: #fff;
}
.team-role {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-3);
  font-weight: 600;
  margin-bottom: 6px;
}
.team-bio {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0;
}

/* ============================================
   Контакты + форма
   ============================================ */
.section-contact { padding-bottom: 130px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: flex-start;
}
.contact-info { padding-top: 8px; }
.contact-info .eyebrow { margin-bottom: 14px; }
.contact-info .section-title { font-size: clamp(28px, 3.4vw, 42px); text-align: left; }
.contact-info .section-sub { text-align: left; margin-bottom: 28px; }

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  border-top: 1px solid var(--border);
}
.contact-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.ci-lbl {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-mute);
  font-weight: 600;
}
.contact-list a { color: #fff; font-weight: 500; }
.contact-list a:hover { color: var(--accent-3); }

.reg-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--grad-soft);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 12px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
}
.reg-badge svg { color: var(--accent-3); flex-shrink: 0; }

.contact-form {
  padding: 32px;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.08), rgba(236, 72, 153, 0.04));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}
.contact-form::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--grad-line);
}

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.field label span { color: var(--accent-2); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  background: rgba(7, 5, 13, 0.6);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  outline: none;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-mute); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent-2);
  background: rgba(7, 5, 13, 0.85);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}
.field textarea { resize: vertical; min-height: 100px; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23a8a4bd' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
.field select option { background: #0d0918; color: #fff; }

.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important; height: 1px !important;
  opacity: 0 !important;
}

.alert {
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 500;
}
.alert-ok {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}
.alert-err {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.form-note {
  font-size: 12px;
  color: var(--text-mute);
  text-align: center;
  margin: 16px 0 0;
  line-height: 1.5;
}
.form-note a { color: var(--text-dim); text-decoration: underline; text-decoration-color: var(--border-strong); }

/* ============================================
   Подвал
   ============================================ */
.site-footer {
  padding: 70px 0 32px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(168, 85, 247, 0.03));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand p {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 320px;
}
.site-footer h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-mute);
  margin: 0 0 16px;
  font-weight: 700;
}
.site-footer ul {
  list-style: none;
  padding: 0; margin: 0;
}
.site-footer li { margin-bottom: 10px; }
.site-footer li a {
  font-size: 14.5px;
  color: var(--text-dim);
}
.site-footer li a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-mute);
}
.heart {
  color: var(--accent-2);
  animation: heart 1.4s ease-in-out infinite;
  display: inline-block;
}
@keyframes heart {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.2); }
}

/* ============================================
   Reveal-анимации
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ============================================
   Адаптив
   ============================================ */
@media (max-width: 1080px) {
  .services-grid, .stack-grid, .cases-grid, .process-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-main { display: none; }
  .header-inner .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 320px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); padding: 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .hero { padding: calc(var(--header-h) + 40px) 0 60px; }
  .section { padding: 70px 0; }
  .services-grid, .stack-grid, .cases-grid, .process-grid, .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-list li { flex-direction: column; align-items: flex-start; gap: 4px; }
  .contact-form { padding: 22px; }
  .team-card { flex-direction: column; text-align: center; }
  .floater { font-size: 11px; padding: 8px 12px; }
  .f1 { left: 0; }
  .f2 { right: 0; }
}
