.lead-spots {
  position: absolute;
  z-index: -20;
  max-width: 100%;
  overflow: hidden;
}

.lead-spots-1 {
  margin-left: 36%;
}

.lead-spots-2 {
  position: absolute;
  top: 250px;
}

.lead-spots-3 {
  right: 0;
  bottom: 2px;
  top: 1px;
}

.lead-spots-4 {
  margin-left: 22%;
}

.lead-spots-5 {
  margin-left: 15%;
  margin-top: 10%;
}

.lead-spots-6 {
  margin-top: -280px;
}

.lead-home-page {
  max-width: 1600px;
}

.lead-manage {
  margin-top: 193px;
  position: relative;
}

.lead-manage__container {
  display: flex;
  align-items: center;
  gap: 136px;
  position: relative;
  padding-left: 32px;
  justify-content: space-between;
  max-width: 100vw;
  overflow-x: hidden;
}

.lead-manage__box {
  width: 70%;
}

.lead-manage__title {
  font-weight: 700;
  font-size: 40px;
  line-height: 130%;
  text-transform: uppercase;
}

.lead-manage__svg-box {
  position: relative;
  display: inline-block;
}

.lead-manage__subtitle {
  position: relative;
  z-index: 5;
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  text-transform: uppercase;
  margin-top: 8px;
  color: var(--black);
}

.lead-manage__svg {
  position: absolute;
  z-index: -1;
  top: 30px;
  margin-left: 122px;
}

.lead-manage__description {
  font-weight: 500;
  font-size: 16px;
  line-height: 130%;
  text-align: right;
  color: var(--75);
  margin-top: 16px;
  user-select: none;
}

.lead-manage__buttons {
  margin-top: 46px;
  display: flex;
  gap: 20px;
}

.lead-manage__img {
  max-width: 850px;
  width: 100%;
  height: 435px;
  min-height: 435px;
  position: relative;
  z-index: 1;
  border: none;
  overflow: hidden;
  border-radius: min(16px, 2vw);
}

.lead-manage__img-2 {
  display: none;
  max-width: 850px;
  width: 100%;
  height: 320px;
  min-height: 320px;
  position: relative;
  z-index: 1;
  border: none;
  overflow: hidden;
  border-radius: min(16px, 2vw);
}

.lead-benefits {
  margin-top: 144px;
  width: 100%;
}

.lead-benefits__container {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lead-benefits__title {
  font-weight: 700;
  font-size: 32px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 8px;
}

.lead-benefits__subtitle {
  font-weight: 500;
  text-align: center;
  color: var(--75);
  margin-bottom: 48px;
}

.lead-how {
  margin-top: 126px;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100vw;
}

.lead-how__container {
  padding-left: 32px;
  width: 100%;
}

.lead-how__title {
  font-weight: 700;
  font-size: 32px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 8px;
}

.lead-how__subtitle {
  text-align: center;
  color: var(--75);
}

.lead-how__box {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.lead-how__text {
  max-width: 445px;
  margin-top: 21%;
  width: 40%;
}

.lead-how__text-title {
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.lead-how__text-description {
  color: var(--75);
  margin-bottom: 16px;
}

.lead-how__text-link {
  color: var(--primary);
  padding: 8px;
}

.lead-how__content {
  margin-top: 58px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  position: relative;
  z-index: 5;

  width: 60%;
}

.lead-how__profile {
  position: absolute;
  top: 55%;
  right: -8%; /* чуть больше выступает за правый край */
  width: 65%; /* делаем оверлейный фрейм шире */
  aspect-ratio: 4 / 3; /* делаем выше */
  border: none;
  border-radius: min(16px, 2vw);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.lead-how__content-description {
  font-size: 12px;
  color: var(--75);
  margin-left: 35%;
  margin-top: -20px;
}

.lead-how__img {
  width: 100%;
  max-width: 100%;
  margin-left: 0; /* фиксируем слева, чтобы при сжатии обрезалось справа, а не сдвигалось */
  height: auto;
  aspect-ratio: 16 / 9; /* уменьшаем высоту iframe */
  border: none;
  overflow: hidden;
  border-radius: min(16px, 2vw) 0 0 min(16px, 2vw); /* скругление только слева, справа ровный край */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.lead-create {
  padding-top: 144px;
  position: relative;
  z-index: 1;
}

.lead-create__container {
  padding: 0 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lead-create__title {
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 8px;
}

.lead-create__subtitle {
  text-align: center;
  color: var(--75);
  margin-bottom: 131px;
}

.lead-create__img {
  width: 100%;
  height: auto;
  aspect-ratio: 1400 / 600;
  border: none;
  border-radius: min(16px, 2vw);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
}

.lead-track {
  position: relative;
  z-index: 1;
  margin-top: 260px;
  padding-bottom: 200px;
  width: 100%;
}

.lead-track__box {
  margin-left: auto;
}

.lead-track__title {
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  text-transform: uppercase;
  text-align: right;
  margin-bottom: 8px;
}

.lead-track__subtitle {
  text-align: right;
  color: var(--75);
}

.lead-track__box-2 {
  position: absolute;
  z-index: 1000;
  margin-top: 2%; /* чуть ниже под последними фреймами на десктопе */
  width: 35%;
}

.lead-track__title-2 {
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.lead-track__subtitle-2 {
  color: var(--75);
}

.lead-track__img {
  position: relative;
  width: 100%;
  margin-top: -72px;
}

.lead-track__iframe {
  border: none;
}

/* Основной айфрейм со страницей Tracking – как большой скриншот */
.lead-track__iframe-main {
  width: 60%; /* оба фрейма по 60%, первый прижат влево */
  height: auto;
  aspect-ratio: 1400 / 700;
  border-radius: min(8px, 1vw);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Верхний айфрейм с попапом "Back to school" – наложен поверх */
.lead-track__iframe-popup {
  position: absolute;
  top: 25%; /* второй фрейм чуть ниже (~20%) */
  right: 0; /* максимально вправо */
  width: 60%;
  aspect-ratio: 1400 / 700; /* такая же высота, как у первого айфрейма */
  border-radius: min(8px, 1vw);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.lead-optimize {
  display: none;
}

.lead-optimize__container {
  max-width: 500px;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  text-align: center;
  justify-content: center;
}

.lead-optimize__title {
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.lead-optimize__subtitle {
  text-align: center;
  color: var(--75);
  margin: 0 auto;
}

.lead-optimize__button {
  margin-top: 32px;
  width: 80%;
  height: 48px;
  margin-left: auto;
  margin-right: auto;
}

.lead-optimize__text {
  margin-top: 8px;
  font-size: 12px;
  text-align: center;
  color: var(--75);
}

.lead-pricing {
  margin-bottom: 142px;
}

.lead-pricing__title {
  font-weight: 700;
  font-size: 32px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 8px;
}

.lead-pricing__subtitle {
  text-align: center;
  color: var(--75);
  margin-bottom: 48px;
}

.lead-pricing__box {
  display: flex;
  justify-content: center;
  gap: 22px;
}

.lead-pricing__item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 24px 24px;
  height: 540px;
  width: 100%;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: var(--white);
}

.lead-pricing__item-box {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.lead-pricing__item-title {
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  text-transform: uppercase;
}

.lead-pricing__item-title-popular {
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  text-transform: uppercase;
  background: linear-gradient(259deg, #f6358a 0%, #7a2bf4 80%, #1c25a3 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead-pricing__item-price {
  display: flex;
}

.lead-pricing__item-price-number {
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  text-transform: uppercase;
  color: var(--80);
}

.lead-pricing__item-price-text {
  text-transform: uppercase;
  font-size: 10px;
  color: var(--80);
  font-style: italic;
  margin-left: 5px;
  margin-top: 14px;
}

.lead-pricing__item-subtitle {
  color: var(--75);
  margin-bottom: 32px;
}

.lead-pricing__item-description {
  color: var(--75);
  list-style-type: disc;
  padding-left: 20px;
}

.lead-pricing__item-subbuton {
  font-size: 12px;
  margin-left: auto;
  margin-right: auto;
  margin-top: auto;
  margin-bottom: 8px;
}

.lead-pricing__item-button {
  width: 100%;
  height: 48px;
}

.lead-popular {
  position: relative;
  box-shadow: -8px 6px 24px 0 rgba(11, 11, 11, 0.01);
  background: var(--light-pink);
}

.lead-popular-most {
  position: absolute;
  border-radius: 6px 0;
  padding: 6px 12px;
  height: 31px;
  background: linear-gradient(259deg, #f6358a 0%, #7a2bf4 50%, #1c25a3 100%);
  font-weight: 500;
  color: var(--white);
  margin-top: -49px;
  margin-left: -25px;
}

.lead-demo-form {
  position: relative;

  padding-bottom: 142px;
}

.lead-demo-form__container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 137px;
}

.lead-demo-form__title {
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 8px;
}

.lead-demo-form__subtitle {
  text-align: right;
  color: var(--75);
}

.lead-demo-form__button {
  width: 100%;
  margin-top: 23px;
  font-weight: 700;
  font-size: 16px;
  height: 53px;
}

.lead-demo-form__input {
  font-family: inherit;
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  padding: 13px 16px;
  width: 400px;
  color: var(--black);
}

.lead-demo-form__input::placeholder {
  color: #6e6d6d;
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  width: 100%;
}

.lead-demo-form__input:focus {
  border: 1px solid var(--purple);
  color: var(--black);
}
.lead-demo-form__input:not(:placeholder-shown) {
  background-color: #f9f9f9; /* Приклад */
}

@media screen and (max-width: 1200px) {
  .lead-track__box {
    margin-bottom: 90px;
  }
  .lead-spots-3 {
    height: 500px;
    width: 300px;
  }
  .lead-spots-4 {
    margin-left: 8%;
  }
  .lead-spots-5 {
    width: 750px;
    margin-top: 15%;
  }
  .lead-pricing__item {
    max-width: 460px;
  }
  .lead-how__content-description {
    display: none;
  }
  .lead-pricing__swiper {
    padding-bottom: 60px !important;
    width: 100%;
  }
  .lead-pricing__swiper .swiper-slide {
    height: auto;
    display: flex;
  }
  .lead-pricing__swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #000;
    opacity: 0.2;
    transition: all 0.3s ease;
  }
  .lead-pricing__swiper .swiper-pagination-bullet-active {
    width: 30px;
    border-radius: 5px;
    opacity: 1;
    background: #7a2bf4 !important;
  }
  .lead-pricing__swiper .swiper-pagination {
    bottom: 10px !important;
  }
  .lead-create__subtitle {
    margin-bottom: 70px;
  }
  .lead-demo-form__container {
    gap: 48px;
    justify-content: space-between;
  }
}

@media screen and (min-width: 900px){
.lead-create{
  margin-top: 84px;
}
}

@media screen and (max-width: 900px) {
  .lead-spots-1 {
    margin-left: 50%;
  }
  .lead-spots-2 {
    top: 200px;
    width: 200px;
  }
  .lead-spots-3 {
    height: 350px;
    width: 300px;
  }
  .lead-spots-5 {
    width: 550px;
    margin-top: 15%;
  }
  .lead-manage {
    margin-top: 84px;
  }

  .lead-manage__container {
    gap: 100px;
    overflow-x: hidden;
  }
  .lead-manage__title {
    font-size: 32px;
    text-transform: none;
  }
  .lead-manage__subtitle {
    font-size: 20px;
  }
  .lead-manage__svg {
    margin-left: 95px;
    top: 25px;
  }
  .lead-manage__buttons {
    flex-direction: column;
  }
  .lead-manage__button-item {
    width: 100%;
  }
  .lead-manage__img {
    max-height: 217.5px;
    margin-right: -40%;
    overflow: hidden;
    border-radius: min(16px, 2vw);
  }
  .lead-benefits__item-title {
    font-size: 18px;
  }
  .lead-benefits__item-description {
    font-size: 16px;
  }

  .lead-how {
    overflow: visible; /* чтобы фрейм профиля выступал так же, как на десктопе */
  }

  .lead-how__text {
    width: 40%;
    margin-top: 15%;
  }
  .lead-how__content {
    width: 60%;
  }
  .lead-create__container {
    padding: 0;
  }
  .lead-track {
    padding-bottom: 140px; 
    /* меньше отступ снизу, чтобы Optimize & scale было ближе к фреймам */
  }
  .lead-track__box-2 {
    display: none;
  }
  .lead-optimize {
    display: block;
    margin-top: 0; /* когда экран < 900px – без отступа сверху */
    margin-bottom: 50px; /* снизу от этого блока 50px */
  }
  .lead-demo-form__container {
    gap: 48px;
    justify-content: space-between;
  }
  .lead-demo-form__left {
    width: 50%;
  }
  .lead-demo-form__right {
    width: 50%;
  }
  .lead-demo-form__input {
    width: 100%;
  }
  .lead-demo-form__title {
    font-size: 20px;
  }
}

@media screen and (max-width: 735px) {
  .lead-container {
    padding: 0 16px;
  }
  .lead-spots-1 {
    margin-left: 25%;
    height: 570px;
    width: 800px;
  }
  .lead-spots-2 {
    margin-top: 300px;
    opacity: 0.7;
  }
  .lead-spots-3 {
    top: 9%;
    opacity: 0.7;
  }
  .lead-spots-4 {
    height: 400px;
    margin-left: -8%;
    opacity: 0.8;
  }
  .lead-spots-5 {
    width: 70%;
    margin-top: 8%;
    opacity: 0.6;
  }
  .lead-manage__container {
    flex-direction: column;
    padding: 0 16px;
  }
  .lead-manage__box {
    width: 100%;
  }
  .lead-manage__img {
    display: none;
  }
  .lead-manage__img-2 {
    display: block;
    max-width: 550px;
    height: 320px;
    min-height: 320px;
    margin-top: 50px;
    margin-left: 160px;
  }
  .lead-manage__title {
    font-size: 32px;
    text-transform: uppercase;
  }
  .lead-manage__description {
    margin-top: 25px;
    font-size: 16px;
  }
  .lead-benefits__item {
    padding: 8px 12px;
  }
  .lead-benefits__item-title {
    font-size: 16px;
  }
  .lead-benefits__item-description {
    font-size: 14px;
  }
  .lead-benefits__svg {
    max-width: 32px;
    max-height: 32px;
  }
  .lead-benefits__subtitle {
    margin-bottom: 50px;
  }
  .lead-how__box {
    flex-direction: column-reverse;
  }
  .lead-how__content {
    width: 100%;
    margin-left: auto;
  }
  .lead-how__text {
    margin-top: 30%; /* увеличенный отступ сверху когда текст под фреймами (было 120px) */
    width: 100%;
  }
  .lead-create__subtitle {
    margin-bottom: 20px;
  }
  .lead-track__title {
    font-size: 19px;
    margin-bottom: 5px;
  }
  .lead-demo-form__container {
    flex-direction: column;
  }
  .lead-demo-form__left {
    width: 90%;
  }
  .lead-demo-form__right {
    width: 90%;
  }
}

@media screen and (max-width: 400px) {
  .lead-spots-1 {
    margin-left: 25%;
    height: 500px;
    width: 500px;
  }
  .lead-spots-2 {
    width: 150px;
    margin-top: 250px;
  }
  .lead-spots-3 {
    top: 15%;
    width: 200px;
    height: 300px;
  }
  .lead-spots-4 {
    margin-top: -80px;
    height: 250px;
    margin-left: -65%;
  }
  .lead-spots-5 {
    width: 85%;
    margin-top: -45%;
    opacity: 0.5;
  }
  .lead-manage__img-2 {
    display: block;
    max-width: 400px;
    height: 320px;
    min-height: 320px;
    margin-top: 50px;
    margin-left: 70px;
  }
  .lead-manage__title {
    font-size: 24px;
    text-transform: uppercase;
  }
  .lead-manage__description {
    margin-top: 22px;
    font-size: 14px;
  }
  .lead-manage__button-item {
    font-size: 12px;
  }
  .lead-benefits__item {
    padding: 8px 12px;
  }
  .lead-benefits__subtitle {
    font-size: 12px;
  }
  .lead-benefits__item-title {
    font-size: 14px;
  }
  .lead-benefits__item-description {
    font-size: 12px;
  }
  .lead-benefits__svg {
    max-width: 22px;
    max-height: 22px;
  }
  .lead-how__subtitle {
    padding-right: 10px;
  }
  .lead-how__text {
    padding-right: 10px;
  }
  .lead-how__text-title {
    font-size: 20px;
  }
  .lead-create__container {
    flex-direction: column-reverse;
  }
  .lead-create__title {
    font-size: 18px;
    margin-top: 24px;
  }
  .lead-create__subtitle {
    display: none;
  }
  .lead-track {
    padding-bottom: 50px;
  }
  .lead-track__title {
    font-size: 20px;
  }
  .lead-track__container {
    display: flex;
    flex-direction: column-reverse;
  }
  .lead-track__img {
    margin-bottom: 30px;
  }
  .lead-track__br {
    display: none;
  }

  .lead-optimize__button {
    margin-top: 30px;
    width: 100%;
    font-size: 12px;
  }
  .lead-optimize__text {
    display: none;
  }
  .lead-popular-most {
    margin-top: -30px;
    height: 25px;
    font-size: 12px;
  }
  .lead-pricing__item {
    height: 500px;
    padding-top: 30px;
  }
  .lead-pricing__item-title {
    font-size: 20px;
  }
  .lead-pricing__item-price-number {
    font-size: 20px;
  }
  .lead-pricing__item-price-text {
    font-size: 8px;
  }

  .lead-demo-form__title {
    font-size: 15px;
  }
}

@media (min-width: 1200px) {
  .lead-pricing__box {
    display: flex !important;
    transform: none !important;
    justify-content: center;
  }
  .lead-pricing__swiper .swiper-pagination {
    display: none;
  }
}

.lead-pricing__swiper {
  width: 100%;
  padding-bottom: 50px;
}

.lead-pricing__item {
  width: 100%;
}
