.newhome-blocks {
  position: relative;
  padding: 90px 10px;

  > div {
    max-width: $max-width;
    margin: 0 auto;
  }

  h2,
  h3,
  h4 {
    color: $primary-color;
    font-weight: 700;
  }

  h2 {
    color: $primary-color;
    padding: 0 15px;
    margin: 0 0 25px;

    @include sm {
      font-size: 2.7rem;
      line-height: 3.3rem;
      padding: 0;
    }
  }
}

.newhome-blocks__wrap {
  width: calc(100% / 12 * 9);
  margin: auto;
  padding: 0 10px;

  @include sm {
    width: 100%;
    padding: 0 12px;
  }
}

.newhome-block__image-wrap {
  img {
    width: 100%;
  }
}

.newhome-blocks__container {
  display: flex;

  @include sm {
    flex-direction: column;
  }

  &:hover {
    .newhome-block {
      opacity: 0.3;

      @include sm {
        opacity: 1;
      }
    }

    .newhome-block:hover {
      opacity: 1;
    }
  }
}

.newhome-block {
  width: calc(100% / 3);
  padding: 15px;
  transition: opacity 0.2s ease-out;
  cursor: pointer;

  @include sm {
    width: 100%;
    padding: 0;
    margin-bottom: 25px;
  }

  &:last-child {
    @include sm {
      margin-bottom: 0;
    }
  }

  h3 {
    font-size: 2.6rem;
    line-height: 3rem;
    margin: 30px 0 15px;

    @include sm {
      margin: 30px 0 10px;
      font-size: 2.1rem;
      line-height: 3.2rem;
    }
  }

  p {
    color: $primary-color;

    @include sm {
      font-size: 1.6rem;
      margin: 10px 0;
    }
  }

  .std-button {
    display: inline-block;
    line-height: 18px;
    padding: 10px 15px;
    min-width: 120px;
    height: auto;
    margin-top: 15px;
    opacity: 0;
    transition: all 0.2s linear;

    @include sm {
      display: none;
    }
  }

  &:hover {
    .std-button {
      opacity: 1;
    }
  }
}
