.footer,
.footer::before {
  border-radius: 2rem 2rem 0 0;
}
.footer {
  padding: 2rem 0 1rem;
  color: #fff;
  background: #08302e;
  position: relative;
  z-index: 1;
}
.no-webp .footer::before {
  background: url(../img/gradient.png) center/cover no-repeat;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
  z-index: -1;
}
.footer__body {
  display: -ms-grid;
  display: grid;
  gap: 1rem;
  row-gap: 3rem;
}
.footer__menu {
  margin-top: 1.5rem;
}
.footer__contacts-block:not(:last-child),
.footer__menu-item:not(:last-child) {
  margin-bottom: 0.5rem;
}
.footer__menu-link {
  position: relative;
  font-size: 1rem;
  line-height: 130%;
  padding: 0.38rem 0 0.44rem;
}
.footer__menu-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  will-change: width;
  -webkit-transition: width 0.3s ease 0s;
  -o-transition: width 0.3s ease 0s;
  transition: width 0.3s ease 0s;
  background: currentColor;
}
.footer__address {
  margin-top: 3.13rem;
  font-size: 0.75rem;
  line-height: 140%;
}
.footer__contacts {
  margin-top: 1.5rem;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
}
.footer__contacts-link {
  font-size: 1.125rem;
  line-height: 150%;
  -webkit-transition: color 0.3s ease 0s;
  -o-transition: color 0.3s ease 0s;
  transition: color 0.3s ease 0s;
}
.footer__contacts-worktime {
  text-align: right;
  font-size: 0.75rem;
  line-height: 140%;
  opacity: 0.5;
}
.footer__email {
  margin-top: 1.5rem;
  display: inline-block;
  font-size: 0.875rem;
  line-height: 140%;
  -webkit-text-decoration-line: underline;
  text-decoration-line: underline;
}
.footer__location {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 140%;
  color: rgba(255, 255, 255, 0.5);
}
.footer__location::before {
  color: #fff;
  font-size: 1.25rem;
}
.footer__actions,
.footer__location {
  margin-top: 1.5rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 1rem;
}
.footer__reqs {
  margin-top: 5rem;
  line-height: 130%;
}
.no-webp .footer__form {
  background:
    url(../img/footer-form-bg.png) center/cover no-repeat,
    #1d1c22;
}
.footer__form {
  width: 100%;
  padding: 1.5rem;
  border-radius: 1rem;
  position: relative;
}
.footer__form::before {
  content: "";
  position: absolute;
  top: -1.5rem;
  right: 2.5rem;
  width: 2rem;
  height: 3rem;
  background: url(../img/footer-decor.svg) center/contain no-repeat;
}
.footer__form-body {
  position: relative;
  margin-top: 3.12rem;
}
.footer__form-body .form__input {
  background: 0 0;
}
.footer__form-btn {
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  right: 1rem;
  width: 1.5rem;
  height: 1.5rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
.footer__form-btn::before {
  font-size: 1.5rem;
  -webkit-transform: rotate(-90deg);
  -ms-transform: rotate(-90deg);
  transform: rotate(-90deg);
}
.footer__rate {
  margin-top: 2rem;
  max-width: 18.75rem;
  margin-left: auto;
}
.footer__rate img {
  width: 100%;
}
.footer__bottom {
  padding: 5%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 1rem;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  margin-top: 4rem;
}
.footer__copy,
.footer__privacy {
  font-size: 0.875rem;
}
@media (min-width: 575.98px) {
  .footer {
    padding: 4rem 0 2rem;
  }
  .footer__body {
    -ms-grid-columns: (1fr) [2];
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__side {
    -ms-grid-column-span: 2;
    grid-column: span 2;
  }
}
@media (min-width: 767.98px) {
  .footer__side {
    grid-column: auto;
  }
  .footer__form {
    border-radius: 1.5rem;
    padding: 2.5rem;
  }
}
@media (min-width: 991.98px) {
  .footer__menu {
    margin-top: 3.12rem;
  }
  .footer__menu-item:not(:last-child) {
    margin-bottom: 1rem;
  }
  .footer__form::before {
    width: 5rem;
    height: 8.75rem;
  }
  .footer__bottom {
    margin-top: 6.25rem;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
  }
}
@media (min-width: 1199.98px) {
  .footer {
    padding: 6.25rem 0 3.12rem;
  }
  .footer,
  .footer::before {
    border-radius: 3.125rem 3.125rem 0 0;
  }
  .footer__body {
    -ms-grid-columns: (1fr) [5];
    grid-template-columns: repeat(5, 1fr);
  }
  .footer__side {
    -ms-grid-column-span: 2;
    grid-column: span 2;
  }
  .footer__rate {
    margin-top: 7.38rem;
  }
}
@media (min-width: 1439.98px) {
  .footer__body {
    -ms-grid-columns: (1fr) [4];
    grid-template-columns: repeat(4, 1fr);
  }
  .footer__menu-item:not(:last-child) {
    margin-bottom: 1.8rem;
  }
  .footer__side {
    grid-column: auto;
  }
  .footer__form::before {
    width: 7.9375rem;
    height: 11rem;
  }
  .footer__form {
    min-width: 37.5rem;
  }
  .footer__privacy {
    margin-right: 15rem;
  }
}
@media (any-hover: hover) {
  .footer__menu-link:hover::before {
    width: 100%;
  }
  .footer__contacts-link:hover {
    color: #969696;
  }
  .footer__email:hover {
    text-decoration: none;
  }
  .footer__privacy:hover {
    text-decoration: underline;
  }
}
@media screen and (max-width: 420px) {
  .footer__actions {
    flex-wrap: wrap;
  }
}
.webp .footer::before {
  background: url(../img/gradient.webp) center/cover no-repeat;
}
.webp .footer__form {
  background:
    url(../img/footer-form-bg.webp) center/cover no-repeat,
    #1d1c22;
}
