/* стили для банера */
.banner-konkurent {
    display: flex;
    flex-direction: column;
    max-width: 1296px;
    width: 100%;
    padding: 32px;
    align-items: flex-start;
    gap: 16px;

    border-radius: 10px;
    position: relative;
    overflow: hidden;

}


.banner-konkurent::before {
  content: "";
  position: absolute;
  background: url('https://insperia.ru/wp-content/uploads/2026/09/desktop_konkurent-scaled.webp')
              center / cover no-repeat;
  pointer-events: none;

    top: 0;
    right: 0;
    width: 100%;
    height: 100%;

}

.banner-konkurent__title {
    display: flex;
    padding: 2px 20px;
    justify-content: center;
    align-items: center;
    gap: 10px;

    background: #ED65BA;

    z-index: 3;

}

.banner-konkurent__title h3 {
    color: var(--Text-text, #FFF);
    font-family: Stolzl;
    font-size: 40px;
    font-style: normal;
    font-weight: 500;
    line-height: 48px;

}

.banner-konkurent__text1 {
    max-width: 770px;

    color: #111;
    font-family: Raleway;
    font-size: 28px;
    font-style: normal;
    font-weight: 400;
    line-height: 36px;

    z-index: 3;

}

.banner-konkurent__text2 {
    color: #111;
    font-family: Raleway;
    font-size: 28px;
    font-style: normal;
    font-weight: 700;
    line-height: 36px;
}

.banner-konkurent__button {
    display: flex;
    height: 56px;
    width: 100%;
    max-width: 837px;
    padding: 16px 28px;
    justify-content: center;
    align-items: center;
    gap: 10px;

    border-radius: 5px;
    background: var(--Text-text-contrast, #000);

    color: var(--Text-text, #FFF);
    text-align: center;
    font-variant-numeric: lining-nums proportional-nums;
    font-family: Raleway;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 22px;

    margin-top: 16px;

    z-index: 3;

    cursor: pointer;

}

.banner-konkurent__button:hover {
    opacity: 0.9;
}

.banner-konkurent__img-main1 {
    display: none;

    height: 100%;

    z-index: 0;

    width: unset !important;

    z-index: 1;

}

.banner-konkurent__img-main2 {
    position: absolute;
    bottom: 0px;
    right: 0px;

    height: 100%;

    z-index: 0;

    width: unset !important;

    z-index: 0;

}

@media (max-width: 1120px) {
    .banner-konkurent__img-main2 {
        display: none;

    }
}

@media (max-width: 768px) {
    .banner-konkurent {
        padding: 20px 20px 0px 20px;
        gap: 16px;
    }

    .banner-konkurent__img-main1 {
        display: flex;

    }

    .banner-konkurent::before {
    content: "";
    position: absolute;
    background: url('https://insperia.ru/wp-content/uploads/2026/09/mob_konkurent.webp')
                center / cover no-repeat;
    pointer-events: none;

        top: 0;
        right: 0;
        width: 100%;
        height: 100%;

    }

    .banner-konkurent__title {
        padding: unset;
        background: unset;
        align-self: center;

    }

    .banner-konkurent__title h3 {
        display: flex;
        flex-direction: column;

        color: var(--Text-text, #FFF);
        font-family: Stolzl;
        font-size: 24px;
        font-style: normal;
        font-weight: 500;
        line-height: 32px;

    }

    .banner-konkurent__title h3 span {
        align-self: flex-end;
        padding: 2px 5px;
        background: #ED65BA;

    }

    .banner-konkurent__title h3 span:nth-of-type(1) {
        transform: rotate(-0.767deg);
    }

    .banner-konkurent__title h3 span:nth-of-type(2) {
        margin-top: -2px;
    }

    .banner-konkurent__text1 {
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 22px;
        text-align: center;
    }

    .banner-konkurent__text2 {
        font-size: 16px;
        font-style: normal;
        font-weight: 700;
        line-height: 22px;
    }

    .banner-konkurent__button {
        height: 44px;
        width: 100%;

        color: var(--Text-text, #FFF);
        text-align: center;
        font-family: Raleway;
        font-size: 14px;
        font-style: normal;
        font-weight: 600;
        line-height: 20px;

        margin-top: 8px;
        border-radius: 0px;
    }

}















/* стили для попапа */

.konkurent-popup {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: none;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.5);
}

.konkurent-popup[open] {
    display: flex;
    justify-content: center;
    align-items: center;
}


.konkurent-popup__content-form {
   position: relative;
   text-align: center;
   max-width: 448px;
   width: 100%;
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 24px;
   box-sizing: border-box;
}

.konkurent-popup-form-main {
   background: #fff;
   padding: 20px;
   width: 100%;
   box-sizing: border-box;
   position: relative;
   z-index: 2;
}

.konkurent-popup-form {
   display: flex;
   flex-direction: column;
   gap: 12px;
}

.konkurent-popup-form-close {
    display: flex;
    align-self: flex-end;
    cursor: pointer;

}

.konkurent-popup-form-title {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    align-items: center;

}

.konkurent-popup-form-title p {
    color: var(--text-text, #141414);
    text-align: center;

    font-family: Stolzl;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
}

.konkurent-popup-form-title span {
    color: var(--text-text, #141414);
    text-align: center;

    font-family: Raleway;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;

}

.konkurent-popup-form-row {
   display: flex;
   flex-direction: column;
   gap: 12px;
}
.konkurent-popup-form-row > * {
   flex: 1;
   min-width: 0;
}

.konkurent-popup-form input[type="text"],
.konkurent-popup-form input[type="tel"],
.konkurent-popup-form select {
   width: 100%;
   box-sizing: border-box;
   padding: 14px 12px;
   border: 1px solid #ddd;
   font-size: 14px;
   color: #1a1a1a;
   background: #fff;
    font-family: Raleway;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
}

.konkurent-popup-form select {
   appearance: none;
   -webkit-appearance: none;
}

.konkurent-popup-form select:invalid {
   color: #7D7D7D;
}

.konkurent-popup-popup-form-submit {
   width: 100%;
   height: 49px;
   border: none;
   cursor: pointer;
   background: var(--Russian-primary-light, #A8F5DA);
   color: #000;
   padding: 11px 24px;
   font-family: Stolzl, sans-serif;
   font-size: 14px;
   font-style: normal;
   font-weight: 400;
   line-height: 18px;
   transition: background 0.2s;
}
.konkurent-popup-popup-form-submit:hover {
   background: #65EBBB;
}
.konkurent-popup-popup-form-submit:disabled {
   opacity: 0.6;
   cursor: not-allowed;
}

.konkurent-popup-popup-form-consent {
   display: flex;
   align-items: flex-start;
   gap: 8px;
   text-align: left;
   font-size: 12px;
   line-height: 16px;
   color: #777;
   margin-top: 4px;
}
.konkurent-popup-popup-form-consent input[type="checkbox"] {
   margin-top: 2px;
   flex-shrink: 0;
   accent-color: #000;
}
.konkurent-popup-popup-form-consent a {
   color: #7D7D7D;
   text-decoration: underline;
   text-underline-offset: 3px;
   text-decoration-thickness: 1px;
   font-family: Raleway;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
}

.konkurent-popup-popup-form-consent span {
    font-family: Raleway;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
    color: #7D7D7D;

}

/* Экран успеха */
.konkurent-popup__content-success {
   display: flex;
   flex-direction: column;
   gap: 12px;
   justify-content: center;
   align-items: center;
   background-image: url('https://insperia.ru/wp-content/uploads/2026/09/lead-form-success-mobile1.webp');
   background-size: cover;
   background-position: center;
   background-repeat: no-repeat;
   padding: 20px;
}

.d-none {
   display: none !important;
}

.konkurent-popup-form input.invalid,
.konkurent-popup-form select.invalid {
   border-color: #e53935;
   background: #fff8f8;
}

.konkurent-popup-form input[type="checkbox"].invalid {
   outline: 2px solid #e53935;
   outline-offset: 2px;
   border-radius: 2px;
}

.konkurent-popup-form-error {
   color: #e53935;
   font-size: 12px;
   line-height: 16px;
   margin-top: 4px;
   text-align: left;
}

.konkurent-popup__content-success-title {
   margin: 0 0 12px;
   color: var(--text-text, #141414);
   text-align: center;
   font-family: Stolzl;
   font-size: 22px;
   font-style: normal;
   font-weight: 500;
   line-height: 24px;
}

.konkurent-popup__content-success-text {
   font-weight: 400;
   font-size: 20px;
   line-height: 24px;
   margin-bottom: 12px;
   text-align: center;
   font-family: Raleway;
}

.konkurent-popup__content-success img {
   width: 100%;
   display: block;
   margin-bottom: -24px;
}

.konkurent-popup__content-success-tg-link {
   display: flex;
   width: 100%;
   max-width: 400px;
   height: 44px;
   padding: 11px 16px;
   justify-content: center;
   align-items: center;
   gap: 4px;
   background: var(--button-tertiaty, #141414);
   color: var(--text-text-overlay, #FFF);
   text-align: center;
   font-family: Stolzl, sans-serif;
   font-size: 14px;
   font-weight: 400;
   line-height: 18px;
   text-decoration: none;
}

@media (max-width: 480px) {
    .konkurent-popup__content-form {
        margin: 0 16px;
    }
    .konkurent-popup-form-title p {
        font-family: Raleway;
        font-size: 16px;
        font-style: normal;
        font-weight: 600;
        line-height: 20px;
    }

    .konkurent-popup-form-title span {
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 18px; 

    }
   .konkurent-popup-form-row {
      flex-direction: column;
   }
   .konkurent-popup-popup-form-submit {
      font-size: 12px;
      line-height: 16px;
   }
   .konkurent-popup__content-success-title {
      color: var(--text-text, #141414);
      text-align: center;
      font-family: Raleway;
      font-size: 20px;
      font-style: normal;
      font-weight: 600;
      line-height: 20px;
   }
   .konkurent-popup__content-success-text {
      font-weight: 400;
      font-size: 14px;
      line-height: 18px;
      margin-bottom: 8px;
   }
   .konkurent-popup__content-success-tg-link {
      height: 38px;
      max-width: 295px;
      padding: 12px 16px;
      align-self: center;
      font-size: 12px;
      line-height: 16px;
   }
   .konkurent-popup__content-success img {
      margin-bottom: -16px;
   }
}