.site-footer {
  padding-block: var(--space-l);
  row-gap: var(--space-l);

  h2 {
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.4;
    text-transform: uppercase;
    margin-block-end: var(--space-2xs);
  }

  ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
    padding: 0;
    margin: 0;
  }

  li {
    list-style-type: none;
  }

  nav a,
  span {
    font-size: .875rem;
    font-weight: 400;
    line-height: 1.3125;
    text-decoration: none;
    color: #000;
    display: inline-flex;
    padding-block: .3em;
  }

  .site-footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    row-gap: var(--space-l);
    column-gap: var(--space-l);
    &::after {
      content: '';
      grid-column: 1 / -1;
      border-bottom: 1px solid;
    }
    @media( width >= 782px) {
      &::after {
        display: none;
      }
    }
  }


  .site-footer__logo {
    margin-bottom: 2rem;
  }

  .site-footer__socials {
    padding-bottom: .25rem;
  }

  @media( width >= 782px) {
    .site-footer__socials {
      margin-top: 3.8rem;
      padding-bottom: .25rem;
    }
  }

  @media( width >= 782px) {
    .site-footer__payment-methods {
      padding-block-end: var(--space-l);
    }
  }

  .site-footer__full-address {
    display: flex;
    flex-direction: column;
    margin-bottom: .75rem;
  }

  .site-footer__phone-number {
    margin-bottom: .75rem;
  }

  .site-footer__socials-title,
  .site-footer__payment-methods-title {
    margin-block-end: var(--space-2xs);
  }

  .site-footer__social-icons,
  .site-footer__payment-methods-icons {
    display: flex;
    flex-direction: row;
    gap: .9375rem;
    align-items: center;
  }

  .site-footer p {
    padding: 0 0.5rem;
  }

  .site-footer__bottom {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    column-gap: var(--space-l);
    row-gap: var(--space-l);
    @media( width >= 782px) {
      flex-direction: row;
      padding: 0 1rem;
    }
  }
  
  .site-footer__bottom p,
  .site-footer__reg-number {
    font-size: .8125rem;
    font-weight: 500;
    line-height: 1.21875;
    text-transform: uppercase;
  }

  @media( width <y= 781px) {
    .site-footer__reg-number-wrapper {
      display: none;
    }
  }

  @media( width >= 782px) {
    .site-footer__reg-number-wrapper {
      border-bottom: none;

      .site-footer__reg-number {
        padding-block-end: var(--space-l);
        margin: 0;
        padding: 0;
      }
    } 
  }

  .site-footer__payment-methods .site-footer__reg-number {
    margin-top: 2rem;
  }

  @media( width >= 782px) {
    .site-footer__payment-methods .site-footer__reg-number {
      display: none;
    } 
  }

  .site-footer__copyright-credits {
    display: flex;
    justify-content: space-between;
    column-gap: var(--space-l);
  }

  @media( width >= 782px) {
    .site-footer__copyright-credits {
      display: flex;
      gap: 5.75rem;
      padding: 0;
    }
  }

  .site-footer__copyright-credits p {
    margin: 0;
  }

  .site-footer__partners-section {
    border-top: 1px solid;
    border-bottom: 1px solid;
    padding: 2.5rem 0 3rem;
  }

  .site-footer__partners-logo-section {
    display: flex;
    flex-wrap: wrap;
    text-wrap: balance;
    gap: 2rem;
  }

  .site-footer__partners-section-title {
    margin-block-end: 1.8rem;
  }

  @media( width >= 782px) {
    .site-footer__partners-section-title {
      text-align: center;
    }
  }

  .site-footer__partners-logo {
    display: flex;
    align-items: center;
  }
  

  @media( width >= 782px) {
    .site-footer__partners-logo-section {
      display: flex;
      justify-content: space-evenly;
      max-width: unset;
      padding: 0 7rem;
    }
  }
}
