/* SCOPED:.service-page */
.service-page .hero{
  position: relative;
  min-height: 680px;
  margin-bottom: 60px;
  /* сброс legacy main.css: section { padding: 97px 0 } */
  padding: 0;
  overflow: hidden;
  background: #eee;
}
.service-page .hero__image, .service-page .hero__overlay{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.service-page .hero__image{
  object-fit: cover;
  object-position: 58% center;
  filter: grayscale(1);
}
.service-page .hero__content{
  position: relative;
  z-index: 1;
  padding-top: 20px;
  padding-bottom: 0;
}
.service-page .hero__badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin: 0 0 16px;
  padding: 10px 16px 9px;
  border: 1px solid rgba(0, 121, 55, 0.35);
  border-radius: 999px;
  background: rgba(0, 121, 55, 0.08);
  color: var(--service-green, #007937);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.service-page .hero__title{
  width: 100%;
  max-width: 906px;
  margin-bottom: 20px;
  font-size: 30px;
  font-weight: 500;
}
.service-page .hero__title-accent{
  font-weight: 700;
}
.service-page .hero__lead{
  margin-bottom: 32px;
  font-size: 19px;
  font-weight: 500;
}
.service-page .hero__actions{
  max-width: 941px;
  gap: 16px;
}
.service-page .hero__action{
  width: 100%;
}
.service-page .hero__callback{
  gap: 7px;
  margin-top: 10px;
  font-size: 16px;
}
.service-page .hero__advantages{
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 28px;
}
.service-page .hero__advantage{
  gap: 18px;
  font-size: 15px;
}
/* Ниже xl: подложка для читаемости поверх фото */
@media (max-width: 1199.98px) {
  .service-page .hero__advantage{
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
  }
}
.service-page .hero__advantage-icon{
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  background: #fff url("../../images/hero/benefit-circle.svg") center/100% 100% no-repeat;
  border-radius: 50%;
}
.service-page .hero__outline{
  display: none;
}
@media (min-width: 768px) {
  .service-page .hero{
    min-height: 625px;
  }
  .service-page .hero__content{
    padding-top: 20px;
    padding-bottom: 0;
  }
  .service-page .hero__title{
    font-size: 30px;
  }
  .service-page .hero__lead{
    font-size: 20px;
  }
  .service-page .hero__action{
    width: auto;
  }
  .service-page .hero__advantages{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .service-page .hero{
    min-height: 750px;
    margin-bottom: 100px;
    overflow: visible;
    background: #fff;
  }
  .service-page .hero__image, .service-page .hero__overlay{
    top: -47px;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: calc(100% + 47px);
    /* Bootstrap/reboot: img { max-height: 100% } — иначе при top:-47px низ не дотягивает */
    max-height: none;
    -webkit-mask: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' viewBox='0 0 2601.93 1116.76' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0H2601.93V894.966L1757.31 895.629C1741.93 895.629 1727.17 903.453 1716.16 917.408L1573.33 1098.63C1564.93 1109.29 1553.66 1115.23 1541.92 1115.23L0 1116.76V0Z' fill='black'/%3E%3C/svg%3E") 0 0/2602px 100% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' viewBox='0 0 2601.93 1116.76' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0H2601.93V894.966L1757.31 895.629C1741.93 895.629 1727.17 903.453 1716.16 917.408L1573.33 1098.63C1564.93 1109.29 1553.66 1115.23 1541.92 1115.23L0 1116.76V0Z' fill='black'/%3E%3C/svg%3E") 0 0/2602px 100% no-repeat;
  }
  .service-page .hero__image{
    object-position: center;
  }
  .service-page .hero__content{
    padding-top: 20px;
    padding-bottom: 0;
  }
  .service-page .hero__title{
    margin-bottom: 20px;
    font-size: 55px;
  }
  .service-page .hero__lead{
    margin-bottom: 35px;
    font-size: 24px;
  }
  .service-page .hero__actions{
    gap: 60px;
    margin-left: -12px;
  }
  .service-page .hero__action{
    height: 70px;
    padding: 22px 28px;
  }
  .service-page .hero__action--calculate{
    width: 380px;
  }
  .service-page .hero__action--consult{
    width: 292px;
  }
  .service-page .hero__callback{
    width: max-content;
    margin-top: 8px;
    margin-left: 432px;
    font-size: 16px;
  }
  .service-page .hero__advantages{
    grid-template-columns: 312px 392px 312px;
    grid-template-rows: 45px 45px;
    column-gap: 26px;
    row-gap: 68px;
    width: 1068px;
    margin-top: 32px;
    margin-left: 0;
  }
  .service-page .hero__advantage{
    gap: 26px;
    font-size: 18px;
  }
  .service-page .hero__advantage--legal{
    grid-column: 1;
    grid-row: 1;
  }
  .service-page .hero__advantage--insurance{
    grid-column: 1;
    grid-row: 2;
  }
  .service-page .hero__advantage--fees{
    grid-column: 2;
    grid-row: 2;
  }
  .service-page .hero__advantage--nrs{
    grid-column: 3;
    grid-row: 2;
  }
  .service-page .hero__advantage-icon{
    flex-basis: 56px;
    width: 56px;
    height: 56px;
  }
  .service-page .hero__advantage-text{
    width: 230px;
  }
  .service-page .hero__advantage--fees .hero__advantage-text{
    width: 248px;
  }
  .service-page .hero__outline{
    position: absolute;
    top: auto;
    bottom: -40px;
    left: 0;
    display: block;
    width: 2237px;
    height: 100px;
    max-width: none;
    pointer-events: none;
  }
}

.service-page .hero__scroll-sentinel{
	height: 1px;
	width: 100%;
	pointer-events: none;
	overflow: hidden;
	opacity: 0;
}

/*
 * Модификатор photoshoot: кадр как фон на всех ширинах + осветление текста.
 * Базовый .hero__image уже absolute inset 0 + object-fit: cover.
 */
.service-page .hero.hero--photoshoot {
  background: #fff;
}
.service-page .hero__image--photoshoot {
  object-fit: cover;
  object-position: right center;
  filter: grayscale(1);
}
.service-page .hero__overlay--photoshoot {
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.94) 15%, rgba(255, 255, 255, 0.7) 60%, rgba(255, 255, 255, 0.35));
}
@media (max-width: 767.98px) {
  /* На узком экране кадр чуть ближе к центру команды */
  .service-page .hero__image--photoshoot {
    object-position: 70% center;
  }
  .service-page .hero__overlay--photoshoot {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 55%, rgba(255, 255, 255, 0.55) 100%);
  }
}
