.footer {
  background-color: var(--first-color);
  padding-top: 1rem;
  padding-bottom: 3.5rem;
  text-align: center;
  position: relative;
}
.footer .container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: #ffffff;
}
.footer-links-item h3 {
  font-size: 1.33rem;
  font-weight: 400;
}
.footer-links-item a {
  color: #cccccc;
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.938rem;
}
.footer-links-item a:hover,
.footer-links-item a:active {
  color: var(--first-color-light);
}
.footer__download {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}
.footer__download-button {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 1rem;
  font-size: 1rem;
  font-weight: 400;
  color: #4583e0;
  background-color: #ffffff;
  border-radius: 6px;
}
.footer__download-button img {
  height: 50%;
  margin-left: 0.6rem;
}

@media screen and (min-width: 768px) {
  .footer {
    padding-bottom: 4rem;
  }
  .footer .container {
    flex-direction: row;
    justify-content: space-between;
    gap: 7.5rem;
  }
  .footer-links {
    text-align: left;
    flex-direction: row;
    gap: 7.5rem;
  }
}

@media screen and (min-width: 992px) {
  .footer::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: 158px;
    height: 152px;
    background-image: url(../images/rect3.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: 30px 44px;
  }
}

@media screen and (min-width: 1560px) {
  .footer::after {
    width: 188px;
    height: 181px;
  }
  .footer-links-item h3 {
    font-size: 2rem;
  }
  .footer-links-item a {
    font-size: 1.25rem;
  }
  .footer__download {
    margin-top: 2.25rem;
    margin-bottom: 2.25rem;
  }
  .footer__download-button {
    height: 66px;
    font-size: 1.5rem;
    padding: 0 1.5rem;
  }
}
