/* Общий блок «Начните … уже сегодня!» + форма заявки: start/cta_form.php
   Макет: Figma «Новые страницы сайта», страница [Блог], фреймы 1440 / 768 / 390. */

.cta_form_section {
    margin: 80px 0;
    font-family: 'Montserrat', sans-serif;
    color: #3d392a;
}

.cta_form {
    display: flex;
    align-items: center;
    gap: 47px;
}

.cta_form_info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}

.cta_form_text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.cta_form_title {
    max-width: 570px;
    margin: 0;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.22;
    color: #3d392a;
    position: relative;
    z-index: 0;
}

/* Слова в жёлтой «обводке» */
.cta_form_title .cta_mark {
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

.cta_form_title .cta_mark::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 62%;
    width: calc(100% + 76px);
    height: 205%;
    transform: translate(-50%, -50%);
    background: url("img/cta_mark.svg") center / 100% 100% no-repeat;
    z-index: -1;
    pointer-events: none;
}

.cta_form_subtitle {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.22;
    color: #a6a6a6;
}

.cta_form_buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.cta_form_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.22;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color .2s ease, color .2s ease;
}

.cta_form_btn_primary {
    padding: 12px 16px;
    background: #fecc17;
    color: #3d392a;
}

.cta_form_btn_primary:hover {
    background: #f5c000;
}

.cta_form_btn_link {
    padding: 12px 0;
    background: transparent;
    color: #a6a6a6;
}

.cta_form_btn_link span {
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}

.cta_form_btn_link:hover {
    color: #3d392a;
}

/* Форма */
.cta_form_card {
    flex: 0 0 490px;
    width: 490px;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    box-sizing: border-box;
}

.cta_form_fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cta_form_field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

.cta_form_label {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.22;
    color: #a6a6a6;
}

.cta_form_input {
    width: 100%;
    height: 44px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: #3d392a;
    box-sizing: border-box;
    outline: none;
    transition: border-color .2s ease;
}

.cta_form_input::placeholder {
    color: #a6a6a6;
    opacity: 1;
}

.cta_form_input:focus {
    border-color: #fecc17;
}

.cta_form_methods {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.cta_form_methods_title {
    padding: 0;
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.22;
    color: #3d392a;
}

.cta_form_methods_list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cta_form_method {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.cta_form_method input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.cta_form_method span {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #f6f6f6;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.22;
    color: #3d392a;
    box-sizing: border-box;
    transition: border-color .2s ease;
}

.cta_form_method:hover span {
    border-color: #ffe48a;
}

.cta_form_method input:checked + span {
    border-color: #fecc17;
}

.cta_form_method input:focus-visible + span {
    outline: 2px solid #fecc17;
    outline-offset: 2px;
}

.cta_form_consents {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: -12px;
}

.cta_form_consent {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
}

.cta_form_consent input {
    position: absolute;
    left: 0;
    top: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0;
    opacity: 0;
}

.cta_form_checkbox {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin: 2px;
    border: 1.5px solid #fecc17;
    border-radius: 4px;
    background: #fff center / 10px 8px no-repeat;
    box-sizing: border-box;
    transition: background-color .2s ease;
}

.cta_form_consent input:checked + .cta_form_checkbox {
    background-color: #fecc17;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l2.5 2.5L9 1' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.cta_form_consent input:focus-visible + .cta_form_checkbox {
    outline: 2px solid #fecc17;
    outline-offset: 2px;
}

.cta_form_consent_text {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.22;
    color: #a6a6a6;
}

.cta_form_consent_text a {
    color: #fecc17;
    text-decoration: underline;
}

.cta_form_submit {
    width: 100%;
    height: 56px;
    padding: 12px 16px;
    border: 0;
    border-radius: 12px;
    background: #fecc17;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #3d392a;
    cursor: pointer;
    transition: background-color .2s ease;
}

.cta_form_submit:hover {
    background: #f5c000;
}

.cta_form_submit:disabled {
    opacity: .6;
    cursor: default;
}

/* Планшет: текст сверху, форма на всю ширину (макет 768) */
@media (max-width: 1099px) {
    .cta_form {
        flex-direction: column;
        align-items: stretch;
        gap: 40px;
    }

    .cta_form_title {
        font-size: 30px;
    }

    .cta_form_card {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* Мобильный (макет 390) */
@media (max-width: 599px) {
    .cta_form_section {
        margin: 60px 0;
    }

    .cta_form {
        gap: 32px;
    }

    .cta_form_info {
        gap: 20px;
    }

    .cta_form_text {
        gap: 12px;
    }

    .cta_form_title {
        font-size: 22px;
    }

    .cta_form_title .cta_mark::before {
        width: calc(100% + 36px);
    }

    .cta_form_submit {
        height: 44px;
    }
}
