:root{
  --bg: #050405;
  --text: #eaeaea;
  --muted: #9ca3af;
  --accent1: #9b4bff;
  --accent2: #5e2bff;
  --gradient: linear-gradient(135deg, var(--accent1), var(--accent2));
  --max-width: 1200px;
  --content-padding: 24px;
}

/* === 1. КАСТОМНЫЙ СКРОЛЛБАР === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #050405; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent1); }

/* === BASE & RESET === */
*, *::before, *::after { box-sizing: border-box; }
html,body{
  width: 100%; min-height: 100vh; margin: 0; padding: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
body { display:flex; flex-direction:column; }
main{ flex:1 0 auto; position: relative; z-index: 1; }
footer{ flex-shrink:0; position: relative; z-index: 2; }

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes textShine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.reveal-section {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-section.active {
  opacity: 1;
  transform: translateY(0);
}

/* === CONTAINERS === */
.container { 
  max-width: var(--max-width); margin: 0 auto; padding: 0 var(--content-padding); width: 100%;
}
a{ color:inherit; text-decoration:none; transition: all 0.2s; }

/* === NAVBAR === */
.navbar{
  position:fixed; top:0; left:0; right:0; height:76px;
  display:flex; align-items:center; z-index:1000;
  padding:0 var(--content-padding);
  background: rgba(5, 5, 6, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner{ width:100%; display:flex; align-items:center; justify-content:space-between; }

.brand{ 
  font-weight:800; font-size:1.3rem; display:flex; gap:10px; align-items:center; 
  color:#fff; letter-spacing: -0.5px; 
}
.brand .ver{ 
  background: linear-gradient(45deg, var(--accent1), var(--accent2)); 
  color:#fff; padding:4px 8px; border-radius:6px; font-size:0.75rem; 
  font-weight:700; box-shadow: 0 0 15px rgba(155, 75, 255, 0.3);
  align-self: center;
}

.nav-right{ display:flex; gap:24px; align-items:center; }
.nav-link { font-weight: 500; font-size: 0.95rem; color: #ccc; }
.nav-link:hover { color: #fff; text-shadow: 0 0 8px rgba(255,255,255,0.3); }

/* Buttons */
.btn-cta{
  background:var(--gradient); color:#fff; padding:12px 24px; border-radius:12px; font-weight:600;
  box-shadow: 0 4px 20px rgba(155, 75, 255, 0.25); border: 1px solid rgba(255,255,255,0.1);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap;
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative; overflow: hidden;
}
.btn-cta:hover { box-shadow: 0 6px 30px rgba(155, 75, 255, 0.5); }

/* Блик на кнопке */
.btn-cta::after {
    content: ""; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-20deg);
    animation: shine 4s infinite;
}
@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

.btn-outline{
  background:rgba(255,255,255,0.03); color:#fff; padding:12px 24px; border-radius:12px; font-weight:600;
  border:1px solid rgba(255,255,255,0.1); backdrop-filter: blur(4px);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap;
  transition: transform 0.2s;
}
.btn-outline:hover { background:rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); box-shadow: 0 4px 20px rgba(255,255,255,0.05); }

/* === HERO SECTION === */
.hero{ 
  position:relative; min-height: 100vh; display:flex; align-items:center; 
  padding-top: 100px; padding-bottom: 60px; overflow: hidden;
}

/* ФОН (Статичный) */
.hero-bg {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%); 
  width: 100vw; min-width: 1400px; height: 100%; 
  background-image: url('/static/new_bg.png');
  background-position: center top; background-repeat: no-repeat; background-size: cover; 
  z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}
.hero-bg::after { 
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at center, transparent 40%, var(--bg) 95%);
  opacity: 0.8;
}

/* HERO LAYOUT */
.hero-layout{ 
  position: relative; z-index: 2; display: flex; align-items: center; 
  justify-content: space-between; gap: 40px; width: 100%;
}

.hero-left-wrap{ 
  flex: 1; max-width: 550px; 
  background: rgba(15, 15, 18, 0.6); backdrop-filter: blur(20px); 
  padding: 35px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero-panel h1{
  font-size: 3.2rem; line-height: 1.1; margin: 0 0 24px 0; font-weight: 800;
  background: linear-gradient(270deg, #fff, #bfaee3, #fff); background-size: 200% 200%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: textShine 4s ease infinite;
  filter: drop-shadow(0 0 20px rgba(155, 75, 255, 0.3));
}
.lead{ font-size: 1.1rem; color: #d1d5db; margin-bottom: 32px; line-height: 1.6; }
.btns{ display:flex; gap:16px; flex-wrap: wrap; }

.hero-right-wrap { 
  flex: 1; display: flex; justify-content: flex-end; perspective: 1000px;
  animation: fadeInUp 0.8s ease-out 0.2s forwards; opacity: 0;
}
.visual-card {
  width: 100%; max-width: 800px; 
  transform: rotateY(-5deg) rotateX(2deg); transition: transform 0.5s ease;
  box-shadow: 0 0 80px rgba(155, 75, 255, 0.15); border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}
.visual-card:hover { transform: rotateY(0) rotateX(0) scale(1.01); box-shadow: 0 0 100px rgba(155, 75, 255, 0.25); }
.visual-frame img { display:block; width:100%; height:auto; }
.visual-caption { margin-top: 15px; font-size: 1rem; color: var(--muted); text-align: center; font-weight: 500; letter-spacing: 0.5px; }

.stats-row { margin-top: 30px; display:flex; gap: 12px; flex-wrap: wrap; }
.card.pill {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  padding: 8px 16px; border-radius: 50px; font-size: 0.9rem; color: #aaa; transition: 0.2s;
}
.card.pill:hover { background: rgba(255,255,255,0.06); color: #fff; }
.card.pill strong { color: #fff; margin-right: 5px; }

section{ padding: 80px 0; position:relative; z-index:1; }
.section-title { font-size: 2.5rem; margin-bottom: 16px; text-align: center; color: #fff; }
.section-subtitle { text-align: center; color: var(--muted); margin-bottom: 50px; max-width: 600px; margin: 0 auto 50px; }

.grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap:24px; }
.card {
  background: #0e0e10; border: 1px solid rgba(255,255,255,0.05);
  padding: 30px; border-radius: 16px; transition: 0.3s; 
  transform-style: preserve-3d; perspective: 1000px;
}
.card:hover { background: #131316; border-color: var(--accent1); box-shadow: 0 10px 40px rgba(155, 75, 255, 0.1); }
.benefit h5 { font-size: 1.25rem; color: #fff; margin: 0 0 12px 0; display:flex; align-items:center; gap:12px; }
.benefit h5 i { color: var(--accent1); }
.benefit p { color: #aaa; font-size: 0.95rem; line-height: 1.6; margin: 0; }

/* Contacts */
.contact-flex {
    display: flex; align-items: center; justify-content: space-between;
    gap: 40px; padding: 40px;
    background: linear-gradient(145deg, #101012, #0a0a0c);
    border: 1px solid rgba(255,255,255,0.05); border-radius: 20px; transition: 0.3s;
}
.contact-flex:hover { border-color: rgba(155, 75, 255, 0.2); box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.contact-title { margin: 0 0 10px 0; font-size: 1.8rem; }
.contact-subtitle { color: #888; font-size: 1.1rem; }
.contact-actions { display: flex; gap: 20px; flex-shrink: 0; }

/* Footer */
.footer{ 
  border-top: 1px solid rgba(155, 75, 255, 0.15); 
  background: linear-gradient(180deg, #0a0a0c 0%, #000 100%);
  padding: 80px 0 30px; margin-top: 80px; 
  box-shadow: 0 -20px 60px rgba(0,0,0,0.5); 
}
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; max-width: 1000px; margin: 0 auto; align-items: start; }
.footer-brand-title { font-size: 1.8rem; font-weight: 800; color: #fff; margin-bottom: 12px; letter-spacing: -1px; }
.footer-brand-sub { color: #888; font-size: 0.95rem; line-height: 1.6; max-width: 320px; }
.footer-links { display: flex; flex-direction: column; gap: 14px; }
.footer-links a { color: #999; font-size: 1rem; font-weight: 500; transition: 0.2s; display: inline-flex; align-items: center; }
.footer-links a::before { content: "›"; color: var(--accent1); margin-right: 8px; opacity: 0; transition: 0.2s; transform: translateX(-5px); }
.footer-links a:hover { color: #fff; }
.footer-links a:hover::before { opacity: 1; transform: translateX(0); }
.footer-stats { display: flex; flex-direction: column; gap: 12px; }
.stat-pill { 
  background: rgba(255,255,255,0.04); padding: 10px 16px; border-radius: 10px; 
  font-size: 0.9rem; color: #bbb; border: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: space-between;
}
.stat-pill i { color: var(--accent1); }
.stat-pill span { color: #fff; font-weight: 700; }
.footer-bottom { 
  border-top: 1px solid rgba(255,255,255,0.05); padding-top: 25px; margin-top: 50px;
  display: flex; justify-content: space-between; color: #555; font-size: 0.85rem; 
  max-width: 1000px; margin-left: auto; margin-right: auto;
}

/* === MOBILE & RESPONSIVE (UPDATED HAMBURGER) === */
.navbar-toggler {
  display: none; 
  background: transparent; 
  border: 0; 
  width: 44px; 
  height: 44px; 
  align-items: center; 
  justify-content: center; 
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent; /* Убирает синий квадрат при клике */
}

/* Стили самого Гамбургера */
.hamburger {
  width: 24px;
  height: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Три полоски */
.hamburger .bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
  transform-origin: left center;
}

/* Анимация превращения в крестик */
.navbar-toggler[aria-expanded="true"] .hamburger .bar:nth-child(1) {
  transform: rotate(45deg);
  top: 0px;
}
.navbar-toggler[aria-expanded="true"] .hamburger .bar:nth-child(2) {
  width: 0%;
  opacity: 0;
}
.navbar-toggler[aria-expanded="true"] .hamburger .bar:nth-child(3) {
  transform: rotate(-45deg);
  top: 16px;
}

@media (max-width: 1024px) {
    .hero-bg { height: 100%; background-position: center top; }
    .hero { padding-top: 120px; text-align: center; min-height: auto; padding-bottom: 60px; }
    .hero-layout { flex-direction: column; gap: 40px; }
    .hero-left-wrap { max-width: 100%; align-items: center; padding: 25px 20px; }
    .hero-panel h1 { font-size: 2.2rem; line-height: 1.2; }
    .lead { font-size: 1rem; margin-bottom: 25px; }
    .btns { justify-content: center; width: 100%; flex-direction: column; gap: 12px; }
    .btns .btn-cta, .btns .btn-outline { width: 100%; max-width: 320px; margin: 0 auto; }
    .stats-row { justify-content: center; gap: 10px; margin-top: 25px; }
    .card.pill { padding: 8px 12px; font-size: 0.8rem; }
    .hero-right-wrap { justify-content: center; width: 100%; padding: 0 10px; }
    .visual-card { transform: none; max-width: 100%; margin-top: 10px; }
    
    .contact-flex { flex-direction: column; text-align: center; gap: 20px; padding: 30px 20px; }
    .contact-actions { width: 100%; flex-direction: column; }
    .contact-actions .btn-cta, .contact-actions .btn-outline { width: 100%; justify-content: center; }

    .navbar-toggler { display:flex; }
    .nav-right { display:none; }
    .footer-top { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 40px; }
    .footer-brand-sub { margin: 0 auto; }
    .footer-links { align-items: center; }
    .footer-bottom { flex-direction: column; align-items: center; gap: 15px; text-align: center; }
}
