.grid_3 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.socials a {
  text-decoration: none;
}
.site-footer {
  background-color: #276df3;
  padding: 0 50px;
}
.footer_bottom {
  background-color: #fff;
}

.footer_top,
.footer_middle {
  max-width: 1640px;
  margin: 0 auto;
}
.footer_top {
  padding-top: 50px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}
.footer_contacts a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 26px;
}
.footer_contacts a:hover,
#menu-footer-menu a:hover {
  text-decoration: underline;
}
footer .socials a {
  transition: all 0.3s;
}
footer .socials a:hover {
  transform: scale(1.2);
}
footer .socials svg {
  max-width: 20px;
  max-height: 20px;
}
.footer_contacts,
.footer_logo,
.socials {
  align-self: center;
}
.footer_logo {
  grid-column: 1 / span 2;
}
.footer_contacts {
  grid-column: 8 / span 4;
}
.socials {
  grid-column: 12 / span 1;
  display: flex;
  gap: 15px;
  align-items: center;
}
.footer_middle {
  padding-top: 60px;
  padding-bottom: 60px;
}
.fm_adress,
.footer_middle_menu,
.footer_middle_text {
  color: #fff;
  font-family: "Nunito Sans";
  font-weight: 300;
}
.footer_middle_text {
  grid-column: 1 / span 4;
}
.footer_middle_menu {
  grid-column: 8 / span 3;
}
.fm_adress {
  grid-column: 11 / span 2;
}
.fm_menu .menu {
  margin: 0;
  padding: 0;
  list-style: none;
}
.fm_menu .menu a {
  text-decoration: none;
  color: #fff;
  font-family: "Nunito Sans";
  font-weight: 300;
  font-size: 16px;
}
.fm_adress_text {
  font-size: 16px;
}
.footer_middle_text,
.fm_title,
.fm_adress_title {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.4;
}
.fm_title,
.fm_adress_title {
  margin-bottom: 21px;
}

.footer_middle_text {
  max-width: 215px;
}
.footer_bottom {
  padding: 0 50px;
}
.footer_bottom_inner {
  padding-top: 30px;
  padding-bottom: 30px;
  align-items: center;
  max-width: 1640px;
  margin: 0 auto;
}

.privacy {
  grid-column: 8 / span 2;
  color: #919191 !important;
  font-family: "Nunito Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  min-width: 210px;
}
.privacy a {
  color: inherit;
}
.copyright {
  grid-column: 1 / span 4;
  color: #919191;
  font-family: "Nunito Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  min-width: 332px;
}
.estet {
  grid-column: 10 / span 3;
  justify-self: end;
  color: #919191 !important;
  font-family: "Nunito Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px; /* 125% */
  letter-spacing: -0.16px;
  text-transform: uppercase;
  min-width: 268px;
}
.estet a {
  color: inherit;
  text-decoration: none;
}
.estet a:hover {
  text-decoration: underline;
}

@media screen and (max-width: 1000px) {
  .footer_bottom_inner.grid_3 {
    grid-template-rows: auto;
  }
  .privacy {
    grid-row: 1;
    grid-column: 1 / span 2;
  }
}

@media screen and (max-width: 880px) {
  .footer_contacts {
    grid-column: 5 / span 5;
  }
  .footer_middle_menu {
    grid-column: 5 / span 4;
  }
  .socials {
    grid-column: 11 / span 3;
    justify-self: end;
  }
  .fm_adress {
    grid-column: 9 / span 4;
  }
  .footer_bottom_inner.grid_3 {
    grid-template-columns: 1fr 1fr;
  }
  .copyright {
    grid-column: 1;
  }
  .estet {
    grid-column: 2;
  }
}

@media screen and (max-width: 768px) {
  .grid_3 {
    grid-template-columns: repeat(1, 1fr);
    gap: 35px;
  }
  .socials,
  .footer_contacts,
  .footer_logo {
    grid-column: auto;
    justify-self: center;
  }
  .footer_middle.grid_3 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .fm_adress,
  .footer_middle_menu,
  .footer_middle_text {
    grid-column: auto;
  }
  .footer_middle_text {
    grid-column: 1 / span 2;
    grid-row: 1;
    max-width: 100%;
  }
  .fm_adress {
    grid-column: 2;
    grid-row: 2;
    max-width: 134px;
  }
  .footer_middle_menu {
    grid-column: 1;
    grid-row: 2;
  }
  .footer_bottom_inner.grid_3 {
    grid-template-columns: 1fr;
    gap: 11px;
  }
  .copyright {
    grid-column: 1;
    justify-self: center;
    min-width: 100%;
    text-align: center;
  }
  .estet {
    grid-column: 1;
    justify-self: center;
    margin-top: 16px;
    min-width: 100%;
    text-align: center;
  }
  .privacy {
    grid-column: 1;
    justify-self: center;
    min-width: 100%;
    text-align: center;
  }
  .footer_bottom {
    padding: 0 20px;
  }
}
@media screen and (max-width: 560px) {
  .footer_middle_text {
    font-size: 17px;
  }
  .site-footer {
    background-color: #276df3;
    padding: 0 30px;
  }
}
