* {
    box-sizing: border-box;
}

@media(max-width: 1000px){
.PC{
        display: none;
    }

    body {
        margin: 0 auto;
        background-color: #01112d;
        width: 100%;
        
    }


section{
height: 100vh;
}
.SansEB {
        font-family: "Open Sans", sans-serif;
        font-weight: 800;
        text-transform: uppercase;
        color: #d9d9d9;
    }
    .nav{
        max-height: max-content;
    }
    #mainPage{
        background: linear-gradient(to top, #001842, #00040A);

justify-content: center;
text-align: center;
display: grid;
grid-template-rows: 2fr 8fr;



    }
    ul.navigation {
        list-style-type: none;
        /* margin: 0; */
        /* display: grid; */
margin: 20px 0 40px;
justify-content: center;
max-height: max-content;
        /* align-items: center; */
        /* align-content: flex-start; */
    }

     .logo {
        width: 1fr;
        max-width: 150px;
        

    }

.mainPage{
display: grid;
grid-template-rows: 3fr 1fr;
/* vertical-align: bottom; */
}

    .mainPageLegend {
        font-size: 36px;
        /* font-size: 7vh; */
        /* display: block; */
        max-width: 330px;
    }

    .mainPageBtn {
        justify-self: center;
        /* vertical-align: bottom; */
        /* align-items: center; */
        width: 80%;
        /* display: block; */
        /* height: 66px; */
        height: 40%;
        border-radius: 28px;
        font-size: 24px;
    }

    .mainPageBtnRef {
        /* margin: auto 0; */
        display: block;
        color: #000;
        /* height: 100%; */
        width: 100%;
        text-decoration: none;
        /* vertical-align: center; */
        /* vertical-align:middle; */
        
    }

    #contactsPage{
        background: linear-gradient(to bottom, #001842, #00040A);

        /* height: fit-content; */
        /* min-height: 675px; */
justify-content: center;
text-align: center;
display: grid;
grid-template-rows: 12fr 1fr;
/* grid-row: repeat(3, 1fr); */

    }
     .contacts{
        margin-top: 3%;
        display: grid;
grid-template-rows: 4fr 5fr;
gap: 5%;

     }
     .contactsInfo{
        display: grid;
     }
     .contactLine{
        font-size: 24px;
     }
     .contactText{
        font-size: 20px;
        font-family: "Proza Libre", sans-serif;
        /* text-align: center; */
        color: #d9d9d9;
     }
     footer{
        font-size: 24px;
     }
}

@media(min-width: 1000px) {
    
.MB{
    display: none;
}
    body {
        margin: 0 auto;
        background-color: #01112d;
        width: 100%;

    }

    main {
        width: 1000px;
        margin: 0 auto;
    }

    header.nav {
        /* text-align: center; */
        border: 3px solid black;
        height: 120px;
        width: 1000px;
        align-content: center;
        background: url(../Sources/MediaUsed/headerBack3.png);
        /* position: fixed; */
    }


    ul.navigation {
        list-style-type: none;
        margin: 0;
        display: flex;
        align-items: center;
        /* align-content: flex-start; */
    }

    ul.navigation li {
        margin: 0 auto;
        /* padding: 0 auto; */
        /* min-height: 120px; */
    }

    a {
        text-decoration: none;
    }


    .logo {
        width: 151px;
    }

#mainPage{
    /* height: 100vh; */
}

    .mainPage {
        background: left center url(../Sources/MediaUsed/mainBack2.png);
        height: 560px;
        padding: 22px 0px 0px 35px;
    }

    .SansEB {
        font-family: "Open Sans", sans-serif;
        font-weight: 800;
        text-transform: uppercase;
        color: #d9d9d9;
    }

    .headerMenu {
        font-size: 32px;
    }

    .mainPageLegend {
        font-size: 48px;

        width: 630px;
    }

    .mainPageBtn {
        width: 229px;
        height: 66px;
        border-radius: 28px;
        margin: 220px 0 0 350px;
        font-size: 24px;
    }

    .mainPageBtnRef {
        display: block;
        color: #000;
    }

    .servicesPage {

        background: linear-gradient(to top, #001842, #00040A);
        /* background-color: beige; */
        width: 1000px;
        height: 680px;
        padding-top: 40px;
        /* overflow-x: scroll; */

        /* justify-content: center; */
    }

    .services::-webkit-scrollbar {
        display: none;
    }

    .serviceMenu {
        /* display: inline-block; */
        position: relative;
        /* position: relative; */
        /* justify-content: center;
    align-content: center; */
    }

    .services {
        overflow-x: scroll;
        display: flex;
        /* justify-content: space-around; */
        gap: 7.8rem;
        padding-inline: 4rem;
        scroll-behavior: smooth;



        /* white-space: nowrap; */
    }

    .card {
        /* position:relative; */
        /* display: inline; */

    }

    .service {


        margin: 0 auto 15px auto;
        border: 3px solid #64E5FB;
        border-radius: 16px;
        box-sizing: content-box;
        display: flex;
        width: 870px;
        height: 460px;

    }

    button.horMenu {
        width: 4rem;
        height: 4rem;
        /* border-radius: 50%; */
        border: none;
        cursor: pointer;
        background: inherit;
        font-size: 1.5rem;
        /* background-color: #01112d; */
        color: #64E5FB;
        /* border: 2px solid #64E5FB; */
        position: absolute;
        top: 42%;
        z-index: 1;
        /* margin: 0 auto; */
        /* align-self: start;*/

    }

    button.prev {
        left: 0.2rem;
    }

    button.next {
        right: 0.2rem;
        /* bottom: 0%; */
    }

   
    .description {
        width: 360px;
        height: inherit;
        background-color: #01112d;
        /* background-color: red; */
        border-radius: 13px 0 0 13px;
        /* border: 3px solid black;
    border-right: 0px; */
        padding-top: 20px;
    }

    .srvName {
        text-align: center;
        margin-bottom: 31px;
        font-size: 36px;
    }

    .srvDesc {
        margin: 0 0 37px 35px;
        font-family: "Proza Libre", sans-serif;
        text-align: justify;
        width: 290px;
        color: #d9d9d9;
        font-size: 22px;

    }

    .srvPrice {
        margin: 0 0 28px 35px;
        font-size: 24px;
    }

    .fullPriceLink {
        margin: 0 0 0px 35px;
        font-size: 16px;
        color: #64E5FB;
    }

    .srvImg {
        border-radius: 0 14px 14px 0;
    }



    .whyWe {
        flex: none;
        text-align: center;
        font-size: 24px;
    }

    .advantages {
        width: 900px;
        display: flex;
        margin: 0 51px;
        align-items: center;
        justify-content: space-around;
    }

    .advantage {
        max-width: 166;
        font-size: 14px;
        text-align: center;
        font-weight: 600;
        flex: 1;
    }

    #contactsPage {
        background: linear-gradient(#001842, #00040A);
        /* background-color: beige; */
        width: inherit;
        height: 680px;

    }

    .contacts {
        padding: 40px 65px;

    }

    .contactsInfo {
        width: 340px;
        height: 420px;
        /* background-color: #ac33aa; */
        text-align: center;

    }

    .contactLine {
        font-size: 36px;
        display: block;
        margin-bottom: 10px;
    }

    .contactText {
        font-family: "Proza Libre", sans-serif;
        text-align: center;
        color: #d9d9d9;
        font-size: 24px;
        display: block;
        margin-bottom: 10px;
    }

    .contacts {
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
    }



    footer {
        width: inherit;
        height: 120px;
        font-size: 36px;
        text-align: center;
        padding: auto 0px;
        place-content: center;

        margin-top: 60px;
    }


    .price {
        width: 100%;
        height: 100%;
        position: fixed;
        left: 0;
        top: 0;
        background-color: rgba(0, 0, 0, 0.8);
        z-index: 2;
        display: none;
    }

    .price.active {
        display: block;

    }

    .price_container {
        width: 100%;
        height: 100%;
        /* display: flex; */
        /* align-items: center; */
    }

    .price_body {
        /* background-color: #fff; */
        width: 1000px;
        height: 100%;
        margin: 0 auto;
        display: flex;
        position: relative;

    }

    .myPrice {
        /* display: block; */
        width: 80%;
        height: 90%;
        margin: auto;
    }

    .price_close {
        position: absolute;
        top: 5%;
        right: 5%;
        color: #fff;
        cursor: pointer;
    }
}