#mechanics {
    padding: 220px 0 224px;
    overflow: hidden;
    position: relative;
    background: url(../assets/setka.svg) center / contain no-repeat;
}

.mechanics {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
    z-index: 1;

}

#mechanics::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
    background:
        linear-gradient(180deg, #0A100A 0%, transparent 500px),
        linear-gradient(90deg, #0A100A 0%, transparent 20%);
}

#mechanics::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
    background:
        linear-gradient(0deg, #0A100A 0%, transparent 500px),
        linear-gradient(270deg, #0A100A 0%, transparent 20%);
}

.mechanics_head {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.mechanics_title {
    font-size: 64px;
    line-height: 100%;
    will-change: transform, opacity;
    opacity: 0;
}

.mechanics_after_title {
    color: #CCFBFF;
    text-align: center;
    font-size: 24px;
    line-height: 130%;
    will-change: transform, opacity;
    opacity: 0;
}

#mechanics.show .mechanics_title {
    animation: bumpUp 0.5s cubic-bezier(.29, 0.74, 1, 1) 0.3s forwards
}

#mechanics.show .mechanics_after_title {
    animation: bumpUp 0.5s cubic-bezier(.29, 0.74, 1, 1) 0.6s forwards
}

.mechanics_content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 2;
    max-width: 1488px;
    width: 100%;
}

.mechanics_item {
    width: 318px;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    will-change: transform, opacity;
    opacity: 0;
    padding: 24px;
    border-radius: 10px;
    border: 3px solid #256C51;
    background: #12261F;
    position: relative;
    overflow: hidden;
}

.mechanics_img {
    display: flex;
    width: 272px;
    height: 293px;
    padding: 30px 30px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: -84px;
    bottom: -94px;
    pointer-events: none;
}

.mechanics_img1 {
    background: url(../assets/class_icon_1.svg);
}

.mechanics_img2 {
    background: url(../assets/class_icon_2.svg);
}

.mechanics_img3 {
    background: url(../assets/class_icon_3.svg);
}

.mechanics_img4 {
    background: url(../assets/class_icon_4.svg);
}

.last_item {
    border: 3px solid #2C2C2C;
    background: #131313;
}

.last_item .mechanics_proff {
    background: #2A2A2A;
}

.last_item .mechanics_name {
    color: #DEDEDE;
    background: #DEDEDE;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.last_item .mechanics_text {
    text-decoration: none;
    color: #DEDEDE;
}

#mechanics.show .mechanics_item:nth-child(1) {
    animation: bumpUp 0.5s cubic-bezier(.29, 0.74, 1, 1) 0.8s forwards
}

#mechanics.show .class_arrow:nth-child(2) {
    animation: bumpUp 0.5s cubic-bezier(.29, 0.74, 1, 1) 0.9s forwards
}

#mechanics.show .mechanics_item:nth-child(3) {
    animation: bumpUp 0.5s cubic-bezier(.29, 0.74, 1, 1) 1s forwards
}

#mechanics.show .class_arrow:nth-child(4) {
    animation: bumpUp 0.5s cubic-bezier(.29, 0.74, 1, 1) 1.1s forwards
}

#mechanics.show .mechanics_item:nth-child(5) {
    animation: bumpUp 0.5s cubic-bezier(.29, 0.74, 1, 1) 1.2s forwards
}

#mechanics.show .class_arrow:nth-child(6) {
    animation: bumpUp 0.5s cubic-bezier(.29, 0.74, 1, 1) 1.3s forwards
}

#mechanics.show .mechanics_item:nth-child(7) {
    animation: bumpUp 0.5s cubic-bezier(.29, 0.74, 1, 1) 1.4s forwards
}

.class_arrow {
    width: 24px;
    height: 48px;
    aspect-ratio: 1/2;
    background: url(../assets/class_arrow.svg) center / contain no-repeat;
    will-change: transform, opacity;
    opacity: 0;
}

.mechanics_discribe {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.mechanics_proff {
    border-radius: 100px;
    background: #19372B;
    padding: 6px 16px;
    font-family: 'Inter Medium';
    font-size: 14px;
    line-height: normal;
}

.mechanics_name,
.mechanics_name span {
    font-family: 'Colus';
    font-size: 34px;
    line-height: 110%;
}

.mechanics_name {
    display: flex;
    flex-direction: column;
}

.mechanics_text {
    color: #FFF;
    text-align: center;
    font-family: 'Inter Medium';
    font-size: 16px;
    line-height: normal;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-underline-position: from-font;
    transition: all 0.3s ease;
}

.mechanics_text:hover {
    color: #88EE96;
}

.last_item .mechanics_text:hover {
    color: #DEDEDE;
}

@media (max-width: 1600px) {

    #mechanics {
        padding: 175px 0 64px;
    }

    .mechanics {
        gap: 64px;
    }

    .mechanics_name,
    .mechanics_name span {
        font-size: 28px;
        line-height: 100%;
    }

    .mechanics_discribe {
        gap: 16px;
    }

    .mechanics_content {
        padding: 0 32px;
    }
}

@media (max-width: 1400px) {
    .mechanics_title {
        font-size: 32px;
        line-height: 110%;
    }

    #mechanics {
        padding: 112px 0 112px;
    }

    .mechanics {
        gap: 38px;
    }

    .mechanics_name {
        font-size: 24px;
        line-height: 100%;
    }

    .mechanics_text {
        font-size: 14px;
        line-height: 130%;
    }

}

@media (max-width: 1250px) {
    .mechanics_head {
        align-items: flex-start;
    }

    .mechanics_after_title {
        text-align: left;
    }

    .mechanics_after_title {
        color: #CCFBFF;
        font-size: 16px;
        line-height: 130%;
    }

    #mechanics {
        background: url(../assets/setka.svg) center / contain repeat;
    }

    .mechanics_img {
        right: -84px;
        bottom: -110px;
    }

    .class_arrow {
        background: url(../assets/class_arrow2.svg) center / contain no-repeat;
        width: 50px;
        height: 25px;
    }

    .mechanics_name,
    .mechanics_name span {
        font-size: 40px;
        line-height: 110%;
    }

    .mechanics_discribe {
        gap: 10px;
    }

    .mechanics_content {
        gap: 16px;
        flex-direction: column;
    }

    .mechanics_item {
        width: 327px;
        height: 292px;
    }
}

@media (max-width: 1000px) {

    .mechanics {
        padding: 0 24px;
        gap: 48px;
    }

    .mechanics::after {
        background: url(../assets/little_arrow.svg) center / contain no-repeat;
        content: '';
        position: absolute;
        top: -110px;
        right: -34px;
        width: 208px;
        height: 250px;
        z-index: 0;
        pointer-events: none;
    }

    .mechanics_item {
        gap: 25px;
    }

    .mechanics_discribe {
        align-items: flex-start;
        gap: 12px;
    }

    .mechanics_text {
        text-align: left;
        font-size: 16px;
        line-height: 130%;
    }
}