.footer {
  padding: 80px 40px;
  background: #F6F6F6;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}
.footer-logo {
  order: 2;
}
.footer-logo img {
  max-height: 100px;
}
.footer-nav {
  order: 1;
  width: 100%;
  margin: 0 0 72px;
}
.footer-nav ul {
  display: flex;
}
.footer-nav li {
  margin: 0 40px 0 0;
}
.footer-nav li a {
  display: inline-block;
  position: relative;
  color: #333;
}
.footer-nav li a:hover {
  text-decoration: none;
}
.footer-copyright {
  order: 3;
  color: #333;
  font-size: 12px;
}

@media screen and (min-width: 768px) {
  .footer-nav li a:after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #333;
    transform: scale(0, 1);
    transform-origin: left top;
    transition: .3s;
  }
  .footer-nav li a:hover:after {
    transform: scale(1, 1);
  }
}

@media screen and (max-width: 767px) {
  .footer {
    padding: 40px 16px;
  }
  .footer-inner {
    flex-direction: column;
  }
  .footer-logo {
    margin: 0 0 32px;
    text-align: center;
  }
  .footer-nav {
    margin: 0 0 32px;
  }
  .footer-nav ul {
    display: block;
    text-align: center;
  }
  .footer-nav li {
    margin: 0 0 16px;
  }
  .footer-copyright {
    text-align: center;
  }
}
.footer .only-header {
  display: none;
}