footer {
  background: url(../../image/pattern.jpg) repeat;
}

footer,
footer a {
  font-size: 1.1rem;
  line-height: 1.7rem;
  color: #fff;
}

footer a {
  margin-bottom: 10px;
  -webkit-transition: color 0.5s ease;
  transition: color 0.5s ease;
}

footer .centered {
  max-width: fit-content
}

footer a.active,
footer a:hover {
  color: #fba678;
}

.footer__top {
  padding: 50px 0 30px 0;
  padding-left: 100px;
}

.top__box {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.footer__gotop {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 1.7rem;
  line-height: 1.7rem;
  -webkit-transform: rotate(-90deg);
  transform: rotate(-90deg);
  -webkit-transform-origin: 10px 112px;
  transform-origin: 10px 112px;
  cursor: pointer;
}

.footer__logo {
  display:none;
}

.footer__logo a:first-child {
    margin-right: 20px;
}

.footer__gotop span:last-child {
  content: '';
  display: inline-block;
  vertical-align: middle;
  width: 37px;
  height: 26px;
  background: url(../../image/sprite.svg) no-repeat -95px -29px;
  -webkit-transform: translateX(0) scale(0.7);
  transform: translateX(0) scale(0.7);
  -webkit-transition: -webkit-transform 0.5s ease;
  transition: -webkit-transform 0.5s ease;
  transition: transform 0.5s ease;
  transition: transform 0.5s ease, -webkit-transform 0.5s ease;
}

.footer__gotop:hover span:last-child {
  -webkit-transform: translateX(15px);
  transform: translateX(15px);
}

.bottom__box {
  margin-top: 20px;
}

.bottom__items {
  display: inline-block;
  vertical-align: top;
  margin-right: 50px;
}

.bottom__items.last {
  position: relative;
  z-index: 1;
  float: right;
  margin-right: 0;
  text-align: center;
  display: flex;
  flex-flow:row wrap;
  max-width: 460px;
  margin-top: -35px;
  justify-content: space-evenly;
}

.bottom__items a {
  display: block;
}

.bottom__items.last img {
  max-height:80px;
}

.bottom__items.last a {
  width: calc(33.3333% - 10px);
}

.footer__social a {
  display: inline-block;
  margin: 10px 5px 0 0;
  width: 30px;
  height: 30px;
  background: url(../../image/sprite.svg) no-repeat;
}

.footer__social .facebook {
  background-position: 1px -89px;
}

.footer__social .youtube {
  background-position: -30px -89px;
}

/* FOOTER BOTTOM */
.footer__bottom,
.footer__bottom a {
  font-size: 1.1rem;
  line-height: 3rem;
  color: #ac2c09;
}

.footer__bottom {
  position: relative;
  text-align: right;
}

.footer__bottom:before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: -100%;
  width: 1000%;
  border-top: 1px solid #ac2c09;
}

@media(max-width:1655px) {
  /*.bottom__items {
    margin-right: 130px;
  }*/
}

@media(max-width:1372px) {
  .bottom__items:not(.last) {
    margin-right: 15px;
  }
}

@media (max-width: 1200px) {
  .footer__bottom {
    clear: both;
  }

  .bottom__items:not(.last) {
    margin-right: 40px;
  }
 
  .bottom__items.last {
    padding-left: 20px;
    margin-top: 0;
    width: 100%;
    clear:both;
    max-width:100%;
    margin-right:40px;
  }
  
  .bottom__items.last a {
    margin: 10px;
    width:auto;
  }
}

@media (max-width: 992px) {
  .footer__top {
    padding: 50px 100px;
  }

  .bottom__box {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
  }

  .bottom__items:not(.last) {
    margin: 10px;
  }

  .bottom__items.last {
    float: left;
    margin-top: 0;
    padding-left: 0;
    display: flex;
    flex-basis: 100%;
    flex-flow: row wrap;
    justify-content: flex-start;
  }

  .bottom__items.last a {
    margin: 10px;
    display: inline-block;
  }

}

@media(max-width:767px) {
  footer .centered {
    max-width: 100%;
  }

  .footer__top {
    padding: 25px 0;
    padding-left: 0;
  }

  .footer__gotop {
    position: static;
    -webkit-transform-origin: 45% 20%;
    transform-origin: 45% 20%;
  }
  
  .footer__gotop {
    position: relative;
    margin: 0 auto;
  }

  .footer__gotop span:last-child {
    margin-left: 0;
  }

  .bottom__box, .bottom__items.last {
    flex-flow: column nowrap;
  }

  .bottom__items {
    display: block;
    margin: 0 auto;
    text-align: center;
  }

  .bottom__items:not(.last) {
    margin: 10px;
  }

  .bottom__items.last {
    width: 100%;
    float: none;
    padding-left: 0;
  }



}
