@import url("./global.css");

/* header */
.header{
    padding: 26px 0 0 0;
}
.header__inner{
    position: relative;
    z-index: 5;
    width: 250px;
    display: flex;
    text-align: center;
    gap: 6.35px;
}
.header__title{
    font-weight: bold;
    font-size: 16.65px;
    text-transform: uppercase;
    line-height: 108%;
    color: #595653;
    max-width: 147px;
    text-align: left;
}

/* home section */
.home{
    position: relative;
    background-image: url("../img/home-1.png");
    background-color: rgba(233, 222, 212, 1);
    background-repeat: no-repeat;
    background-size: auto;
    background-position: center;
}
.home__bg{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    mix-blend-mode: color-burn;
}
.home__inner{
    position: relative;
    z-index: 5;
    padding: 62px 0 120px;
}
/* Chess pieces */
.home__inner::before, .home__inner::after{
    content: "";
    position: absolute;
    background-repeat: no-repeat;
} 
.home__inner::before{
    background-image: url("../img/piece-2.png");
    width: 192px;
    height: 220px;
    bottom: -2px;
    right: 291px;
}
.home__inner::after{
    background-image: url("../img/piece-1.png");
    width: 90px;
    height: 125px;
    bottom: 25px;
    right: 25px;
}
.home__title{
    font-family: "Merriweather";
    font-weight: 400;
    font-size: 60px;
    line-height: 110%;
    max-width: 542px;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.home__title span{
    display: block;
    max-width: 510px;
    margin-left: auto;
    text-align: center;
}
.home__text{
    font-size: 18px;
    line-height: 130%;
    text-align: center;
    max-width: 542px;
    margin-bottom: 40px;

    transition-delay: 100ms;
}
.home__footer{
    display: flex;
    align-items: center;
    gap: 16px;
    transition-delay: 200ms;
}
.home__link{
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    width: 260px;
    height: 70px;
    padding: 20px 50px;
    border-radius: 66px;
}
.home__link span{
    max-width: 165px;
    display: inline-block;
    text-align: center;
}
.home__link_dark{
    background: #1F1F1F;
    color: #fff;
    transition: all .3s;
}
.home__link_light{
    background: transparent;
    color: #1F1F1F;
    border: 2px solid #1F1F1F;
    transition: all .3s;
}
.home__link_dark:hover{
    background: #FBCE51;
    color: #1F1F1F;
}
.home__link_light:hover{
    background: #1F1F1F;
    color: #fff;
}

/* support section */
.support{
    /*margin-top: 106px;*/
    margin-top: 80px;
}
/* support lecture */
.support__lecture{
    display: flex;
    gap: 50px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 64px;
}
.support__title_lecture{
    max-width: 765px;
}
.support__title_lecture--mobile{
    display: none;
    text-align: center;
}

/* support playing */
.support__inner_playing{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 45px;
}
.support__title_playing{
    max-width: 700px;
    margin-bottom: 60px;
}
.support__title_mobile{
    display: none;
}
.support__table{
    width: 100%;
    margin-bottom: 48px;
}
.support__table tr td:first-child {
    padding-left: 0px;
}
.support__table tr:first-child td {
    padding-top: 0px;
}
.support__table tr:last-child td {
    padding-bottom: 0px;
}
.support__table_mobile{
    margin-top: 44px;
    display: none;
    width: 100%;
}
.support__link{
    color: #3057A2;
}
.support__link_mobile{display: none;}
.support__imgwrapper{
    position: relative;
}
.support__bg{
    position: absolute;
    mix-blend-mode: color-burn;
    width: 100%;
    height: 99%;
}
.support__img_2{
    background-color: #fff;
    max-width: 100%;
    min-width: 360px;
}
.discount{
    position: relative;
    margin-right: 12px;
}
.discount::before{
    content:"";
    position: absolute;
    left: 50%;
    top: 57%;
    transform: translate(-50%, -50%);

    display: block;
    height: 2px;
    width: 100%;
    background-color: #F54932;
}
/* steps section */
.steps{
    margin-top: 200px;
}
.steps__title{
    position: relative;
    z-index: 5;
    max-width: 800px;
    margin-bottom: 54px;
}
.steps__title a{
    display: inline-block;
    font-family: "Golos Text";
    max-width: 280px;
    font-size: 20px;
    line-height: 120%;
    color: #3057A2;
    text-transform: none;
}

.steps__list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-column-gap: 20px;
    grid-row-gap: 20px; 
}

.steps__item{
    background-image: url('../img/steps-bg-1.png'),url('../img/steps-bg-2.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 160% 120%;

    background-blend-mode: color-burn;
    padding: 20px;
}
.steps__list .steps__item{
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.steps__list .steps__item:nth-child(1){
    grid-area: 1 / 1 / 2 / 3;
}
.steps__list .steps__item:nth-child(2){
    grid-area: 1 / 3 / 2 / 5;
}
.steps__list .steps__item:nth-child(3){grid-area: 1 / 5 / 3 / 7;}
.steps__list .steps__item:nth-child(4){
    grid-area: 2 / 1 / 3 / 3;
}
.steps__list .steps__item:nth-child(5){
    grid-area: 2 / 3 / 3 / 5;
}
.steps__list .steps__item:nth-child(6){
    grid-area: 3 / 1 / 4 / 3;
}
.steps__list .steps__item:nth-child(7){
    position: relative;
    grid-area: 3 / 3 / 4 / 7;
}
/* text cut */
.steps__list .steps__item:nth-child(1) .steps__desc{
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    grid-area: 1 / 1 / 2 / 3;
}
.steps__list .steps__item:nth-child(2) .steps__desc{
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    grid-area: 1 / 1 / 2 / 3;
}
.steps__list .steps__item:nth-child(3) .steps__desc{
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 12;
}
.steps__list .steps__item:nth-child(4) .steps__desc{
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    grid-area: 1 / 1 / 2 / 3;
}
.steps__list .steps__item:nth-child(5) .steps__desc{
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    grid-area: 1 / 1 / 2 / 3;
}
.steps__list .steps__item:nth-child(6) .steps__desc{
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    grid-area: 1 / 1 / 2 / 3;
}
.steps__list .steps__item:nth-child(7) .steps__desc{
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    grid-area: 1 / 1 / 2 / 3;
}
.steps__count{
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    padding: 11px 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
}
.steps__desc{
    max-width: 302px;
    font-size: 20px;
    font-weight: 500;
}
.steps__item:nth-child(7) .steps__desc{
    max-width: 450px;
}
.steps__img{
    position: absolute;
    top: -85px;
    right: -75px;
}
/* steps mobile */
.steps__slider{
    display: none;
    position: relative;
    overflow-x: clip;
}
.steps__slider .steps__item{
    height: 300px;
    padding: 75px 24px 34px 20px;
    text-align: left;
}
.steps__slider .steps__item:first-child{
    position: relative;
}
.steps__item_step{
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 28px;
}
.steps__slider .steps__desc{
    max-width: unset;
}

/* players */
.players{
    padding-top: 200px;
}
.players__title{
    margin-bottom: 60px;
}
.players__name{
    max-width: 290px;
    margin: 0 auto;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}
.players__level{
    text-align: center;
    margin-bottom: 20px;
}
.players__link{
    display: flex;
    align-items: center;
    width: 113px;
    height: 35px;
    border-radius: 62px;
    border: 1px solid #3057A2;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #3057A2;
    margin: 0 auto;
    transition: all .3s;
}
.players__link:hover{
    background-color: #3057A2;
    color: #fff;
}
/* footer section */
.footer{
    padding: 40px 0 72px;
    background-color: #E9DED4;
}
.footer__text{
    font-size: 16px;
    opacity: 0.6;
}


/* Media ************************************************************************************** */
@media(max-width: 1252px){
    .home__inner::before{
        right: 125px;
    }
    .home__inner::after{
        display: none;
    }

    /* steps */
    .steps__img {
        top: -142px;
        right: -176px;
    }
}
@media(max-width: 1024px){
    .home{
        background-position: 40%;
    }
    .home__title{
        max-width: 500px;
        font-size: 54px;
    }
    .home__inner::before{
        right: 20px;
    }

    /* support lecture */
    .support__lecture{
        gap: 30px;
    }

    /* support playing */
    .support__inner_playing {
        align-items: center;
        gap: 34px;
    }
    .support__table{
        display: none;
    }
    .support__link{display: none;}
    .support__table_mobile{
        display: inline-table;
        width: 100%;
    }
    .support__link_mobile{
        display: inline-block;
    }

    /* steps */
    .steps {
        margin-top: 160px;
    }
    .steps__list{
        display: none;
    }
    .steps__slider{
        display: block;
    }
    .steps__img {
        right: -13px;
    }
    .steps__title{
        max-width: 545px;
    }
    .steps__title a{
        display: block;
        padding-top: 12px;
        max-width: 335px;
    }

    /* support slider text cut */
    .steps__desc_1{
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        grid-area: 1 / 1 / 2 / 3;
    }
    .steps__desc_2{
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        grid-area: 1 / 1 / 2 / 3;
    }
    .steps__desc_3{
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 7;
        grid-area: 1 / 1 / 2 / 3;
    }
    .steps__desc_4{
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        grid-area: 1 / 1 / 2 / 3;
    }
    .steps__desc_5{
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        grid-area: 1 / 1 / 2 / 3;
    }
    .steps__desc_6{
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 7;
        grid-area: 1 / 1 / 2 / 3;
    }
    .steps__desc_7{
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 7;
        grid-area: 1 / 1 / 2 / 3;
    }
}
@media(max-width: 768px){
    .home{
        background-image: url("../img/home-1.png");
    }
    .home__inner::before{
        right: -95px;
    }

    /* support lecture */
    .support {
        margin-top: 70px;
    }
    .support__lecture{
        flex-direction: column;
        gap: 24px;
        margin-bottom: 40px;
    }
    .support__title_lecture {
        text-align: center;
    }
    .support__title_lecture{
        display: none;
    }
    .support__title_lecture--mobile {
        display: block;
    }
    .support__img_1{
        width: 395px;
    }

    /* support playing */
    .support__inner_playing{
        flex-direction: column-reverse;
    }
    .support__title_playing{
        text-align: center;
        margin-bottom: 0;
    }
    .support__title_desktop{
        display: none;
    }
    .support__title_mobile{
        display: block;
    }
    
    /* steps mobile */
    .steps {
        margin-top: 120px;
    }
    .steps__title{
        margin-bottom: 148px;
    }
    .steps__title a{
        font-size: 18px;
    }
    .steps__img {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    /* players */
    .players__title{
        max-width: 360px;
    }
}
@media(max-width: 640px){
    .home{
        background-image: url("../img/home-1-mobile.png");
        background-position: 75% 101%;
        background-size: auto;
    }
    .home__inner {
        padding: 40px 0 120px;
    }
    .home__inner::before{
        background-image: url('../img/piece-2-mobile.png');
        width: 98px;
        height: 131px;
        left: 50%;
        transform: translateX(-50%);
        bottom: -15px;
    }

    .home__title{
        max-width: 335px;
        font-size: 36px;
    }
    .home__text{
        text-align: left;
        max-width: 421px;
    }
    .home__footer{
        flex-direction: column;
        align-items: flex-start;
    }
    .home__link{
        width: 335px;
        height: 45px;
        padding: 18px 43px;
    }
    .home__link span{
        max-width: unset;
        margin: 0 auto;
    }
    .home__link_light {
        background: #fff;
        border: none;
    }
    .marquee{
        height: 38px;
        font-size: 16px;
    }
    .home__footer{
        gap: 14px;
    }

    /* support */
    .support__title_lecture {
        font-size: 28px;
        /* text-align: left; */
    }

    /* players */
    .players {
        padding-top: 120px;
    }
}
@media(max-width: 480px){
    .header__title{
        font-size: 14.42px;
        max-width: 140px;
    }
    .home{
        background-position: 77% 103%;
    }
    .home__inner {
        padding: 40px 0 288px;
    }
    .home__title{
        margin: 0 auto 24px;
    }
    .home__text {
        max-width: 325px;
        margin: 0 auto 32px;
    }
    .home__footer {
        align-items: center;
    }

    /* support lecture */
    .support {
        margin-top: 48px;
    }
    .support__lecture {
        margin-bottom: 24px;
    }
    .support__lecture div {
        align-self: flex-start;
    }
    .support__title_lecture {
        max-width: 325px;
        text-align: left;
        margin-bottom: 0;
    }

    .support__title_lecture--mobile{
        text-align: left;
    }
    .support__link_mobile{
        font-size: 18px;
    }
    .support__img_1 {
        width: auto;
    }
    .support__table_mobile tr{
        padding: 0;
    }
    .support__table_mobile tr td{
        padding: 0;
    }
    .support__table_mobile tr td:last-child {
        margin: 0 0 0 0;
    }
    .support__table_mobile tr td:first-child {
        margin: 0 0 12px 0;
    }
    .support__table_mobile tr:not(:last-child) {
        padding: 0 0 16px 0;
        margin: 0 0 16px 0;
    }


    /* support playing */
    .support__title_playing{
        max-width: 325px;
    }
    .support__title_playing{
        align-self: flex-start;
        text-align: left;
    }
    .support__info {
        align-self: flex-start;
    }

    /* table */
    .support__table {
        margin-bottom: 40px;
    }
    tr{
        display: flex;
        flex-direction: column;
        border-bottom: 1px solid #D0D0D0;
        padding-bottom: 16px;
    }
    tr:last-child{
        border-bottom: none;
    }
    td{
        padding-bottom: 0;
        border-top: none;
        border-left: none;
        border-right: none;
        border-bottom: none;
    }

    /* steps */
    .steps__desc {
        font-size: 18px;
    }

    /* players */
    .players__title {
        margin-bottom: 40px;
    }
    .marquee-2 {
        margin-top: 176px;
    }
    .footer {
        padding: 40px 0 60px;
    }
    .footer__text{
        font-size: 16px;
    }
}