.text-block {
  display: block;
}

.hero-sect {
  z-index: 2;
  padding: 40px;
  position: relative;
}

.product-wrapper {
  grid-column-gap: 63px;
  grid-row-gap: 63px;
  display: flex;
}

.card {
  min-width: 0;
  max-width: 345px;
  color: var(--black);
  text-align: left;
}

.heading {
  color: var(--black);
  text-align: center;
  letter-spacing: 1px;
  -webkit-text-stroke-width: 0px;
  text-indent: 0;
  column-count: auto;
  margin-top: 38px;
  font-size: 60px;
  font-weight: 800;
  line-height: 1;
}

.city-wrapper {
  display: inline-block;
  overflow: hidden;
  height: 1.2em;
  vertical-align: bottom;
}

#city {
  display: inline-block;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.city-slide {
  transform: translateY(-100%);
  opacity: 0;
}

.benefits-wrapper {
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  justify-content: space-around;
  align-items: stretch;
  margin: 25px 1px;
  display: flex;
}

.benefits-card {
  max-width: 345px;
  margin-left: 25px;
  margin-right: 25px;
  display: block;
}

.benefits-card-img {
  border-radius: 35px;
  width: 340px;
}

.heading-2, .text-block-2 {
  text-align: center;
}

.benefits-card-h3 {
  color: var(--light-green);
  text-align: center;
  border: 1px solid #a4c66d00;
  margin-top: 15px;
}

.benefits-card-txt {
  text-align: center;
}

.button {
  align-self: flex-end;
}

.cta-calculate-btn {
  text-align: center;
  max-width: 200px;
  display: block;
  line-height: 1;
}

.cta-calculate-btn.w--current {
  background-image: linear-gradient(0deg, #65b33e, var(--light-green));
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
  margin-bottom: 24px;
  padding-left: 29px;
  padding-right: 29px;
  font-size: 18px;
  font-weight: 500;
  display: block;
}

.cta-calculate-wrapper {
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  text-align: left;
  justify-content: center;
  align-items: center;
  margin-top: 0;
  margin-bottom: 0;
  display: flex;
}

.reviews-section {
  background: transparent;
  padding: 0px;
  font-family: 'Segoe UI', sans-serif;
  position: relative;
  z-index: 2;
}

.reviews-container {
  width: 100%;
  overflow: hidden;
  margin: 0 auto;
}

.reviews-track {
  display: flex;
  width: max-content;
  animation: scrollReviews 45s linear infinite;
}

.reviews-title {
  font-size: 36px;
  color: #0f5662;
  margin-bottom: 10px;
}

.reviews-subtitle {
  color: #666;
  margin-bottom: 50px;
}

.reviews-grid {
  display: flex;
  gap: 30px;
  flex-shrink: 0;
}

.review-card {
  width: 350px;
  flex-shrink: 0;
  background: #ffffff;
  padding: 30px;
  margin: 50 0 50 0;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Animation */
@keyframes scrollReviews {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-30%);
  }
}

.reviews-section {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );

  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}


.reviews-track.paused {
  animation-play-state: paused;
}

.review-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(15, 86, 98, 0.15);
}

.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.review-avatar {
  width: 50px;
  height: 50px;
  background: #8fad61;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 15px;
  font-size: 18px;
}

.review-header h4 {
  margin: 0;
  color: #0f5662;
}

.stars {
  color: #8fad61;
  font-size: 14px;
}

.review-text {
  color: #444;
  line-height: 1.6;
}

.reviews-button {
  display: inline-block;
  padding: 14px 30px;
  background: #0f5662;
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
}

.reviews-button:hover {
  background: #8fad61;
  transform: translateY(-3px);
}

.satisfaction-sect {
  font-size: 16px;
}

.satisfaction-card-wrapper {
  grid-column-gap: 58px;
  grid-row-gap: 58px;
  text-align: left;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
  display: flex;
}

.satisfaction-card {
  max-width: 345px;
  background: #ffffff;
  border-radius: 18px;
  padding: 37px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(15, 86, 98, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.satisfaction-card-txt {
  margin-bottom: 25px;
  padding-top: 20px;
  padding-bottom: 0;
  font-size: 16px;
}

.satisfaction-card-header {
  margin-top: 20px;
  font-size: 18px;
}

.how-it-works-sect {
  z-index: 0;
  background-color: #edf5e7;
  display: flex;
  position: relative;
}

.how-it-works-wrapper {
  background-color: #fff;
  border-radius: 12px;
  order: 0;
  grid-template-rows: auto auto;
  grid-template-columns: 1fr 1fr;
  align-self: flex-start;
  max-width: 380;
  margin: 70px 0 30px 115px;
  padding-bottom: 20px;
  padding-left: 38px;
  padding-right: 38px;
  display: block;
  overflow: visible;
}

.how-it-works-steps {
  margin-bottom: 20px;
  display: flex;
}

.text-block-3 {
  align-self: auto;
  padding-left: 9px;
  font-size: 16px;
  max-width: 400;
}

.how-it-works-img {
  opacity: 1;
  outline-offset: 0px;
  border: 0 solid #000;
  border-radius: 20px;
  margin-top: 50px;
  margin-bottom: 50px;
  margin-left: 20px;
  padding-left: 0px;
  max-width: 900px;
}

.text-block-4 {
  text-align: center;
}

.image {
  float: right;
  margin-top: 3px;
  margin-bottom: 2px;
  margin-left: 1006px;
  text-decoration: none;
  display: block;
  position: absolute;
  overflow: clip;
}

.section {
  z-index: 2;
  position: relative;
}

.before-after {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    cursor: ew-resize;
    z-index: 1;
    margin-left: 20px;
    margin-top: 25px;
    margin-bottom: 25px;
}

/* Both images are locked to the same size */
.after-image,
.before-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 900px; /* same as container max width */
    height: 100%;
    object-fit: cover;
}

/* Full background image */
.after-image {
    width: 100%;
}

/* This is only a window */
.before-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

/* Do NOT let this image resize */
.before-image {
    max-width: none;
}

.before-after-slider {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    z-index: 10;
}

.before-after-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: 3px;
    background: white;
}

.before-after-button {
    position: relative;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-size: 22px;
    box-shadow: 0 2px 10px rgba(0,0,0,.25);
    z-index: 11;
}

@media (min-width: 1600px) {
  .hero-sect,
  .section,
  .satisfaction-sect,
  .reviews-section {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
  }
 
  .heading {
    font-size: 72px;
    line-height: 1.05;
  }
 
  .product-wrapper,
  .benefits-wrapper,
  .satisfaction-card-wrapper {
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
  }
 
  .how-it-works-sect {
    justify-content: center;
    gap: 60px;
  }
 
  .how-it-works-wrapper {
    margin-left: 0;
  }
 
  .before-after {
    max-width: 1000px;
  }
}
 
/* =====================================================================
   2. SMALL DESKTOP / LAPTOP (1200px – 1599px)
   Tames the absolute-positioned .image and tightens the how-it-works
   spacing so it doesn't run into the edge of the viewport.
   ===================================================================== */
@media (max-width: 1599px) {
  .image {
    left: auto;
    right: 24px;
    margin-left: 0;
  }
}
 
@media (max-width: 1199px) {
  .how-it-works-wrapper {
    margin-left: 60px;
  }
 
  .before-after {
    margin-left: 40px;
  }
 
  .product-wrapper,
  .benefits-wrapper,
  .satisfaction-card-wrapper {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 32px;
  }
}
 
/* =====================================================================
   3. TABLET (768px – 991px)
   Sections that use flex row layouts (nav, benefits, satisfaction,
   how-it-works, footer) need to wrap or stack. Hero heading scales
   down so it doesn't overflow.
   ===================================================================== */
@media (max-width: 991px) {
  /* Nav */
  .nav-wrapper {
    flex-wrap: wrap;
    row-gap: 12px;
    padding: 16px 20px;
  }
 
  .nav-button-wrapper {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    width: 100%;
  }
 
  /* Hero */
  .hero-sect {
    padding: 28px 24px;
    text-align: center;
  }
 
  .heading {
    font-size: 42px;
    line-height: 1.15;
    margin-top: 24px;
  }
 
  /* Benefits */
  .benefits-wrapper {
    flex-wrap: wrap;
    row-gap: 30px;
  }
 
  .benefits-card {
    max-width: 400px;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
 
  .benefits-card-img {
    width: 100%;
  }
 
  /* Satisfaction */
  .satisfaction-card-wrapper {
    flex-wrap: wrap;
    row-gap: 24px;
  }
 
  .satisfaction-card {
    max-width: 400px;
    width: 100%;
  }
 
  /* How it works */
  .how-it-works-sect {
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
  }
 
  .how-it-works-wrapper {
    margin: 40px 20px 0;
    max-width: 90%;
    align-self: center;
  }
 
  .before-after {
    margin: 30px 20px 40px;
    width: calc(100% - 40px);
    max-width: 700px;
  }
 
  .how-it-works-img {
    margin: 30px auto;
  }
 
  /* Reviews */
  .review-card {
    width: 300px;
  }
 
  /* Footer */
  .footer-block-wrapper .div-block {
    flex-wrap: wrap;
    row-gap: 28px;
  }
}
 
/* =====================================================================
   4. LARGE PHONE / SMALL TABLET (576px – 767px)
   Calculator form rows and service grids collapse to a single column.
   ===================================================================== */
@media (max-width: 767px) {
  .heading {
    font-size: 34px;
  }
 
  .satisfaction-card,
  .benefits-card {
    max-width: 100%;
  }
 
  /* Calculator */
  .container#steps-container {
    padding: 0 16px;
  }
 
  .steps-indicator {
    gap: 8px;
    font-size: 12px;
  }
 
  .step-label {
    font-size: 11px;
  }
 
  .form-row {
    grid-template-columns: 1fr !important;
  }
 
  .service-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px;
  }
 
  .payment-choice {
    flex-direction: column;
    gap: 12px;
  }
 
  .option-button.large {
    width: 100%;
  }
 
  /* Reviews */
  .review-card {
    width: 260px;
    padding: 22px;
  }
 
  .reviews-title {
    font-size: 28px;
  }
}
 
/* =====================================================================
   5. PHONE (480px – 575px)
   ===================================================================== */
@media (max-width: 575px) {
  .logo {
    width: 68px;
  }
 
  .nav-link {
    font-size: 14px;
  }
 
  .heading {
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: 0.5px;
  }
 
  .cta-calculate-wrapper {
    padding: 0 20px;
  }
 
  .cta-calculate-btn {
    max-width: 100%;
    width: 100%;
  }
 
  .benefits-card-h3,
  .satisfaction-card-header {
    font-size: 17px;
  }
 
  .how-it-works-wrapper {
    margin: 30px 16px 0;
    padding-left: 20px;
    padding-right: 20px;
  }
 
  .before-after {
    margin: 24px 16px 30px;
    width: calc(100% - 32px);
    border-radius: 10px;
  }
 
  .before-after-button {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
 
  /* Calculator */
  .service-grid {
    grid-template-columns: 1fr !important;
  }
 
  .step-label {
    display: none; /* keep numbered dots only, saves horizontal space */
  }
 
  .step-number {
    margin: 0 auto;
  }
 
  .booking-form .form-group.full-width {
    padding: 0;
  }
 
  /* Reviews */
  .review-card {
    width: 230px;
    padding: 18px;
  }
 
  .review-avatar {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }
 
  /* Footer */
  .footer-block-wrapper .div-block {
    flex-direction: column;
    row-gap: 24px;
  }
 
  .footer-block-btm-txt-wrapper {
    flex-direction: column;
    align-items: center;
    row-gap: 8px;
    text-align: center;
  }
}
 
/* =====================================================================
   6. SMALL PHONE (≤479px)
   ===================================================================== */
@media (max-width: 479px) {
  .hero-sect {
    padding: 20px 16px;
  }
 
  .heading {
    font-size: 24px;
  }
 
  .benefits-card-img {
    border-radius: 22px;
  }
 
  .satisfaction-card {
    padding: 26px 18px;
  }
 
  .how-it-works-wrapper h2,
  .reviews-title,
  .heading-2 {
    font-size: 22px;
  }
 
  .text-block-3 {
    font-size: 14px;
  }
 
  .review-card {
    width: 200px;
    padding: 16px;
  }
 
  .review-text {
    font-size: 14px;
  }
 
  .discount code inputs,
  #discountCodeInput,
  #discountCodeInputLater {
    font-size: 14px;
  }
 
  .pay-button,
  .continue-button,
  .back-button {
    width: 100%;
    font-size: 15px;
  }
}
 
/* =====================================================================
   7. EMBEDDED CONTEXTS / VERY NARROW VIEWPORTS (≤360px)
   Covers small phones (e.g. older/compact devices) and the calculator
   when it's dropped into a narrow iframe on a third-party site.
   ===================================================================== */
@media (max-width: 360px) {
  .heading {
    font-size: 21px;
  }
 
  .logo {
    width: 56px;
  }
 
  .nav-link {
    font-size: 13px;
  }
 
  .satisfaction-card-header,
  .benefits-card-h3 {
    font-size: 16px;
  }
 
  .how-it-works-wrapper {
    margin: 20px 10px 0;
    padding-left: 14px;
    padding-right: 14px;
  }
 
  .before-after {
    margin: 18px 10px 24px;
    width: calc(100% - 20px);
  }
 
  .step-number {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }
 
  .review-card {
    width: 180px;
    padding: 14px;
  }
}