.home-cost-3 {
  padding: 68px 20px 88px;
  background: #ffffff;
}

.home-cost-3__container {
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.home-cost-3__media {
  position: relative;
  min-height: 760px;
  padding: 18px 0 0 56px;
}

.home-cost-3__main-frame {
  max-width: 624px;
  margin-left: auto;
  border-radius: 300px 300px 0 0;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(16, 40, 30, 0.12);
}

.home-cost-3__main-image,
.home-cost-3__inset-image {
  width: 100%;
  height: auto;
  display: block;
}

.home-cost-3__inset-frame {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(300px, 42%);
  border: 14px solid #1d4d39;
  border-bottom-width: 18px;
  border-radius: 170px 170px 0 0;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(16, 40, 30, 0.14);
}

.home-cost-3__content {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.home-cost-3__eyebrow {
  margin: 0 0 18px;
  color: #83a93d;
  font-family: "Montserrat", sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-cost-3__heading {
  margin: 0;
  color: #2f313a;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.55rem, 4vw, 4.15rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.home-cost-3__divider {
  width: min(560px, 100%);
  margin: 30px 0 34px;
  border-top: 4px dotted #9bb55a;
}

.home-cost-3__body {
  color: #4d4f58;
  font-family: "Nunito Sans", sans-serif;
  font-size: 18px;
  line-height: 1.38;
}

.home-cost-3__body p {
  margin: 0 0 28px;
}

.home-cost-3__body p:last-child {
  margin-bottom: 0;
}

.home-cost-3__cta {
  margin-top: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 302px;
  min-height: 86px;
  padding: 18px 44px;
  border-radius: 999px;
  background: #88a93c;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: 19px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(61, 78, 22, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-cost-3__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(61, 78, 22, 0.24);
}

@media (max-width: 1279px) {
  .home-cost-3__container {
    gap: 44px;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  }

  .home-cost-3__media {
    min-height: 660px;
    padding-left: 34px;
  }

  .home-cost-3__inset-frame {
    width: min(250px, 40%);
  }
}

@media (max-width: 1023px) {
  .home-cost-3 {
    padding: 54px 20px 72px;
  }

  .home-cost-3__container {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .home-cost-3__media {
    min-height: auto;
    padding: 0 0 0 32px;
    max-width: 720px;
    margin: 0 auto;
  }

  .home-cost-3__main-frame {
    max-width: 100%;
  }

  .home-cost-3__inset-frame {
    width: min(240px, 36%);
  }

  .home-cost-3__content {
    margin: 0 auto;
  }

  .home-cost-3__eyebrow,
  .home-cost-3__heading,
  .home-cost-3__body {
    text-align: center;
  }

  .home-cost-3__content {
    align-items: center;
  }

  .home-cost-3__divider {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 767px) {
  .home-cost-3__media {
    padding-left: 0;
  }

  .home-cost-3__main-frame {
    border-radius: 190px 190px 0 0;
  }

  .home-cost-3__inset-frame {
    position: relative;
    left: auto;
    bottom: auto;
    width: min(220px, 62%);
    margin: -92px 0 0 16px;
  }

  .home-cost-3__eyebrow {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .home-cost-3__heading {
    font-size: 2.05rem;
    letter-spacing: -0.03em;
  }

  .home-cost-3__divider {
    margin: 22px auto 26px;
    border-top-width: 3px;
  }

  .home-cost-3__body {
    font-size: 16px;
  }

  .home-cost-3__body p {
    margin-bottom: 20px;
  }

  .home-cost-3__cta {
    min-width: 240px;
    min-height: 72px;
    font-size: 17px;
  }
}
