.site-footer__contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
}

.form-feedback {
    width: 100%;
    margin: 16px 0;
    color: #a52b2b;
    font-size: 16px;
    line-height: 1.4;
}

.form-feedback--success {
    /* color: var(--green-surfie-green, #0f8381); */
    color: #fff;
}

.form .agree {
    width: 100%;
}

.checkbox.agree .label_check .check_text a,
.constructor__form-checkbox a {
    display: inline;
    color: #fff;
    text-transform: none;
    text-decoration: underline;
    text-decoration-thickness: .5px;
    text-underline-offset: 3px;
    text-decoration-skip-ink: auto;
    transition: color .2s linear;
}

.form_subscribe .submit_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.form_subscribe .checkbox.agree .label_check .check_text,
.form_subscribe .checkbox.agree .label_check a {
    color: #fff;
}

.form_subscribe .sector_flex > .form_subscribe__agreement {
    align-self: flex-start;
}

.form_subscribe .sector_flex > .form_subscribe__agreement--primary {
    width: calc(100% - 30px);
}

.form_subscribe .sector_flex > .form_subscribe__agreement--secondary {
    width: calc(50% - 30px);
}

.about_bottom .form_subscribe .sector_flex > .form_subscribe__agreement--primary {
    width: 100%;
}

.about_bottom .form_subscribe .sector_flex > .form_subscribe__agreement--secondary {
    width: calc(50% - 14px);
}

.about_bottom .form_subscribe .sector_flex > .submit {
    margin-left: 0;
}

.checkbox.agree .label_check,
.constructor__form-checkbox {
    position: relative;
}

.checkbox.agree .label_check input[type="checkbox"],
.constructor__form-checkbox input[type="checkbox"] {
    position: absolute;
    display: block;
    width: 1px;
    height: 1px;
    margin: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
}

.checkbox.agree input:focus-visible + .check_text::before,
.constructor__form-checkbox input:focus-visible + span::before {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.site-footer__contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .6);
    text-decoration: none;
    text-transform: none;
    transition: color .2s linear;
}

.site-footer__contact-icon {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    object-fit: contain;
    opacity: .8;
}

.modal-specialist__dialog {
    height: auto;
    min-height: 402px;
}

.modal-specialist__agreement {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.modal-specialist__agreement-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.modal-specialist__agreement-mark {
    position: relative;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border: 1px solid var(--grey-400);
    border-radius: 2px;
    background: var(--basic-white);
    transition: border-color .2s ease, background-color .2s ease;
}

.modal-specialist__agreement-mark::after {
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 9px;
    border-right: 1.5px solid var(--basic-white);
    border-bottom: 1.5px solid var(--basic-white);
    content: '';
    opacity: 0;
    transform: rotate(45deg);
    transition: opacity .2s ease;
}

.modal-specialist__agreement-input:checked + .modal-specialist__agreement-mark {
    border-color: var(--green-surfie-green);
    background: var(--green-surfie-green);
}

.modal-specialist__agreement-input:checked + .modal-specialist__agreement-mark::after {
    opacity: 1;
}

.modal-specialist__agreement-input:focus-visible + .modal-specialist__agreement-mark {
    outline: 2px solid var(--green-surfie-green);
    outline-offset: 3px;
}

.modal-specialist__agreement-text {
    font-family: var(--font-family);
    font-weight: 300;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: .27px;
}

.modal-specialist__agreement-link {
    color: var(--green-surfie-green);
    text-decoration: underline;
    text-decoration-thickness: .5px;
    text-underline-offset: 3px;
    transition: color .2s ease;
}

.modal-specialist__button--primary:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.modal-specialist__button--primary:disabled:hover {
    --green-button-text-color: var(--basic-white);
}

.modal-specialist__button--primary:disabled:hover::before {
    width: 0;
}

@media (hover: hover) and (pointer: fine) {
    .checkbox.agree .label_check .check_text a:hover,
    .constructor__form-checkbox a:hover,
    .modal-callback__checkbox-label-policy:hover,
    .modal-order__checkbox-label-policy:hover {
        color: #56e8e5;
    }

    .site-footer__contact:hover {
        color: var(--basic-white);
    }

    .modal-specialist__agreement-link:hover {
        color: var(--green-darker);
    }
}

@media (width >= 768px) and (width <= 1023px) {
    .section_follow .form_subscribe .sector_flex > .submit {
        margin-left: 0;
    }

    .form_subscribe .sector_flex > .form_subscribe__agreement--primary {
        width: 100%;
    }

    .form_subscribe .sector_flex > .form_subscribe__agreement--secondary {
        width: calc(50% - 13px);
    }

    .modal-specialist__dialog {
        height: auto;
        min-height: 480px;
    }
}

@media (width <= 767px) {
    .section_follow .form_subscribe .sector_flex > .submit {
        margin-left: 0;
    }

    .form_subscribe .sector_flex > .form_subscribe__agreement--primary,
    .form_subscribe .sector_flex > .form_subscribe__agreement--secondary,
    .about_bottom .form_subscribe .sector_flex > .form_subscribe__agreement--secondary {
        width: 100%;
    }

    .site-footer__contacts {
        align-items: center;
    }

    .modal-specialist__dialog {
        height: auto;
        min-height: 680px;
    }

    .modal-specialist__agreement-text {
        font-size: 14px;
        line-height: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer__contact,
    .modal-specialist__agreement-mark,
    .modal-specialist__agreement-mark::after,
    .modal-specialist__agreement-link {
        transition-duration: .01ms;
    }
}
