.footer-page {
  padding-top: 130px;
  margin-top: -1px;
  color: rgba(255, 255, 255, 0.8);
  background-color: #0c0c0c;
}

.footer-main.container,
.footer-underline.container,
.footer-main .container,
.footer-underline .container {
  display: grid;
  justify-content: space-between;
  grid-template-columns: 1fr 273px 300px;
  grid-gap: 40px 152px;
}

.footer-main.container,
.footer-main .container {
  grid-auto-flow: column;
  grid-template-rows: auto auto;
}

.footer-page a {
  color: inherit;
  text-decoration: none;
}

.footer__block-title {
  color: #fff;
  margin-bottom: 16px;
  font-size: 20px;
  line-height: 1.15;
}

.footer__info {
  line-height: 1.65;
}

.footer__info a {
  display: inline-block;
}

.footer__nav-menu-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}
.footer__nav-menu-item {
}
.footer__nav-menu-link {
  line-height: 1.15;
}

.footer__contacts-item {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
}
.footer__contacts-messengers {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
.footer__contacts-messenger-link {
  display: inline-block;
  width: 30px;
  height: 30px;
  font-size: 0;
}

.footer__mailing .form-submit {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 44px;
  margin-top: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background-color: #9C2D2D;
  border: 0;
  border-radius: 8px;
}

.footer__mailing p {
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.2;
}


.footer-underline {
  padding-top: 60px;
  padding-bottom: 40px;
  margin-top: 85px;
  position: relative;
}

.footer-underline::before {
  content: '';
  display: inline-block;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
}

.footer__search {
  position: relative;
  display: flex;
  align-items: center;
}

.footer__search form {
  width: 100%;
  position: relative;
}

.footer-page .form-search {
  box-sizing: border-box;
  height: 54px;
  width: 100%;
  padding-right: 17px;
  padding-left: 17px;
  position: relative;
  z-index: 1;
  font-family: inherit;
  font-size: 14px;
  line-height: 32px;
  color: #fff;
  background-color: #27262B;
  border: 1px solid #3F3E43;
  border-radius: 16px;
  outline: none;
}

.footer-page .form-search::placeholder {
  font-family: inherit;
}

.footer__search .form-submit {
  display: inline-block;
  width: 60px;
  height: 54px;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  font-size: 0;
  background-color: transparent;
  background-image: url(../images/icons/search.svg);
  background-size: 20px;
  background-position: center center;
  background-repeat: no-repeat;
  border: 0;
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
  cursor: pointer;
}

.footer__be1st {
  display: flex;
  align-items: center;
}
.footer__be1st-text {
}
.footer__be1st-logo {
  margin-left: auto;
}

@media (max-width: 1365px) and (min-width: 992px) {
  .footer-main.container, 
  .footer-underline.container, 
  .footer-main .container, 
  .footer-underline .container {
    grid-template-columns: 360px 273px 300px;
    grid-gap: unset;
    justify-content: space-between;
  }

}

@media (max-width: 991px) {
  .footer-main.container, 
  .footer-underline.container, 
  .footer-main .container, 
  .footer-underline .container {
    display: flex;
    flex-direction: column;
    grid-gap: 30px 100px;
    width: 100%;
    max-width: 480px;
    margin-right: auto;
    margin-left: auto;
  }
}