body.showFosForm {
    overflow: hidden;
}

body.showFosForm .fos.fos-form {
    visibility: visible;
    opacity: 1;
}

body.showFosForm .fos-form .fb_content,
body.showFosForm .fos-form .fos-krest *,
body.showFosForm .fos-form .fb_content * {
    pointer-events: visible;
}

.fos-form .fbc_info_title {
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 300;
    font-size: 32px;
    margin-top: 12px;
    text-align: center;
    line-height: calc(48 / 32);
}

.fos-form .fbc_info_inp_group input {
    border-radius: 0;
}

.fos-form .mech_select_head,
.fos-form .fbc_info_inp_group input {
    font-size: 14px;
    line-height: calc(22 / 14);
    width: 100%;
    height: 46px;
    padding: 0;
    border-bottom: 1px solid #D7D7D7;
    transition: border .3s;
}

.fos-form .mech_select {
    position: relative;
}

@media (min-width: 721px) {
    .fos-form .mech_select_head:hover,
    .fos-form .fbc_info_inp_group input:hover {
        border-color: #D0A972;
    }
}

.fos-form .fbc_foot_polic svg,
.fos-form .mech_select_head svg {
    --s: 20px;
    width: var(--s);
    min-width: var(--s);
    height: var(--s);
}

.fos-form .mech_select_head svg {
    transition: transform .3s;
}

@media (min-width: 721px) {
    .fos-form .mech_select_head.opened {
        border-color: var(--c-primary);
    }

    .fos-form .mech_select_head.opened svg {
        transform: rotate(180deg);
    }
}

.fos-form .mech_select_head {
    overflow: clip;
    color: #B9B9B9;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color .3s;
    justify-content: space-between;
}

.fos-form .mech_select[data-value] .mech_select_head {
    color: var(--c-primary);
    border-color: var(--c-primary);
}

.fos-form .mech_select_options {
    position: absolute;
    background-color: #F5F5F5;
    top: calc(100% - 2px);
    left: 0;
    right: 0;
    overflow-y: auto;
    max-height: 216px;
    box-shadow: 0 4px 4px 0 #00000040;
}

.fos-form .mech_select_option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: space-between;
    padding: 16px;
    font-size: 14px;
    color: #878787;
    line-height: calc(22 / 14);
    transition: color .3s, background-color .3s;
}

.fos-form .select_options .mech_select_option {
    border-bottom: 1px solid #D7D7D7;
}

.fos-form .mech_select_options > :nth-child(n+2) {
    border-top: 1px solid #D7D7D7;
}

.fos-form .mech_select_option:not(.selected) {
    cursor: pointer;
}

@media (min-width: 721px) {
    .fos-form .mech_select_option:not(.selected):hover {
        background-color: #D7D7D7;
    }
}

.fos-form .mech_select_option svg {
    --s: 20px;
    width: var(--s);
    min-width: var(--s);
    height: var(--s);
    visibility: hidden;
    opacity: 0;
    transition: .3s;
}

.fos-form .mech_select_option.selected {
    color: var(--c-primary);
}

.fos-form .mech_select_option.selected svg {
    visibility: visible;
    opacity: 1;
}

.fos-form .fbc_info_desc {
    margin-top: 12px;
    text-align: center;
    color: #878787;
}

.fos-form .fbc_foot {
    gap: 24px;
    margin-top: 32px;
    display: flex;
    align-items: center;
}

.fos-form .fbc_errors {
    display: none;
    border: 1px solid #B3261E38;
    border-radius: 8px;
    padding: 6px 8px 6px;
    background-color: #B3261E17;
    margin-top: 12px;
    color: var(--c-red);
    font-size: 12px;
    line-height: calc(18 / 10);
}

.fbc_errors:before {
    line-height: 1.5;
    content: "Внимание!";
    display: block;
    font-weight: 500;
    letter-spacing: .04em;
}

.fos-form .fbc_foot_polic {
    display: flex;
    cursor: pointer;
    gap: 16px;
}

.fos-form .fbc_foot_polic input {
    display: none;
}

.fos-form .fbc_foot_polic input:checked + svg {
    --fill: #D0A972 !important;
}

.fos-form .fbc_foot_polic_desc a {
    color: #D0A972;
    text-decoration: underline;
    transition: opacity .3s;
}

@media (min-width: 721px) {
    .fos-form .fbc_foot_polic_desc a:hover {
        opacity: .7;
    }
}

.fos-form .fbc_foot_polic_desc {
    font-size: 10px;
    line-height: 1.6;
    color: #878787;
}

.fos-form .btn {
    justify-content: space-between;
    width: 236px;
    min-width: 236px;
    background-color: #292929;
    --fill: #292929;
    color: #B9B9B9;
}

.fos-form .btn .text {
    font-weight: 400;
}

.fos-form .fbc_iig_label {
    font-weight: 300;
    font-size: 10px;
    line-height: 1;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.fos-form .fbc_iig_error {
    display: none;
    margin-top: 12px;
    color: var(--c-red);
    font-size: 10px;
    line-height: calc(18 / 10);
}

.fos-form .fbc_info_inps {
    margin-top: 24px;
    --elems: 2;
    --gapY: 24px;
    --gapX: 24px;
    gap: var(--gapY) var(--gapX);
    display: flex;
    flex-wrap: wrap;
}

.fos-form input[type="checkbox"].is_invalid + svg {
    --fill: var(--c-red);
}

.fos-form .fb_content input.is_invalid:not([type="checkbox"]),
.fos-form .fb_content textarea.is_invalid,
.mech_select.is_invalid .mech_select_head {
    border-color: var(--c-red);
}

.fos-form .fbc_info_inp_group {
    width: calc((100% - var(--gapX) * (var(--elems) - 1)) / var(--elems));
}

.fos-form input:not(:placeholder-shown),
.fos-form textarea:not(:placeholder-shown) {
    border-color: var(--c-primary) !important;
}


@media (max-width: 720px) {
    .fos-form .select_options_title {
        text-align: center;
        font-size: 20px;
        line-height: calc(32 / 20);
    }

    .fos-form .fb_content[data-type="options"] .fbc_info {
        margin-top: 16px;
    }

    .fos-form .select_options {
        margin-top: 4px;
    }

    .fos-form .fbc_info_inps {
        --elems: 1;
        --gapY: 18px;
    }

    .fos-form .mech_select_options {
        display: none !important;
    }

    .fos-form .fbc_foot {
        gap: 16px;
        margin-top: 16px;
        flex-direction: column;
        align-items: flex-start;
    }

    .fos-form .fbc_foot_btn {
        width: 100%;
    }

    .fos-form .fbc_info_title {
        font-size: 24px;
        line-height: calc(36 / 24);
    }

    .fos-form .fbc_info_desc {
        margin-top: 8px;
    }

}