.tab {
    cursor: pointer;
}

.tab-block {
    display: none;
}

.tab-block.is-active {
    display: block;
}

.center {
    text-align: center;
}

.btn {
    width: fit-content;
    padding: 8px 16px;
    background: #223C7E;
    height: 40px;
    border-radius: 4px;
    font-size: 16px;
    color: #FFF;
    cursor: pointer;
}

.btn--200 {
    width: 200px;
}


/* Modal */

.modals {
    font-size: 16px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 1000;
    display: none;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.5);;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    padding: 20px;
}

.modal.is-active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    display: flex;
}

.modal--photo-slider {
    padding: 0;
}

.modal__inner {
    background-color: #FFF;
    width: 100%;
    max-width: 1232px;
    border-radius: 4px;
    padding: 24px 40px 32px;
    margin: auto;
    position: relative;
}

.modal__close {
    position: absolute;
    width: 16px;
    height: 16px;
    top: 24px;
    right: 24px;
    cursor: pointer;
    z-index: 10;
    transform-origin: center center;
    transition: all .3s ease-in-out;
}

.modal__close img {
    display: block;
    width: 100%;
    margin: 0;
}

.modal__close:after {
    content: '';
    position: absolute;
    width: 200%;
    height: 160%;
    left: -8px;
    top: -9px;
}

.modal__close:hover {
    transform: rotate(180deg);
    transition: all .3s ease-in-out;
}

.modal__title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 32px;
    padding-right: 16px;
}

.input-block {
    width: 100%;
    position: relative;
    padding-top: 14px;
}

.input-block__label {
    position: absolute;
    background: #FFF;
    font-size: 13px;
    font-weight: 500;
    padding: 0 4px;
    left: 8px;
    top: 0;
    max-width: calc(100% - 22px);
    z-index: 1;
}

.input-block__input {
    border: 1px solid #777;
    border-radius: 4px;
    width: 100%;
    padding: 10px 12px;
    height: 40px;
}

textarea.input-block__input {
    height: 72px;
}

.captcha-block {
    position: relative;
    display: flex;
    gap: 8px;
    align-items: center
}

.captcha-block__label {
    width: 75px;
    font-size: 13px;
    font-weight: 500;
    line-height: 16px;
    flex-shrink: 0;
}

.captcha-block__img {
    width: 150px;
    height: 100%;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.captcha-block__img img {
    width: 100%;
    height: 40px;
    display: block;
    margin: 0;
}

.captcha-block__reload {
    cursor: pointer;
}

.captcha-block__reload img {
    margin: 0;
}

@media (max-width: 479px) {
    .modal {
        padding: 0;
    }

    .modal__inner {
        border-radius: 0
    }

    .captcha-block {
        padding-top: 16px;
    }

    .captcha-block__label {
        position: absolute;
        background: #FFF;
        font-size: 13px;
        font-weight: 500;
        left: 0;
        top: -5px;
        width: auto;
        max-width: calc(100% - 22px);
        z-index: 1;
    }
}