#footer {
  background-color: #2e2f42;
  padding: 96px 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 72px;
}

.footer-info {
  max-width: 288px;
  width: 100%;
  text-align: center;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-logo-color {
  color: #f4f4fd;
}
.footer-text {
  color: #f4f4fd;
  letter-spacing: 0.02em;
  text-align: left;
}

.footer-social-text {
  text-align: center;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 16px;
}

.footer-social-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  fill: white;
  background-color: #4d5ae5;
  transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social-icon {
  fill: #f4f4fd;
}

.footer-social-link:hover,
.footer-social-link:focus {
  background-color: #31d0aa;
}

.subscribe {
  width: 100%;
  text-align: center;
}

.subscribe-title {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 16px;
  text-align: center;
}

.subscribe-form {
  display: flex;
  gap: 16px;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.subscribe-label {
  width: 290px;
}

.subscribe-input {
  padding: 8px 16px;
  border: 1px solid #fff;
  border-radius: 4px;
  width: 100%;
  height: 40px;
  font-weight: 400;
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: #fff;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
  opacity: 0.6;
  background-color: transparent;
  transition: border 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.subscribe-input::placeholder {
  color: #fff;
}

.subscribe-input:hover,
.subscribe-input:focus {
  border: 1px solid #fff;
}

.subscribe-btn {
  min-width: 165px;
  text-align: center;
  color: #fff;
  display: flex;
  padding: 8px 24px;
  align-items: center;
  justify-content: space-between;
}

.subscribe-btn-icon {
  margin-left: 16px;
  fill: #fff;
}

@media screen and (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 72px 24px;
    max-width: 552px;
    margin: 0 auto;
  }

  .footer-info {
    text-align: left;
    max-width: 264px;
  }

  .footer-social-text {
    text-align: left;
  }

  .subscribe {
    width: auto;
  }

  .subscribe-title {
    text-align: left;
  }

  .subscribe-form {
    gap: 24px;
    flex-direction: row;
  }

  .subscribe-label {
    width: 264px;
  }
}

@media screen and (min-width: 1158px) {
  .footer {
    padding: 100px 0;
  }

  .footer-info {
    margin-right: 120px;
  }

  .footer-social {
    margin-right: 80px;
  }

  .footer-content {
    flex-wrap: nowrap;
    max-width: 1158px;
    gap: 0;
    margin: 0 auto;
  }
}
