/* TELEGRAM */
.telegram {
	padding: 15px;
}

.telegram__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  max-width: 1250px;
  margin: 0 auto;
  padding: 45px 90px;
}

.telegram__title {
  text-align: left !important;
}

.telegram__image {
  flex: 1 1 40%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  animation: rotatePhone 10s linear infinite;
  transform-style: preserve-3d;
}

.telegram__image img {
  max-width: 260px;
}

.telegram__content {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  color: #fff;
}

.telegram__text,
.telegram__subtext {
  font: 300 24px/150% var(--font-family);
  letter-spacing: 0.06em;
  color: #fff;
}

.telegram__subtext {
  color: #d0ff33;
  font-weight: 700;
}

.telegram__button {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: 312px;
  height: 79px;
  margin-top: 50px;
  gap: 6px;
  border: none;
  border-radius: 20px;
  background: var(--chinazes-color);
  color: var(--bg-darker);
  font: 700 30px var(--font-family);
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: 7px 7px 10px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.telegram__button:hover {
  background-color: rgba(190, 235, 40, 0.9);
}

/* Анімація обертання */
@keyframes rotatePhone {
  0%,
  100% {
    transform: rotateY(0deg) rotateX(0deg);
  }
  25% {
    transform: rotateY(-20deg) rotateX(10deg);
  }
  75% {
    transform: rotateY(20deg) rotateX(10deg);
  }
}

/* Адаптив */
@media (max-width: 768px) {
  .telegram__container {
    flex-direction: column;
    text-align: center;
    padding: 0;
  }

  .telegram__title {
    text-align: center !important;
  }

  .telegram__text,
  .telegram__subtext {
    font-size: 20px;
  }

  .telegram__button {
    align-self: center;
    margin-top: 10px;
  }
}
