/* =====================================================
   AI SECTION — ЧИСТАЯ КРАСИВАЯ ВЕРСИЯ
===================================================== */

.ai-section .container {
  max-width: 1300px;
}

/* Layout */
.ai-layout {
  display: grid;
  grid-template-columns: 360px 1fr; /* узкие плитки + широкое видео */
  gap: 80px;
  align-items: center;
}

/* =====================================================
   ПЛИТКИ
===================================================== */

.ai-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Компактные карточки */
.ai-card {
  padding: 16px 18px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
  transition: all 0.25s ease;
}

.ai-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
}



.ai-card:hover {
  transform: translateY(-4px);
}

/* =====================================================
   ВИДЕО
===================================================== */

.hero-video {
  width: 100%;
}

.hero-video video {
  width: 100%;
  aspect-ratio: 16 / 9; /* всегда красиво */
  object-fit: cover;
  border-radius: 28px;
  transition: transform 0.4s ease;
}

.hero-video:hover video {
  transform: scale(1.02);
}

/* =====================================================
   POPUP
===================================================== */

.video-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 30px;
}

.video-popup.active {
  display: flex;
}

.video-popup-content {
  width: 100%;
  max-width: 1100px;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
}

.video-popup video {
  width: 100%;
  height: auto;
  display: block;
}

.video-popup-close {
  position: absolute;
  top: 18px;
  right: 26px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1100px) {

  .ai-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

  .ai-card {
    padding: 14px;
  }

  .hero-video video {
    border-radius: 20px;
  }

}

  p {
    font-size: 18px; /* было примерно 16–17px */
  }



  /* =========================================
   MOBILE NAV (НЕ ТРОГАЕТ DESKTOP)
========================================= */

@media (max-width: 768px) {

  /* скрываем обычное меню */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #080810;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transition: 0.4s ease;
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 18px;
  }

  /* кнопка вниз */
  .nav-cta {
   

    z-index: 1000;
  }
  nav {
    position: fixed;
    z-index: 1000;
  }
  .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  
  .hero-grid {
    z-index: 1;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
  }
  
  nav {
    position: fixed;
    z-index: 1000;
  }

  /* БУРГЕР */
  nav::after {
    content: '';
  }

  .burger-btn {
    position: fixed;
    top: 22px;
    right: 20px;
    width: 26px;
    height: 18px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .burger-btn span {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
  }

  /* анимация */
  .burger-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .burger-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .burger-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .burger-btn {
    display: flex !important;
  }
}
.burger-btn {
  display: none;
}
@media (max-width: 768px) {

  nav {
    position: relative; /* как ты просил */
    width: 100%;
    left: 0;
    right: 0;
    padding: 0 16px;
    box-sizing: border-box;
  }

}
/* =========================================
   HERO CONTENT MOBILE (FORCE)
========================================= */

@media (max-width: 768px) {

  .hero-content {
    max-width: 100% !important;
  }

  /* BADGE */
  .hero-badge {
    font-size: 10px !important;
    padding: 5px 12px !important;
    margin-bottom: 16px !important;
  }

  /* TITLE */
  .hero h1 {
    font-size: 32px !important;
    line-height: 1.05 !important;
    letter-spacing: 1px !important;
  }

  .hero h1 span {
    display: block !important;
  }

  .hero h1 .line2 {
    -webkit-text-stroke: 1px rgba(255,255,255,0.25) !important;
  }

  /* SUBTEXT */
  .hero-sub {
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin: 16px 0 24px !important;
  }

  /* BUTTONS */
  .hero-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .btn-primary,
  .btn-ghost {
    width: 100% !important;
    padding: 14px !important;
    font-size: 14px !important;
    text-align: center !important;
  }

}
.mobile-app {
  display:grid;grid-template-columns:1fr 1fr;
}
@media (max-width: 640px) {
  .mobile-app {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
}


.telegram-app {
  display:grid;grid-template-columns:1fr 1fr;
}
@media (max-width: 640px) {
  .telegram-app {
    display: flex;
    flex-direction: column-reverse;
    gap: 20px;
  }
  .section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(35px, 5vw, 72px);
    line-height: 1;
    letter-spacing: 1px;
    margin-bottom: 24px;
}
.ai-card h3 {
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 6px;
  color: #fff;
}
.ai-card p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
}
.uniq-vs {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-direction: column;
}
.vs-arrow {
  font-size: 28px;
  color: var(--purple-light);
  flex-shrink: 0;
  padding-top: 24px;
  transform: rotate(90deg);
  margin: 0 auto;
}
.uniq-wrap {
  display: flex;
  gap: 80px;
  align-items: start;
}
}@media (max-width: 640px) {
  .uniq-wrap {
    display: flex !important;
    flex-direction: column; /* КЛЮЧЕВОЕ */
    gap: 20px;
  }
  .veh-layout {
    display: block !important;
    
    /* gap: 48px; */
    align-items: start;
    background: var(--dark2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 48px;
    max-width: 100%;
}
.veh-title {
 
  font-size: 30px !important;
  margin-top: 20px;
  margin-bottom: 28px;

}
.nav {
  position: relative;
}
}

@media (max-width: 768px) {

  .hero-stats {
    position: static !important; /* убираем absolute/relative */
    transform: none !important;
    right: auto !important;
    top: auto !important;

    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;

    gap: 10px !important;
    margin-top: 24px !important;
  }

  .stat-card {
    flex: 1;
    padding: 16px 10px !important;
    text-align: center;
  }

  .stat-num {
    font-size: 28px !important;
  }

  .stat-label {
    font-size: 10px !important;
    line-height: 1.3 !important;
  }

}
@media (max-width: 480px) {
  .hero-stats {
    flex-direction: row !important;
  }
}
@media (max-width: 768px) {
 .hero {
  padding: 120px 20px 60px;
  min-height: 0vh;
  display: flex;
  flex-direction: column;
 }
  }