/* Изолированный CSS для About Modal - Вариант 2 с размерами из Варианта 1 */
.rosa-about-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
              visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  perspective: 1000px;
  overflow: hidden; /* Предотвращаем скролл фона */
}

.rosa-about-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.rosa-about-modal-container {
  box-sizing: border-box; /* Исправляем расчет размеров */
  background: linear-gradient(135deg, 
              rgba(25, 25, 35, 0.95) 0%, 
              rgba(10, 10, 15, 0.98) 100%);
  backdrop-filter: blur(15px);
  border-radius: 12px;
  padding: 1.8rem;
  width: 85%;
  max-width: 600px;
  max-height: 90vh;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 
              0 0 0 1px rgba(99, 102, 241, 0.2),
              0 0 40px rgba(168, 85, 247, 0.15);
  transform: translateY(50px) rotateX(10deg) scale(0.95);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              box-shadow 1.2s ease;
  transform-style: preserve-3d;
  z-index: 2;
  
  /* Скрываем скроллбар с сохранением функционала */
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.rosa-about-modal-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Opera */
}

.rosa-about-modal-overlay.active .rosa-about-modal-container {
  transform: translateY(0) rotateX(0) scale(1);
  opacity: 1;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 
              0 0 0 1px rgba(99, 102, 241, 0.3),
              0 0 60px rgba(168, 85, 247, 0.25);
}

.rosa-about-modal-content {
  color: #e2e8f0;
  line-height: 1.6;
  font-size: 1rem;
  position: relative;
  z-index: 2;
}

.rosa-about-modal-content p {
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  position: relative;
}

.rosa-about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  position: relative;
  z-index: 2;
}

.rosa-about-feature {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 1.2rem;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  perspective: 500px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transform: translateY(20px);
  opacity: 0;
  transform-style: preserve-3d;
  box-sizing: border-box;
}

.rosa-about-feature.rosa-card-anim {
  animation: rosa-card-appear 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.rosa-about-feature:nth-child(1) { animation-delay: 0.2s; }
.rosa-about-feature:nth-child(2) { animation-delay: 0.3s; }
.rosa-about-feature:nth-child(3) { animation-delay: 0.4s; }
.rosa-about-feature:nth-child(4) { animation-delay: 0.5s; }

.rosa-about-feature:hover {
  transform: translateY(-8px) translateZ(10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(255, 255, 255, 0.07),
              0 0 25px rgba(168, 85, 247, 0.2);
}

.rosa-about-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  display: inline-block;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.5s ease;
  transform: translateZ(20px);
}

.rosa-about-feature:hover .rosa-about-icon {
  transform: scale(1.1) rotate(5deg) translateZ(30px);
  filter: drop-shadow(0 5px 10px rgba(168, 85, 247, 0.3));
}

.rosa-about-feature h3 {
  color: #f8fafc;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  position: relative;
  padding-bottom: 0.4rem;
  font-family: 'Poppins', sans-serif;
  transform: translateZ(20px);
}

.rosa-about-feature h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  transition: width 0.4s ease;
}

.rosa-about-feature:hover h3::after {
  width: 40px;
}

.rosa-about-feature p {
  color: #cbd5e1;
  font-size: 0.85rem;
  margin-bottom: 0;
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  transform: translateZ(20px);
}

.rosa-about-modal-footer {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  position: relative;
  z-index: 2;
}

.rosa-about-social {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  position: relative;
  z-index: 2;
}

.rosa-hologram-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
  font-size: 1rem;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
  transform: translateZ(20px);
}

.rosa-hologram-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
              rgba(99, 102, 241, 0.3) 0%, 
              rgba(168, 85, 247, 0.3) 50%, 
              rgba(236, 72, 153, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.rosa-hologram-icon:hover {
  transform: translateY(-4px) scale(1.1) translateZ(30px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.rosa-hologram-icon:hover::before {
  opacity: 1;
}

.rosa-hologram-icon i {
  position: relative;
  z-index: 1;
}

/* Анимации */
@keyframes rosa-card-appear {
  from {
    opacity: 0;
    transform: translateY(20px) rotateX(15deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

.rosa-fade-in {
  animation: rosa-fade-in 0.8s ease-out 0.1s forwards;
  opacity: 0;
  transform: translateY(10px);
}

@keyframes rosa-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Эффект при наведении на карточки */
.rosa-hover-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    600px circle at var(--mouse-x) var(--mouse-y), 
    rgba(99, 102, 241, 0.1),
    transparent 40%
  );
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  pointer-events: none;
}

.rosa-about-feature:hover .rosa-hover-effect {
  opacity: 1;
}

/* Анимация пульсации для иконок */
.rosa-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.3);
  opacity: 0;
  z-index: -1;
  animation: rosa-pulse 2s infinite;
}

.rosa-pulse:nth-child(1) { animation-delay: 0s; }
.rosa-pulse:nth-child(2) { animation-delay: 1s; }

@keyframes rosa-pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.5);
    opacity: 0;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Анимация частиц - исправлено позиционирование */
.rosa-particle {
  position: fixed; /* Изменено на fixed */
  background: rgba(168, 85, 247, 0.15);
  border-radius: 50%;
  animation: rosa-particle-float 20s infinite linear;
  z-index: 1;
}

.rosa-particle:nth-child(1) {
  top: 10%;
  left: 15%;
  width: 6px;
  height: 6px;
  animation-duration: 25s;
  animation-delay: 0s;
}
.rosa-particle:nth-child(2) {
  top: 70%;
  left: 80%;
  width: 4px;
  height: 4px;
  animation-duration: 30s;
  animation-delay: 5s;
}
.rosa-particle:nth-child(3) {
  top: 40%;
  left: 50%;
  width: 5px;
  height: 5px;
  animation-duration: 35s;
  animation-delay: 10s;
}
.rosa-particle:nth-child(4) {
  top: 20%;
  left: 90%;
  width: 3px;
  height: 3px;
  animation-duration: 40s;
  animation-delay: 15s;
}
.rosa-particle:nth-child(5) {
  top: 85%;
  left: 10%;
  width: 4px;
  height: 4px;
  animation-duration: 45s;
  animation-delay: 20s;
}

@keyframes rosa-particle-float {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-50px, 30px);
  }
  50% {
    transform: translate(20px, -40px);
  }
  75% {
    transform: translate(40px, 50px);
  }
  100% {
    transform: translate(0, 0);
  }
}

/* Адаптивность */
@media (max-width: 768px) {
  .rosa-about-modal-container {
    padding: 1.2rem;
    width: 90%;
  }
  
  .rosa-about-features {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  .rosa-about-feature {
    padding: 1rem;
  }
  
  .rosa-about-social {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .rosa-about-modal-container {
    padding: 1rem;
    width: 95%;
  }
  
  .rosa-about-modal-content p {
    font-size: 0.9rem;
  }
  
  .rosa-about-feature {
    padding: 0.8rem;
  }
  
  .rosa-about-icon {
    font-size: 1.8rem;
  }
  
  .rosa-about-feature h3 {
    font-size: 1rem;
  }
  
  .rosa-about-feature p {
    font-size: 0.8rem;
  }
  
  .rosa-hologram-icon {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }
}