.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;
                box-shadow: 0 10px 34px rgba(255, 107, 0, 0);;
            &.selected {
                background: var(--bg-2);
                color: #fff;
            }
            &:not(.selected):hover {
                box-shadow: 0 10px 34px rgba(255, 107, 0, 0.35);;
            }
        }
    }
}
.games {
    margin-bottom: 72px;
    .head {
        display: flex;
        padding: 0 32px;
        margin-bottom: 12px;
        div {
            width: 48%;
            display: grid;
            grid-template-columns: 1fr 17px 1fr;
            gap: 40px;
            margin-right: 32px;
            p:first-child {
                grid-column: 1/2;
            }
            p:nth-child(2) {
                grid-column: 3/4;
            }
            .mob {
                display: none;
            }
        }
        >p {
            text-align: center;
        }
        >p:first-of-type {
            margin-right: 20px;
        }
        >p:first-of-type,
        >:nth-of-type(2) {
            width: 125px;
        }
        >p:last-child {
            width: 33%;
            margin-left: 32px;
        }
    }
    .items {
        border-radius: 30px;
        background: var(--bg-3);
        padding: 17px 32px 26px;
        display: flex;
        flex-direction: column;
        gap: 27px;
        perspective: 1200px;
        .item {
            display: flex;
            opacity: 1;
            div {
                background: var(--text-4);
                border-radius: 7px;
            }
            .teams {
                width: 48%;
                display: grid;
                grid-template-columns: 1fr 17px 1fr;
                gap: 40px;
                align-items: center;
                padding: 15px 20px 15px 13px;
                margin-right: 32px;
                * {
                    color: var(--text-1);
                }
                p {
                    font-size: 26px;
                    line-height: 120%;
                    letter-spacing: 0px;
                    display: grid;
                    align-items: center;
                    grid-template-columns: 42px 1fr;
                }
                span {
                    font-family: 'Oswald';
                    font-weight: 400;
                    font-size: 15px;
                    line-height: 19px;
                    letter-spacing: 0.2px;
                    text-transform: uppercase;
                }
            }
            .data, .time {
                margin-right: 20px;
                width: 125px;
                display: flex;
                align-items: center;
                justify-content: center;
                color: var(--text-1);
            }
            .time {
                margin-right: 32px;
            }
            .result {
                width: 33%;
                display: flex;
                align-items: center;
                justify-content: center;
                padding: 8px;
                p {
                    font-size: 18px;
                    line-height: 120%;
                    letter-spacing: 0px;
                    display: grid;
                    grid-template-columns: 58px 1fr;
                    gap: 15px;
                    align-items: center;
                    color: var(--text-1);
                    text-align: center;
                }
            }
            &.completed {
                div {
                    background: var(--bg-1);
                }
                .teams {
                    * {
                        color: var(--text-3);
                    }
                }
                .data, .time {
                    color: var(--text-3);
                }
                .result {
                    background: var(--bg-2);
                }
            }
        }
    }
}
body.js .games .items .item {
    opacity: 0;
    transform: rotateX(-180deg);
}
body.js .games .items.in .item {
    opacity: 0;
    animation: cascadeCard 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
body.js .games .items.in .item:first-child {
    animation-delay: 0s;
}
body.js .games .items.in .item:nth-child(2) {
    animation-delay: 0.15s;
}
body.js .games .items.in .item:nth-child(3) {
    animation-delay: 0.30s;
}
body.js .games .items.in .item:nth-child(4) {
    animation-delay: 0.45s;
}
body.js .games .items.show {
    perspective: unset;
    .item {
        opacity: 1;
        transform: rotateX(0deg);
    }
}
.last {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}
body.js .last {
    opacity: 0;
    transform: translateY(40px);
}
body.js .last.in {
    opacity: 1;
    transform: none;
}
body.js .last.show {
    opacity: 1;
    transform: translateY(0);
}
@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: 40px;
        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);
                }
            }
        }
    }
    .games {
        margin-bottom: 82px;
        .head {
            margin-bottom: 10px;
            div {
                margin-right: 23px;
            }
            >p:first-of-type, >:nth-of-type(2) {
                width: 85px;
            }
            >p:first-of-type {
                margin-right: 14px;
            }
            >p:last-child {
                margin-left: 23px;
            }
        }
        .items {
            padding: 14px 22px 20px;
            gap: 22px;
            .item {
                .teams {
                    margin-right: 23px;
                    gap: 11px;
                    grid-template-columns: 1fr 12px 1fr;
                    padding: 8px 12px;
                    p {
                        font-size: 18px;
                        grid-template-columns: 40px 1fr;
                        gap: 7px;
                    }
                    span {
                        font-size: 12px;
                        line-height: 13px;
                        letter-spacing: 0.14px;
                    }
                }
                .data, .time {
                    width: 85px;
                }
                .time {
                    margin-right: 23px;
                }
                .result {
                    p {
                        grid-template-columns: 42px 1fr;
                        gap: 11px;
                    }
                }
            }
        }
    }
}
@media screen and (max-width: 1279px) {
    .promo {
        margin-top: 135px;
        margin-bottom: 80px;
        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;
            }
        }
    }
    .games {
        margin-bottom: 77px;
        .head {
            padding: 0;
            margin-bottom: 34px;
            display: grid;
            grid-template-columns: 1fr 102px 0.67fr;
            gap: 16px 20px;
            div {
                width: 100%;
                margin-right: 0;
                padding-left: 18px;
                grid-template-columns: 100%;
                p {
                    display: none;
                }
                .mob {
                    display: inline;
                }
            }
            p {
                font-size: 22px;
                line-height: 120%;
                letter-spacing: 0;
            }
            >p:first-of-type {
                width: 102px;
                margin-right: 0;
            }
            >p:nth-of-type(2) {
                display: none;
            }
            >p:last-child  {
                width: 100%;
                margin-left: 0;
                padding-left: 25px;
                text-align: left;
            }
        }
        .items {
            gap: 20px;
            padding: 0;
            background: unset;
            .item {
                display: grid;
                grid-template-columns: 1fr 102px 0.67fr;
                grid-auto-rows: 1fr;
                gap: 16px 20px;
                .teams {
                    grid-area: 1/1/3/2;
                    display: flex;
                    flex-direction: column;
                    align-items: flex-start;
                    width: 100%;
                    gap: 7px;
                    padding: 17px 22px;
                    p {
                        grid-template-columns: 47px 1fr;
                        font-size: 20px;
                    }
                    span {
                        align-self: center;
                    }
                }
                .data, .time {
                    width: 100%;
                    font-size: 20px;
                }
                .data {
                    grid-area: 1/2/2/3;
                }
                .time {
                    grid-area: 2/2/3/3;
                }
                .result {
                    width: 100%;
                    grid-area: 1/3/3/4;
                    padding: 25px;
                    p {
                        display: flex;
                        flex-wrap: wrap;
                        justify-content: flex-start;
                        text-align: left;
                        width: 100%;
                        img {
                            max-width: 52px;
                        }
                    }
                }
            }
        }
    }
}
@media screen and (max-width: 767px) {
    .promo {
        margin-top: 100px;
        margin-bottom: 26px;
        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;
            }
        }
    }
    .games {
        margin-bottom: 50px;
        .head {
            gap: 8px 5px;
            grid-template-columns: 1fr 50px 0.67fr;
            margin-bottom: 15px;
            div {
                margin-left: 9px;
                p {
                    font-size: 12px;

                }
            }
            >p {
                font-size: 12px;
            }
            >p:first-of-type {
                width: 50px;
            }
            >p:last-child {
                padding-left: 15px;
            }        
        }
        .items {
            gap: 8px;
            .item {
                gap: 8px 5px;
                grid-template-columns: 1fr 50px 0.67fr;
                div {
                    border-radius: 4px;
                }
                .teams {
                    padding: 8px 5px;
                    gap: 4px;
                    p {
                        grid-template-columns: 23px 1fr;
                        font-size: 12px;
                        word-break: break-all;
                    }
                }
                .data, .time {
                    font-size: 12px;
                    padding: 6px;
                }
                .result {
                    padding: 12px 10px;
                    p {
                        font-size: 12px;
                        word-break: break-all;
                        img {
                            max-width: 26px;
                        }
                    }
                }
            }
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    body .games .items {
        perspective: 0;
    }
    body .games .items .item {
        animation: none !important;
        opacity: 1 !important;
        transform: unset !important;
    }

}
