/* #a88a8c */

body{
    /* font: 12px/18px 'Madelyne', "Arial", sans-serif; */
    font: 12px/18px "Arial", sans-serif;
    font-weight: 400;
    font-style: normal;
    /* background: linear-gradient(#e77db0, #876cc7); */
    background:
        /* url(../images/bg-left-top.jpg) no-repeat left top,
        url(../images/bg-right-bottom.jpg) no-repeat right bottom, */
        #111322
    ;

    background-size:
        200px auto,
        200px auto
    ;

    min-height: 100vh;
    height: 100vh;
    /* overflow-y: scroll; */
    /* overflow: hidden; */

    scrollbar-width: none;

    position: relative;
}

body::-webkit-scrollbar {
    width: 0;
}


body::before,
body::after{
    content: ' ';
    display: block;
    
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% auto;
    width: 200px;
    height: 200px;

    position: absolute;
    transition: all 0.2s cubic-bezier(0.42, 0, 0.58, 1.0) 0s;
    opacity: 0;
}

body::before{
    background-image: url(../images/logo.jpg);
    top: 15px;
    left: calc(50% - 80px);
    width: 160px;
    height: 190px;
}

body::after{
    background-image: url(../images/bg-right-bottom.jpg);
    bottom: 0;
    right: 0;
}


body[data-step="1"]::before,
body[data-step="1"]::after{
    opacity: 1;
}


/* @media only screen and (max-width : 600px) {
    body::before{
        position: absolute;
        top: 20px;
        left: 50%;
        transform: translate(-50%, 0);
    }
} */


@media only screen and (max-width : 374px) {
    body::before{
        width: 112.5px;
        height: 132.75px;
    }
    
    body::after{
        width: 150px;
        height: 150px;
    }
}




.container{
    width: 1280px;
    margin: 0 auto;
    box-sizing: border-box;
}

@media only screen and (max-width : 1280px) {
    .container{
        margin-left: 20px;
        margin-right: 20px;
        width: calc(100% - 40px);
    }
}


.btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    
    
    box-sizing: border-box;
    white-space: nowrap;


}

.btn-pink{
    /* background: #f778ad; */
    background: #ffdd2f;
    font-size: 20px;
    /* font-weight: ; */
    /* color: #fff; */
    color: #111322;
    line-height: 1;
    text-decoration: none;

    padding: 0.75em 2em;

    border-radius: 4px;
    transition: all 0.2s cubic-bezier(0.42, 0, 0.58, 1.0) 0s;
}

.btn-pink:hover{
    opacity: 0.7;
}




.main {
}

.std-text {

}

.std-text p{
    /* margin-bottom: 1em; */
}




.scroll-tap{
    /* cursor: grab; */
    scrollbar-width: none;
}
.scroll-tap::-webkit-scrollbar {
    width: 0;
}


.steps-item{
    height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;
    /* flex-wrap: wrap; */
    
    min-height: 100vh;
    height: 100vh;
    overflow-y: scroll;
}

.steps-item[data-id="3"] .step-wrapper{
    padding-top: 40px;
    
    box-sizing: border-box;
    height: 100%;
}

.steps-item[data-id="3"] .step-button{
    padding-bottom: 40px;
    box-sizing: border-box;
}

.step-wrapper{
    font-size: 24px;
    /* font-weight: ; */
    color: #fff;
    line-height: 1;
    text-decoration: none;

    text-align: center;

    position: relative;
    z-index: 5;
}

.step-title{
    font-size: 2em;
    font-weight: bold;
}

.step-introtext{
    font-size: 1em;
    margin-top: 2em;
}

.step-button{
    /* font-size: 1em; */
    margin-top: 2em;
}


.step-3-button-go{
    /* margin-top: 40px; */
}




.date-of-birth-form{

}

.date-of-birth-form form{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    
}

.date-of-birth-form input{
    text-align: center;

    font-size: 1em;

    border-radius: 4px;
    border: none;
    /* padding-top: 0.5em;
    padding-bottom: 0.5em; */

    /* height: 2em; */

    width: calc(100% / 3 * 1 - 20px * 2 / 3);
    margin-right: 20px;
    /* margin-bottom: 20px; */
    height: 50px;


    background: #f2f3f5;
    border: 1px solid #e4e5e7;
    box-sizing: border-box;
}

.date-of-birth-form input{
    /* width: 100%;
    margin-bottom: 20px; */

}

.date-of-birth-form input[name="year"]{
    margin-right: 0;
}


/* .date-of-birth-form input */
.error{
    box-shadow: 0 0 0 3px red;
}








/* -------------------------------------------------- */

.matrix{
    position: relative;
}

.matrix table{
    width: 500px;

    margin-top: 20px;
    margin-bottom: 20px;
    border-collapse: collapse;
    /* border: 3px solid purple; */
}

.matrix td{
    border: 1px solid rgba(255,255,255, 0.5);
    
    padding: 20px;
    font-size: 20px;

    width: 33.333333%;
}

.matrix-count{
    font-size: 20px;
    width: 20px;

    position: absolute;
    left: 100%;
    bottom: 0;
    margin-left: 1em;


    display: none;
}





.svg-wrapper{
    font-size: 500px;
    width: 500px;
    /* height: 100%; */
    /* height: 380px; */

    position: relative;
    margin-top: 40px;
}

.svg-wrapper svg{
    width: 100%;
    /* height: 100%; */
    height: initial;
    transform: scale(1, -1);
    display: block;
}

.svg-scale-num{
    position: absolute;
    font-size: 0.032em;
    /* color: #111322; */
    color: rgba(255,255,255, 0.5);
    line-height: 1;
    text-decoration: none;

    width: 2em;
    text-align: center;
}

/*
6   -   100%
1   -   x = 100 / 6
*/

.svg-scale-num-x{
    margin-bottom: -2em;
    margin-left: -1em;
    bottom: 0;
}

.svg-scale-num.x-0{
    left: calc(100% / 6  *  0);
    /* margin-left: -2em; */
}

.svg-scale-num.x-1{
    left: calc(100% / 6  *  1);
}

.svg-scale-num.x-2{
    left: calc(100% / 6  *  2);
}

.svg-scale-num.x-3{
    left: calc(100% / 6  *  3);
}

.svg-scale-num.x-4{
    left: calc(100% / 6  *  4);
}

.svg-scale-num.x-5{
    left: calc(100% / 6  *  5);
}

.svg-scale-num.x-6{
    left: calc(100% / 6  *  6);
}



.svg-scale-num-y{
    margin-bottom: -0.5em;
    margin-left: -2em;
    left: 0;
}

.svg-scale-num.y-1{
    bottom: calc(100% / 9  *  1);
}

.svg-scale-num.y-2{
    bottom: calc(100% / 9  *  2);
}

.svg-scale-num.y-3{
    bottom: calc(100% / 9  *  3);
}

.svg-scale-num.y-4{
    bottom: calc(100% / 9  *  4);
}

.svg-scale-num.y-5{
    bottom: calc(100% / 9  *  5);
}

.svg-scale-num.y-6{
    bottom: calc(100% / 9  *  6);
}

.svg-scale-num.y-7{
    bottom: calc(100% / 9  *  7);
}

.svg-scale-num.y-8{
    bottom: calc(100% / 9  *  8);
}

.svg-scale-num.y-9{
    bottom: calc(100% / 9  *  9);
}




.svg-axis{
    stroke-width: 0.5;
    fill: none;
    /* stroke: #111322; */
    stroke: #fff;
    opacity: 0.75;
}

.svg-grid{
    /* stroke: #111322; */
    stroke: #fff;
    fill: none;
    stroke-width: 0.1;
    opacity: 0.1;
}

.svg-line{
    stroke-width: 0.5;
    fill: none;
    /* stroke: #111322; */
}

.svg-line-sudba{
    stroke: #0037ff;
}

.svg-line-volya{
    stroke: #ff1722;
}

.svg-line-vozrast{
    /* stroke: aqua; */
    stroke: #ffec52;
}



.svg-legend{
    display: flex;
    align-items: center;
    justify-content: center;
    /* flex-wrap: wrap; */
    margin-top: 60px;
}

.svg-legend-item{
    font-size: 0.5em;
    /* font-weight: ; */
    color: #fff;
    line-height: 1;
    text-decoration: none;

    margin-right: 2em;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.svg-legend-item::before{
    content: ' ';
    display: block;

    width: 2em;
    height: 1em;
    margin-right: 0.5em;
}

.svg-legend-item:last-child{
    margin-right: 0;
}

.svg-legend-item.sudba{

}

.svg-legend-item.sudba::before{
    background: #0037ff;
}

.svg-legend-item.volya{

}

.svg-legend-item.volya::before{
    background: #ff1722;
}

.svg-legend-item.vozrast{

}

.svg-legend-item.vozrast::before{
    /* background: aqua; */
    background: #ffec52;
}












body,
.step-wrapper,
.step-title,
.step-introtext,
/* .matrix td, */
.svg-scale-num,
.svg-axis,
.svg-grid,
.svg-legend-item{
    transition: all 1.2s cubic-bezier(0.42, 0, 0.58, 1.0) 0s;
}

.svg-wrapper svg .svg-line{
    transition: all 1s cubic-bezier(0.42, 0, 0.58, 1.0) 0s;
}
/* .svg-wrapper svg .svg-line{
    
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.42, 0, 0.58, 1.0) 0s;
}

body[data-step="3"] .svg-wrapper svg .svg-line{
    opacity: 1;
} */










body[data-step="2"]{
    background: #fff;
}

body[data-step="2"] .step-wrapper,
body[data-step="2"] .step-title,
body[data-step="2"] .step-introtext{
    color: #111322;
}

.steps-item[data-id="2"] .step-button .btn{
    width: calc(100% / 3 - 20px * (3 - 1) / 3);
}

@media only screen and (max-width : 600px) {
    .steps-item[data-id="2"] .step-button{
        margin-top: 20px;
    }

    .steps-item[data-id="2"] .step-button .btn{
        width: 100%;
    }
}





body[data-step="2"]{
    background-image: none;
}

body[data-step="3"]{
    background: #fff;
}

body[data-step="3"] .step-wrapper,
body[data-step="3"] .step-title,
body[data-step="3"] .step-introtext{
    color: #111322;
}

body[data-step="3"] .matrix td{
    border: 1px solid rgba(0,0,0, 0.5);
}


body[data-step="3"] .svg-scale-num{
    color: rgba(0,0,0, 0.5);
}

body[data-step="3"] .svg-axis,
body[data-step="3"] .svg-grid{
    stroke: #111322;
}

body[data-step="3"] .svg-legend-item{
    color: #111322;
}




.matrix-item{
    /* transition: all 0.2s cubic-bezier(0.42, 0, 0.58, 1.0) 0s; */
    opacity: 1;
}

.opacity-0{
    opacity: 0;
}

.matrix-item-1{
    transition: all 1s cubic-bezier(0.42, 0, 0.58, 1.0) 0s;
}

.matrix-item-2{
    transition: all 1s cubic-bezier(0.42, 0, 0.58, 1.0) 0.05s;
}

.matrix-item-3{
    transition: all 1s cubic-bezier(0.42, 0, 0.58, 1.0) 0.1s;
}

.matrix-item-4{
    transition: all 1s cubic-bezier(0.42, 0, 0.58, 1.0) 0.15s;
}

.matrix-item-5{
    transition: all 1s cubic-bezier(0.42, 0, 0.58, 1.0) 0.2s;
}

.matrix-item-6{
    transition: all 1s cubic-bezier(0.42, 0, 0.58, 1.0) 0.25s;
}

.matrix-item-7{
    transition: all 1s cubic-bezier(0.42, 0, 0.58, 1.0) 0.3s;
}

.matrix-item-8{
    transition: all 1s cubic-bezier(0.42, 0, 0.58, 1.0) 0.35s;
}

.matrix-item-9{
    transition: all 1s cubic-bezier(0.42, 0, 0.58, 1.0) 0.4s;
}










@media only screen and (max-width : 950px) {
    .date-of-birth-form input{
        /* width: 100%;
        margin-bottom: 20px; */
        /* width: calc(100% / 3 * 1 - 20px * 2 / 3);
        margin-right: 20px;
        margin-bottom: 20px; */
    }

    .date-of-birth-form input[name="year"]{
        /* margin-right: 0; */
    }
}


@media only screen and (max-width : 768px) {
    .date-of-birth-form input{
        height: 40px;
    }

    .step-wrapper{
        font-size: 16px;
        width: 100%;
    }

    .matrix-count{
        position: initial;
        left: initial;
        bottom: initial;
        margin-left: initial;
    }

    .btn-pink{
        font-size: 16px;
    }

    .matrix table{
        width: 100%;
    }



    .steps-item[data-id="3"] .svg-wrapper{
        font-size: 300px;
        width: calc(100% - 30px);
        margin-left: 15px;
        box-sizing: border-box;
    }

}




.chisla{
    margin-top: 1em;
}

.chisla-item{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    margin-bottom: 1em;
    
}

.chisla-item[data-id="sudba_segodnya"]{
    color: #0037ff;
}

.chisla-item[data-id="volya_segodnya"]{
    color: #ff1722;
}

.chisla-item:nth-child(1){
    transition: all 1s cubic-bezier(0.42, 0, 0.58, 1.0) 0s;
}

.chisla-item:nth-child(2){
    transition: all 1s cubic-bezier(0.42, 0, 0.58, 1.0) 0.05s;
}

.chisla-item:nth-child(3){
    transition: all 1s cubic-bezier(0.42, 0, 0.58, 1.0) 0.1s;
}

.chisla-item:nth-child(4){
    transition: all 1s cubic-bezier(0.42, 0, 0.58, 1.0) 0.15s;
}

.chisla-item:nth-child(5){
    /* transition: all 1s cubic-bezier(0.42, 0, 0.58, 1.0) 0.2s; */
    transition: all 1s cubic-bezier(0.42, 0, 0.58, 1.0) 0.6s;
}

.chisla-item:nth-child(6){
    /* transition: all 1s cubic-bezier(0.42, 0, 0.58, 1.0) 0.25s; */
    transition: all 1s cubic-bezier(0.42, 0, 0.58, 1.0) 1s;
}