.form.popup.inline .form-body {
    padding-left: 0px;
    padding-right: 0px;
    padding-bottom: 0;
}

.form.inline .form-header {
    display: none;
    justify-content: flex-start;
    padding-top: 0px !important;
    padding-left: 0px !important;
    padding-right: 0px !important;
    padding-bottom: 0px !important;
}


.form.inline .form-header .text {
    text-align: left;
    /* было center */
}

.form.inline .form-header .form_desc {
    margin-top: 0px;
    font-size: 14px;
    line-height: 21px;
    font-weight: 400;
}

.form.inline .form-header .title {
    font-size: 32px;
    /* было 36px */
    line-height: 110%;
    font-weight: 600;
    max-width: none;
    /* было 270px */
    text-align: left;
}

.FORMS .form {
    border: 1px solid var(--tizer_text_black);
}

.form.inline form {
    padding-bottom: 0px;
    display: flex;
    width: 100%;
    flex-direction: column;
}

.form.inline .form-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
}

.form.inline.success .form-body {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: stretch;
    padding-bottom: 35px;
}

.form.inline .form-body .form-group {
    margin-bottom: 0px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 40px;
    justify-content: space-between;
}

.form.inline label:not(.form-checkbox__label) {
    margin-bottom: 0px;
    font-size: 12px !important;
    line-height: 110%;
    font-weight: 400;
    color: rgba(44, 44, 44, 0.7);
}

.form.inline .form-body [data-sid="PHONECALL"] {
    grid-column: span 2;
}

.form [data-sid="PHONECALL"] .form-group {
    display: flex;
    margin-bottom: 0px;
}

[data-sid="PHONECALL"] .form-group .input {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 48px;
}

[data-sid="PHONECALL"] .form-group .input .filter {
    min-height: unset;
    margin-top: 0px;
    margin-bottom: 0px;
    padding-left: 0px;
}

[data-sid="PHONECALL"] .form-group .input .filter input {
    height: auto;
}

[data-sid="PHONECALL"] .form-checkbox__input:not(:checked)+label.form-checkbox__label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    line-height: 21px;
    display: flex;
    align-items: center;
}

[data-sid="PHONECALL"] .form-checkbox__input:not(:checked)+label.form-checkbox__label .form-checkbox__box {
    opacity: 1;
}

[data-sid="PHONECALL"] .form-checkbox__box {
    background: rgb(40, 40, 40);
}

.form.popup.inline .form-footer {
    padding-left: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
}

.form.popup.inline .form-footer .btn {
    font-size: 14px;
    /* было 15px */
    line-height: 18px;
    font-weight: 600;
    text-transform: uppercase;
    height: auto;
    padding: 12px 32px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 24px;
}

.form.popup.inline .form-footer .btn:hover {
    background: #333;
}


.form.popup.inline .form-footer .btn-cancel:hover {
    border-color: #000;
    background: #f5f5f5;
}

/* Контейнер для кнопок */
.form.popup.inline .form-footer div {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.form.popup.inline .licence_block {
    margin: 0;
    margin-left: 0px;
    position: relative;
    display: flex;
    box-shadow: none;
    font-size: 12px;
    line-height: calc(1em + 4px);
    padding: 16px 0 0 0;
    /* было 14px 60px 0px 0 */
    text-align: left;
    /* было center */
    width: 100%;
    /* было calc(33% + 12px) */
    margin-left: 0;
    /* было auto */
    justify-content: flex-start;
    /* было center */
    gap: 8px;
}

.form.popup.inline label.error {
    color: #C50000 !important;
    margin: 4px 0 0 0 !important;
    padding: 0;
    position: absolute;
    font-size: 13px;
    line-height: calc(1em + 4px);
    white-space: nowrap;
    display: block;
}

.form.popup.inline .input.error input,
.form.popup.inline .input.error textarea,
.form.popup.inline .captcha_input.error input {
    border-color: #C50000;
}

.form.popup.inline .form-checkbox__input:checked+.form-checkbox__label .form-checkbox__box {
    border: 8px solid #282828;
    border-color: var(--filter-bg);
    background-color: #282828;
    background-color: var(--filter-bg);
}

.form.popup.inline .form-checkbox__label:hover .form-checkbox__box {
    box-shadow: 0px 0px 0px 1px inset var(--filter-bg);
    border-color: var(--filter-bg);
}

.form.popup.inline select {
    background: url("data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>") no-repeat var(--input_bg_color);
    background-position: calc(100% - 0.75rem) center !important;
    -moz-appearance: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    padding-right: 2rem !important;
}

.form.popup.inline select:not([readonly]):not([disabled]):hover {
    background: url("data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>") no-repeat var(--input_bg_color);
    background-position: calc(100% - 0.75rem) center !important;
    -moz-appearance: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    padding-right: 2rem !important;
}

.form.popup.inline select:active {
    background: url("data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 4.86l4.796 5.482c.566.645.106 1.658-.753 1.658H3.204a1 1 0 0 1-.753-1.659l4.796-5.48a1 1 0 0 1 1.506 0z'/></svg>") no-repeat var(--input_bg_color);
    background-position: calc(100% - 0.75rem) center !important;
}

.FORMS .relative {
    overflow: hidden;
}

.FORMS .form-fon {
    background-size: cover;
    background-position: center;
    filter: blur(3px);
    overflow: hidden;
}

.FORMS .form-fon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 1));
    pointer-events: none;
}

.captcha-row label, .form .captcha-row .refresh {
    display: none;
}

.FORMS .form.popup .captcha-row {
    margin-bottom: 0;
    max-width: 100%;
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
}

.FORMS .form .captcha-row .captcha_image {
    height: 65px;
    position: relative;
    width: auto;
}

/* Стили полей ввода - подчёркивание */
.form.popup.inline .form-control,
.form.popup.inline input.inputtext,
.form.popup.inline input[type="text"],
.form.popup.inline input[type="tel"],
.form.popup.inline input[type="email"],
.form.popup.inline textarea {
    border: none !important;
    border-bottom: 1px solid rgba(44, 44, 44, 0.2) !important;
    background: transparent !important;
    padding: 0px 0 4px 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: 100%;
    height: 18px;
    line-height: 110% !important;
}

.form.popup.inline .form-control:focus,
.form.popup.inline input:focus,
.form.popup.inline textarea:focus {
    border-bottom-color: #000 !important;
    outline: none;
}

/* Скрываем старые label */
/*.form.popup.inline .form-group label {
    display: none;
}*/

@media (max-width: 1700px) {
    .FORMS .form.popup .captcha-row {
        margin-bottom: 0;
        max-width: 100%;
        position: absolute;
        bottom: 40px;
        left: auto;
        transform: unset;
    }
}

@media (max-width: 1024px) {
    .form.popup.inline .form-body {
        padding-left: 24px;
        padding-right: 24px;
        padding-bottom: 0;
    }
}

@media (max-width: 991px) {
    .form.inline .form-body {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .form.inline .form-body [data-sid="PHONECALL"] {
        grid-column: span 1;
    }

    .form.popup.inline .licence_block {
        width: 100%;
    }

    .form.inline .form-header .title {
        font-size: 32px;
        line-height: 1.2;
        font-weight: 600;
    }

    .FORMS .form.popup .captcha-row {
        margin-bottom: 0;
        max-width: 100%;
        position: relative;
        bottom: 0px;
        left: unset;
        transform: unset;
        justify-self: flex-start;
    }

    .form.popup.inline .form-footer div {
        flex-direction: column;
    }

    .form.popup.inline .form-footer .btn,
    .form.popup.inline .form-footer .btn-cancel {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 769px) {
    [data-sid="PHONECALL"] .form-group .input {
        display: flex;
        flex-direction: column;
        align-items: baseline;
        gap: 10px;
    }

    [data-sid="PHONECALL"] .form-group .input .filter input {
        height: 0px;
    }

    .form.popup.inline .licence_block {
        padding: 14px 24px 0px 24px;
    }

    .form.inline .form-header .title {
        font-size: 28px;
        line-height: 1.2;
    }
}

@media (max-width: 360px) {
    .form.popup.inline .form-footer .btn {
        font-size: 12px;
        line-height: 18px;
        font-weight: 600;
        text-transform: uppercase;
        height: auto;
        padding: 10px 16px;
    }

    .form.popup.inline .form-control,
    .form.popup.inline .form input,
    .form.popup.inline .form textarea,
    .form.popup.inline .form select {
        font-size: 14px;
    }
}