.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    z-index: -1;
    opacity: 0;
    pointer-events: none;
    -webkit-transition: all .3s ease;
    transition: all .5s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    overflow: auto;
    flex-direction: column;
    justify-content: flex-start;
    background:
            linear-gradient(to bottom, rgba(7, 56, 105, 0.55), rgba(105, 180, 255, 0.55)),
            rgba(5, 37, 143, .58);
}

.modal--active {
    z-index: 100;
    opacity: 1;
    pointer-events: all;
}

.modal__content-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    opacity: 1;
    z-index: 1;
}

.modal__content-inner-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal__content {
    width: 629px;
    height: 729px;
    background: image-set(
            url('../img/modal/modal@1x.webp') 1x,
            url('../img/modal/modal@2x.webp') 2x
    ) no-repeat center center;
    isolation: isolate;
    z-index: 102;
    opacity: 1;
    position: relative;
    background-size: 100% 100%;
}

.modal__content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    opacity: 1;
}

.modal__content-wrapper--first {
    padding-top: 146px;
    padding-bottom: 108px;
}

.modal__content-wrapper--second {
    padding-top: 86px;
    padding-bottom: 76px;
}

.modal__title {
    font-size: 48px;
    letter-spacing: 1px;
    font-style: normal;
    font-weight: 900;
    color: #000877;
    filter: drop-shadow(0 0 4px rgba(0, 57, 154, 0.25));
    line-height: 1.2;
}

.modal__title--first {
    margin-bottom: 45px;
}

.modal__title--second {
    margin-bottom: 34px;
}

.modal__subtitle {
    font-size: 32px;
    letter-spacing: 1px;
    font-style: normal;
    font-weight: 900;
    color: #000877;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 4px rgba(0, 57, 154, 0.25));
    line-height: 1.2;
}

.modal__subtitle--first {
    margin-bottom: 24px;
}

.modal__subtitle--second {
    margin-bottom: 16px;
}

.modal__bonus-first,
.modal__bonus-second {
    width: 330px;
    height: 116px;
    background-size: auto;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
    font-weight: 900;
}

.modal__bonus-first {
    background: url('../img/modal/modal_bonus_first.svg') no-repeat center center;
}

.modal_bonus_1_1 {
    font-size: 24px;
}

.modal_bonus_1_2 {
    font-size: 32px;
}

.modal__bonus-second {
    background: url('../img/modal/modal_bonus_second.svg') no-repeat center center;
    margin-top: 24px;
}

.modal_bonus_2_1 {
    font-size: 32px;
}

.modal_bonus_2_2,
.modal_bonus_2_3 {
    font-size: 24px;
}

.modal__btn-first,
.modal__btn-second {
    aspect-ratio: 400 / 130;
    width: 400px;
    height: 130px;
    margin: 0 auto;
    background: url('../img/modal/modal_submit_btn.svg') no-repeat center center;
    background-size: auto;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
    font-weight: 900;
    font-size: 32px;
    cursor: pointer;
}

.modal_btn_1_1 {
    filter: drop-shadow(0 4px 4px rgba(154, 36, 0, 0.25));
}

.modal__btn-pulse {
    animation: pulse 2s linear infinite;
}

@media (orientation: portrait) and (min-width: 0px) {
    .modal {
        padding: clamp(20px, 5vw, 86px) clamp(20px, 8vw, 70px) 0;
    }

    .modal__content {
        top: 30px;
    }
}

@media (orientation: landscape) and (min-width: 0px) {
    .modal {
        padding: clamp(20px, 3vw, 100px) clamp(20px, 5vw, 120px) clamp(20px, 3vw, 100px);
    }
}
