* {
    font-family: "Geologica", sans-serif;
}

.b40 {
    margin-top: 10.4166666667vw;
    position: relative;
    z-index: 10;
}

.b40 h2 {
    font-family: "Geologica", sans-serif;
    font-weight: 400;
    font-size: 3.5416666667vw;
    line-height: 110%;
    letter-spacing: -0.04em;
    text-align: center;
    color: #fff;
}

.b40 h2 span {
    font-weight: 600;
    background: linear-gradient(90deg, #a8ff6e 0%, #9fcced 27.12%, #be97f7 62.98%, #ffb166 95.67%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.b40 .h2-desc {
    font-family: "Geologica", sans-serif;
    font-weight: 400;
    font-size: 1.4583333333vw;
    line-height: 120%;
    text-align: center;
    color: #9b9aa6;
    margin-top: 1.25vw;
}

.b40 .cont {
    position: relative;
    margin-top: 0.2604166667vw;
}

.b40 .cont .center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.b40 .cont .img {
    position: relative;
}

.b40 .cont .img img {
    width: auto;
    height: 66.25vw;
}

.b40 .cont .img .accent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: b40-rotate 5s linear infinite;
    margin-top: -0.2083333333vw;
}

@keyframes b40-rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    50% {
        transform: translate(-50%, -50%) rotate(180deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.b40 .cont .items {
    position: absolute;
}

.b40 .cont .center .item {
    display: none;
    flex-direction: column;
    border: 0.0520833333vw solid rgba(255, 255, 255, 0.25);
    border-radius: 1.5625vw;
    width: 29.5833333333vw;
    height: 38.0729166667vw;
    box-shadow: inset 0 0 2.0833333333vw 0 rgba(255, 255, 255, 0.25);
    background: #000;
    padding: 2.0833333333vw;
}

.b40 .cont .center .item.active {
    display: flex;
}

.b40 .cont .center .item .head {
    font-weight: 400;
    font-size: 1.5625vw;
    line-height: 120%;
    color: #fafafa;
}

.b40 .cont .center .item .desc {
    font-weight: 400;
    font-size: 0.8333333333vw;
    line-height: 120%;
    letter-spacing: -0.04em;
    color: #a8ff6e;
    margin-top: 1.25vw;
}

.b40 .cont .center .item .sub-head,
.b40 .cont .center .item .sub-head-2 {
    font-weight: 400;
    font-size: 1.0416666667vw;
    line-height: 120%;
    letter-spacing: -0.04em;
    color: #fff;
    margin-top: 1.6666666667vw;
}

.b40 .cont .center .item ul {
    display: flex;
    flex-direction: column;
    gap: 0.8333333333vw;
    margin-top: 1.25vw;
}

.b40 .cont .center .item ul li {
    padding-left: 1.6666666667vw;
    position: relative;
    font-weight: 200;
    font-size: 0.8333333333vw;
    line-height: 120%;
    color: #fff;
}

.b40 .cont .center .item ul li:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 0.7291666667vw;
    height: 0.5729166667vw;
    background: url(../img/home/b40-li.svg) center center no-repeat;
    background-size: cover;
    transform: translate(0, -50%);
}

.b40 .cont .center .item .sub-head-2 {
    margin-top: 3.90625vw;
}

.b40 .cont .center .item .sub-head-2-desc {
    font-weight: 300;
    font-size: 0.8333333333vw;
    line-height: 120%;
    color: #bababa;
    margin-top: 0.8333333333vw;
}

.b40 .cont .center .item .btn-box {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.b40 .cont .center .item .btn-box .btn {
    font-weight: 400;
    font-size: 1.0416666667vw;
    line-height: 110%;
    text-transform: uppercase;
    text-align: center;
    color: #000;
    border: 0.0520833333vw solid rgba(255, 255, 255, 0.4);
    border-radius: 3.125vw;
    width: 26.0416666667vw;
    height: 4.1666666667vw;
    box-shadow: inset 0 0 2.6041666667vw 0 rgba(255, 255, 255, 0.25);
    background: linear-gradient(90deg, #a8ff6e 0%, #9fcced 27.12%, #be97f7 62.98%, #ffb166 95.67%);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.b40 .cont .items {
    display: flex;
    justify-content: space-between;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    margin-top: 15.8854166667vw;
    z-index: 2;
}

.b40 .cont .items .left {
    display: flex;
    flex-direction: column;
}

.b40 .cont .items .left .item:nth-child(2),
.b40 .cont .items .right .item:nth-child(2) {
    margin-top: 9.21875vw;
}

.b40 .cont .items .left .item:nth-child(3),
.b40 .cont .items .right .item:nth-child(3) {
    margin-top: 8.3333333333vw;
}

.b40 .cont .items .item {
    background: #1a1a1a;
    border-radius: 1.5625vw;
    width: 15.2083333333vw;
    height: 5.5208333333vw;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 400;
    font-size: 1.25vw;
    line-height: 120%;
    text-align: center;
    color: #3d3d3d;
    position: relative;
    transition: 0.3s;
    cursor: pointer;
}

.b40 .cont .items .item.active {
    font-weight: 400;
    font-size: 1.25vw;
    line-height: 120%;
    text-align: center;
    color: #a8ff6e;
}

/* Регистрируем переменную для угла, чтобы браузер понял, как её анимировать */
@property --angle {
    syntax: '';
    initial-value: 0deg;
    inherits: false;
}

.b40 .cont .items .item:before {
    opacity: 0.3;
    content: '';
    position: absolute;
    inset: 0;
    padding: 0.0520833333vw;
    border-radius: inherit;
    /* Используем конический градиент и привязываем его к переменной --angle */
    background: conic-gradient(from var(--angle), #a8ff6e, #1A1A1A, #1A1A1A, #a8ff6e);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    /* Запускаем бесконечное вращение на 360 градусов */
    animation: spin 3s linear infinite;
}

@keyframes spin {
    to {
        --angle: 360deg;
    }
}

.b40 .cont .items .item.active:before {
    opacity: 0.7;
}

.b40 .cont .items .item .b {
    position: absolute;
    top: 50%;
    width: 4.5833333333vw;
    height: 4.5833333333vw;
    /* background: red; */
    transform: translate(0, -50%);
    border-radius: 50%;
    /* opacity: 0.5; */
    cursor: pointer;
}

.b40 .cont .items .item .b:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.4166666667vw;
    height: 0.4166666667vw;
    border-radius: 50%;
    background: #a8ff6e;
    filter: blur(0.2083333333vw);
    transition: 0.3s;
}

.b40 .cont .items .item:hover .b:before {
    background: #a8ff6e;
    filter: blur(1.3020833333vw);
    width: 2.3958333333vw;
    height: 2.3958333333vw;
}

.b40 .cont .items .item.active .b:before {
    border-radius: 100%;
    background: linear-gradient(90deg, #a8ff6e 0%, #9fcced 27.12%, #be97f7 62.98%, #ffb166 95.67%);
    box-shadow: 0 0 1.0416666667vw 0 rgba(168, 255, 110, 0.7);
    width: 4.5833333333vw;
    height: 4.5833333333vw;
    filter: none;
}

.b40 .cont .items .left .item:nth-child(1) {
    width: 15.2083333333vw;
    margin-left: 3.3333333333vw;
}

.b40 .cont .items .left .item:nth-child(1) .b {
    right: -10.78125vw;
}

.b40 .cont .items .left .item:nth-child(2) {
    width: 14.7395833333vw;
    margin-left: 3.59375vw;
}

.b40 .cont .items .left .item:nth-child(2) .b {
    right: -6.3020833333vw;
}

.b40 .cont .items .left .item:nth-child(3) {
    width: 21.9270833333vw;
}

.b40 .cont .items .left .item:nth-child(3) .b {
    right: -7.5520833333vw;
}

.b40 .cont .items .right .item:nth-child(1) {
    width: 15.2083333333vw;
    margin-right: 1.25vw;
}

.b40 .cont .items .right .item:nth-child(1) .b {
    left: -11.71875vw;
}

.b40 .cont .items .right .item:nth-child(2) {
    width: 17.8125vw;
}

.b40 .cont .items .right .item:nth-child(2) .b {
    left: -6.6666666667vw;
}

.b40 .cont .items .right .item:nth-child(3) {
    width: 17.7083333333vw;
}

.b40 .cont .items .right .item:nth-child(3) .b {
    left: -11.7708333333vw;
}

.b40 .cont .center .next-btn {
    position: absolute;
    top: -5.8854166667vw;
    left: 50%;
    width: 2.6041666667vw;
    height: 2.6041666667vw;
    transform: translate(-50%, 0);
    background: url(../img/home/b40-arrow.svg) center center no-repeat;
    background-size: cover;
    border-radius: 50%;
    cursor: pointer;
}

.b40 .cont .center .next-btn.e1 {
    top: calc(100% + 3.1770833333vw);
    padding: 0;
    transform: translate(-50%, 0) rotate(180deg);
}

.b40 .cont-2 {
    width: 60.7291666667vw;
    padding: 4.6875vw 2.0833333333vw 4.6875vw 4.6875vw;
    border-radius: 2.0833333333vw;
    backdrop-filter: blur(1.0416666667vw);
    background: rgba(26, 26, 26, 0.6);
    margin: auto;
    position: relative;
    z-index: 5;
}

.b40 .cont-2 h2 {
    font-weight: 400;
    font-size: 2.0833333333vw;
    line-height: 120%;
    color: #fafafa;
    text-align: left;
}

.b40 .cont-2 .top,
.b40 .cont-2 .bottom {
    display: grid;
    grid-template-columns: 22.8645833333vw 1fr;
    gap: 3.5416666667vw;
}

.b40 .cont-2 .top p {
    font-weight: 400;
    font-size: 0.9375vw;
    line-height: 120%;
    color: #fafafa;
}

.b40 .cont-2 .top p:nth-child(2) {
    margin-top: 0.8333333333vw;
    font-weight: 300;
    font-size: 0.9375vw;
    line-height: 120%;
    color: #909090;
}

.b40 .cont-2 .bottom {
    margin-top: 3.6979166667vw;
}

.b40 .cont-2 .bottom p {
    font-weight: 400;
    font-size: 0.9375vw;
    line-height: 120%;
    color: #a8ff6e;
}

.b40 .cont-2 .bottom p:nth-child(2) {
    margin-top: 1.40625vw;
    font-weight: 300;
    font-size: 0.9375vw;
    line-height: 120%;
    color: #909090;
}

.b40 .cont-2 .bottom img {
    width: 100%;
    height: auto;
}

.b40 .cont-2:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 5.9895833333vw;
    height: 5.9895833333vw;
    transform: translate(-50%, -50%);
    /* background: url(../img/home/b40-cont-2-before-1.svg) center center no-repeat; */
    background-size: cover;
    z-index: -10;
    /* background: url(../img/home/b40-cont-2-after.png) center center no-repeat; */
    transform: translate(-50%, -50%);
    background-size: cover;
    /* background: red; */
}

.b40 .cont-2 .before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 4.5833333333vw;
    height: 4.5833333333vw;
    transform: translate(-50%, -50%);
    background-size: cover;
    z-index: 9;
}

.b40 .cont-2 .before:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(39, 39, 39, 0.6);
    backdrop-filter: blur(0.5208333333vw);
    z-index: -1;
    border-radius: 50%;
    /* opacity: 0; */
}

.b40 .cont-2 .before:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4.5833333333vw;
    height: 4.5833333333vw;
    z-index: -1;
    background: url(../img/home/b40-cont-2-before-1.svg) center center no-repeat;
    transform: translate(-50%, -50%);
    background-size: cover;
}

.b40 .cont-3{
    display: none;
}


@media(max-width: 700px){
    .b40 {
        margin-top: 20.5128205128vw;
    }
    
    .b40 .cont {
        display: none;
    }
    
    .b40 .cont-2 .top,
    .b40 .cont-2 .bottom {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin: 0;
    }
    
    .b40 .cont-2 .bottom img {
        order: 1;
        margin-top: 8.2051282051vw;
    }
    
    .b40 .cont-2 {
        width: 100%;
        border: 0.2564102564vw solid rgba(255, 255, 255, 0.25);
        border-radius: 10.2564102564vw;
        padding: 10.2564102564vw 6.1538461538vw 6.1538461538vw 6.1538461538vw;
        margin-top: 10.2564102564vw;
    }
    
    .b40 .cont-2 h2 {
        font-weight: 400;
        font-size: 6.1538461538vw;
        line-height: 120%;
        color: #fafafa;
    }
    
    .b40 .cont-2 .before:before {
        width: 11.2820512821vw;
        height: 11.2820512821vw;
        border-radius: 100%;
        background: rgba(39, 39, 39, 1);
        border: 0.2564102564vw solid rgba(255, 255, 255, 0.25);
    }
    
    .b40 .cont-2 .before:after {
        width: 14.1025641026vw;
        height: 14.1025641026vw;
    }
    
    .b40 .cont-2 .before {
        width: 11.2820512821vw;
        height: 11.2820512821vw;
    }
    
    .b40 h2 {
        font-weight: 500;
        font-size: 7.6923076923vw;
        line-height: 110%;
        text-align: center;
    }
    
    .b40 .h2-desc {
        margin: auto;
        margin-top: 3.5897435897vw;
        font-weight: 300;
        font-size: 4.1025641026vw;
        line-height: 120%;
        text-align: center;
        color: #787878;
        max-width: 90vw;
    }
    
    .b40 .h2-desc br {
        display: none;
    }
    
    .b40 .cont-3 {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 4.1025641026vw;
        /* display: grid; */
        margin-top: 14.358974359vw;
        grid-template-columns: 1fr;
        gap: 3.8461538462vw;
    }
    
    .b40 .cont-3 .item .cont {
        display: flex;
        flex-direction: column;
    }
    
    .b40 .cont-3 .item .item-top {
        border-radius: 7.6923076923vw;
        padding: 3.0769230769vw 5.641025641vw;
        height: 15.3846153846vw;
        background: #1a1a1a;
        width: 100%;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        cursor: pointer;
        user-select: none;
        position: relative;
        font-size: 3.5vw;
    }

    .b40 .cont-3 .item:nth-child(1){
        order: -6;
    }
    .b40 .cont-3 .item:nth-child(2){
        order: -3;
    }
    .b40 .cont-3 .item:nth-child(3){
        order: -2;
    }
    .b40 .cont-3 .item:nth-child(4){
        order: -4;
    }
    .b40 .cont-3 .item:nth-child(5){
        order: -1;
    }
    .b40 .cont-3 .item:nth-child(6){
        order: -5;
    }
    
    .b40 .cont-3 .item .item-top:before {
        opacity: 1;
        content: '';
        position: absolute;
        inset: 0;
        padding: 0.2564102564vw;
        border-radius: inherit;
        background: conic-gradient(from var(--angle), #666, #1A1A1A, #1A1A1A, #666);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        animation: spin 3s linear infinite;
    }
    
    .b40 .cont-3 .item.active .item-top:before {
        opacity: 1;
        content: '';
        position: absolute;
        inset: 0;
        padding: 0.2564102564vw;
        border-radius: inherit;
        background: conic-gradient(from var(--angle), #a8ff6e, #1A1A1A, #1A1A1A, #a8ff6e);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        animation: spin 3s linear infinite;
    }
    
    .b40 .cont-3 .item .item-cont {
        height: fit-content;
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
        margin-top: 0;
    }
    
    .b40 .cont-3 .item .item-cont.active {
        grid-template-rows: 1fr;
        margin-top: 3.8461538462vw;
        transition: 0.3s;
    }
    
    .b40 .cont-3 .item .item-cont .head {
        font-weight: 400;
        font-size: 5.1282051282vw;
        line-height: 120%;
        color: #fafafa;
    }
    
    .b40 .cont-3 .item .item-cont .desc {
        margin-top: 4.1025641026vw;
        font-weight: 200;
        font-size: 3.5897435897vw;
        line-height: 120%;
        color: #a8ff6e;
    }
    
    .b40 .cont-3 .item .item-cont .desc br {
        display: none
    }
    
    .b40 .cont-3 .item .item-cont .sub-head {
        margin-top: 8.2051282051vw;
        font-weight: 400;
        font-size: 4.1025641026vw;
        line-height: 120%;
        letter-spacing: -0.04em;
        color: #fff;
    }
    
    .b40 .cont-3 .item .item-cont ul {
        margin-top: 4.1025641026vw;
        display: flex;
        flex-direction: column;
        gap: 3.0769230769vw;
    }
    
    .b40 .cont-3 .item .item-cont ul li {
        padding-left: 5.641025641vw;
        font-weight: 200;
        font-size: 3.5897435897vw;
        line-height: 120%;
        color: #fff;
        position: relative
    }
    
    .b40 .cont-3 .item .item-cont ul li:before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        width: 2.5641025641vw;
        height: 2.0512820513vw;
        background: url(../img/home/b40-li.svg) center center no-repeat;
        background-size: cover;
        transform: translate(0, -50%);
    }
    
    .b40 .cont-3 .item .item-cont .sub-head-2 {
        font-weight: 400;
        font-size: 4.1025641026vw;
        line-height: 120%;
        letter-spacing: -0.04em;
        color: #fff;
        margin-top: 8.2051282051vw;
    }
    
    .b40 .cont-3 .item .item-cont .sub-head-2-desc {
        font-weight: 200;
        font-size: 3.5897435897vw;
        line-height: 120%;
        color: #bababa;
        margin-top: 4.1025641026vw;
    }
    
    .b40 .cont-3 .item .item-cont .btn-box {
        width: 100%;
    }
    
    .b40 .cont-3 .item .item-cont .btn {
        margin-top: 10.2564102564vw;
        background: linear-gradient(90deg, #a8ff6e 0%, #9fcced 27.12%, #be97f7 62.98%, #ffb166 95.67%);
        border-radius: 25.641025641vw;
        width: 100%;
        height: 15.3846153846vw;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        font-weight: 400;
        font-size: 3.5897435897vw;
        line-height: 110%;
        text-transform: uppercase;
        text-align: center;
        color: #000;
    }
    
    .b40 .cont-3 .item .item-cont .i {
        height: 0;
        padding: 0 5.1282051282vw;
        transition: 0.3s;
        border: 0.2564102564vw solid rgba(255, 255, 255, 0.25);
        border-radius: 7.6923076923vw;
        box-shadow: inset 0 0 10.2564102564vw 0 rgba(255, 255, 255, 0.25);
        background: #000;
        border-width: 0;
    }
    
    .b40 .cont-3 .item.active .item-cont .i {
        padding: 5.1282051282vw;
        height: fit-content;
        margin-top: 4.1025641026vw;
        border-width: 0.2564102564vw;
    }
    
    .b40 .cont-2 .top p {
        margin-top: 8.2051282051vw;
        font-weight: 400;
        font-size: 4.1025641026vw;
        line-height: 120%;
        color: #fafafa;
    }
    
    .b40 .cont-2 .top p:nth-child(2) {
        margin-top: 4.1025641026vw;
        font-weight: 300;
        font-size: 3.5897435897vw;
        line-height: 120%;
        color: #909090;
    }
    
    .b40 .cont-2 .top p:nth-child(2) br {
        display: none;
    }
    
    .b40 .cont-2 .bottom p {
        margin-top: 8.2051282051vw;
        font-weight: 400;
        font-size: 4.1025641026vw;
        line-height: 120%;
        color: #a8ff6e;
    }
    
    .b40 .cont-2 .bottom p:nth-child(2) {
        font-family: var(--font-family);
        font-weight: 300;
        font-size: 3.5897435897vw;
        line-height: 120%;
        color: #909090;
        margin-top: 6.1538461538vw;
    }
    
    .b40 .cont-2 .bottom p:nth-child(2) br {
        display: none;
    }

}