.promo {
    display: flex;
    margin-top: 70px;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 55px;
    h1 {
        font-size: 64px;
        line-height: 79px;
        font-family: 'Oswald';
        font-weight: 400;
        padding: 0 7px;
        text-transform: uppercase;
        letter-spacing: 1px;
        span {
            display: block;
            font-size: inherit;
            line-height: inherit;
            font-family: inherit;
            font-weight: inherit;
            color: var(--text-2);
        }
    }
    .right {
        display: flex;
        gap: 10px;
        margin-bottom: 15px;
        button {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 71px;
            height: 55px;
            background: #f7f6f4;
            border: 1px solid var(--bg-2);
            border-radius: 10px;
            &::before {
                content: '\e006';
                font-family: 'icon';
                font-size: 30px;
                color: #979795;
            }
        }
        a {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 126px;
            height: 55px;
            background: #f7f6f4;
            border: 1px solid var(--bg-2);
            border-radius: 10px;
            font-size: 16px;
            line-height: 120%;
            color: #979795;
            &.selected {
                background: var(--bg-2);
                color: #fff;
            }
            &:not(.selected):hover {
                box-shadow: 0 10px 34px rgba(255, 107, 0, 0.35);;
            }
        }
    }
}
.trainings {
    margin-bottom: 117px;
    .head {
        display: grid;
        grid-template-columns: 26% 15.9% 19% 34%;
        gap: 30px;
        padding: 36px 0px 20px;
        border-radius: 43px 43px 0 0;
        background: var(--bg-3);
        p {
            font-size: 26px;
            line-height: 120%;
            letter-spacing: 0px;
            text-align: center;
        }
    }
    .items {
        display: flex;
        flex-direction: column;
        .item {
            display: grid;
            grid-template-columns: 26% 15.9% 19% 34%;
            gap: 30px;
            &:nth-child(odd) {
                background: #ffba7c;
            }
            &:nth-child(even) {
                background: var(--bg-2);
            }
            div {
                padding: 20px 65px;
                display: flex;
                align-items: center;
                justify-content: center;
                text-align: left;
                font-size: 26px;
                line-height: 1;
                letter-spacing: 0px;
            }
        }
    }
}

body.js .trainings .items .item {
    opacity: 0;
    transform: rotateX(-180deg);
}
body.js .trainings .items.in .item {
    opacity: 0;
    animation: cascadeCard 1.5s cubic-bezier(0.175, 0.885, 0.32, 1) forwards;
}
body.js .trainings .items.in .item:first-child {
    animation-delay: 0s;
}
body.js .trainings .items.in .item:nth-child(2) {
    animation-delay: 0.15s;
}
body.js .trainings .items.in .item:nth-child(3) {
    animation-delay: 0.30s;
}
body.js .trainings .items.in .item:nth-child(4) {
    animation-delay: 0.45s;
}
body.js .trainings .items.show {
    perspective: unset;
    .item {
        opacity: 1;
        transform: rotateX(0deg);
    }
}
@keyframes cascadeCard {
    0% {
        opacity: 0;
        transform: rotateX(-180deg);
    }
    100% {
        opacity: 1;
        transform: rotateX(0deg);
    }
}
@media screen and (max-width: 1759px) {
    .promo {
        margin-top: 40px;
        margin-bottom: 28px;
        h1 {
            font-size: 48px;
            line-height: 50px;
            letter-spacing: 0.79px;
        }
        .right {
            margin-bottom: 10px;
            gap: 8px;
            button {
                width: 55px;
                height: 43px;
                &::before {
                    font-size: 26px;
                }
            }
            a {
                width: 97px;
                height: 43px;
                font-size: 12px;
                &:not(.selected) {
                    color: var(--main-bg);
                }
            }
        }
    }
    .trainings {
        margin-bottom: 40px;
        .head {
            grid-template-columns: 22% 6% 18% 33.9%;
            gap: 80px;
            padding: 27px 0px 10px;
            p {
                font-size: 22px;
                text-align: left;
            }
            p:first-child {
                padding-left: 43px;
            }
            p:last-child {
                padding-left: 15px;
            }
        }
        .items {
            .item {
                gap: 80px;
                padding: 18px 0;
                grid-template-columns: 22% 6% 18% 33.9%;
                div {
                    font-size: 18px;
                    padding: 0;
                    justify-content: flex-start;
                }
                div:first-child {
                    padding-left: 43px;
                }
                div:last-child {
                    padding-left: 15px;
                }
            }
        }
    }
}
@media screen and (max-width: 1279px) {
    .promo {
        margin-top: 135px;
        margin-bottom: 15px;
        flex-direction: column;
        align-items: flex-start;
        h1 {
            padding: 0;
            margin-bottom: 35px;
            font-size: 40px;
            line-height: 40px;
        }
        .right {
            gap: 10px;
            margin-bottom: 0;
            button {
                width: 80px;
                height: 57px;
                &::before {
                    font-size: 35px;
                }
            }
            a {
                width: 143px;
                height: 57px;
                font-size: 16px;
            }
        }
    }
    .trainings {
        margin-bottom: 60px;
        .head {
            grid-template-columns: 30% 7% 23% 26.9%;
            gap: 30px;
            padding: 22px 0px 10px;
            border-radius: 35px 35px 0 0;
            p {
                font-size: 16px;
            }
            p:first-child {
                padding-left: 25px;
            }
        }
        .items {
            .item {
                gap: 30px;
                padding: 10px 0;
                grid-template-columns: 30% 7% 23% 26.9%;
                div {
                    font-size: 15px;
                }
                div:first-child {
                    padding-left: 25px;
                }
            }
        }
    }
}
@media screen and (max-width: 767px) {
    .promo {
        margin-top: 100px;
        h1 {
            font-size: 20px;
            line-height: 20px;
            margin-bottom: 20px;
        }
        .right {
            gap: 6px;
            display: grid;
            grid-template-columns: 40px repeat(auto-fill, minmax(100px, 1fr));
            width: 100%;
            button {
                width: auto;
                height: 35px;
                border-radius: 6px;
                grid-area: 1/1/3/2;
                &::before {
                    font-size: 22px;
                }
            }
            a {
                width: auto;
                height: 35px;
                font-size: 12px;
                border-radius: 6px;
            }
        }
    }
    .trainings {
        margin-bottom: 50px;
        .head {
            display: none;
        }
        .items {
            gap: 12px;
            .item {
                padding: 13px 16px 15px;
                grid-template-columns: 60px 1fr;
                gap: 5px 25px;
                border-radius: 6px;
                div:nth-child(2) {
                    padding-left: 0;
                    grid-area: 1/1/4/2;
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    justify-content: center;
                    gap: 15px;
                    font-size: 14px;
                    order: 1;
                    &::before {
                        font-family: 'icon';
                        content: '\e007';
                        font-size: 32px;
                        color: var(--bg-1);
                    }
                }
                div:first-child {
                    font-size: 15px;
                    margin-bottom: 5px;
                    order: 2;
                    padding-left: 0;
                }
                div:nth-child(3) {
                    font-size: 12px;
                    display: flex;
                    align-items: center;
                    gap: 4px;
                    order: 3;
                    &::before {
                        font-family: 'icon';
                        content: '\e008';
                        font-size: 16px;
                        color: var(--bg-1);
                    }
                }
                div:nth-child(4) {
                    font-size: 12px;
                    margin-bottom: 2px;
                    display: flex;
                    align-items: center;
                    gap: 4px;
                    order: 4;
                    padding-left: 0;
                    &::before {
                        font-family: 'icon';
                        content: '\e009';
                        font-size: 16px;
                        color: var(--bg-1);
                        margin-bottom: 3px;
                    }
                }
            }
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    body .trainings .items {
        perspective: 0;
    }
    body .trainings .items .item {
        animation: none !important;
        opacity: 1 !important;
        transform: unset !important;
    }

}
