.site-footer {
  background: #1c1e21;
  color: #b0b3b8;
  margin-top: 5rem;
}

.page-main {
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.footer-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 0.9fr;
  gap: 3rem;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1.25rem;
  line-height: 1.4;
}

.footer-text {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: #b0b3b8;
  margin: 0 0 1.5rem;
}

.footer-text strong {
  color: #fff;
  font-weight: 600;
}

.footer-text a {
  color: inherit;
  text-decoration: none;
}

.footer-text a:hover strong {
  color: var(--color-primary);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 2rem;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #3a3d44;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.footer-social-link:hover {
  border-color: var(--color-primary);
}

.footer-social-link i {
  font-size: 1.125rem;
  line-height: 1;
  display: block;
}

.footer-newsletter-title {
  font-size: 0.8125rem;
  color: #b0b3b8;
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.footer-newsletter {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
}

.footer-newsletter input {
  flex: 1;
  min-width: 0;
  padding: 0.625rem 0.875rem;
  background: #25282e;
  border: 1px solid #3a3d44;
  border-right: none;
  border-radius: 0.375rem 0 0 0.375rem;
  color: #fff;
  font-size: 0.8125rem;
  outline: none;
}

.footer-newsletter input::placeholder {
  color: #6b7280;
}

.footer-newsletter input:focus {
  border-color: #4b5563;
}

.footer-newsletter button {
  padding: 0.625rem 1.125rem;
  background: #25282e;
  border: 1px solid #3a3d44;
  border-radius: 0 0.375rem 0.375rem 0;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.footer-newsletter button:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.footer-products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 2rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.8125rem;
  color: #b0b3b8;
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.4;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #2d3038;
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.75rem;
  color: #8a8d93;
}

@media (max-width: 1023px) {
  .site-footer {
    margin-top: 3rem;
  }

  .page-main {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 2.5rem;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-col--contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .site-footer {
    margin-top: 2rem;
  }

  .page-main {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 2rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
    padding: 2.5rem 1rem 2rem;
    gap: 2rem;
  }

  .footer-products-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-products-grid .footer-links:first-child {
    margin-bottom: 0.5rem;
  }

  .footer-newsletter {
    flex-direction: column;
  }

  .footer-newsletter input {
    border-right: 1px solid #3a3d44;
    border-radius: 0.375rem;
  }

  .footer-newsletter button {
    border-radius: 0.375rem;
  }
}
