.footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 24px;
}

.purpose {
  display: flex;
  justify-content: space-between;
  gap: 96px;
  padding: 64px;
  border: 2px solid var(--dark-violet-color);
  border-radius: 24px;
  background-color: var(--dark-gray-color);
}

.purpose-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.purpose-title {
  font-family: var(--roboto-flex-font);
  font-size: 48px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--light-color);
}

.purpose-subtitle {
  font-family: var(--roboto-flex-font);
  font-size: 14px;
  font-weight: 400;
  color: var(--light-gray-color);
}

.purpose-btn-container {
  display: flex;
  align-items: center;

  background-color: var(--dark-violet-color);
  color: var(--dark-color);
  border-radius: 12px;
  padding: 18px 34px;
  gap: 16px;
  font-family: var(--roboto-mono-font);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 18px;

  img {
    width: 28px;
    height: 28px;
  }
}

.carousel {
  width: 100%;
  height: 80px;
  border-radius: 16px;
  padding: 18px;
  background-color: var(--dark-gray-color);
  position: relative;
  overflow: hidden;
}

.ticker {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker__lane {
  display: flex;
  gap: 48px;
  align-items: center;
  /* Start from right side for immediate visibility */
  animation: ticker-move 30s linear infinite;
  will-change: transform;
}

.carousel:hover .ticker__lane {
  animation-play-state: paused;
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;

  img{
    width: 8px;
    height: 8px;
  }
}

.ticker__item span {
  font-family: var(--roboto-flex-font);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--runnung-line-color);
  text-transform: uppercase;
  opacity: 0.95;
  transition: color 0.3s ease;
}

.ticker__item span:hover {
  color: var(--light-violet-color);
}

@keyframes ticker-move {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.footer-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  position: relative;
}

.footer-msg {
  display: flex;
  width: 100%;
  gap: 24px;
  justify-content: space-between;
}

.footer-info-item {
  display: flex;
  flex-direction: column;
  background-color: var(--dark-gray-color);
  border-radius: 24px;
  padding: 36px;
  justify-content: space-between;
  gap: 24px;
  width: 303px;
  height: 229px
}

.footer-info-item-icons {
  display: flex;
  align-items: center;
  justify-content: space-between;

  img {
    width: 56px;
    height: 56px;
  }
}

.footer-info-item-text {
  display: flex;
  flex-direction: column;
  gap: 12px;

  .footer-info-item-text-title {
    font-family: var(--roboto-flex-font);
    font-size: 26px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--light-color);
  }

  .footer-info-item-text-subtitle {
    font-family: var(--roboto-flex-font);
    font-size: 14px;
    font-weight: 400;
    color: var(--light-gray-color);

    a{
      text-decoration: none;
      color: var(--light-gray-color);
    }
  }
}

.footer-info-policy {
  width: 100%;
  height: 110px;
  background-color: var(--dark-gray-color);
  border-radius: 24px;
  padding: 40px;
  justify-content: space-between;
  align-items: center;
  display: flex;
  font-family: var(--roboto-mono-font);
  font-weight: 400;
  font-size: 20px;
  color: var(--light-gray-color);
}

.footer-newsletter {
  width: 450px;
  height: 229px;
  gap: 24px;
  border-radius: 24px;
  padding: 32px;
  display: flex;
  background-color: var(--dark-gray-color);
  flex-direction: column;
  justify-content: space-between;
}

.newsletter {
  display: flex;
  height: 62px;
  gap: 24px;
  border-radius: 10px;
  align-items: center;
  justify-content: space-between;
}

.newsletter-email {
  width: 280px;
  height: 62px;
  padding: 18px 12px;
  border-bottom: 1px solid var(--light-gray-color);

  img {
    width: 52px;
    height: 52px;
  }
}

input {
  font-family: var(--roboto-flex-font);
  font-weight: 400;
  font-size: 18px;
  color: var(--light-gray-color);
  background: none;
  border: none;
}

.footer-email-input:focus {
  background: none;
  outline: none;
  box-shadow: none;
}

.newsletter-text {
  display: flex;
  padding-right: 76px;
  gap: 12px;
  flex-direction: column;

  a {
    font-family: var(--roboto-flex-font);
    font-weight: 500;
    font-size: 30px;
    color: var(--light-color);
  }

  span{
    font-family: var(--roboto-flex-font);
    font-weight: 400;
    font-size: 18px;
    color: var(--light-gray-color);
  }
}

.footer-info-policy-mob{
  display: none;
}

@media screen and (max-width: 786px) {
  .footer {
    gap: 12px;
  }

  .purpose {
    border-radius: 16px;
    padding: 24px;
    gap: 24px;
    display: flex;
    flex-direction: column;
    font-weight: 500;
  }

  .purpose-title {
    font-size: 28px;
  }

  .purpose-description{
    font-size: 14px;
  }

  .purpose-info{
    gap: 24px;
  }

  .purpose-btn-container {
    border-radius: 12px;
    align-items: center;
    justify-content: center;
  }

  .carousel{
    height: 48px;
    border-radius: 8px;
    padding: 14px;
  }

  .ticker__item span {
    font-weight: 400;
    font-size: 14px;
  }

  .footer-info{
    gap: 12px;
  }

  .footer-msg{
    gap: 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-info-item{
    border-radius: 16px;
    border: 1px solid #333333;
    padding: 14px;
    height: 56px;
    width: auto;
    align-items: center;
    justify-content: center;
    background-color: var(--border-gray-color);
  }

  .icons-arrow{
    display: none;
  }

  .footer-info-item-text{
    display: none;
  }

  .footer-newsletter{
    grid-column: 1 / -1;
    width: 100%;
    border-radius: 16px;
    padding: 24px;
    gap: 24px;
    height: auto;
  }

  .newsletter-text{
    a{
      font-size: 20px;
    }
    span{
      font-size: 14px;
    }
  }

  .footer-info-policy{
    display: none;
  }

  .footer-info-policy-mob{
    width: 100%;
    display: flex;
    flex-direction: column;
    height: auto;
    background-color: var(--dark-gray-color);
    justify-content: space-between;
    align-items: center;
    font-family: var(--roboto-mono-font);
    font-weight: 400;
    font-size: 14px;
    color: var(--light-gray-color);
    gap: 12px;
    border-radius: 16px;
    padding: 24px;

    a:nth-child(2), a:nth-child(3), a:nth-child(4){
      border-top: 1px solid #262626;
      padding-top: 12px;
      width: 100%;
      text-align: center;
    }
  }
}