.path-frontpage .page-content > div > .block {
  color: #333;
  line-height: 20px;
  font-size: 16px;
  padding: 40px 0;
}

.path-frontpage .page-content > div > .block > div {
  display: flex;
  flex-direction: column;
}

.path-frontpage .page-content > div > .block:nth-child(odd) > div {
  align-items: flex-end;
  text-align: right;
}

.path-frontpage .page-content > div > .block ul:not(.contextual-links) {
  align-items: center;
  display: flex;
  padding: 60px 0;
  justify-content: center;
  list-style-type: none;
}
.path-frontpage .page-content > div > .block li {
  margin: 0 20px;
}

.path-frontpage #block-mobile h2,
.path-frontpage #block-where h2,
.path-frontpage #block-why h2 {
  background: #fffeef;
  color: #222;
  font-size: 48px;
  line-height: 46px;
  margin: 0 0 40px;
  max-width: 40%;
  padding: 15px;
  position: relative;
  text-transform: uppercase;
}

.path-frontpage #block-mobile h2:before,
.path-frontpage #block-where h2:before,
.path-frontpage #block-why h2:before {
  content: "";
  display: block;
  position: absolute;
  z-index: -1;
}

.path-frontpage #block-mobile h2:before {
  background: url("../../images/block-title-bg-mobile.png") 0 0 no-repeat;
  bottom: calc(100% - 55px);
  right: calc(100% - 100px);
  height: 150px;
  width: 162px;
}
.path-frontpage #block-mobile:nth-child(odd) h2:before {
  transform: scaleX(-1);
}

.path-frontpage #block-where h2:before {
  background: url("../../images/block-title-bg-where.png") 0 0 no-repeat;
  height: 214px;
  bottom: calc(100% - 85px);
  right: calc(100% - 85px);
  width: 255px;
}
.path-frontpage #block-where:nth-child(odd) h2:before {
  left: calc(100% - 85px);
  right: auto;
  transform: scaleX(-1);
}

.path-frontpage #block-why h2:before {
  background: url("../../images/block-title-bg-why.png") 0 0 no-repeat;
  height: 225px;
  bottom: calc(100% - 100px);
  left: calc(100% - 80px);
  width: 223px;
}
.path-frontpage #block-why:nth-child(even) h2:before {
  left: auto;
  right: calc(100% - 80px);
}

@media screen and (max-width: 1024px) {
  .path-frontpage #block-mobile h2,
  .path-frontpage #block-where h2,
  .path-frontpage #block-why h2 {
    max-width: 100%;
  }
}

@media screen and (max-width: 928px) {
  .path-frontpage .page-content > div > .block {
    padding-bottom: 100px;
  }

  .path-frontpage .page-content > div > .block:nth-child(odd) > div {
    align-items: flex-start;
    text-align: left;
  }

  .path-frontpage #block-mobile h2,
  .path-frontpage #block-where h2,
  .path-frontpage #block-why h2 {
    font-size: 32px;
  }

  .path-frontpage #block-why h2:before,
  .path-frontpage #block-why:nth-child(even) h2:before {
    left: calc(100% - 80px);
    right: auto;
  }
}

@media screen and (max-width: 568px) {
  .path-frontpage .page-content > div > .block ul:not(.contextual-links) {
    align-items: center;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    justify-content: center;
    list-style-type: none;
  }
  .path-frontpage .page-content > div > .block li {
    margin: 20px 0;
  }
  .path-frontpage #block-where {
    padding-bottom: 0;
  }
  .path-frontpage #block-mobile img,
  .path-frontpage #block-where img {
    display: block;
    margin: 0 auto;
    max-width: 75%;
  }
}
