/* ==========================================================================
   Leadform0 — subscribe-блок
   ========================================================================== */

.subscribe_container_reveal.animate__animated.animate__fadeInDown {
    animation-duration: 0.7s;
    animation-fill-mode: both;
    animation-name: subscribe_container_fade_in_down;
}

@keyframes subscribe_container_fade_in_down {
    from {
        opacity: 0;
        transform: translate3d(0, -28px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.site_subscribe_section {
    padding: 0;
}

.site_subscribe_section .container_wrap {
    max-width: 1240px;
    margin: 0 auto;
}

.subscribe_container {
    margin: 50px 0;
    padding: 40px;
    border-radius: 45px;
    color: #fff;
    text-align: center;
}

.subscribe_container_gradient {
    background:
        linear-gradient(
            100deg,
            color-mix(in srgb, var(--secondary-color, #174bdd) 88%, transparent),
            color-mix(in srgb, var(--primary-color, #287ef5) 94%, transparent)
        ),
        url("../images/subscribe_bg.webp") no-repeat center center;
    background-size: cover;
}

.subscribe_container_title {
    color: #fff;
    font-family: "Comfortaa", sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 16px;
}

.subscribe_container_intro {
    color: #fff;
    font-family: "Comfortaa", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    opacity: 0.95;
}

.subscribe_form {
    background-color: #fff;
    border-radius: 40px;
    box-shadow: 0 9px 56px 0 rgba(0, 0, 0, 0.06);
    margin: 24px auto 36px auto;
    max-width: 920px;
    overflow: visible;
    padding: 8px;
    position: relative;
    width: 100%;
}

.subscribe_form_body {
    width: 100%;
}

.subscribe_form_body .leadform_wrap {
    align-items: stretch;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-wrap: nowrap;
    font-family: "Comfortaa", sans-serif;
    gap: 8px;
    margin: 0;
    max-width: none;
    padding: 0;
    width: 100%;
}

.subscribe_form_body .leadform_wrap > h3 {
    display: none;
}

.subscribe_form_body .leadform_item:not(.btn) {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 0;
    margin: 0;
    min-width: 0;
    position: relative;
}

.subscribe_form_body .leadform_item:not(.btn) + .leadform_item:not(.btn)::before {
    background: rgba(71, 79, 85, 0.14);
    bottom: 18px;
    content: "";
    left: 0;
    position: absolute;
    top: 18px;
    width: 1px;
    z-index: 1;
}

.subscribe_form_body .leadform_item i {
    display: none;
}

.subscribe_form_body .leadform_item input[type="text"] {
    background: transparent;
    border: none;
    border-radius: 32px;
    box-shadow: none;
    box-sizing: border-box;
    color: #474f55;
    font-family: "Comfortaa", sans-serif;
    font-size: 14px;
    height: 64px;
    margin: 0;
    outline: none;
    padding: 0 20px;
    text-indent: 0;
    width: 100%;
}

.subscribe_form_body .leadform_item input[type="text"]:hover,
.subscribe_form_body .leadform_item input[type="text"]:focus {
    border: none;
    box-shadow: none;
}

.subscribe_form_body .leadform_item input[type="text"]::placeholder {
    color: #5a6572;
    opacity: 1;
}

.subscribe_form_body .leadform_item input[type="text"]::-webkit-input-placeholder {
    color: #5a6572;
    opacity: 1;
}

.subscribe_form_body .leadform_item.btn {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: auto;
    margin: 0;
    padding: 0;
    width: auto;
}

.subscribe_form_body .leadform_item.btn input[type="submit"] {
    background: var(--button-bg-color);
    border: none;
    border-radius: 32px;
    box-shadow: 0 9px 56px 0 rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    color: var(--button-text-color);
    cursor: pointer;
    display: block;
    font-family: "Comfortaa", sans-serif;
    font-size: 14px;
    font-weight: 700;
    height: 64px;
    line-height: 1.2;
    margin: 0;
    min-height: 64px;
    min-width: 168px;
    padding: 0 22px;
    text-indent: 0;
    transition: box-shadow 0.3s ease-out, background 0.2s ease, color 0.2s ease;
    white-space: normal;
    width: auto;
}

.subscribe_form_body .leadform_item.btn input[type="submit"]:hover {
    background: var(--button-hover-bg-color);
    color: var(--button-hover-text-color);
    box-shadow: 0 6px 24px 0 rgba(0, 0, 0, 0.26);
}

.subscribe_form_body #leadform_success {
    border-radius: 32px;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.subscribe_form_body #leadform_success.lf_visible {
    display: flex;
    min-height: 64px;
    opacity: 1;
}

.subscribe_form_body .leadform_success_wrap {
    align-items: center;
    display: flex;
    flex-direction: column;
    font-family: "Comfortaa", sans-serif;
    justify-content: center;
    padding: 28px 20px;
    text-align: center;
    width: 100%;
}

.subscribe_form_body .leadform_success_icon {
    height: 72px;
    margin-bottom: 16px;
    width: 72px;
}

.subscribe_form_body .lf_checkmark {
    border-radius: 50%;
    height: 72px;
    width: 72px;
}

.subscribe_form_body .lf_checkmark__circle {
    animation: lf0_stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
    stroke: var(--primary-color, #287ef5);
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
}

.subscribe_form_body .lf_checkmark__check {
    animation: lf0_stroke 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
    stroke: var(--primary-color, #287ef5);
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.5;
}

@keyframes lf0_stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

.subscribe_form_body .lf_success_title {
    animation: lf0_fadein 0.4s ease 0.8s forwards;
    color: #333;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
    opacity: 0;
    transform: translateY(10px);
}

.subscribe_form_body .lf_success_subtitle {
    animation: lf0_fadein 0.4s ease 1s forwards;
    background: color-mix(in srgb, var(--primary-color, #287ef5) 10%, #fff);
    border: 1px solid color-mix(in srgb, var(--primary-color, #287ef5) 25%, #fff);
    border-radius: 12px;
    color: #2c3a4a;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 18px;
    max-width: 550px;
    opacity: 0;
    padding: 10px 14px;
    transform: translateY(10px);
}

.subscribe_form_body .lf_success_subtitle .lf_eta_value {
    background: color-mix(in srgb, var(--primary-color, #287ef5) 18%, #fff);
    border-radius: 999px;
    color: var(--tertiary-color, #174bdd);
    display: inline-block;
    font-size: 1.18em;
    font-weight: 800;
    margin-left: 4px;
    padding: 2px 8px;
}

.subscribe_form_body .lf_success_subtitle .lf_schedule_inline {
    color: #46586b;
    font-size: 0.9em;
    font-weight: 500;
    line-height: 1.4;
    margin-top: 10px;
}

@keyframes lf0_fadein {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subscribe_form_body .lf_countdown_ring {
    animation: lf0_fadein 0.4s ease 1.2s forwards;
    height: 60px;
    opacity: 0;
    position: relative;
    width: 60px;
}

.subscribe_form_body .lf_ring_svg {
    height: 60px;
    transform: rotate(-90deg);
    width: 60px;
}

.subscribe_form_body .lf_ring_bg {
    fill: none;
    stroke: #eee;
    stroke-width: 3;
}

.subscribe_form_body .lf_ring_progress {
    fill: none;
    stroke: var(--primary-color, #287ef5);
    stroke-dasharray: 119.4;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    stroke-width: 3;
    transition: stroke-dashoffset 1s linear;
}

.subscribe_form_body .lf_ring_number {
    color: var(--tertiary-color, #174bdd);
    font-size: 18px;
    font-weight: 700;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

.subscribe_form_body .lf_back_text {
    animation: lf0_fadein 0.4s ease 1.4s forwards;
    color: #6a7683;
    font-size: 14px;
    margin-top: 10px;
    opacity: 0;
}

.subscribe_form_body #leadform_remote_form {
    margin: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    width: 100%;
}

.subscribe_form_body #leadform_remote_form.lf_hiding {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.97);
}

.subscribe_form_body .leadform_wrap {
    overflow: visible;
}

.subscribe_form_body .leadform_item:not(.btn) {
    overflow: visible;
}

.subscribe_form_body .leadform_item input.lf_field_error {
    box-shadow: inset 0 0 0 2px #e05252;
}

.subscribe_form_body .leadform_item input.lf_field_valid {
    box-shadow: inset 0 0 0 2px #3cb878;
}

.subscribe_form_body .leadform_item input.lf_field_error.lf_shake {
    animation: subscribe_form_shake 0.35s ease;
}

@keyframes subscribe_form_shake {
    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-4px);
    }

    40%,
    80% {
        transform: translateX(4px);
    }
}

.subscribe_form_body .leadform_item .lf_hint_msg {
    align-items: center;
    animation: subscribe_form_hint_in 0.2s ease;
    border-radius: 20px;
    box-sizing: border-box;
    color: #fff !important;
    display: inline-flex;
    font-family: "Comfortaa", sans-serif;
    font-size: 12px;
    font-weight: 600;
    gap: 5px;
    left: 8px;
    line-height: 1.3;
    margin: 0;
    max-width: calc(100% - 16px);
    padding: 5px 12px;
    pointer-events: none;
    position: absolute;
    top: calc(100% + 6px);
    white-space: nowrap;
    width: auto;
    z-index: 3;
}

@keyframes subscribe_form_hint_in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subscribe_form_body .leadform_item .lf_hint_msg.lf_hint_error {
    background: #e05252;
    box-shadow: 0 4px 14px 0 rgba(224, 82, 82, 0.35);
}

.subscribe_form_body .leadform_item .lf_hint_msg.lf_hint_error::before {
    content: "✕";
    font-size: 11px;
    font-weight: 700;
}

.subscribe_form_body .leadform_item .lf_hint_msg.lf_hint_valid {
    background: linear-gradient(100deg, var(--tertiary-color, #174bdd), var(--primary-color, #287ef5));
    box-shadow: 0 4px 14px 0 rgba(40, 126, 245, 0.3);
}

.subscribe_form_body .leadform_item .lf_hint_msg.lf_hint_valid::before {
    content: "✓";
    font-size: 11px;
    font-weight: 700;
}

.site_consultation_form_wrap {
    margin-top: 8px;
}

.site_consultation_form_wrap .dar-modal__lead-iframe {
    border: 0;
    display: block;
    height: 400px;
    width: 100%;
}

@media (max-width: 991.98px) {
    .subscribe_form {
        max-width: 100%;
    }

    .subscribe_form_body .leadform_item.btn input[type="submit"] {
        font-size: 13px;
        min-width: 140px;
        padding: 0 16px;
    }
}

@media (max-width: 767.98px) {
    .subscribe_container {
        border-radius: 0;
        margin: 32px 0;
        padding: 32px 20px;
        width: 100%;
    }

    .subscribe_container_intro,
    .subscribe_container_title {
        text-align: left;
    }

    .subscribe_container_title {
        font-size: 22px;
    }

    .subscribe_form {
        border-radius: 28px;
        margin-bottom: 40px;
        padding: 12px;
    }

    .subscribe_form_body .leadform_item .lf_hint_msg {
        left: 4px;
        max-width: calc(100% - 8px);
        white-space: normal;
    }

    .subscribe_form_body .leadform_wrap {
        flex-direction: column;
        gap: 10px;
    }

    .subscribe_form_body .leadform_item:not(.btn) {
        flex-basis: auto;
        width: 100%;
    }

    .subscribe_form_body .leadform_item:not(.btn) + .leadform_item:not(.btn)::before {
        display: none;
    }

    .subscribe_form_body .leadform_item input[type="text"] {
        background: #f7f8fa;
        border-radius: 24px;
        height: 52px;
        padding: 0 18px;
    }

    .subscribe_form_body .leadform_item.btn {
        width: 100%;
    }

    .subscribe_form_body .leadform_item.btn input[type="submit"] {
        height: 52px;
        min-height: 52px;
        min-width: 0;
        width: 100%;
    }

    .site_consultation_form_wrap .dar-modal__lead-iframe {
        height: 320px;
    }
}
