  .roof-installment {
  padding: 40px 0;
}

.roof-installment__inner {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 48px 40px 26px;
  border: 1px solid rgba(41, 52, 34, 0.08);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 85%, rgba(106, 166, 56, 0.18), transparent 22%),
    linear-gradient(135deg, #ffffff 0%, #f7faf4 52%, #eef5ea 100%);
  box-shadow: 0 18px 55px rgba(27, 37, 20, 0.08);
}

.roof-installment__content {
  position: relative;
  z-index: 2;
  max-width: 920px;
}

.roof-installment__top {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 30px;
}

.roof-installment__icon,
.roof-installment__card-icon,
.roof-installment__cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5f9f30;
  background: rgba(95, 159, 48, 0.1);
}

.roof-installment__icon {
  width: 74px;
  height: 74px;
  border-radius: 50%;
}

.roof-installment__icon svg {
  width: 38px;
  height: 38px;
}

.roof-installment svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.roof-installment__title {
  margin-bottom: 16px;
}

.roof-installment__decor {
  width: 82px;
  height: 4px;
  margin-bottom: 22px;
  border-radius: 100px;
  background: #5f9f30;
}

.roof-installment__subtitle {
  max-width: 520px;
  margin: 0;
  color: #3b4148;
  font-size: 22px;
  line-height: 1.35;
}

.roof-installment__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 860px;
  margin-bottom: 34px;
}

.roof-installment__card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 20px;
  min-height: 210px;
  padding: 30px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 38px rgba(24, 34, 20, 0.08);
  backdrop-filter: blur(8px);
}

.roof-installment__card-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
}

.roof-installment__card-icon svg {
  width: 34px;
  height: 34px;
}

.roof-installment__card h3 {
  margin: 2px 0 20px;
  color: #171c22;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
}

.roof-installment__card-line {
  width: 100%;
  height: 2px;
  margin-bottom: 22px;
  border-radius: 100px;
  background: linear-gradient(90deg, rgba(95, 159, 48, 0.45), rgba(95, 159, 48, 0.15));
}

.roof-installment__term {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
  color: #171c22;
  line-height: 1;
}

.roof-installment__term span {
  font-size: 20px;
  font-weight: 800;
}

.roof-installment__term strong {
  color: #5f9f30;
  font-size: 24px;
  font-weight: 800;
}

.roof-installment__label {
  display: inline-flex;
  max-width: 100%;
  padding: 8px 14px;
  border-radius: 8px;
  color: #5f9f30;
  background: rgba(95, 159, 48, 0.1);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
}

.roof-installment__cta {
  display: grid;
  grid-template-columns: 78px minmax(260px, 1fr) 1px minmax(260px, 340px);
  align-items: center;
  gap: 24px;
  max-width: 1020px;
  margin-bottom: 30px;
  padding: 24px 30px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 40px rgba(24, 34, 20, 0.08);
  backdrop-filter: blur(8px);
}

.roof-installment__cta-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(95, 159, 48, 0.08);
}

.roof-installment__cta-icon svg {
  width: 38px;
  height: 38px;
}

.roof-installment__cta-text {
  color: #252b31;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 500;
}

.roof-installment__cta-divider {
  width: 1px;
  height: 58px;
  background: rgba(95, 159, 48, 0.35);
}

.roof-installment__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 15px 24px;
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(180deg, #73b534 0%, #4f9626 100%);
  box-shadow: 0 10px 22px rgba(83, 150, 38, 0.28);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.roof-installment__btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 14px 28px rgba(83, 150, 38, 0.34);
}

.roof-installment__btn span {
  font-size: 28px;
  line-height: 1;
}

.roof-installment__features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  max-width: 1060px;
}

.roof-installment__feature {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 54px;
  padding: 0 22px;
  color: #30363d;
  border-right: 1px solid rgba(95, 159, 48, 0.18);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
}

.roof-installment__feature:first-child {
  padding-left: 0;
}

.roof-installment__feature:last-child {
  border-right: 0;
  padding-right: 0;
}

.roof-installment__feature svg {
  width: 32px;
  height: 32px;
  color: #5f9f30;
}

.roof-installment__photo {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 42%;
  height: 86%;
  pointer-events: none;
}

.roof-installment__photo::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -150px;
  z-index: 2;
  width: 260px;
  background: linear-gradient(90deg, #f7faf4 0%, rgba(247, 250, 244, 0.88) 35%, rgba(247, 250, 244, 0) 100%);
}

.roof-installment__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.roof-installment__bg-line {
  position: absolute;
  top: 70px;
  right: 15%;
  z-index: 0;
  width: 420px;
  height: 210px;
  opacity: 0.32;
  pointer-events: none;
}

.roof-installment__bg-line::before,
.roof-installment__bg-line::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 150px;
  border-top: 4px solid rgba(95, 159, 48, 0.16);
  border-left: 4px solid rgba(95, 159, 48, 0.16);
  transform: rotate(45deg);
}

.roof-installment__bg-line::before {
  left: 0;
  top: 54px;
}

.roof-installment__bg-line::after {
  right: 0;
  top: 10px;
}

@media (max-width: 1199px) {
  .roof-installment__inner {
    padding: 38px 28px 26px;
  }

  .roof-installment__photo {
    width: 38%;
    opacity: 0.72;
  }

  .roof-installment__content {
    max-width: 820px;
  }

  .roof-installment__term span {
    font-size: 34px;
  }

  .roof-installment__term strong {
    font-size: 38px;
  }

  .roof-installment__features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 0;
  }

  .roof-installment__feature:nth-child(2) {
    border-right: 0;
  }

  .roof-installment__feature:nth-child(3) {
    padding-left: 0;
  }
}

@media (max-width: 991px) {
  .roof-installment__inner {
    min-height: 0;
  }

  .roof-installment__photo,
  .roof-installment__bg-line {
    display: none;
  }

  .roof-installment__content {
    max-width: none;
  }

  .roof-installment__cards {
    max-width: none;
  }

  .roof-installment__cta {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .roof-installment__cta-divider {
    display: none;
  }

  .roof-installment__btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .roof-installment {
    padding: 28px 0;
  }

  .roof-installment__inner {
    padding: 26px 18px 22px;
    border-radius: 18px;
  }

  .roof-installment__top {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 24px;
  }

  .roof-installment__icon {
    width: 54px;
    height: 54px;
  }

  .roof-installment__icon svg {
    width: 30px;
    height: 30px;
  }

  .roof-installment__decor {
    width: 64px;
    height: 3px;
    margin-bottom: 16px;
  }

  .roof-installment__subtitle {
    font-size: 17px;
  }

  .roof-installment__cards {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px;
  }

  .roof-installment__card {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
    min-height: 0;
    padding: 22px 18px;
    border-radius: 18px;
  }

  .roof-installment__card-icon {
    width: 48px;
    height: 48px;
  }

  .roof-installment__card-icon svg {
    width: 28px;
    height: 28px;
  }

  .roof-installment__card h3 {
    margin-bottom: 14px;
    font-size: 20px;
  }

  .roof-installment__card-line {
    margin-bottom: 16px;
  }

  .roof-installment__term {
    gap: 9px;
    margin-bottom: 14px;
  }

  .roof-installment__term span {
    font-size: 28px;
  }

  .roof-installment__term strong {
    font-size: 31px;
  }

  .roof-installment__label {
    font-size: 15px;
  }

  .roof-installment__cta {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
  }

  .roof-installment__cta-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .roof-installment__cta-icon svg {
    width: 30px;
    height: 30px;
  }

  .roof-installment__cta-text {
    font-size: 17px;
  }

  .roof-installment__btn {
    min-height: 52px;
    font-size: 17px;
  }

  .roof-installment__features {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .roof-installment__feature,
  .roof-installment__feature:first-child,
  .roof-installment__feature:nth-child(3),
  .roof-installment__feature:last-child {
    min-height: 0;
    padding: 0;
    border-right: 0;
    font-size: 15px;
  }

  .roof-installment__feature svg {
    width: 30px;
    height: 30px;
  }
}

.roof-before-after {
  padding: 70px 0;
  background: #fff;
  color: #111;
  overflow: hidden;
}


.roof-before-after__head {
  margin-bottom: 36px;
}

.roof-before-after__label {
  position: relative;
  margin-bottom: 18px;
  color: #fe6413;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
}

.roof-before-after__label::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin-top: 10px;
  background: currentColor;
  border-radius: 20px;
}

.roof-before-after__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.roof-compare {
  overflow: hidden;
  border: 1px solid #e6e6e6;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(16, 24, 40, 0.08);
}

.roof-compare__inner {
  --position: 50%;
  position: relative;
  aspect-ratio: 1.42 / 1;
  overflow: hidden;
  background: #f4f5f4;
  user-select: none;
  touch-action: pan-y;
}

.roof-compare__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.roof-compare__after {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--position)) 0 0);
}

.roof-compare__img--after {
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: cover;
}

.roof-compare__badge {
  position: absolute;
  top: 18px;
  z-index: 5;
  padding: 8px 14px;
  border-radius: 7px;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.roof-compare__badge--before {
  left: 18px;
  background: rgba(17, 17, 17, 0.78);
}

.roof-compare__badge--after {
  right: 18px;
  background: #fe6413;
}

.roof-compare__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--position);
  z-index: 6;
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

.roof-compare__handle {
  position: absolute;
  left: var(--position);
  top: 50%;
  z-index: 7;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  color: #fe6413;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.24);
  transform: translate(-50%, -50%);
  cursor: ew-resize;
  pointer-events: none;
}

.roof-compare__handle span {
  position: absolute;
  inset: 0;
}

.roof-compare__handle span::before,
.roof-compare__handle span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 3px solid currentColor;
  border-left: 3px solid currentColor;
}

.roof-compare__handle span::before {
  left: 15px;
  transform: translateY(-50%) rotate(-45deg);
}

.roof-compare__handle span::after {
  right: 15px;
  transform: translateY(-50%) rotate(135deg);
}

.roof-compare__range {
  position: absolute;
  inset: 0;
  z-index: 8;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
}

.roof-compare__caption {
  padding: 22px 24px 24px;
}

.roof-compare__caption h3 {
  margin: 0 0 8px;
  color: #111;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 900;
}

.roof-compare__caption p {
  max-width: 520px;
  margin: 0;
  color: #555;
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .roof-before-after {
    padding: 56px 0;
  }

  .roof-before-after__grid {
    grid-template-columns: 1fr;
  }

  .roof-compare__inner {
    aspect-ratio: 1.65 / 1;
  }
}

@media (max-width: 560px) {
  .roof-before-after {
    padding: 44px 0;
  }

  .roof-before-after__container {
    width: min(100% - 28px, 1240px);
  }

  .roof-before-after__head {
    margin-bottom: 28px;
  }

  .roof-before-after__label {
    font-size: 13px;
  }

  .roof-before-after__title {
    font-size: clamp(32px, 11vw, 44px);
  }

  .roof-compare {
    border-radius: 14px;
  }

  .roof-compare__inner {
    aspect-ratio: 1.15 / 1;
  }

  .roof-compare__badge {
    top: 12px;
    padding: 7px 11px;
    font-size: 12px;
  }

  .roof-compare__badge--before {
    left: 12px;
  }

  .roof-compare__badge--after {
    right: 12px;
  }

  .roof-compare__handle {
    width: 46px;
    height: 46px;
  }

  .roof-compare__handle span::before {
    left: 13px;
  }

  .roof-compare__handle span::after {
    right: 13px;
  }

  .roof-compare__caption {
    padding: 18px;
  }

  .roof-compare__caption h3 {
    font-size: 18px;
  }

  .roof-compare__caption p {
    font-size: 14px;
  }
}