:root {
    --blue-spb: #4E6AB5;
    --white-spb: #ffffff;
    --gray-spb: #666666;
    --black-spb: #000;
    --ligth-blue-spb: #DDEBFF;
    --red-spb: #EB5757;
    --background-spb: #F6F6F6;
    --background-ui: #F9F9F9;
    --yellow-spb: #FFB800;
}
.modal {
    position: fixed;
    z-index: 1000;
    background: rgba(0,0,0,0.5);
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__content {
    background: var(--white-spb);
    border-radius: 1rem;
    width: 100%;
    position: fixed;
    max-height: 90vh;
    height: auto;
    overflow: auto;
    box-shadow: var(--shadow-lg);
}
.modal_callback .modal__content {
    max-width: 450px;
}
.modal__header {
    padding: 1rem 2.5rem 1rem 1.5rem;
    position: relative;
    border-bottom: solid 1px #e5e7eb;
}
.modal__close {
    position: absolute;
    top: 18px;
    right: 16px;
    cursor: pointer;
    z-index: 1;
}
body:has(.modal:not([style*="display: none"])) {
    overflow: hidden;
}
.modal__title {
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 700;;
}

.modal__body {
    padding: 1.5rem;
}

.modal_msg-error {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.modal_msg-error {
    color: var(--red-spb);
}

.field_invalid {
    border: 1px solid var(--red-spb) !important;
}

.modal__note {
    font-size: 0.875rem;
    cursor: pointer;
}
.modal__note a {
    color: var(--color-primary);
}

.recovery-form__form {
    gap: 1rem;
}
.recovery-form__submit {
    flex-shrink: 0;
}


/****/
/* field */
.field {
    position: relative;
    display: flex;
    align-items: center;
}

.field .input {
    background-color: unset;
    width: 100%;
}
.field span {
    position: absolute;
    color: var(--gray-spb);
    height: 22px;
    line-height: 22px;
    top: -12px;
    left: 10px;
    background-color: var(--white-spb);
    z-index: 11;
    padding: 0 2px;
    box-sizing: border-box;
}
/* field */
/* modal-sight */
.modal_sight .modal__content {
    max-width: 970px;
}
.modal_sight .modal__body {
    overflow-y: auto;
}
/* /modal-sight */
/* modal-review */
.modal_review  .modal__content {
    max-width: 700px;
    /* height: fit-content; */
}

.review-forms__note {
    color: var(--gray-spb);
    font-size: 15px;
}
.review-forms .button {
    font-size: 16px;
}
/* /modal-review */
/* /modal-login */

.modal_login .modal__content {
    max-width: 500px;
}

.modal_login .modal__content {
    gap: 32px;
}
.modal_login .input {
    background-color: unset;
}
.login-forms .button {
    font-size: 16px;
}


.reg-forms {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(6, 50px);
    grid-template-areas:
    "item-1 item-1 item-1"
    "item-2 item-2 item-2"
    "item-3 item-3 item-3"
    "item-4 item-4 item-4"
    "item-5 item-5 item-5"
    "item-6 item-6 item-7";
    align-items: center;
}

/* /modal-login */

.modal_state .modal__content {
    max-width: 700px;
    padding: 10px;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.80) 0%, rgba(255, 255, 255, 0.80) 100%), url('../images/spb-bg-state.webp'), lightgray 50% / cover no-repeat;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.25);
}
.modal_state .modal__close {
    top: 20px;
    right: 20px;
}
.modal_success {
    --color: var(--blue-spb);
}
.modal_error {
    --color: var(--red-spb);
}
.modal__state-body {
    border-radius: 6px;
    border: 2px solid var(--blue-spb);
    color: var(--blue-spb);
    padding: 40px 100px;
    text-align: center;
}
.modal__logo {
    margin: 0 auto 30px;
    display: block;
}
.modal__icon-state {
    margin-bottom: 10px;
}
.modal__header_state {
    margin-bottom: 10px;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.333;
}
.modal__descr {
    margin-bottom: 30px;
    font-size: 20px;
}
@media (max-width: 650px) {
    .modal__content {
        width: 90%!important;
    }
    .modal__state-body {
        padding: 36px 10px 20px;
    }
    .modal__header_state {
        font-size: 20px;
    }
    .modal__descr {
        font-size: 16px;
    }
}

