/* Mouse */
.jumping-mouse {
  width: 35px;
  height: 64px;
  background-image: url('https://prom-oborydovanie.ru/wp-content/uploads/mouse.png');
  background-size: cover;
  position: absolute;
  left: 50%;
  top: 5px;
  transform: translateX(-50%);
  animation: jump 1s infinite;
}

@media (max-width: 768px) {
  .jumping-mouse {
    left: 50%;
    transform: translateX(-50%);
  }
}

@keyframes jump {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-20px);
  }
}

/* About */

.split-block {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 4rem 2rem;
  background-color: #000;
  color: #fff;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
}

.left-side {
  flex: 1;
  padding-right: 4rem;
}

.left-side h2 {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.left-side p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.right-side {
  flex: 1;
  display: flex;
  justify-content: space-between;
}

.square-group {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.square-group.offset {
  margin-top: 4rem;
}

.square {
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.square:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.4);
}

.square img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

/*h1*/ 
.title {
  font-size: 2.5em;
  color: #000000; /* Основной цвет для старых браузеров */
  font-weight: bold;
  text-align: center;
  background: linear-gradient(-55deg, #000000 0%, #000000 40%, #6587b9 55%, #4e94fb 55%, #000000 60%, #000000 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent; /* Добавь это */
  animation: sweep 4s infinite linear;
}

/* Для старых iOS или если webkit не поддерживается */
@supports not (-webkit-background-clip: text) {
  .title {
    color: #4e94fb; /* Запасной цвет текста */
    background: none;
  }
}

@keyframes sweep {
  0% { background-position: 100% 0; }
  50% { background-position: 0 0; } /* Плавный переход через середину */
  100% { background-position: -100% 0; }
}

/*h1 title*/ 
.uc-title {
  font-size: 2.5em;
  color: #000000; /* Основной цвет для старых браузеров */
  font-weight: bold;
  text-align: center;
  background: linear-gradient(-55deg, #000000 0%, #000000 40%, #6587b9 55%, #4e94fb 55%, #000000 60%, #000000 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent; /* Добавь это */
  animation: sweep 4s infinite linear;
}

/* Для старых iOS или если webkit не поддерживается */
@supports not (-webkit-background-clip: text) {
  .title {
    color: #4e94fb; /* Запасной цвет текста */
    background: none;
  }
}

@keyframes sweep {
  0% { background-position: 100% 0; }
  50% { background-position: 0 0; } /* Плавный переход через середину */
  100% { background-position: -100% 0; }
}
