/*--------header------------*/

body {
    background-color: #f1f1f1;
}

.outContent {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.payHeader {
    background: white;
}

.outHeader {
    padding: 5px;
    border-bottom: 2px solid #6498a7;
}

.inHeader {
    display: flex;
    gap: 10px;
    justify-content: center;
}


.logoHeader a img {
    width: 80px;
}

.textHeader {
    align-self: center;
    font-size: 20px;
    font-weight: 500;
}

.oneText {
    text-align: center;
    font-size: 21px;
}

.twoText {
    font-size: 25px;
    font-weight: 600;
    color: brown;
}





/*--------header------------*/

/*--------content------------*/

.contentBox {
    margin-top: 70px;
    width: 100%;
}

.onePay {
    margin: 0 auto;
    width: 650px;
    display: grid;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 6px;

}
.forButLink {
    display: flex;
    justify-content: center;
    gap: 10px;
    border-bottom: 1px solid;
}

.butLink {
    padding: 8px;
    border-radius: 7px 7px 0 0;
    font-size: 20px;
    cursor: pointer;
    width: 100%;
    text-align: center;
    margin-bottom: 2px;
    background: #767676;
    color: white;
    transition: all .6s;
}

.tabLink {
    display: grid;
    gap: 10px;
}

.tabLink span {
    font-size: 19px;
}

.listsSum {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1px;
}

.listSum {
    border: 1px solid #8f8d8d;
    text-align: center;
    border-radius: 3px;
    font-size: 18px;
    font-weight: 600;
    line-height: 2em;
    cursor: pointer;
    color: #31403b;
}

.forLineType, .forWho {
    margin-top: 10px;
    display: grid;
    gap: 10px;

}

.textTip {
    font-size: 19px;
}

.lineForm {
    font-size: 18px;
}

.choiceFrom {
    display: grid;
    gap: 10px;
    margin-top: 15px;
}

.textFrom {
    font-size: 19px;
}

.personalData {
    display: grid;
    gap: 10px;
    margin-top: 15px;
}


.inputData {
    width: 100%;
    line-height: 2em;
    outline: none;
    font-size: 18px;
}


.oferta {
    margin-top: 15px;
}

.PAY {
    margin-top: 20px;
    text-align: center;
}

.PAY button {
    font-size: 19px;
    border: none;
    padding: 8px;
    background: #ff6622;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}


.errorsMessages {
    text-align: center;
    margin-top: 20px;
    font-size: larger;
}

.PAY button:active {
    box-shadow: inset #6a6261 0 0 6px 8px;
}

.lineFormOferta {
    text-align: center;
}

/*--------content------------*/

/*--------success------------*/

.inSuccess {
    text-align: center;
    background: white;
    margin: 0 auto;
    width: 500px;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 40px;
}

.inSucOne {
    font-size: 22px;
    color: brown;
}

.inSucTwo {
    font-size: 30px;
    margin-top: 14px;
    color: red;
}

.inSucThree {
    margin-top: 18px;
}

.inSucThree a {
    color: #2d4875;
    font-size: 20px;
}


/*--------success------------*/

/*--------modal------------*/

.modal, .modalP {}

.modal.show .overlay,
.modal.show .window,
.modalP.show .overlayP,
.modalP.show .windowP {
    opacity: 1;
    z-index: 1;
}

.modal.hide .overlay,
.modal.hide .window,
.modalP.hide .overlayP,
.modalP.hide .windowP {
    opacity: 1;
    z-index: 1;
}


.modal.show .overlay,
.modalP.show .overlayP {
    transition: visibility .8s, opacity 1s;
}

.modal.hide .overlay,
.modalP.hide .overlayP  {
    opacity: 0;
    visibility: hidden;
    transition: visibility .8s , opacity .8s .8s;
}


.overlay, .overlayP {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(166deg, black, #5a686294);
    transition: all .8s;
}

.window, .windowP {
    margin: 0 auto;
    width: 720px;
    height: 620px;
    background: white;
    margin-top: 100px;
    border-radius: 5px;
    padding: 10px;
    transition: transform .8s ease-in-out;
    transform: scale(0);
}

.modal.show .window,
.modalP.show .windowP {
    transform: scale(1);
}


.header, .headerP {
    display: flex;
    justify-content: space-between;
}

.header span:nth-child(2),
.headerP span:nth-child(2) {
    cursor: pointer;
}

.bodyO, .bodyP {
    width: 700px;
    height: 600px;
    overflow: auto;
}

.overlay, .window,
.overlayP, .windowP {
    opacity: 0;
    z-index: -1;
}


/*--------modal------------*/


/*--------modalForCard------------*/

.cardModal {}


.cardModal.showCard .cardOverlay,
.cardModal.showCard .cardWindow {
    opacity: 1;
    z-index: 1;
}

.cardModal.hideCard .cardOverlay,
.cardModal.hideCard .cardWindow {
    opacity: 1;
    z-index: 1;
}


.cardModal.showCard .cardOverlay {
    transition: visibility .7s, opacity 1s;
}

.cardModal.hideCard .cardOverlay {
    opacity: 0;
    visibility: hidden;
    transition: visibility .7s, opacity 1s 1s;
}


.cardOverlay {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: #00000080;
    transition: all .7s;
}




.cardWindow {
    margin: 0 auto;
    width: 450px;
    height: 280px;
    background: white;
    margin-top: 100px;
    border-radius: 5px;
    padding: 10px;
    transition: transform .8s ease-in-out;
}

.cardHeader {
    display: flex;
    justify-content: space-between;
}

.cardHeader span:nth-child(1) {
    font-size: 20px;
}

.cardHeader span:nth-child(2) {
    cursor: pointer;
    font-weight: bold;
}

.cardBody {
    display: grid;
    gap: 20px;
    margin: 5px 0px 0px 0px;
    padding: 10px;
}


.itemForCard1 i {
    color: rgb(100, 152, 167);
}

.itemForCard2 {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.itemForCard2 label{
    font-size: 18px;
}


.inputForCardNumber {
    line-height: 1.5em;
    font-size: 17px;

}


.inputForCardNumber:focus, .inputForCardDop:focus {
    border: 3px solid #d37e75;
    border-radius: 4px;
    outline: none;
}

.forCVC {
    display: grid;
    gap: 5px;
}

.itemForCard3 {
    display: flex;
    justify-content: space-between;
}

.nameSubItem {
    font-size: 18px;
}


.itemForCard4 {
    display: flex;
    justify-content: space-between;
}

.inputForCardDop {
    line-height: 1.5em;
    width: 40px;
    font-size: 17px;
}

.slash {
    font-size: 20px;
    font-weight: bold;
}

.cardFooter {
    margin-top: 5px;
    text-align: center;
}

#PAY_CARD {
    cursor: pointer;
    width: 300px;
    line-height: 1.7em;
    font-size: 18px;
    border: none;
    background: #d37e75;
    color: white;
    border-radius: 4px;
    box-shadow: #664f4f 0 0 3px 4px;
}

#PAY_CARD:active {
    box-shadow:  inset #664f4f 0 0 14px 8px;
}


.cardOverlay, .cardWindow {
    opacity: 0;
    z-index: -1;
}






/*--------modalForCard------------*/



/*--------footer------------*/

.OutFooter {

}

.InFooter {
    background: #74746e !important;
    width: 100%;
    height: 300px;
    margin-top: 40px;
    border-top: solid 2px #d37e75;

}
.inFootBlockOne {
    text-align: center;
}
.footBlock {
    display: flex;
    width: 800px;
    margin: 0 auto;
    margin-top: 20px;
    gap: 20px;
}

.inFootBlockOne {

}

.inFootBlockOneCon {
    color: white;
    font-size: 19px;
    margin-bottom: 10px;
    font-weight: 800;
}

.inFootBlockOne img {
    width: 80px;
}

.inFootBlockTwo {
    color: white;
    font-size: 17px;
}

.inFootBlockTwo.Two {
    margin-top: 40px;
}

.footBlockTwo {
    width: 810px;
}

/*--------footer------------*/



@media  screen  and (max-width: 768px) {


    .logoHeader a img {
        width: 60px;
    }

    .oneText {
        font-size: 17px;
        text-align: left;
    }

    .twoText {
        font-size: 16px;
    }

    .onePay {
        width: unset;
    }

    .InFooter {
        height: unset;
    }

    .footBlock {
        flex-direction: column;
        text-align: center;
        width: unset;
    }

    .footBlockTwo {
        margin-bottom: 20px;
        width: 98%;
    }

    .window, .windowP {
        width: 90%;
        height: 500px;
        margin-top: 60px;

    }

    .bodyO, .bodyP {
        height: 450px;
        width: 100%;
    }

    .header span, .headerP span {
        font-size: 18px !important;
    }

    .inSuccess {
        width: 92%;
        padding: 10px;
    }

}


@media  screen  and (max-width: 400px) {


    .contentBox {
        margin-top: 40px;
    }

    .onePay {
        padding: 5px;
    }

    .butLink {
        width: 100%;
        font-size: 17px;
    }


    .tabLink {
        padding: 4px;
    }

    .tabLink span {
        font-size: 15px;
    }



    .listsSum {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .listSum {
        font-size: 15px;
    }

    .listSum:nth-child(5) {
        font-weight: 500;
    }


    .footBlock {
        padding: 6px;
    }

    .inFootBlockTwo {
        font-size: 16px;
    }

    .errorsMessages {
        font-size: 17px;
    }

    .lineForm {
        font-size: 17px;
    }

    .odin {
        display: none;
    }

}