#galeria-main-ex {
  background: linear-gradient(to bottom, #f9f9f9, #f1fcfd, #e0f7fa);
  background-size: cover; 
  padding: 40px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); 
}

#galeria-main-ex h2 {
  color: #34495e;
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.sliders-container-main-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
  gap: 20px;
  justify-content: center;
  max-width: 1300px;
  margin: 0 auto; 
  animation: fadeInUp 1.2s ease; 
}

@keyframes fadeInUp {
  0% {
      opacity: 0;
      transform: translateY(20px);
  }
  100% {
      opacity: 1;
      transform: translateY(0);
  }
}

.ba-card {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff; 
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  padding: 10px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.ba-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.before-after-mask {
  position: relative;
  width: 100%;
  height: 400px;
  max-width: 600px; 
  overflow: hidden;
  border: 3px solid #414a4c; 
  cursor: pointer;
  animation: glowPulse 2s infinite;
  border-radius: 10px; 
  background: #f7f8fa; 
}

.before, .after {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease, clip-path 0.6s ease;
}

.before-after-mask:hover .before,
.before-after-mask:hover .after {
  transform: scale(1.05); 
}

.after {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.6s ease;
}

@keyframes glowPulse {
  0% {
      box-shadow: 0 0 0 rgba(30, 144, 255, 0);
      border-color: #333;
  }
  50% {
      box-shadow: 0 0 20px rgba(30, 144, 255, 0.8), 0 0 30px rgba(30, 144, 255, 0.4); 
      border-color: rgba(30, 144, 255, 0.9);
  }
  100% {
      box-shadow: 0 0 0 rgba(30, 144, 255, 0);
      border-color: #333;
  }
}

.more-button-container {
  text-align: center;
  margin-top: 30px;
}

.more-button {
  display: inline-block;
  padding: 12px 30px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-radius: 50px; 
  background: linear-gradient(45deg, #6a11cb, #2575fc); /* градиент */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.more-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%; 
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: skewX(-20deg); 
  transition: all 0.5s;
}

.more-button:hover::after {
  left: 100%;
}

.more-button:hover {
  transform: translateY(-4px) scale(1.1); 
  box-shadow: 0 8px 25px rgba(50, 50, 150, 0.4);
}

.more-button:active {
  transform: translateY(2px);
  box-shadow: 0 4px 8px rgba(50, 50, 150, 0.2);
}