.Footer {
  display: flex;
  flex-direction: column;
  margin-bottom: rem(60px);

  @include iflaptop {
    margin-bottom: unset;
  }
}

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

  &_gray {
    background: #3d3d3d;
  }
}

.Grid {
  margin: 0 auto;
  max-width: rem(1540px);
  padding: rem(20px) rem(10px) rem(20px);
  display: grid;
  grid-template-columns: auto;
  grid-auto-columns: 1fr;
  gap: rem(40px) rem(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: rem(40px) rem(20px) 0;
    gap: rem(20px) 0;
  }
  @include iflaptop {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-areas:
    "about linksa linksb linksc"
    "contacts contacts social social";
    padding: rem(40px) rem(28px) 0;
    gap: 0 0;
  }
  @include ifdesktop {
    padding: rem(40px) rem(40px) 0;
  }

  .About {
    grid-area: about;

    .Image {
      margin-bottom: rem(20px);
    }

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

  .LinksA {
    grid-area: linksa;
    padding: rem(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: rem(10px);
    display: none;

    @include iflaptop {
      display: block;
    }

    .Title {
      @extend %title;
    }

    .List {
      @extend %list;
    }

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

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

    @include iflaptop {
      display: block;
    }

    .Title {
      @extend %title;
    }

    .List {
      @extend %list;
    }

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

  .Contacts {
    grid-area: contacts;
    border-top: 1px solid #4da49a;
    margin-top: rem(20px);
    padding-top: rem(20px);

    .Title {
      @extend %title;
    }

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

      @include iflaptop {
        flex-direction: row;
        justify-content: center;
        gap: rem(10px);
      }

      @include ifdesktop{
        gap: rem(24px);
      }

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

        @include iftablet {
        }

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

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

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

  .Social {
    grid-area: social;
    border-top: 1px solid #4da49a;
    margin-top: rem(20px);
    padding-top: rem(20px);

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

    .Title {
      @extend %title;
    }

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

    .Icon {

    }
  }
}

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

  font-family: $font-roboto;
  font-weight: 400;
  font-size: rem(16px);
  line-height: 100%;
  color: $color-white;

  @include iftablet {
    padding: rem(16px) rem(20px);
  }
  @include iflaptop {
    padding: rem(16px) rem(28px);
  }
  @include ifdesktop {
    padding: rem(16px) rem(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 rem(8px);

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

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

%list {
  display: flex;
  flex-direction: column;
  gap: rem(10px);
  list-style: disc;
  margin-left: rem(40px);
}

%list-item {
  font-family: $font-roboto;
  font-weight: 300;
  font-size: rem(16px);
  line-height: 130%;
  color: $color-white;
  &:hover{
    text-decoration: underline;
  }
}

%icon-desc {
  font-family: $font-roboto;
  font-size: rem(18px);
  line-height: 100%;
  color: $color-white;
  margin-bottom: rem(20px);

  @include iflaptop{
    font-size: rem(14px);
  }

  @include ifdesktop{
    font-size: rem(18px);
  }
}