.Footer {
  display: flex;
  flex-direction: column;
}

.Container {
  &_green {
    background: #007c6f;
  }

  &_gray {
    background: #3d3d3d;
  }
}

.Grid {
  margin: 0 auto;
  max-width: 1540px;
  padding: 20px 10px 20px;
  display: grid;
  grid-template-columns: auto;
  grid-auto-columns: 1fr;
  gap: 40px 20px;
  grid-auto-flow: row;
  grid-template-areas:
    "about"
    "contacts"
    "social";

  @include iftablet {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
    "about about"
    "contacts social";
    padding: 40px 20px 0;
    gap: 20px 2px;
  }
  @include iflaptop {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-areas:
    "about linksa linksb linksc"
    "contacts contacts social social";
    padding: 40px 28px 0;
    gap: 0px 0px;
  }
  @include ifdesktop {
    padding: 40px 40px 0;
  }

  .About {
    grid-area: about;

    .Image {
      margin-bottom: 20px;
    }

    .Description {
      font-family: $font-roboto;
      font-weight: $font-regular;
      font-size: 20px;
      line-height: 160%;
      color: $color-white;
    }
  }

  .LinksA {
    grid-area: linksa;
    padding: 10px;
    display: none;
    @include iftablet {
    }
    @include iflaptop {
      display: block;
    }
    @include ifdesktop {
    }

    .Title {
      @extend %title;
    }

    .List {
      @extend %list;
    }

    .ListItem {
      @extend %list-item;
    }
  }

  .LinksB {
    grid-area: linksb;
    padding: 10px;
    display: none;

    @include iflaptop {
      display: block;
    }

    .Title {
      @extend %title;
    }

    .List {
      @extend %list;
    }

    .ListItem {
      @extend %list-item;
    }
  }

  .LinksC {
    grid-area: linksc;
    padding: 10px;
    display: none;

    @include iflaptop {
      display: block;
    }

    .Title {
      @extend %title;
    }

    .List {
      @extend %list;
    }

    .ListItem {
      @extend %list-item;
    }
  }

  .Contacts {
    grid-area: contacts;

    .Title {
      @extend %title;
    }

    .Icons {
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 24px;

      @include iflaptop {
        flex-direction: row;
        justify-content: center;
      }

      .IconBox {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 16px;

        @include iftablet {
        }

        @include iflaptop {
          display: flex;
          flex-direction: column;
          align-items: center;
        }

        .Icon {
          border-radius: 50%;
          width: 48px;
          height: 48px;
          padding: 8px;
          background: $color-white;
        }

        .Text {
          @extend %icon-desc;
        }
      }
    }
  }

  .Social {
    grid-area: social;

    @include iflaptop {
      padding-left: 100px;
    }
    @include ifdesktop {
      padding-left: 200px;
    }

    .Title {
      @extend %title;
    }

    .Row {
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 20px;
    }

    .Icon {

    }
  }
}

.Bottom {
  margin: 0 auto;
  max-width: 1540px;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  padding: 16px 10px;

  font-family: $font-roboto;
  font-weight: $font-regular;
  font-size: 16px;
  line-height: 100%;
  color: $color-white;

  @include iftablet {
    padding: 16px 20px;
  }
  @include iflaptop {
    padding: 16px 28px;
  }
  @include ifdesktop {
    padding: 16px 40px;
  }

  .List {
    display: flex;
    flex-direction: column;
    gap: 10px;

    @include iftablet{
      flex-direction: row;
    }
  }

  .ListItem {
    &:after{
      padding-left: 0;

      @include iftablet {
        content: '|';
        padding-left: 8px;
      }
    }
    &:last-child:after {
      content: unset;
    }
  }

  & a {
    text-decoration: none;
    color: $color-link-hover;
    margin: 0 8px;

    &:hover {
      text-decoration: underline;
    }
  }
}

%title {
  font-family: $font-roboto;
  font-weight: $font-regular;
  font-size: 20px;
  line-height: 100%;
  color: $color-white;
  margin-bottom: 20px;
}

%list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: disc;
}

%list-item {
  font-family: $font-roboto;
  font-weight: $font-regular;
  font-size: 16px;
  line-height: 130%;
  color: $color-white;
  margin-left: 20px;
}

%icon-desc {
  font-family: $font-roboto;
  font-weight: $font-regular;
  font-size: 18px;
  line-height: 100%;
  color: $color-white;
  margin-bottom: 20px;
}