footer {
  margin-top: 90px;
  padding-block: 50px;
  border-top: 1px solid rgba(143, 29, 29, 0.2);
  display: flex;
  flex-direction: column;
  gap: 22px;

  .footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;

    .footer-logo {
      display: inline-flex;

      img {
        width: 120px;
        height: auto;
      }
    }

    .footer-email {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 6px;

      p {
        font-size: 15px;
        color: rgba(43, 47, 54, 0.72);
      }

      a {
        color: #8f1d1d;
        text-decoration: none;
        font-size: 17px;
        transition: opacity 0.2s ease;

        &:hover {
          opacity: 0.75;
        }
      }
    }
  }

  .footer-bottom {
    padding-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    p {
      font-size: 15px;
      color: rgba(43, 47, 54, 0.72);
    }

    nav {
      display: flex;
      align-items: center;
      gap: 14px;

      a {
        color: #2b2f36;
        text-decoration: none;
        padding: 6px 8px;
        border-radius: 10px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition:
          transform 0.2s ease,
          opacity 0.2s ease;

        svg {
          width: 18px;
          height: 18px;
          fill: currentColor;
          opacity: 0.85;
        }

        &:hover {
          transform: translateY(-1px);
          opacity: 0.75;
        }
      }
    }
  }
}

@media (max-width: 800px) {
  footer {
    padding-block: 30px;
    margin-top: 72px;

    .footer-top {
      .footer-logo {
        img {
          width: 100px;
        }
      }
    }
  }
}

@media (max-width: 700px) {
  footer {
    .footer-top {
      flex-direction: column;
      align-items: flex-start;

      .footer-email {
        align-items: flex-start;
      }
    }

    .footer-bottom {
      flex-direction: column;
      align-items: flex-start;

      nav {
        width: 100%;
        flex-wrap: wrap;

        a {
          flex: 1 1 calc(50% - 8px);
        }
      }
    }
  }
}

@media (max-width: 500px) {
  footer {
    gap: 16px;

    .footer-top {
      .footer-logo {
        img {
          width: 80px;
        }
      }

      .footer-email {
        a {
          font-size: 15px;
        }
      }
    }

    .footer-bottom {
      nav {
        a {
          flex-basis: 100%;
          padding-inline: 0;
        }
      }
    }
  }
}
