
.Service {
  position: relative;
  margin: 0 auto;
  max-width: rem(1540px);
  padding: rem(40px) rem(10px);

  @include iftablet {
    padding: rem(40px) rem(20px);
  }
  @include iflaptop {
    padding: rem(40px) rem(28px);
  }
  @include ifdesktop {
    padding: rem(80px) rem(40px);
  }

  .Title {
    font-family: $font-roboto;
    font-weight: 500;
    font-size: rem(32px);
    line-height: 100%;
    color: $color-title;
    text-align: center;
    margin-bottom: rem(40px);

    @include iftablet{
      margin-bottom: rem(60px);
    }
  }

  .Switcher {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    border: 1px solid $color-green;
    border-radius: rem(20px);
    margin-bottom: rem(20px);

    @include iftablet{
      margin-bottom: rem(40px);
    }

    .Button {
      box-sizing: border-box;
      flex: 1;
      display: flex;
      justify-content: center;

      font-family: $font-roboto;
      font-weight: 400;
      font-size: rem(14px);
      line-height: 100%;
      padding: rem(16px) rem(10px);
      border-radius: rem(18px);
      color: $color-green;
      text-transform: uppercase;
      cursor: pointer;
      border: 1px solid transparent;

      @include iftablet{
        font-size: rem(16px);
        padding: rem(20px);
      }

      &_active {
        background-color: $color-green;
        color: $color-white;
        cursor: auto;
      }
      &:hover {
        border: 1px solid $color-green;
      }
    }
  }

  .Grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: rem(10px);

    @include iflaptop{
      gap: rem(20px);
    }

    @include iflaptop{
      grid-template-columns: repeat(4, 1fr);
    }

    .Tile {
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      gap: rem(20px);
      border: 1px solid $color-green;
      padding: rem(10px);
      border-radius: rem(20px);
      cursor: pointer;
      height: 100%;

      font-family: $font-roboto;
      font-weight: 400;
      font-size: rem(14px);
      line-height: 100%;
      color: $color-green;
      text-align: center;

      @include iftablet{
        font-size: rem(16px);
        padding: rem(20px) rem(20px);
      }
      @include iflaptop{
        padding: rem(20px) rem(40px);
        min-height: rem(220px);
        font-size: rem(18px);
      }
      @include ifdesktop{
      }

      &:hover {
        box-shadow: 4px 4px 10px 0px rgba(0,146,131,0.5);
      }
    }

    svg {
      width: rem(48px);
      height: rem(48px);

      @include iftablet{
        width: rem(64px);
        height: rem(64px);
      }
    }
  }
}