/* Core remodeling services */
.home-core-services {
  padding-top: 50px;
}

.home-core-services__eyebrow {
  color: #15346F;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}

.home-core-services__title {
  margin: 8px 0 0;
  color: #0B4AC3;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
}

.home-core-services__list {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px 50px;
}

.home-core-services__card {
  width: calc(50% - 25px);
  display: flex;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
}

.home-core-services__media {
  position: relative;
  width: 51%;
  flex: 0 0 51%;
  overflow: hidden;
}

.home-core-services__main-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-core-services__type {
  position: absolute;
  z-index: 2;
  top: 20px;
  left: 20px;
  height: 30px;
  padding: 6px 18px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  background: #0B4AC3;
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.home-core-services__location {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .35);
}

.home-core-services__location img {
  width: 16px;
  height: 20px;
  flex: 0 0 16px;
}

.home-core-services__preview {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  width: 92px;
  height: 92px;
  padding: 3px;
  overflow: hidden;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}

.home-core-services__preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.home-core-services__content {
  width: 49%;
  flex: 0 0 49%;
  padding: 22px 20px 20px;
}

.home-core-services__card-title {
  margin: 0;
  color: #15346F;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
}

.home-core-services__descr {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.45;
}

.home-core-services__features {
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  list-style: none;
}

.home-core-services__feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 19px;
}

.home-core-services__feature.is-bold {
  font-weight: 700;
}

.home-core-services__feature-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.home-core-services__feature-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

@media (max-width: 1400px) {
  .home-core-services {
    padding-top: 3.5714vw;
  }

  .home-core-services__eyebrow {
    font-size: 1vw;
    line-height: 1.4286vw;
  }

  .home-core-services__title {
    margin-top: .5714vw;
    font-size: 2.2857vw;
  }

  .home-core-services__list {
    margin-top: 2.1429vw;
    gap: 2.1429vw 3.5714vw;
  }

  .home-core-services__card {
    width: calc(50% - 1.7857vw);
    border-radius: 1.2857vw;
    box-shadow: 0 .5714vw 1.7143vw rgba(0, 0, 0, .1);
  }

  .home-core-services__type {
    top: 1.4286vw;
    left: 1.4286vw;
    height: 2.1429vw;
    padding: .4286vw 1.2857vw;
    border-radius: 1.2857vw;
    font-size: .8571vw;
    line-height: 1.2857vw;
  }

  .home-core-services__location {
    left: 1.2857vw;
    bottom: 1.5714vw;
    gap: .5714vw;
    font-size: 1vw;
    line-height: 1.4286vw;
  }

  .home-core-services__location img {
    width: 1.1429vw;
    height: 1.4286vw;
    flex-basis: 1.1429vw;
  }

  .home-core-services__preview {
    right: 1.2857vw;
    bottom: 1.2857vw;
    width: 6.5714vw;
    height: 6.5714vw;
    padding: .2143vw;
    border-radius: .9286vw;
    box-shadow: 0 .2857vw .8571vw rgba(0, 0, 0, .18);
  }

  .home-core-services__preview img {
    border-radius: .7143vw;
  }

  .home-core-services__content {
    padding: 1.5714vw 1.4286vw 1.4286vw;
  }

  .home-core-services__card-title {
    font-size: 1.4286vw;
  }

  .home-core-services__descr {
    margin-top: .7143vw;
    font-size: 1vw;
  }

  .home-core-services__features {
    margin-top: 1.2857vw;
    gap: .7857vw;
  }

  .home-core-services__feature {
    gap: .8571vw;
    font-size: 1vw;
    line-height: 1.3571vw;
  }

  .home-core-services__feature-icon {
    width: 1.5714vw;
    height: 1.5714vw;
    flex-basis: 1.5714vw;
  }
}

@media (max-width: 768px) {
  .home-core-services {
    padding-top: 11.2821vw;
  }

  .home-core-services__heading {
    text-align: center;
  }

  .home-core-services__eyebrow {
    font-size: 3.0769vw;
    line-height: 4.1026vw;
  }

  .home-core-services__title {
    margin-top: 2.0513vw;
    font-size: 6.1538vw;
    line-height: 1.2;
  }

  .home-core-services__list {
    width: calc(100% + 12.3076vw);
    margin: 0 0 -6.1538vw -6.1538vw;
    padding: 6.1538vw;
    flex-wrap: nowrap;
    gap: 4.1026vw;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .home-core-services__list::-webkit-scrollbar {
    display: none;
  }

  .home-core-services__card {
    width: 82.0513vw;
    flex: 0 0 82.0513vw;
    flex-direction: column;
    border-radius: 4.1026vw;
    box-shadow: 0 2.0513vw 6.1538vw rgba(0, 0, 0, .1);
  }

  .home-core-services__media {
    width: 100%;
    height: 55.3846vw;
    flex-basis: 55.3846vw;
  }

  .home-core-services__type {
    top: 4.1026vw;
    left: 4.1026vw;
    height: 7.6923vw;
    padding: 1.5385vw 4.1026vw;
    border-radius: 4.1026vw;
    font-size: 3.0769vw;
    line-height: 4.1026vw;
  }

  .home-core-services__location {
    left: 4.1026vw;
    bottom: 4.6154vw;
    gap: 2.0513vw;
    font-size: 3.5897vw;
    line-height: 4.6154vw;
  }

  .home-core-services__location img {
    width: 3.5897vw;
    height: 4.6154vw;
    flex-basis: 3.5897vw;
  }

  .home-core-services__preview {
    right: 4.1026vw;
    bottom: 4.1026vw;
    width: 22.5641vw;
    height: 22.5641vw;
    padding: .7692vw;
    border-radius: 3.3333vw;
    box-shadow: 0 1.0256vw 3.0769vw rgba(0, 0, 0, .18);
  }

  .home-core-services__preview img {
    border-radius: 2.5641vw;
  }

  .home-core-services__content {
    width: 100%;
    flex-basis: auto;
    padding: 5.1282vw 5.1282vw 5.641vw;
  }

  .home-core-services__card-title {
    font-size: 5.1282vw;
    line-height: 1.25;
  }

  .home-core-services__descr {
    margin-top: 2.5641vw;
    font-size: 3.5897vw;
    line-height: 1.45;
  }

  .home-core-services__features {
    margin-top: 4.6154vw;
    gap: 3.0769vw;
  }

  .home-core-services__feature {
    gap: 3.0769vw;
    font-size: 3.5897vw;
    line-height: 4.6154vw;
  }

  .home-core-services__feature-icon {
    width: 5.641vw;
    height: 5.641vw;
    flex-basis: 5.641vw;
  }
}