footer {
  background: #f2f4f6;
  color: #1f2f38;
  padding: 0 !important;
}

footer,
footer * {
  box-sizing: border-box;
}

footer .wrapper,
footer .copyright,
footer nav.mainmenu {
  display: none;
}

footer .footer_wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 38px 36px 30px;
  display: grid;
  grid-template-columns: minmax(330px, 380px) minmax(430px, 1fr) minmax(280px, 320px);
  gap: 28px 54px;
  align-items: start;
}

footer .footer_brand {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  gap: 16px;
}

footer .footer_logo {
  width: 270px;
  height: 82px;
  display: block;
  margin: 0 !important;
  background: url("/wp-content/themes/gourmand/img/logo.svg") left center / contain no-repeat;
}

footer .footer_requisites {
  max-width: 320px;
  padding: 18px 20px;
  border: 1px solid #c9e5f4;
  border-radius: 6px;
  background: #f7fbfe;
}

footer .footer_requisites_title {
  margin: 0 0 12px;
  color: #005b98;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 800;
}

footer .footer_requisites_list {
  display: grid;
  gap: 8px;
  color: #314655;
  font-size: 13px;
  line-height: 1.35;
}

footer .footer_requisites_item span {
  font-weight: 800;
}

footer .footer_menu {
  grid-column: 2;
  grid-row: 1;
  width: 100% !important;
  max-width: 100% !important;
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px 34px;
  align-items: start;
}

footer .footer_menu_column {
  display: grid;
  gap: 11px;
  justify-items: start;
  text-align: left;
}

footer .footer_menu a {
  color: #005b98;
  font-size: 15px;
  line-height: 1.35;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

footer .footer_menu a:hover {
  color: #0086c7;
}

footer .footer_info {
  display: contents;
}

footer .footer_info > * {
  min-width: 0;
}

footer .footer_info {
  min-width: 0;
  width: 100% !important;
  max-width: 100% !important;
  color: #314655;
  font-size: 15px;
  line-height: 1.35;
}

footer .footer_info .header_info_item {
  min-height: 0;
  padding-left: 0;
  margin: 0;
  width: auto !important;
  max-width: 100%;
  color: inherit;
  text-align: left;
}

footer .footer_info .header_info_item:before {
  display: none;
}

footer .footer_info .info_contacts {
  grid-column: 1;
  grid-row: 2;
  align-self: center;
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

footer .footer_info .info_address {
  white-space: nowrap;
}

footer .footer_info .info_address br {
  display: none;
}

footer .footer_info .info_email {
  white-space: nowrap;
}

footer .footer_info .phone_call_wrapper {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

footer .footer_info .info_email a,
footer .footer_info .item_link {
  color: #0086c7;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer .phone_call_wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 32px;
  margin: 0;
  width: max-content;
  max-width: 100%;
  text-align: left;
}

footer .phone_call_wrapper:before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 23px;
  height: 23px;
  background: url("/wp-content/themes/gourmand/img/phone_blue.svg") center / contain no-repeat;
}

footer .phone_call_wrapper a {
  color: #1f2f38;
  font-size: 22px;
  line-height: 1.18;
  font-weight: 500;
  text-decoration: none;
}

footer .call_request {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: end;
  width: min(280px, 100%);
  max-width: 100%;
  min-height: 42px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #cc2d29;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
}

footer .stlt_copyright {
  position: static !important;
  background: url("/wp-content/themes/gourmand/img/st_lt.png") left center / 38px auto no-repeat !important;
  grid-column: 3;
  grid-row: 2;
  justify-self: end;
  align-self: center;
  margin: 0;
  padding: 12px 0 0 50px;
  color: #5f6f78;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
}

footer .stlt_copyright:before {
  display: none !important;
}

footer .stlt_copyright a {
  color: #cc2d29;
  text-decoration: underline;
}

@media (max-width: 1240px) {
  footer .footer_wrapper {
    grid-template-columns: minmax(280px, 320px) minmax(350px, 1fr) minmax(230px, 280px);
    gap: 22px 20px;
  }

  footer .footer_menu {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 12px 20px;
  }

  footer .phone_call_wrapper a {
    font-size: 20px;
  }

  footer .call_request {
    width: min(240px, 100%);
  }

  footer .stlt_copyright {
    grid-column: 3;
    justify-self: end;
  }
}

@media (max-width: 980px) {
  footer .footer_wrapper {
    padding: 24px 22px 32px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  footer .footer_menu,
  footer .footer_info,
  footer .stlt_copyright {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-self: start;
  }

  footer .footer_info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, max-content);
    gap: 8px 24px;
    width: 100%;
  }

  footer .call_request {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    width: min(250px, 100%);
  }

  footer .footer_logo {
    width: 220px;
    height: 68px;
    margin: 0 !important;
  }

  footer .footer_menu {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  footer .footer_menu a {
    white-space: normal;
  }

  footer .footer_requisites {
    max-width: none;
  }

  footer .footer_brand {
    gap: 12px;
  }
}

@media (max-width: 640px) {
  footer .footer_wrapper {
    padding: 22px 18px 32px;
    gap: 18px;
  }

  footer .footer_brand {
    gap: 12px;
  }

  footer .footer_info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    height: auto;
    min-height: 0;
  }

  footer .footer_info .info_contacts {
    width: 100%;
    gap: 6px;
    text-align: left !important;
  }

  footer .footer_info .info_address {
    white-space: normal;
    text-align: left !important;
  }

  footer .footer_info .info_email {
    white-space: normal;
    text-align: left !important;
  }

  footer .footer_info .phone_call_wrapper {
    width: max-content;
    margin-top: 0;
    padding-left: 34px;
  }

  footer .footer_info .phone_call_wrapper:before {
    top: 5px;
  }

  footer .footer_info .info_address br {
    display: block;
  }

  footer .footer_info .info_contacts,
  footer .footer_info .phone_call_wrapper,
  footer .call_request {
    justify-self: start;
  }

  footer .call_request {
    width: min(280px, 100%);
    margin-top: 0;
  }

  footer .stlt_copyright {
    margin-top: 20px;
  }
}
