@import url("./style.css") (base);
@layer main {
  .site-footer {
    display: flex;
    flex-direction: column;
    background: var(--color_main_1);
    color: var(--white);
    padding-block: clamp(1.25rem, 3vw, 2rem);
    gap: 1.25rem;
  }

  .footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }

  /* средняя часть футера */

  .footer-middle {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
  }

  .footer-info_left {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.625rem;

    a {
      color: var(--soft_warm);
      text-decoration: underline;
    }
  }

  .footer-info_right {
    display: flex;
    justify-content: space-between;
    flex: 1;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 3vw, 2rem);
  }

  .footer-links a {
    color: var(--white);
    text-decoration: none;
  }

  .footer-links a:hover {
    text-decoration: underline;
  }

  .footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .footer-contacts__label {
    margin-bottom: 0.5rem;
  }

  .footer-contacts__value a {
    color: var(--white);
  }

  .footer-contacts__value a:hover {
    text-decoration: underline;
  }

  @media (max-width: 1200px) {
    .footer-middle {
      flex-direction: column;
    }

    .footer-info_left {
      width: 100%;
    }

    .footer-info_right {
      width: 100%;
    }
  }

  @media (max-width: 650px) {
    .footer-middle {
      gap: 2rem;
    }
    .footer-info_right {
      flex-direction: column;
      justify-content: flex-start;
      gap: 2rem;
    }
  }

  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid var(--soft_warm);
    color: var(--white);
  }

  .footer-bottom_contributes {
    display: flex;
    gap: 1px;
  }
}
