:root {
  --bg: #0a0a0b;
  --fg: #e6f1ff;
  --neon-green: #32ff7e;
  --neon-blue: #4dd9ff;
  --neon-purple: #b784f5;
  --muted: #92a1b0;
}
/* Навигация */
.top-nav { position: fixed; top: 0; left: 0; right: 0; height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; background: rgba(10,11,12,0.6); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(159,179,200,0.12); z-index: 1000; }
.top-nav .brand { display: grid; grid-auto-flow: row; gap: 4px; align-items: start; justify-items: start; }
.logo-mark { width: 40px; height: 40px; }
.brand-tagline { font-size: 12px; color: var(--muted); line-height: 1.2; }
.top-nav .nav-links { display: none; gap: 20px; list-style: none; margin: 0; padding: 0; }
.top-nav .nav-links a { color: var(--fg); text-decoration: none; font-size: 0.95rem; }
.menu-toggle { appearance: none; border: 1px solid rgba(159,179,200,0.25); background: rgba(159,179,200,0.08); color: var(--fg); font-size: 1.2rem; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.mobile-nav { position: fixed; top: 56px; left: 0; right: 0; transform: translateY(-100%); transition: transform 0.3s ease; background: rgba(10,11,12,0.92); backdrop-filter: blur(6px); border-bottom: 1px solid rgba(159,179,200,0.12); z-index: 999; display: grid; }
.mobile-nav a { padding: 14px 18px; color: var(--fg); text-decoration: none; border-top: 1px solid rgba(159,179,200,0.06); }
.mobile-nav.open { transform: translateY(0); }
@media (min-width: 980px) { .top-nav { height: 80px; } .top-nav .nav-links { display: flex; } .menu-toggle { display: none; } .mobile-nav { display: none; } }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); font-family: Inter, "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }

.bg-particles { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(1200px 600px at 80% 10%, rgba(50,255,126,0.08), transparent), radial-gradient(1000px 500px at 20% 80%, rgba(77,217,255,0.07), transparent), radial-gradient(800px 400px at 50% 50%, rgba(183,132,245,0.06), transparent); filter: blur(20px); }

.section { max-width: 1120px; margin: 0 auto; padding: 72px 24px; }
.section h2 { font-family: "Space Grotesk", Inter, sans-serif; font-size: 36px; margin-bottom: 24px; letter-spacing: 0.4px; }
.subtitle { max-width: 880px; color: var(--muted); font-size: 18px; }

.btn { display: inline-block; padding: 12px 18px; border-radius: 12px; text-decoration: none; font-weight: 600; transition: all .2s ease; }
.btn-primary { background: linear-gradient(90deg, var(--neon-green), var(--neon-blue)); color: #03110a; }
.btn-secondary { border: 1px solid #223; color: var(--fg); background: #0f1115; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(50,255,126,0.12), 0 8px 22px rgba(77,217,255,0.08); }

.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; max-width: 1200px; margin: 0 auto; padding: 144px 24px 48px; }
.hero h1 { font-size: 46px; line-height: 1.08; margin: 0 0 18px; }
.hero-actions { display: flex; gap: 14px; margin-top: 24px; }
.hero-visual { position: relative; height: 340px; border-radius: 18px; background: #0e1117; overflow: hidden; }

.neural-grid { position: absolute; inset: 0; background: rgba(255,255,255,0.02); backdrop-filter: blur(2px); }
.neural-grid::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 30%, rgba(50,255,126,0.25) 0 2px, transparent 3px), radial-gradient(circle at 80% 70%, rgba(77,217,255,0.25) 0 2px, transparent 3px), radial-gradient(circle at 50% 50%, rgba(183,132,245,0.25) 0 2px, transparent 3px);
  background-size: 18px 18px; animation: drift 20s linear infinite; opacity: 0.5; }

.pose-silhouette { position: absolute; inset: 0; mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.1)); }
.pose-silhouette::before { content: ""; position: absolute; left: 50%; top: 50%; width: 240px; height: 320px; transform: translate(-50%, -50%);
  border: 2px dashed rgba(77,217,255,0.6); border-radius: 24px; box-shadow: 0 0 40px rgba(77,217,255,0.3), inset 0 0 30px rgba(50,255,126,0.2); }
/* SVG‑силуэт с зелёными линиями */
.pose-svg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 280px; height: 360px; filter: drop-shadow(0 0 8px rgba(50,255,126,0.15)); }
.pose-svg .motion-line { stroke: var(--neon-green); opacity: 0.9; stroke-dasharray: 8 10; animation: dashMove 2.6s linear infinite; }
.pose-svg .motion-line:nth-child(odd) { animation-duration: 3.2s; }
@keyframes dashMove { to { stroke-dashoffset: -160; } }

/* Лёгкое покачивание силуэта без внешних скриптов */
@keyframes sway { 0% { transform: translate(-50%, -50%) rotate(-2deg); } 50% { transform: translate(-50%, -50%) rotate(2deg); } 100% { transform: translate(-50%, -50%) rotate(-2deg); } }
.pose-svg { animation: sway 6s ease-in-out infinite; }

@keyframes drift { from { background-position: 0 0, 0 0, 0 0; } to { background-position: 200px 160px, -180px 120px, 140px -100px; } }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.card { background: #0f1318; border: 1px solid #1a2330; padding: 16px; border-radius: 14px; }
.card:hover { border-color: #243042; box-shadow: inset 0 0 30px rgba(77,217,255,0.05); }
.tech-used { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tech-used span { background: #0e1216; border: 1px solid #1b2431; padding: 6px 10px; border-radius: 12px; color: #c7d6e8; font-size: 13px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; position: relative; }
.step { background: #0f1318; border: 1px solid #1a2330; padding: 18px; border-radius: 14px; text-align: center; }
.step-num { font-weight: 700; font-size: 20px; color: var(--neon-blue); margin-bottom: 8px; }
.flow-lines { position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: linear-gradient(90deg, rgba(50,255,126,0.4), rgba(77,217,255,0.4), rgba(183,132,245,0.4)); filter: blur(2px); }

.tech-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.tech-item { background: #0f1318; border: 1px solid #1a2330; padding: 16px; border-radius: 14px; }
.tech-item strong { display: block; color: #eaf3ff; }
.tech-item span { color: var(--muted); }
.quote { margin-top: 16px; color: #cfe7ff; opacity: 0.9; }

.module-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.module-card { border-radius: 14px; padding: 18px; background: #0f1318; border: 1px solid #1a2330; }
.module-card.green { box-shadow: inset 0 0 40px rgba(50,255,126,0.06); }
.module-card.blue { box-shadow: inset 0 0 40px rgba(77,217,255,0.06); }
.module-card.purple { box-shadow: inset 0 0 40px rgba(183,132,245,0.08); }
.module-card.yellow { box-shadow: inset 0 0 40px rgba(255,219,77,0.08); }

.audience-visual { height: 220px; border-radius: 16px; background: #0e1117; border: 1px solid #1a2330; position: relative; overflow: hidden; }
.ar-elements { position: absolute; inset: 0; background: radial-gradient(400px 200px at 20% 60%, rgba(77,217,255,0.18), transparent), radial-gradient(400px 200px at 70% 30%, rgba(50,255,126,0.16), transparent); filter: blur(8px); }
.teacher-dashboard { position: absolute; right: 24px; bottom: 24px; width: 460px; height: 160px; border: 1px solid #223; border-radius: 12px; background: #0b0e12; box-shadow: 0 0 20px rgba(77,217,255,0.12); display: flex; align-items: stretch; gap: 12px; padding: 12px; }
.dash-text-slider { flex: 0 0 180px; display: flex; align-items: center; justify-content: flex-start; color: #e6fff2; font-size: 14px; line-height: 1.35; }
.dash-text-current { opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
.dash-text-current.show { opacity: 1; transform: translateY(0); }
.dash-track { flex: 1; position: relative; }
.dash-track-svg { width: 100%; height: 100%; }

.stack-strip { display: flex; gap: 8px; flex-wrap: wrap; }
.stack-strip span { background: #0e1216; border: 1px solid #1b2431; padding: 8px 12px; border-radius: 12px; color: #c7d6e8; }

.contact { text-align: center; }
.cta { font-size: 20px; margin-bottom: 16px; }
.contact-actions { display: flex; gap: 12px; justify-content: center; }
.contact-note { color: var(--muted); margin-top: 12px; }

.footer { border-top: 1px solid #17202c; padding: 24px; color: #b9c8d8; display: flex; align-items: flex-start; justify-content: space-between; }
.footer-left { display: grid; gap: 6px; justify-items: start; }
.footer-logo { width: 56px; height: 56px; }
.footer-requisites { max-width: 520px; font-size: 13px; line-height: 1.45; color: #c3d2e2; }
.footer-requisites .req-title { font-weight: 700; color: #e6f1ff; margin-bottom: 4px; }
.footer-requisites .req-line { opacity: 0.9; }
.footer .links { display: flex; gap: 14px; align-items: center; }
.footer a { color: #c9d8e8; text-decoration: none; }

/* Scroll-reveal: плавное проявление секций */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .pose-svg { animation: none; }
  .reveal, .reveal.revealed { transition: none; transform: none; }
  .dash-text-current, .dash-text-current.show { transition: none; transform: none; }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .cards, .steps, .tech-grid, .module-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cards, .steps, .tech-grid, .module-cards { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .footer { flex-direction: column; gap: 14px; }
  .footer-requisites { font-size: 12px; }
  .footer .links { justify-content: flex-start; flex-wrap: wrap; }
}
.scroll-top-btn { position: fixed; right: 16px; bottom: 16px; width: 40px; height: 40px; border-radius: 20px; border: 1px solid var(--muted); background: var(--bg); color: var(--fg); display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.2); opacity: 0; pointer-events: none; transition: opacity 200ms ease, transform 200ms ease; z-index: 1000; }
.scroll-top-btn.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top-btn:active { transform: scale(0.98); }

@media (prefers-reduced-motion: reduce) {
  .scroll-top-btn { transition: none; }
}
/* Lead form (popup) */
.lead-trigger { position: fixed; left: 16px; bottom: 16px; height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--muted); background: var(--bg); color: var(--fg); display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.2); z-index: 1000; }
.lead-trigger:active { transform: scale(0.98); }

.lead-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: none; align-items: center; justify-content: center; z-index: 1100; }
.lead-overlay.visible { display: flex; }
.lead-modal { width: 92%; max-width: 520px; background: var(--bg); color: var(--fg); border: 1px solid var(--muted); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
.lead-modal header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--muted); }
.lead-modal header h3 { margin: 0; font-size: 18px; }
.lead-modal header button { border: none; background: transparent; color: var(--fg); font-size: 20px; cursor: pointer; }
.lead-modal .content { padding: 16px; }
.lead-form { display: grid; grid-template-columns: 1fr; gap: 12px; }
.lead-form label { font-size: 12px; color: var(--muted); }
.lead-form input, .lead-form textarea { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--muted); background: var(--bg); color: var(--fg); font-size: 14px; }
.lead-form textarea { min-height: 100px; resize: vertical; }
.lead-form .form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.lead-form .submit-btn { padding: 10px 16px; border-radius: 8px; border: 1px solid var(--muted); background: var(--fg); color: var(--bg); cursor: pointer; }
.lead-form .status { font-size: 12px; color: var(--muted); min-height: 16px; }

@media (prefers-reduced-motion: reduce) {
  .lead-trigger { transition: none; }
}
