html,
body {
  height: 100%;
}
.wrapper {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
}
footer {
  background: rgba(60, 60, 59, 0.05);
  padding: 0;
  letter-spacing: 0.03em;
}

footer a {
	transition: all .2s ease-out;
}

.footer-copyright,
.footer-nav,
.footer-links {
  padding: 24px 0;
}

.footer-nav {
  border-bottom: 1px solid #D5D5D5;
  border-top: 1px solid #D5D5D5;
}

.footer-links {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.footer-links__main a {
  display: inline-block;
  height: 32px;
  line-height: 32px;
  font-size: 16px;
  padding-left: 26px;
  text-decoration: underline;
}

.footer-links__main a:hover {
  text-decoration: none;
}

.footer__cta-btn {
  height: 32px;
  line-height: 32px;
  letter-spacing: 0.04em;
  font-weight: 500;
  padding: 0 16px;
  width: 180px;
  font-size: 16px;
}

.footer__cta {
  display: none;
}

.footer-social-buttons {
  flex-basis: 256px;
  min-width: 256px;
  width: 100%; 
  display: flex;
  padding-left: 32px;
  justify-content: space-between;
}

.footer-social-buttons a,
.footer-social-buttons img {
  height: 32px;
  display: block;
}


/**/
.footer-nav {
  display: flex;
  justify-content: space-between;
}

.footer-nav__catalog {
  display: flex;
}

.catalog-links:first-child {
  margin-right: 64px;
}

.catalog-links:last-child {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.catalog-links__title {
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(60, 60, 59, 0.42);
  margin-bottom: 15px;
}

.catalog-links__item-container {
	margin-bottom: 12px;
}

.catalog-links__item {
  font-size: 16px;
  line-height: 22px;
  display: inline-block;
  /*margin-bottom: 12px; */
  color: #3c3c3b;
  text-decoration: underline;
}

.catalog-links__item:hover {
  text-decoration: none;
}

.catalog-links__item:last-child {
  margin-bottom: 0;
}

.footer-nav__contacts {
  text-align: right;
  flex-basis: 256px;
  min-width: 256px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer-nav__contacts-map-title {
  font-size: 17px;
  line-height: 25px;
  margin-bottom: 8px;
  color: #3c3c3b;
  display: block;
}

.footer-nav__contacts-map {
  width: 224px;
  height: 80px;
  margin-bottom: 24px;
  margin-left: auto;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.05);
  border-radius: 3px;
}

.footer-nav__contacts-phone a {
  font-size: 21px;
  line-height: 31px;
  color: #3c3c3b;
}

.footer-nav__contacts-phone .accent {
  font-size: 13px;
  line-height: 17px;
  color: rgba(60, 60, 59, 0.63);
}

.footer-nav__contacts-fo a {
  font-size: 16px;
  line-height: 22px;
  display: block;
  margin-bottom: 12px;
  text-decoration: underline;

}

.footer-nav__contacts-fo a:last-child {
  margin-bottom: 0;
}

.footer-nav__contacts-fo a:hover {
  text-decoration: none;
}

/*   */
.footer-copyright {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  line-height: 20px;
}

.footer-copyright__service {
  width: 296px;
  height: 56px;
  background: rgba(255, 255, 255, 0.63);
  border: 1px solid #F26422;
  border-radius: 3px;
  font-size: 14px;
  line-height: 19px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-copyright__service .accent {
  font-weight: 500;
  font-size: 18px;
  line-height: 22px;
  color: #F26422;
  display: block;
}

.footer-copyright__info {
  text-align: right;
  width: 354px;
}

/*  */
.footer-nav__contacts-map {
  position: relative;
}

.footer-nav__contacts-map #ymap-footer
{
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  border-radius: 3px;
}


@media (max-width: 991px) {
  .footer-links {
    flex-wrap: wrap;
    max-width: 536px;
    margin: 0 auto;
  }

  .footer-links__main {
    margin-bottom: 16px;
     -webkit-order: 1;
    -moz-order: 1;
    -ms-order: 1;
    -o-order: 1;
    order: 1;
    display: flex;
    justify-content: space-between;
    width: 536px;
  }

  .footer-links__main a:first-child {
    padding-left: 0;
  }

  .footer-social-buttons {
    -webkit-order: 3;
    -moz-order: 3;
    -ms-order: 3;
    -o-order: 3;
    order: 3;
  }


  .footer-cta__container {
    -webkit-order: 2;
    -moz-order: 2;
    -ms-order: 2;
    -o-order: 2;
    order: 2;
  }

  .footer-nav {
    flex-direction: column;

  }

  .footer-nav__contacts {
    flex-basis: auto;
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
  }

  .footer__cta-btn {
  	width: 190px;
  }
}

@media (max-width: 639px) {

  .footer-nav__catalog,
  .footer__cta-btn {
    display: none;
  }

  .footer__cta {
    display: block;
  }

  .footer-nav__contacts {
    margin-top: 0;
    flex-direction: column;
    max-width: calc(100% - 72px);
    min-width: 216px;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
  }

  .footer-nav__contacts-map-title {
    font-size: 16px;
    line-height: 22px;
  }

  .footer-nav__contacts > div,
  .footer-nav__contacts-map {
    width: 100%;
  }

  .footer-nav__contacts-phone a {
    font-size: 18px;
    line-height: 25px;
  }

  .footer-nav__contacts-phone .accent {
    font-size: 11px;
    line-height: 16px;
  }

  .footer-nav__contacts-fo {
    font-size: 15px;
    line-height: 19px;
    margin-top: 24px;
  }

  .footer-copyright {
    flex-direction: column;
    text-align: center;
  }

  .footer-copyright__contacts {
    margin-bottom: 16px;
    line-height: 22px;
  }

  .footer-copyright__info {
    text-align: center;
    width: 100%;
    font-size: 12px;
    line-height: 18px;
  }

  .footer-social-buttons {
    position: absolute;
    width: 40px;
    height: 282px;
    flex-basis: auto;
    min-width: 40px;
    padding-left: 0;
    flex-direction: column;
    bottom: -306px;
    right: 0;

  }

  .footer-social-buttons a,
  .footer-social-buttons img {
    height: 40px;
  }





  .footer-links {
    max-width: 100%;
    padding-top: 40px;
    padding-bottom: 14px;
    position: relative;
  }

  .footer-links__main {
    order: 2;
    margin-top: 14px;
    margin-bottom: 0;
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-around;

  }

  .footer-links__main a {
    font-size: 15px;
    padding: 0 10px;
  }

  .footer-links__main a:first-child {
    padding-left: 10px;
  }

  .footer-cta__container {
    order: 1;
    margin: 0 auto;
  }

  .footer__cta .form-inline--sk {
    flex-direction: row;
    max-width: 298px;
    width: 286px;
  }

  .footer__cta .form-inline--sk button {
    display: block;
    margin-top: 0;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.04em;
    color: #FFFFFF;
    background: #F26422;
    border-color: #F26422;
    border-radius: 3px;
    padding: 0 5px;
    width: 138px;
    height: 32px;
  }

  .footer__cta .form-inline--sk span.ff__underline {
    width: 152px;
    max-width: 152px;
    height: 32px;
    background: #F6F6F6;
    border: 1px solid #DEDEDE;
    border-radius: 3px;
  }

  .footer__cta .form-inline--sk span.ff__underline:after {
    display: none;
  }

  .footer__cta .form-inline--sk input[type=tel] {
    font-size: 13px;
    letter-spacing: 0.04em;
  }

  .footer__cta .form-inline--sk span.ff__underline input::-webkit-input-placeholder {
    color: rgba(60, 60, 59, 0.32);
    font-size: 13px;
    font-weight: 500;
  }

  .footer__cta .form-inline--sk span.ff__underline input::-moz-placeholder {
    color: rgba(60, 60, 59, 0.32);
    font-size: 13px;
    font-weight: 500;
  }

  .footer__cta .form-inline--sk span.ff__underline input:-ms-input-placeholder {
    color: rgba(60, 60, 59, 0.32);
    font-size: 13px;
    font-weight: 500;
  }

  .footer__cta .form-inline--sk span.ff__underline input:-moz-placeholder {
    color: rgba(60, 60, 59, 0.32);
    font-size: 13px;
    font-weight: 500;
  }

}

@media (max-width: 330px) {

  .footer-cta__container {
    margin-left: -5px;
    margin-right: -5px;
  }

}
