.modal {
    align-items: flex-start;
    display: flex;
    height: 100vh;
    justify-content: center;
    left: 0;
    padding: 10px;
    padding-top: calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top));
    padding-bottom: calc(var(--tg-safe-area-inset-bottom, 0px) + var(--tg-content-safe-area-inset-bottom, 0px) + 35px);
    position: fixed;
    top: 0;
    width: 100vw;
    z-index: 29;
    touch-action: auto;
    overflow-y: auto;
}

.modal-overlay {
    background: #060213b3;
    -webkit-backdrop-filter: blur(0.8px);
    backdrop-filter: blur(0.8px);
    height: 100%;
    min-height: 100vh;
    left: 0;
    opacity: 1;
    position: fixed;
    top: 0;
    transition: opacity .3s ease;
    width: 100%;
    z-index: 2;
}

.modal-block {
    background: rgb(11, 6, 27);
    border-radius: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    max-width: 100%;
    opacity: 1;
    padding: 30px 20px;
    transform: translateY(15px);
    transition: transform .3s ease, opacity .3s ease;
    width: 100%;
    z-index: 3;
    overflow: hidden;
    min-height: 260px;
}

.modal-block.no-overflow {
    overflow: visible;
}

.modal-block.cover {
    padding: 25px 15px 20px;
}

.modal-block,
.modal-header {
    display: flex;
    position: relative;
}

.modal-block.indent {
    margin-top: calc(var(--tg-safe-area-inset-top, 0px) - var(--tg-content-safe-area-inset-top, 0px) + 25px);
}

.modal-block::before {
    content: '';
    position: absolute;
    background-image: url(/img/ui/modal/modal_background.png);
    background-size: 100% 100%;
    width: 100%;
    height: 100%;
    mix-blend-mode: overlay;
    max-height: 250px;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -1;
    opacity: 0.8;
}

.modal-header {
    text-align: center;
    z-index: 1;
    width: 100%;
}

.modal-header h3 {
    font-size: 1.325rem;
}

.modal__header-column {
    align-content: center;
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 15px
}

.modal__header-column h3 {
    text-align: left;
}

.modal__header-icon {
    align-items: center;
    border-radius: 14px;
    display: flex;
    height: 40px;
    justify-content: center;
    width: 40px;
    padding: 10px;
    background: #100c21;
}

.modal__header-icon svg {
    width: 100%;
    height: 100%;
}

.modal__header-icon.orange {
    color: var(--text-color-process)
}

.modal__header-icon.green {
    background: var(--bg-color-success-opacity);
    color: var(--text-color-success)
}

.modal__header-icon.red {
    background: var(--bg-color-error-opacity);
    color: var(--text-color-error)
}

.modal__header-icon.blue {
    background: var(--bg-color-blue-opacity);
    color: var(--text-color-blue)
}

.modal-content {
    display: flex;
    gap: 15px;
    flex-direction: column;
    z-index: 1;
    max-width: 100%;
    width: 100%;
}

.modal-content a {
    color: var(--text-color-pink);
    font-weight: 300;
    font-size: 0.825rem;
    text-decoration: underline !important;
}

.modal-content p {
    color: #d3d2d6;
    font-weight: 300;
    font-size: 0.825rem;
}

.modal-close {
    align-items: center;
    background: rgb(11, 7, 27);
    border-radius: 11px;
    border: none;
    color: rgba(255, 255, 255, 0.22);
    height: 32px;
    position: absolute;
    right: 10px;
    top: 10px;
    width: 32px;
    padding: 2px;
    display: flex;
    justify-content: center;
    z-index: 6;
}

.modal-close svg {
    height: 100%;
    width: 100%
}

.modal__profile-header .modal-close {
    top: 10px;
    right: 10px;
    background: rgb(34 26 79);
    color: rgb(80 66 150);
    -webkit-backdrop-filter: blur(13.1px);
    backdrop-filter: blur(13.1px);
}

.modal-block-effects {
    position: absolute;
    right: 0;
    top: 0;
}

.modal-block-effects div:nth-child(1) {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    filter: blur(12.2px);
    background: #FFB5FF;
    position: absolute;
    content: '';
    top: -50px;
    right: -50px;
    z-index: 1;
}

.modal-block-effects div:nth-child(2) {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    filter: blur(5px);
    background: RGB(109, 74, 255);
    position: absolute;
    content: '';
    top: -60px;
    right: -50px;
}

.modal-block-effects div:nth-child(3) {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    filter: blur(35px);
    position: absolute;
    content: '';
    top: -50px;
    right: 80px;
    background: rgb(110, 57, 255);
}

.modal__full {
    position: fixed;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-page-second);
    padding: 10px;
    padding-top: calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top));
    padding-bottom: calc(var(--tg-safe-area-inset-bottom, 0px) + var(--tg-content-safe-area-inset-bottom, 0px) + 0px);
    z-index: 29;
    touch-action: none;
}

.modal__full:before {
    content: '';
    position: fixed;
    background-image: url(/img/main_menu-background.png);
    width: 100%;
    height: 250px;
    mix-blend-mode: soft-light;
    background-repeat: no-repeat;
    left: 0;
    top: -40px;
    z-index: -1;
    opacity: 1;
}

.modal__full-block {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    gap: 17px;
    opacity: 1;
    padding: 25px 5px 15px;
    transition: transform .3s ease, opacity .3s ease;
    width: 100vw;
    max-width: 100vw;
    height: 100%;
    z-index: 1;
}

.modal__full-header {
    display: flex;
    position: relative;
    justify-content: left;
    flex-direction: column;
    gap: 20px;
}

.modal__full-header--content {
    order: 2;
}

.modal__title-big--size {
    font-size: 2.454rem;
    line-height: 35px;
}

.modal__full-content {
    flex: 4;
    height: 100%;
    max-height: 100%;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal__full-close {
    align-items: center;
    border: none;
    background: none;
    display: flex;
    gap: 10px;
    order: 1;
    width: -moz-max-content;
    width: max-content;
}

.modal__full-close--icon {
    display: flex;
    padding: 10px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    background: rgba(28, 21, 67, 0.63);
}

.modal__full-close--text {
    font-size: 0.975rem;
}

.modal__full-close svg {
    height: 100%;
    width: 100%
}



