/* ============================================================
   ND Premium — CTA Discuss Section
   /assets/css/nd-premium/cta-discuss.css
   ============================================================ */

.ndp-ctad {
    position: relative;
    width: 100%;
    min-height: 800px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
margin-top:-1px;
}

/* ── Фон ── */
.ndp-ctad__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.ndp-ctad__bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Мобильный фон — скрыт на десктопе */
.ndp-ctad__bg-img--mobile  { display: none; }
.ndp-ctad__bg-img--desktop { display: block; }

/* Градиент сверху (#1b1b1b → прозрачный) */
.ndp-ctad__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(27, 27, 27, 1)   0%,
        rgba(27, 27, 27, 0)   100%
    );
    z-index: 1;
}

/* ── Декоративный вектор ── */
.ndp-ctad__vector {
    position: absolute;
    right: -75px;
    top: 85px;
    width: 935px;
    max-width: 964px;
    height: auto;
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
}

/* ── Контент ── */
.ndp-ctad__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 200px 40px 160px;
    max-width: 1000px;
    gap: 32px;
}

/* Заголовок */
.ndp-ctad__title {
    color: #efefef;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(36px, 3.75vw, 72px);
    line-height: 1.1;
    font-weight: 200;
    text-transform: uppercase;
    margin: 0;
    max-width: 994px;
}

/* Описание */
.ndp-ctad__desc {
    color: #ffffff;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(16px, 1.25vw, 24px);
    line-height: 1.25;
    font-weight: 400;
    margin: 0;
    max-width: 433px;
}

/* ── Форма ── */
.ndp-ctad__form {
    width: 100%;
    max-width: 931px;   /* 510 + 421 = 931 по макету */
}

/* CF7 форма — уникальные классы ndp-ctad-cf7 */
.ndp-ctad-cf7,
.ndp-ctad__form .wpcf7-form {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 30px;
}

.ndp-ctad__form .wpcf7-form p { margin: 0; }

/* Инпут телефона */
.ndp-ctad-cf7__input,
.ndp-ctad__form .wpcf7-form input[type="tel"],
.ndp-ctad__form .wpcf7-form input[type="text"] {
    width: 510px;
    height: 70px;
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    outline: none;
    padding: 0 30px;

    color: #efefef;
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;

    appearance: none;
    -webkit-appearance: none;
}

.ndp-ctad-cf7__input::placeholder,
.ndp-ctad__form .wpcf7-form input::placeholder {
    color: #efefef;
    opacity: 0.7;
}

/* Кнопка submit */
.ndp-ctad-cf7__submit,
.ndp-ctad__form .wpcf7-form input[type="submit"],
.ndp-ctad__form .wpcf7-form .wpcf7-submit {
    width: 421px;
    height: 70px;
    background: #000000;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0 20px;

    color: #ffffff;
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;

    box-shadow:
        0 10px 15px 0 rgba(70, 37, 4, 0.2),
        0  4px  4px 0 rgba(0, 0, 0, 0.25);
    transition: background 0.2s ease;
    white-space: nowrap;
    appearance: none;
    -webkit-appearance: none;
}

.ndp-ctad-cf7__submit:hover,
.ndp-ctad__form .wpcf7-form input[type="submit"]:hover {
    background: #1a1a1a;
}

/* CF7 вспомогательные */
.ndp-ctad__form .wpcf7-spinner  { display: none; }
.ndp-ctad__form .wpcf7-response-output {
    margin: 8px auto 0;
    max-width: 931px;
    padding: 8px 16px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    color: #efefef;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.3);
    text-align: center;
}

/*
 * CF7 шаблон формы:
 * [tel* your-phone placeholder "Ваш номер" class:ndp-ctad-cf7__input]
 * [submit "Обсудить проект" class:ndp-ctad-cf7__submit]
 */

/* ============================================================
   Адаптив
   ============================================================ */


@media (max-width: 1440px){

.ndp-ctad__vector { width: 728px;}
.ndp-ctad__content {  max-width: 787px;}

}

@media (max-width: 1280px){

.ndp-ctad__vector { width: 638px;}
.ndp-ctad__content {  max-width: 650px;}

}


@media (max-width: 1024px){

.ndp-ctad__vector {
    width: 530px;
    top: 120px;
}
.ndp-ctad__content {  max-width: 550px;}


    .ndp-ctad-cf7__input,
    .ndp-ctad__form .wpcf7-form input[type="tel"] {
        width: 350px;
        font-size: 20px;
    }

    .ndp-ctad-cf7__submit,
    .ndp-ctad__form .wpcf7-form input[type="submit"] {
        width: 350px;
        font-size: 20px;
    }

}


@media (max-width: 768px) {
    /* Переключаем на мобильный фон если задан */
    .ndp-ctad__bg-img--desktop { display: none; }
    .ndp-ctad__bg-img--mobile  { display: block; }

    .ndp-ctad__content { padding: 120px 24px 100px; gap: 24px; }
    .ndp-ctad__vector  { width: 80%; opacity: 0.3; }

    .ndp-ctad-cf7,
    .ndp-ctad__form .wpcf7-form {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .ndp-ctad-cf7__input,
    .ndp-ctad__form .wpcf7-form input[type="tel"] {
        width: 100%;
        font-size: 18px;
    }

    .ndp-ctad-cf7__submit,
    .ndp-ctad__form .wpcf7-form input[type="submit"] {
        width: 100%;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .ndp-ctad__content { padding: 80px 16px 80px; }
    .ndp-ctad__title   { font-size: clamp(28px, 8vw, 48px); }
}
