/* ===== ABOUT ===== */
.section {
  position: relative;
  z-index: 1; /* ниже, чем hero */
  padding: 80px 0;
}

.about {
  width: min(1200px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr; /* слева карточка, справа текст */
  gap: 3rem;
  align-items: center;
}

/* стеклянный блок KPI */
.stats-glass {
  position: relative;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--stroke);
  border-radius: 28px;
  padding: 28px 34px;
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  box-shadow: 0 18px 60px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.05);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 36px;
  align-items: center;
  text-align: center;
}

.stat__num {
  font-weight: 800;
  font-size: clamp(28px, 4.4vw, 48px);
  line-height: 1;
  color: #fff;
}
.stat__label {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.35;
  color: #d9dde5;
  font-family: 'Manrope', sans-serif;
}

/* правая колонка — заголовок и текст */
.about__title {
  font-weight: 800;
  font-size: clamp(28px, 4.4vw, 64px);
  margin: 0 0 16px;
  font-family: 'Neuropol', sans-serif;
}

.about__lead {
  font-size: clamp(16px, 1.6vw, 22px);
  color: #cfd5de;
  max-width: 52ch;
  font-family: 'Manrope', sans-serif;
}


/* чтобы шар из hero мог нависать над этой секцией */
.section--about { margin-top: -40px; padding-top: 120px; }

/* ===== FLOATING BUBBLES (DECORATION) ===== */
.bubble {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  opacity: 0.85;
  animation: float 10s ease-in-out infinite;
}

/* конкретные позиции */
.bubble--right {
  top: -10%;
  right: 40%;
  width: clamp(200px, 22vw, 340px);
  animation-delay: 1.5s;
}

.bubble--left {
  bottom: -50%;
  left: -5%;
  width: clamp(220px, 24vw, 380px);
  animation-delay: 0.5s;
}

/* анимация "плавания" */
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

/* чтобы пузыри не перекрывали контент */
.section--about {
  position: relative;
  z-index: 1;
  overflow: visible;
}

/* чуть подвинем содержимое, чтобы не прилипало */
.about {
  position: relative;
  z-index: 2;
}


/* адаптив */
@media (max-width: 1000px) {
  .about { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .section--about { margin-top: 0; padding-top: 64px; }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat:nth-child(3) { grid-column: 1 / -1; }
}


/* ============================= */
/*   ABOUT — MOBILE EXPERIENCE   */
/* ============================= */

@media (max-width: 768px){

  .section{
    padding: 64px 0 12px;
  }

  .section--about{
    margin-top: 0;
    padding-top: 12px;
  }

  .about{
    grid-template-columns: 1fr;
    gap: 2.4rem;
    text-align: center;
  }

  


  .about_texxt{
    order: 1;
  }

  .stats-glass{
    order: 2;
  }

  /* ===== KPI GLASS ===== */
  .stats-glass{
    padding: 28px 22px;
    border-radius: 26px;
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow:
      0 22px 60px rgba(0,0,0,.45),
      inset 0 0 0 1px rgba(255,255,255,.08);
  }

  .stats{
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .stat{
    position: relative;
    padding: 16px 0;
  }

  .stat::after{
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 64%;
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,.18),
      transparent
    );
  }

  .stat:last-child::after{
    display: none;
  }

  .stat__num{
    font-size: clamp(64px, 10vw, 52px);
    letter-spacing: .01em;
    text-shadow: 0 0 24px rgba(124,58,237,.35);
  }

  .stat__label{
    font-size: 18px;
    opacity: .9;
  }

  /* ===== TEXT ===== */
  .about__title{
    font-size: clamp(34px, 6vw, 56px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: .01em;
    margin-bottom: 16px;
    color: #fff;
    text-shadow:
    0 0 30px rgba(124,58,237,.25),
    0 2px 0 rgba(0,0,0,.4);
  }

  .about__lead{
    font-size: 18px;
    line-height: 1.6;
    max-width: 100%;
    margin: 0 auto;
  }

  /* ===== BUBBLES ===== */
  .bubble--right{
    top: -14%;
    right: -30%;
    width: 260px;
    opacity: .45;
  }

  .bubble--left{
    bottom: -35%;
    left: -40%;
    width: 300px;
    opacity: .35;
  }
}


/* ============================= */
/*  MICRO MOTION (NO JS 😎)      */
/* ============================= */

@media (max-width: 768px){
  .stats-glass{
    animation: glass-in .7s ease-out both;
  }

  @keyframes glass-in{
    from{
      opacity: 0;
      transform: translateY(24px) scale(.98);
    }
    to{
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}
