footer.container {
  margin-top: 153px;
  /*margin-bottom: 60px;*/
  display: flex;
  gap: 26px;
}

footer .footer-container {
  width: 100%;
}


footer .footer-container .top {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--black);
  width: 100%;
}

footer .footer-container .top .top-container {
  display: grid;
  grid-template-columns: 1.5fr repeat(2, 1fr);
  max-width: 1114px;
  width: 100%;
}

footer .footer-container .contacts {
  display: flex;
  margin: 10px 51px 0 auto;
  align-items: center;
}

footer .logos {
  display: flex;
  align-items: center;
}

footer .minobrnauki-logo {
  height: 80px;
  display: none;
}

footer .minobrnauki-link,
footer .decade-of-science-link,
footer .socials a {
  transition: opacity 0.2s ease-in-out;
}

footer .minobrnauki-link:hover,
footer .decade-of-science-link:hover,
footer .socials a:hover {
  opacity: 0.75;
}

footer .decade-of-science-link {
  margin-bottom: 22px;
}

footer .decade-of-science-logo {
  height: 100px;
}

footer .decade-of-science-logo.mob {
  display: none;
}

footer .contact {
  display: flex;
  height: fit-content;
  gap: 10px;

  color: var(--black);
  transition: color 0.3s;
  margin-top: auto;
  margin-bottom: auto;
}

footer .contact:hover,
footer .footer-container .bottom .contact:hover {
  color: var(--dark-blue);
}

footer .contact .icon {
  min-width: 20px;
  max-width: 20px;
  align-self: center;
}

footer .contact.phone {
  width: 232px;
}

footer .contact.email {
  width: 200px;
}

footer .footer-container .socials {
  display: flex;
  gap: 25px;
  margin-top: 8px;
  align-items: center;
}

footer .footer-container .socials img {
  height: 30px;
}

footer .footer-container .bottom {
  display: grid;
  grid-template-columns: 1.5fr repeat(2, 1fr);
  row-gap: 20px;
  max-width: 1114px;
}

footer .footer-container .bottom .contact {
  color: var(--dark-gray);
  height: 1lh;
}

footer .footer-container .bottom .contact:nth-child(-n + 3) {
  margin-top: 38px;
}

footer .footer-container .bottom .contact:first-child {
  margin-top: 20px;
  grid-row: 1 / span 3;
  height: auto;
  display: flex;
  align-items: center;
}

footer .contacts-mob {
  display: none;
}


@media screen and (max-width: 1200px) {
  footer .decade-of-science-logo.mob {
    display: block;
  }

  footer.container {
    display: block;
    margin-top: 120px;
    margin-bottom: 20px;
  }

  footer .footer-container {
    font-weight: 500;
    font-size: 14px;
    line-height: 140%;
  }

  footer .logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  footer .minobrnauki-logo {
    margin: 0;
    height: 71px;
	display: block;
  }

  footer .decade-of-science-logo {
    margin: 0;
    height: 51px;
  }

  footer .footer-container .top {
    display: none;
  }

  footer .footer-container .bottom {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin-top: 24px;
  }

  footer .footer-container .bottom>:first-child {
    display: none;
  }

  footer .footer-container .bottom>* {
    margin: 0 !important;
    padding: 18px 0;
    border-top: 1px solid var(--black);
  }

  footer .footer-container .bottom>a:last-child {
    border-bottom: 1px solid var(--black);
  }

  footer .contact {
    gap: 8px;
  }

  footer .contact .icon {
    align-self: start;
  }

  footer .contact.address {
    gap: 10px;
    color: var(--dark-gray);
    margin-top: 24px;
  }

  footer .contacts-mob {
    display: block;
    margin-top: 24px;
  }

  footer .contacts-mob .contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  footer .contacts-mob .socials {
    display: flex;
    gap: 16px;
    margin-top: 24px;
  }
}

@media screen and (max-width: 768px) {
  footer.container {
    margin-top: 80px;
    margin-bottom: 16px;
  }

  footer .footer-container {
    font-size: 13px;
    line-height: 140%;
  }

  footer .logos {
    justify-content: space-between;
    align-items: center;
  }

  footer .minobrnauki-logo {
    height: 71px;
  }

  footer .decade-of-science-logo,
  footer .decade-of-science-logo.mob {
    height: 44px;
  }

  footer .decade-of-science-link {
    margin-bottom: 16px;
  }

  footer .footer-container .bottom {
    margin-top: 20px;
  }

  footer .footer-container .bottom>* {
    padding: 16px 0;
  }

  footer .contact {
    gap: 8px;
  }

  footer .contact .icon {
    min-width: 18px;
    max-width: 18px;
  }

  footer .contact.phone,
  footer .contact.email {
    width: auto;
    margin-right: 0;
  }

  footer .footer-container .socials {
    gap: 14px;
    margin-top: 16px;
  }

  footer .footer-container .socials img {
    height: 26px;
  }

  footer .contacts-mob {
    margin-top: 20px;
  }

  footer .contacts-mob .contacts {
    gap: 8px;
  }

  footer .contacts-mob .socials {
    gap: 14px;
    margin-top: 20px;
  }
}

@media screen and (max-width: 480px) {
  footer.container {
    margin-top: 60px;
    margin-bottom: 16px;
  }

  footer .footer-container {
    font-size: 12px;
    line-height: 140%;
  }

  footer .minobrnauki-logo {
    height: 71px;
  }

  footer .decade-of-science-logo,
  footer .decade-of-science-logo.mob {
    height: 40px;
  }

  footer .footer-container .bottom>* {
    padding: 14px 0;
  }

  footer .contact .icon {
    min-width: 16px;
    max-width: 16px;
  }

  footer .footer-container .socials img {
    height: 22px;
  }

  footer .contacts-mob .socials {
    gap: 12px;
    margin-top: 18px;
  }
}
