.useful {
    padding-top: 60px;
    padding-bottom: 80px;
}

.useful .useful__blocks {
    --topper-height: 49px;
    display: flex;
    gap: 24px;
    padding-top: var(--topper-height);
    margin-top: 32px;
}

.useful .useful__block {
    --radius: 30px;
    --bg-main: #e2079d;
    --bg-accent: #cc1b94;
    --block-padding: 32px;
    background-color: var(--bg-main);
    position: relative;
    padding: var(--block-padding);
    padding-top: 0;
    flex: 1;
    border-radius: 0 var(--radius) var(--radius) var(--radius);
    display: flex;
    flex-direction: column;
    min-height: 325px;
}

.useful .useful__block.purple {
    --bg-main: #b059e0;
    --bg-accent: #8e38c0;
}

.useful .useful__topper {
    --curve-width: 100px;
    --topper-width: 310px;
    position: absolute;
    bottom: calc(100% - 1px);
    left: 0;
    display: flex;
    height: calc(var(--topper-height) + 2px);
    z-index: -1;
}

.useful .useful__topper::before {
    content: "";
    width: var(--topper-width);
    height: 100%;
    background-color: var(--bg-main);
    border-radius: var(--radius) 0 0 0;
}

.useful .useful__topper .useful__topper-right {
    display: flex;
    position: absolute;
    z-index: -1;
    height: 100%;
    left: calc(var(--topper-width) - 10px);
    top: 0;
}

.useful .useful__topper-right::before {
    content: "";
    width: 100px;
    height: 100%;
    background-color: var(--bg-accent);
}

.useful .useful__topper .corner-curve {
    height: 100%;
    width: var(--curve-width);
    margin-left: -1px;
}

.useful .useful__topper .corner-curve.light path {
    fill: var(--bg-main);
}

.useful .useful__topper .corner-curve.dark path {
    fill: var(--bg-accent);
}

.useful .useful__title {
    font-weight: 700;
    font-size: 24px;
    line-height: 130%;
    letter-spacing: 0%;
    color: #fff;
    margin-top: calc(var(--block-padding) - var(--topper-height));
}

.useful .useful__text {
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    letter-spacing: 0%;
    color: #fff;
    max-width: 330px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.useful .useful__text-block {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 16px;
}

.useful .useful__utm-tag {
    display: flex;
    gap: 54px;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
    line-height: 130%;
    letter-spacing: 0%;
    color: #282828CC;
    background-color: #fff;
    padding: 12px;
    border-radius: 12px;
    height: fit-content;
    flex-shrink: 0;
}

.useful .useful__toggle {
    width: 32px;
    height: 21px;
    margin-bottom: -4px;
    margin-right: -2px;
}

.useful .useful__utm-wrapper {
    display: flex;
    padding: 2px;
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    margin-top: auto;
}

.useful .useful__utm-input {
    font-weight: 500;
    font-size: 18px;
    line-height: 150%;
    letter-spacing: 0%;
    border: none;
    padding: 14.5px 20px;
    width: 100%;
}

@media screen and (hover: hover){
    .useful .useful__block.purple .register-btn:hover {
        background-color: #8e38c0;
    }
}

.useful .useful__block.purple .register-btn:active {
    background-color: #8e38c0;
}

.useful .useful__utm-wrapper .register-btn {
    padding: 16px 22px;
    flex-shrink: 0;
}

.useful .useful__bottom-blur {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 50%;
    width: 100%;
    backdrop-filter: blur();
    background: linear-gradient(182.47deg, rgba(176, 89, 224, 0.2) -19.78%, #B059E0 98%);
    border-width: 0px 2px 2px 2px;
    border-style: solid;
    border-color: #C867FD;
    backdrop-filter: blur(11.6px);
    -webkit-backdrop-filter: blur(11.6px);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 32px 29px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 1;
}

.useful .useful__bottom-blur .register-btn {
    width: fit-content;
}

.useful .useful__docs {
    height: 248.5px;    
    width: auto;
    margin-bottom: -13px;
}

@media screen and (max-width: 1265px) {
    .useful .useful__topper {
        --curve-width: 80px;
        --topper-width: 275px;
    }

    .useful .useful__docs {
        height: 160px;
    }

    .useful .useful__utm-tag {
        gap: 18px;
    }
}

@media screen and (max-width: 1030px) {
    .useful {
        padding: 60px 0;
    }

    .useful .useful__blocks {
        flex-direction: column;
        gap: calc(24px + var(--topper-height));
        margin-top: 24px;
    }

    .useful .useful__utm-tag {
        gap: 54px;
    }

    .useful .useful__docs {
        height: 248.5px;    
    }
}

@media screen and (max-width: 570px) {
    .useful {
        padding: 40px 0;
    }

    .useful .useful__text-block {
        flex-direction: column;
        gap: 16px;
    }

    .useful .useful__text {
        margin-bottom: 0;
        font-size: 16px;
    }

    .useful .useful__utm-tag {
        width: 100%;
        justify-content: space-between;
    }

    .useful .useful__topper {
        display: none;
    }

    .useful .useful__blocks {
        --topper-height: 0;
        gap: 16px;
        margin-top: 16px;
    }

    .useful .useful__block {
        padding: 32px 20px;
        border-radius: 20px;
        min-height: unset;
    }

    .useful .useful__block.purple {
        min-height: 360px;
    }

    .useful .useful__utm-wrapper {
        margin-top: 16px;
        flex-direction: column;
        padding: 12px;
        gap: 6px;
        border-radius: 12px;
    }

    .useful__outer {
        padding: 0;
    }

    .useful .useful__bottom-blur {
        height: 145px;
    }

    .useful .useful__bottom-blur .register-btn {
        width: 100%;
        justify-content: space-between;
    }

    .useful .useful__bottom-blur {
        padding: 20px;
    }

    .useful .useful__text {
        max-width: unset;
    }

    .useful .useful__utm-input {
        padding: 4px 0;
    }

    .useful .useful__utm-wrapper .register-btn {
        padding: 16px 12px;
        justify-content: space-between;
        border-radius: 8px;
    }

    .useful .page-title {
        padding: 0 var(--page-margin);
        max-width: 300px;
    }
}

