.block9 {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(90deg, #120E16 0%, #040407 50%, #1B1722 100%);
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
    overflow: hidden;
    height: 1022px;
    width: 100%;
    top: -150px;
}

.block9-ellipses {
    position: absolute;
    left: 0;
    top: 0;
}

.ellipse-group {
    position: absolute;
    width: 372.65px;
    height: 411.76px;
    left: -110px;
    top: -148px;
    opacity: 0.2;
    transform: rotate(180deg);
}

.ellipse-1 {
    position: absolute;
    width: 203px;
    height: 258px;
    left: 137.61px;
    top: 85px;
    background: rgba(103, 100, 232, 0.2);
    border-radius: 50%;
    filter: blur(2px);
    transform: rotate(-136.27deg);
}

.ellipse-2 {
    position: absolute;
    width: 203px;
    height: 258px;
    left: 180px;
    top: -7.13px;
    background: rgba(103, 100, 232, 0.2);
    border-radius: 50%;
    filter: blur(2px);
    transform: rotate(-176.2deg);
}

.ellipse-3 {
    position: absolute;
    width: 203px;
    height: 258px;
    /* left: -62.39px; */
    top: 148px;
    background: rgba(103, 100, 232, 0.8);
    border-radius: 50%;
    filter: blur(50px);
    transform: rotate(-136.27deg);
}

.ellipse-4 {
    position: absolute;
    width: 203px;
    height: 258px;
    left: 150px;
    top: -7.13px;
    background: rgba(103, 100, 232, 0.8);
    border-radius: 50%;
    filter: blur(50px);
    transform: rotate(-176.2deg);
}

.block9-decorative-dots {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
}

.block9-decorative-dots img {
    width: auto;
    height: auto;
}

.block9-ellipses-right {
    position: absolute;
    width: 372.65px;
    height: 411.76px;
    /* top: 714px; */
    bottom: 0;
    z-index: 1;
    right: -6px;
}

.block9-ellipses-right img {
    width: 100%;
    height: 100%;
}

/* Контент блока */
.block9-content {
    position: relative;
    z-index: 2;
    text-align: center;
}


.block9-title {
    position: absolute;
    width: 727px;
    height: 48px;
    left: calc(50% - 727px/2 - 0.5px);
    /* top: 64px; */

    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-size: 40px;
    line-height: 48px;
    display: flex;
    align-items: center;
    text-align: center;
    color: #FFFFFF;
    margin: 0;
}

.block9-description {
    position: absolute;
    width: 530px;
    height: 40px;
    left: calc(50% - 530px/2);
    top: 60px;

    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    display: flex;
    align-items: center;
    text-align: center;
    color: #7D7D7D;
    margin: 0;
}

.block9-description-mobile {
    display: none;
}


.block9-side-text {
    position: absolute;
    width: 152.53px;
    height: 36px;
    left: calc(50% - 152.53px/2 + 302.49px);
    top: 125.15px;

    font-family: 'Caveat';
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 18px;
    display: flex;
    align-items: center;
    text-align: center;
    color: #C4BAFF;
    transform: rotate(-13.02deg);
}

.block9-video {
    position: absolute;
    width: 268.64471435546875px;
    height: 603.8408203125px;
    left: calc(50% - 134.32px);
    top: 202px;
    background: linear-gradient(349.09deg, #000000 0%, #000000 100%);
    border-radius: 30.9474px;
    overflow: hidden;
    z-index: 10;
}

.block9-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30.9474px;
}

@media (max-width: 767px) {}

@media (max-width: 767px) {
    .block9 {
        height: auto;
        min-height: 0;
        top: -150px;
        padding: 40px 0 72px;
        border-top-left-radius: 30px;
        border-top-right-radius: 30px;
        width: 100%;
        margin-left: 0;
        overflow: hidden;
    }

    .block9 .container {
        max-width: 100%;
        padding: 0;
    }

    .block9-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        position: relative;
    }

    .block9-title {
        position: static;
        width: 100%;
        padding: 0 16px;
        font-size: 32px;
        line-height: 40px;
        margin: 0 0 8px;
        text-align: center;
        order: 0;
    }

    .block9-description {
        display: none !important;
    }

    .block9-description-mobile {
        display: block;
        width: 100%;
        padding: 0 16px;
        margin: 0 0 20px;
        text-align: center;
        order: 1;
    }

    .block9-feature-card-desktop,
    .block9-line,
    .block9-feature-card-mobile {
        display: none !important;
    }

    .block9-line-mobile {
        display: block;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        top: 140px;
        bottom: 140px;
        background: linear-gradient(180deg, rgba(103, 100, 232, 0) 0%, #514EB5 26.44%, #BCB4FB 46.63%, #3A3882 66.83%, rgba(103, 100, 232, 0) 100%);
        z-index: 0;
    }

    .block9-feature-card-mobile {
        display: block;
        width: min(92vw, 340px);
        height: auto;
        min-height: 140px;
        margin: 0 auto 16px;
        border-radius: 16px;
        background: linear-gradient(95.25deg, rgba(196, 186, 255, 0.2) 0%, rgba(103, 100, 232, 0.2) 100%);
        backdrop-filter: blur(20px);
        position: relative;
        z-index: 1;
        overflow: visible;
        box-sizing: border-box;
        order: 2;
    }

    .block9-feature-card-mobile:last-of-type {
        margin-bottom: 24px;
    }

    .block9-feature-card-mobile::before {
        z-index: -1;
    }

    .block9-feature-card-mobile::after {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: -16px;
        width: 2px;
        height: 32px;
        background: linear-gradient(180deg, #514EB5 0%, #3A3882 100%);
        opacity: 0.9;
    }

    .block9-feature-card-mobile:last-of-type::after {
        display: none;
    }

    .block9-content>.block9-feature-card-mobile {
        order: 0;
    }

    .block9-feature-card-mobile .block9-feature-content {
        display: grid;
        grid-template-columns: 52px 1fr;
        gap: 12px;
        padding: 16px;
        align-content: start;
        height: 100%;
    }

    .block9-feature-card-mobile .block9-feature-icon {
        width: 40px;
        height: 40px;
    }

    .block9-feature-card-mobile .block9-feature-icon img {
        width: 40px;
        height: 40px;
    }

    .block9-feature-card-mobile .block9-feature-title {
        width: auto;
        font-size: 15px;
        line-height: 18px;
        margin: 0;
        align-self: end;
        text-align: left;
    }

    .block9-video {
        position: relative;
        width: min(78vw, 280px);
        height: auto;
        aspect-ratio: 268.645 / 603.841;
        margin: 24px auto 8px;
        border-radius: 24px;
        overflow: hidden;
        background: linear-gradient(349.09deg, #000000 0%, #000000 100%);
        z-index: 0;
        order: 3;
    }

    /* .block9-video::before {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: -20px;
        width: 2px;
        height: 20px;
        background: linear-gradient(180deg, #514EB5 0%, #3A3882 100%);
    } */

    .block9-video video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 24px;
    }
}

@media (max-width: 1200px) and (min-width: 767px) {
    .ellipse-group {
        transform: scale(0.8) rotate(180deg);
    }

    .block9-ellipses-right {
        left: 900px;
        top: 600px;
        transform: scale(0.8);
    }

    .block9-side-text {
        left: calc(50% - 152.53px/2 + 200px);
        font-size: 16px;
    }

    .block9-ellipse {
        left: calc(50% - 90px + 200px);
    }

    .block9-video {
        width: 250px;
        height: 544px;
        left: calc(50% - 125px);
        top: 280px;
    }

    /* Адаптация блоков функций для планшетов */
    .block9-feature-card {
        width: 260px;
        height: 200px;
    }

    .card-1 {
        left: 80px;
        top: 280px;
    }

    .card-2 {
        right: 80px;
        top: 280px;
    }

    .card-3 {
        left: 80px;
        top: 520px;
    }

    .card-4 {
        right: 80px;
        top: 520px;
    }

    .block9-feature-title {
        font-size: 18px;
        line-height: 22px;
        width: 160px;
    }
}

.block9-ellipse {
    position: absolute;
    width: 45px;
    height: 45px;
    left: 824px;
    top: 71px;
    background-image: url(../images/ellips.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    rotate: 180deg;
}

.block9-line {
    position: absolute;
    width: 723px;
    height: 0px;
    left: calc(50% - 361.5px);
    border: 1px solid;
    border-image-source: linear-gradient(90deg, rgba(103, 100, 232, 0) 0%, #514EB5 26.44%, #BCB4FB 46.63%, #3A3882 66.83%, rgba(103, 100, 232, 0) 100%);
    border-image-slice: 1;
}

.line-top {
    top: 430px;
}

.line-bottom {
    top: 690px;
}

.block9-line-mobile {
    display: none;
    position: absolute;
    width: 2px;
    height: 400px;
    left: 50%;
    top: 200px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(103, 100, 232, 0) 0%, #514EB5 26.44%, #BCB4FB 46.63%, #3A3882 66.83%, rgba(103, 100, 232, 0) 100%);
}

.block9-feature-card-desktop {
    position: absolute;
    width: 286px;
    height: 220px;
    display: block;

    box-sizing: border-box;
    background: linear-gradient(95.25deg, rgba(196, 186, 255, 0.2) 0%, rgba(103, 100, 232, 0.2) 100%);
    backdrop-filter: blur(28.23584747314453px);
    border: 2.82px solid transparent;
    background-clip: padding-box;
    border-radius: 20px;
}

/* .block9-feature-card-desktop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2.82px;
    background: linear-gradient(58.35deg, #C4BAFF 2.4%, #6764E8 99.91%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    z-index: -1;
} */

.block9-feature-card-mobile {
    display: none;
}

.block9-mobile-features {
    display: none;
}

.block9-mobile-feature {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.block9-mobile-feature img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
}

.block9-feature-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 10px;
    height: 100%;
    box-sizing: border-box;
}

.block9-feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    order: 0;
}

.block9-feature-icon img {
    width: 52px;
    height: 52px;
}

.block9-feature-title {
    width: 190px;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    color: #FFFFFF;
    margin: 0;
    margin-top: auto;
    order: 1;
    flex-grow: 0;
    text-align: left;
}

.block9-feature-card-desktop.card-1 {
    left: 40px;
    top: 320px;
}

.block9-feature-card-desktop.card-2 {
    right: 40px;
    top: 320px;
}

.block9-feature-card-desktop.card-3 {
    left: 40px;
    top: 580px;
}

.block9-feature-card-desktop.card-4 {
    right: 40px;
    top: 580px;
}

@media (max-width: 767px) {
    .block9 {
        width: 100%;
        height: auto;
        top: -150px;
        min-height: 0;
        padding: 72px 0 72px;
        border-top-left-radius: 30px;
        border-top-right-radius: 30px;
        margin-left: 0;
        overflow: hidden;
    }

    .block9 .container {
        max-width: 100%;
        padding: 0;
    }

    .block9-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        position: relative;
    }

    .block9-title {
        position: static;
        width: 100%;
        padding: 0 16px;
        font-size: 32px;
        line-height: 40px;
        text-align: center;
        margin: 0 0 8px;
        order: 0;
        z-index: 2;
    }

    .block9-description {
        display: none !important;
    }

    .block9-description-mobile {
        display: block !important;
        position: static;
        width: min(97vw, 426px);
        font-size: 16px;
        line-height: 20px;
        color: #7D7D7D;
        font-family: 'Inter', sans-serif;
        font-weight: 400;
        order: 1;
        margin: 8px auto 0;
        padding: 20px 16px 10px;
        text-align: left;
    }

    .block9-feature-card-desktop,
    .block9-line {
        display: none !important;
    }

    .block9-side-text {
        left: 200px;
        top: 185.15px;
    }

    .block9-ellipse {
        left: 150px;
        top: 163px;
        rotate: 0deg;
        width: 55px;
        height: 55px
    }

    .block9-line-mobile {
        display: none !important;
    }

    .block9-mobile-features {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 24px;
        width: 100%;
        max-width: 353px;
        margin: -10px auto 0;
        padding: 0 16px 64px;
        position: relative;
        order: 2;
        z-index: 1;
        padding-top: 90px;
    }

    /* .block9-mobile-features::before {
        content: '';
        position: absolute;
        top: -20px;
        bottom: -120px;
        left: 50%;
        transform: translateX(-50%);
        width: 3px;
        background: rgba(103, 100, 232, 0.95);
        box-shadow: 0 0 18px rgba(103, 100, 232, 0.4);
        pointer-events: none;
        z-index: 0;
    } */

    .block9-mobile-feature {
        width: min(92vw, 353px);
        margin: 0;
        border-radius: 20px;
        position: relative;
        z-index: 1;
    }

    /* .block9-mobile-feature::after {
        content: '';
        position: absolute;
        top: 22px;
        bottom: 22px;
        left: 50%;
        transform: translateX(-50%);
        width: 18px;
        background: rgba(103, 100, 232, 0.85);
        filter: blur(18px);
        opacity: 0.9;
        pointer-events: none;
        z-index: -1;
    } */

    .block9-video {
        position: relative;
        width: min(78vw, 280px);
        height: auto;
        aspect-ratio: 268.645 / 603.841;
        margin: 0 auto 8px;
        left: auto;
        right: auto;
        top: auto;
        border-radius: 24px;
        overflow: hidden;
        background: linear-gradient(349.09deg, #000000 0%, #000000 100%);
        z-index: 2;
        order: 3;
    }

    /* .block9-video::before {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: -48px;
        width: 2px;
        height: 48px;
        background: linear-gradient(180deg, #514EB5 0%, #3A3882 100%);
    } */

    .block9-video video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 24px;
    }
}