#footer.site-footer {
  color: #f2f3f4;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.45;
}

#footer .site-footer__brand,
#footer .site-footer__nav,
#footer .site-footer__contacts,
#footer .site-footer__bottom,
#footer h2,
#footer p,
#footer address,
#footer a {
  font-family: inherit;
}

#footer .site-footer__main {
  background: #202a34;
  padding: 28px 0 20px;
}

#footer .site-footer__grid {
  display: grid;
  grid-template-columns: 1.18fr 1.03fr 1.1fr .85fr 1.08fr;
  column-gap: 48px;
  row-gap: 24px;
}

#footer .site-footer__logo {
  display: inline-block;
  margin-bottom: 39px;
}

#footer .site-footer__logo img {
  display: block;
  width: 214px;
  height: auto;
}

#footer .site-footer__tagline {
  margin: 0 0 22px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

#footer address {
  color: inherit;
  font-style: normal;
}

#footer .site-footer__requisites {
  line-height: 1.5;
}

#footer .site-footer__nav h2,
#footer .site-footer__contacts h2 {
  margin: 8px 0 27px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

#footer .site-footer__nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#footer .site-footer__nav-group {
  margin-top: 14px !important;
}

#footer .site-footer__nav a,
#footer .site-footer__contacts a,
#footer .site-footer__legal a {
  color: #f2f3f4;
  text-decoration: none;
  transition: color .2s ease;
}

#footer .site-footer__nav li {
  line-height: 1.45;
}

#footer .site-footer__nav a:hover,
#footer .site-footer__contacts a:hover,
#footer .site-footer__legal a:hover {
  color: #9aba12;
}

#footer .site-footer__all-link {
  display: inline-block;
  margin-top: 17px;
}

#footer .site-footer__contacts address {
  margin-bottom: 14px;
  line-height: 1.5;
}

#footer .site-footer__phones a {
  display: block;
  width: fit-content;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#footer .site-footer__email {
  display: inline-block;
  margin-top: 14px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#footer .site-footer__hours {
  margin: 26px 0 27px;
}

#footer .site-footer__callback {
  display: inline-flex;
  min-height: 32px;
  padding: 0 14px;
  align-items: center;
  justify-content: center;
  background: #7da500;
  border-radius: 2px;
  color: #fff !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
}

#footer .site-footer__callback:hover {
  background: #8db900;
}

#footer .site-footer__disclaimer {
  grid-column: 1 / -1;
  margin: 49px 0 0;
}

#footer .site-footer__bottom {
  background: #18212a;
}

#footer .site-footer__bottom-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 58px;
  min-height: 70px;
  align-items: center;
}

#footer .site-footer__bottom p {
  margin: 0;
}

#footer .site-footer__legal {
  display: flex;
  gap: 42px;
}

#footer .site-footer__legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

#footer .site-footer__social {
  display: flex;
  gap: 27px;
  align-items: center;
}

#footer .site-footer__social a {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #51657a;
  text-decoration: none;
}

#footer .site-footer__social img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  opacity: .75;
}

@media (max-width: 1199px) {
  #footer .site-footer__grid {
    grid-template-columns: 1.15fr 1fr 1fr 1fr;
    column-gap: 32px;
  }

  #footer .site-footer__brand {
    grid-row: span 2;
  }

  #footer .site-footer__contacts {
    grid-column: 2 / -1;
  }

  #footer .site-footer__bottom-inner {
    gap: 28px;
  }
}

@media (max-width: 767px) {
  #footer.site-footer {
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
  }

  #footer .site-footer__main {
    padding: 32px 0 27px;
  }

  #footer .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 28px;
  }

  #footer .site-footer__brand {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  #footer .site-footer__logo {
    margin-bottom: 25px;
  }

  #footer .site-footer__tagline {
    margin-bottom: 18px;
    font-size: 13px;
  }

  #footer .site-footer__nav h2,
  #footer .site-footer__contacts h2 {
    margin: 0 0 18px;
  }

  #footer .site-footer__contacts {
    grid-column: 1 / -1;
  }

  #footer .site-footer__hours {
    margin: 20px 0;
  }

  #footer .site-footer__callback {
    min-height: 44px;
    padding: 0 20px;
    font-size: 12px;
  }

  #footer .site-footer__disclaimer {
    grid-column: 1 / -1;
    margin: 8px 0 0;
    font-size: 12px;
  }

  #footer .site-footer__bottom-inner {
    display: flex;
    min-height: 0;
    padding-top: 24px;
    padding-bottom: 24px;
    flex-direction: column;
    gap: 17px;
    align-items: flex-start;
  }

  #footer .site-footer__legal {
    flex-direction: column;
    gap: 8px;
  }

  #footer .site-footer__social {
    gap: 20px;
  }
}

@media (max-width: 479px) {
  #footer .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  #footer .site-footer__brand,
  #footer .site-footer__contacts,
  #footer .site-footer__disclaimer {
    grid-column: auto;
  }

  #footer .site-footer__logo img {
    width: 200px;
  }
}
