footer {
  background: #1c1c1c;
  color: #fff;
  padding: 60px 0 0 0 !important;
}
footer .header__middle_logo {
  color: #fff;
}
.cards {
    display: grid;
}
.f_link_title {
  font-weight: 700;
  font-size: 18px;
  margin: 16px 0 8px 0;
}
.f_links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.f_link {
  color: #b8b8b8;
  font-size: 14px;
  transition: color 0.3s;
}
.f_link:hover {
  color: #fff;
}
.footer_after {
  background: #000;
  color: #fff;
  font-size: 13px;
  margin-top: 60px;
}
.footer_after .container {
  display: flex;
}
.footer_after_flex {
  display: flex;
}
.f_link_img {
  height: 20px;
}
.footer_socials {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
}
.footer_social {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.3s;
}
.footer_social svg {
  width: 20px;
  height: 20px;
  color: #fff;
  transition: color 0.3s;
}
.footer_social:hover svg {
  color: #747474;
}
.footer_sub {
  color: #b8b8b8;
  font-size: 15px;
  margin-top: 16px;
}
.footer-newsletter {
  display: flex;
  margin-top: 12px;
}
.footer-newsletter__input {
  background-color: #747474;
  height: 48px;
  padding-left: 16px;
  border: none;
  color: #fff;
  width: 100%;
}
.footer-newsletter__input::placeholder {
  color: #adadad;
}
.footer-newsletter__button {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #fff;
  border: 1px solid #fff;
  padding: 5px 16px;
  height: 48px;
  margin-left: -3px;
  cursor: pointer;
  transition: border 0.3s, background-color 0.3s;
}
.footer-newsletter__button:hover {
  background-color: #747474;
  border: 1px solid #747474;
}
.footer-newsletter__button svg {
  width: 10px;
  min-width: 10px;
  height: 10px;
}
.footer_social {
  width: 48px;
  height: 48px;
}
.span-2 {
    grid-column: span 2;
}
@media (min-width: 1025px) {
  .footer-newsletter {
    width: 92%;
  }
  .footer_after .container {
    align-items: center;
    justify-content: space-between;
    height: 60px;
  }
  .footer_after_flex {
    align-items: center;
    gap: 32px;
  }
  .footer_after .container {
    margin-top: 60px;
  }
  
.cards-footer {
    gap: 40px;
    grid-template-columns: repeat(5, 1fr);
}

.footer_after .product_inforest {
    display: flex;
    justify-content: space-between;
    height: 60px;
}
}
@media (max-width: 1024.9px) {
    
.footer_after .product_inforest {
    display: flex;
    flex-direction: column;
    gap: 8px;
    line-height: 1.2;
    padding-top: 16px;
    padding-bottom: 16px;
}
.cards-footer {
  display: block;
}
  footer .footer_after {
    display: flex;
    flex-direction: column;
  }
  .footer_after .container,
  .footer_after_flex {
    gap: 8px;
    flex-direction: column;
    align-items: flex-start;
  }
  .footer_after .container {
    margin: 24px 0;
  }
  body.product .footer_after .container {
    margin: 24px 0 60px 0;
  }
  .header__middle_logo {
    width: 80px;
    height: 32px;
  }
}