.footer {
  background-color: var(--primary-color);
  margin-top: 80px;
}

.cta-section {
  border-top: 1px solid #262626;
  border-bottom: 1px solid #262626;
  padding: 60px 0px;
}

.cta-content {
  max-width: 1280px;
  padding: 0px 20px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cta-section h2 {
  color: white;
  font-size: 38px;
  font-weight: 600;
  line-height: 150%;
  margin: 0px;
  margin-bottom: 10px;
}

.cta-section p {
  color: #999999;
  font-size: 14px;
  font-weight: 500;
  line-height: 150%;
  margin: 0px;
}

.cta-button {
  display: inline-block;
  text-decoration: none;
  margin-top: 15px;
  padding: 14px 20px;
  background-color: var(--button-color);
  border: none;
  color: var(--primary-color);
  font-weight: 500;
  font-size: 14px;
  line-height: 150%;
  border-radius: 8px;
  cursor: pointer;
}

.footer-content {
  max-width: 1280px;
  padding: 80px 20px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.subscribe-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.form-msg {
  width: 100%;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.4;
}

.form-msg.error {
  color: #ef4444;
}

.form-msg.success {
  color: #22c55e;
}

.subscribe-form input {
  padding: 14px 50px;
  border-radius: 8px;
  border: 1px solid #262626;
  background-color: #141414;
  color: white;
}

.subscribe-form button {
  border: none;
  display: flex;
  align-items: center;
  margin-left: -54px;
  background-color: #141414;
  cursor: pointer;
  padding: 0px;
}

.subscribe-form .mail-icon {
  position: absolute;
  margin-left: 26px;
}

.footer-links {
  display: flex;
  gap: 90px;
  align-items: center;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  white-space: nowrap;
}

.footer-bottom {
  padding: 22px 20px;
  font-size: 14px;
  background-color: var(--background-color);
}

.footer-bottom-content {
  display: flex;
  max-width: 1280px;
  margin: 0 auto;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  display: flex;
  gap: 20px;
}

.footer-bottom p {
  color: white;
  margin: 0px;
  line-height: 24px;
}

.footer-bottom a {
  color: white;
  text-decoration: none;
  line-height: 24px;
}

.social-icons {
  display: flex;
  gap: 8px;
}

.social-icons span {
  cursor: pointer;
}

.footer-content-mobile {
  display: none;
}

@media (max-width: 1048px) {
  .footer {
    margin-top: 50px;
  }

  .cta-section {
    padding: 50px 0px;
  }

  .cta-content {
    flex-direction: column;
    text-align: left;
    gap: 20px;
    align-items: normal;
  }

  .cta-section h2 {
    font-size: 28px;
  }

  .cta-button {
    text-align: center;
  }

  .footer-content {
    display: none;
  }

  .footer-content-mobile {
    display: flex;
    flex-direction: column;
    padding: 50px 16px;
  }

  .logo-mobile {
    padding-bottom: 20px;
  }

  .subscribe-form-mobile {
    display: flex;
    align-items: center;
    padding-bottom: 50px;
    flex-wrap: wrap;
  }

  .subscribe-form-mobile .form-msg {
    width: 100%;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.4;
  }

  .subscribe-form-mobile .form-msg.error {
    color: #ef4444;
  }

  .subscribe-form-mobile .form-msg.success {
    color: #22c55e;
  }

  .subscribe-form-mobile input {
    width: 100%;
    padding: 14px 50px;
    border-radius: 8px;
    border: 1px solid #262626;
    background-color: #141414;
    color: white;
  }

  .subscribe-input {
    display: flex;
    width: 100%;
  }

  .subscribe-form-mobile button {
    border: none;
    display: flex;
    align-items: center;
    background-color: #141414;
    cursor: pointer;
    margin-left: -54px;
    padding: 0px;
  }

  .subscribe-form-mobile .mail-icon {
    position: absolute;
    margin-left: 26px;
  }

  .footer-links-mobile {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .footer-links-mobile a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #262626;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 20px;
  }

  .social-icons {
    order: 1;
  }

  .copyright {
    order: 2;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .copyright p {
    font-size: 14px;
    font-weight: 500;
  }

  .social-icons img {
    width: 60px;
    height: 60px;
  }
}
