body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

* {
    transition: .1s;
    margin: 0;
    padding: 0;
}

.wrapper {
    width: 100%;
    height: 100%;
}

.nav-menu {
    display: flex;
    position: fixed;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100px;
    background-color: white;
    z-index: 10;
}

.nav-menu .icon {
    position: relative;
    display: flex;
    margin-left: 2vw;
    width: 160px;
}

.nav-menu .icon img {
    width: 160px;
}

.nav-menu .icon:hover {
    transform: scale(1.05) rotateZ(3deg);
}

.contacts {
    position: relative;
    width: fit-content;
    height: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 2vw;
}

.contacts .phoneNumber {
    width: 170px;
    height: 40px;
    padding: 1px;
    display: flex;
    background-color: #F5F7FF;
    border-radius: 10px;
    position: relative;
    justify-content: center;
    align-items: center;
}

.contacts .phoneNumber a {
    text-decoration: none;
    color: #112a91;
    font-weight: 500;
    font-size: 15px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin-left: 4px;
}

.contacts .icon-contacts {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #F5F7FF;
    border-radius: 10px;
    margin-left: 10px;
}

.contacts .phoneNumber a:hover {
    cursor: pointer;
}

.contacts .phoneNumber .copied:hover {
    cursor: pointer;
}

.contacts .phoneNumber .pop_up {
    display: none;
    position: absolute;
    width: fit-content;
    height: fit-content;
    background-color: #112a91;
    padding: 3px;
    font-weight: 500;
    font-size: 15px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: white;
    border-radius: 10px;
    margin-top: 10vh;
}

.banner {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 1;
}

.banner-img {
    position: absolute;
    width: 100vw;
    height: 100vh;
    background-image: url({% static "images/banner.jpg" %});
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    opacity: 0.6;
    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 0;
}

.banner-img::after {
    content: '';
    /* Обязательное свойство для псевдоэлемента */
    position: absolute;
    /* Разместить псевдоэлемент поверх родительского элемента */
    bottom: 0;
    /* Разместить псевдоэлемент внизу */
    left: 0;
    width: 100%;
    height: 20px;
    /* Высота размытой нижней границы */
    background: inherit;
    /* Наследовать цвет родительского элемента */
    filter: blur(13px);
    /* Применить размытие к псевдоэлементу */
}
.banner-img2 {
    position: absolute;
    width: 100vw;
    height: 100vh;
    background-image: url({% static "images/banner.jpg" %});
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    opacity: 0.6;
    display: none;
    justify-content: center;
    align-items: center;

    z-index: 0;
}

.banner-img2::after {
    content: '';
    /* Обязательное свойство для псевдоэлемента */
    position: absolute;
    /* Разместить псевдоэлемент поверх родительского элемента */
    bottom: 0;
    /* Разместить псевдоэлемент внизу */
    left: 0;
    width: 100%;
    height: 20px;
    /* Высота размытой нижней границы */
    background: inherit;
    /* Наследовать цвет родительского элемента */
    filter: blur(13px);
    /* Применить размытие к псевдоэлементу */
}

.banner h1 {
    z-index: 2;
    color: white;
    font-weight: 500;
    opacity: 1;
    font-size: 55px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: white;
    text-align: center;
    margin-left: 5vw;
    margin-right: 5vw;
}

.shop {
    display: flex;
    margin: auto;
    justify-content: center;
    width: 90vw;
    min-height: 50vh;
    flex-direction: column;
}

.shop header {
    margin-top: 10vh;
}

.shop header h1 {
    color: #112a91;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    text-align: center;
    font-size: 45px;
    font-weight: 450;
}

.shop hr {
    margin-top: 8vh;
}

.card {
    position: relative;
    height: 400px;
    width: 480px;
    margin: 15px;
    transition: ease all 1.5s;
    perspective: 120.0vh;


    .cover {
        position: absolute;
        height: 100%;
        width: 100%;
        transform-style: preserve-3d;
        transition: ease all 1.5s;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;

        .image-card {
            position: absolute;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        &:before {
            content: '';
            position: absolute;
            border: 5px solid rgba(255, 255, 255, .5);
            box-shadow: 0 0 1.2vh rgba(0, 0, 0, .3);
            top: 20px;
            left: 20px;
            right: 20px;
            bottom: 20px;
            z-index: 2;
            transition: ease all 1.5s;
            transform-style: preserve-3d;
            transform: translateZ(0px);
        }

        &:after {
            content: '';
            position: absolute;
            top: 0px;
            left: 0px;
            right: 0px;
            bottom: 0px;
            z-index: 2;
            transition: ease all 1.3s;
            background: rgba(0, 0, 0, .4);
        }

        h1 {
            font-weight: 600;
            position: absolute;
            bottom: 55px;
            left: 50px;
            color: white;
            overflow-wrap: break-word;
            margin-right: 100px;
            transform-style: preserve-3d;
            transition: ease all 1.5s;
            z-index: 3;
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
            font-size: 43px;
            transform: translateZ(0px);
        }

        .price {
            font-weight: 200;
            position: absolute;
            top: 55px;
            right: 50px;
            color: white;
            transform-style: preserve-3d;
            transition: ease all 1.5s;
            z-index: 4;
            font-size: 30px;
            transform: translateZ(0px);
        }
    }

    .card-back {
        position: absolute;
        height: 100%;
        width: 100%;
        background: #0b0f08;
        transform-style: preserve-3d;
        transition: ease all 1.5s;
        transform: translateZ(-.1vh);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;

        button {
            transform: translateZ(-6.0vh) rotatey(-180deg);
        }
    }

    &:active {
        .cover {
            transform: rotateX(0deg) rotateY(-180deg);

            &:before {
                transform: translateZ(3.0vh);
            }

            &:after {
                background-color: black;
            }

            h1 {
                transform: translateZ(10.0vh);
            }

            .price {
                transform: translateZ(6.0vh);
            }

            button {
                transform: translateZ(-6.0vh) rotatey(-180deg);
            }

            .card-back h4 {
                transform: translateZ(-6.0vh) rotatey(180deg);
            }
        }
    }

    &:hover {
        .cover {
            transform: rotateX(0deg) rotateY(-180deg);

            &:before {
                transform: translateZ(3.0vh);
            }

            &:after {
                background-color: black;
            }

            h1 {
                transform: translateZ(10.0vh);
            }

            .price {
                transform: translateZ(6.0vh);
            }

            button {
                transform: translateZ(-6.0vh) rotatey(-180deg);
            }

            .card-back h4 {
                transform: translateZ(-6.0vh) rotatey(180deg);
            }
        }
    }
}

.cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2vh;
    filter: drop-shadow(-.1vh -.1vh .7vh #7d7d7d);
}

.card-back h4 {
    transform-style: preserve-3d;
    transition: ease all 1.5s;
    margin-bottom: 20px;
    margin-left: 20px;
    margin-right: 40px;
    transform: translateY(-.1vh) rotatey(180deg);
    text-align: center;
    transform-style: preserve-3d;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 640;
    font-size: 30px;
    text-align: center;
    color: white;

}

.card-back button:hover {
    background-color: white;
    color: #0b0f08;
}

.card-back button {
    transform-style: preserve-3d;
    transition: ease all .5s;
    transform: translateZ(-.1vh) rotatey(-180deg);
    background: transparent;
    border: .1vh solid white;
    font-weight: 200;
    font-size: 2.6vh;
    color: white;
    padding: 1.4vh 3.2vh;
    outline: none;
    text-decoration: none;
}

footer {
    margin-top: 50px;
    margin-bottom: 10px;
    margin-left: 1vw;
    margin-right: 1vw;
}

.pop_up_info_get {
    width: 100vw;
    height: 100vh;
    position: fixed;
    margin: auto;
    display: flex;
    z-index: 30;
    background-color: #0000003b;
    background-size: cover;
    contain: content;
    background-repeat: no-repeat;
    animation-name: show;
    animation-duration: .5s;
    justify-content: center;
    align-items: center;
    place-content: center;
}

.pop_up_info_get .image-instruction {
    width: 700px;
    height: 800px;
    position: relative;
    background-size: contain;
    background-repeat: no-repeat;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pop_up_info_get .image-instruction .btn-close-instruction {
    border: none;
    background-color: transparent;
    color: white;
    font-size: 35px;
    margin: 10px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;

}

@keyframes show {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

@media only screen and (max-height:700px) {
    .nav-menu {
        height: 68px;
    }
}

@media only screen and (max-width:900px) {
    .shop header h1 {
        font-size: 39px;
    }
}

@media only screen and (max-width:1155px) {
    .card {
        width: 400px;
        height: 320px;
    }

    .card {
        .cover {
            h1 {
                font-size: 31px;
            }

            h4 {
                font-size: 23px;
            }
        }
    }
}

@media only screen and (max-width:755px) {
    .card {
        width: 800px;
        height: 320px;
    }

}

@media only screen and (max-width:955px) {
    .card {
        height: 380px;
        width: 320px;
        margin: 10px;
    }

    .card {
        .cover {
            h1 {
                font-size: 30px;
                margin-right: 60px;
            }

            h4 {
                font-size: 33px;
            }
        }
    }
}

@media only screen and (max-width:465px) {
    .card {
        .cover {
            h1 {
                font-size: 33px;
            }

            h4 {
                font-size: 24px;
            }

            .price {
                font-size: 24px;
            }
        }
    }
}

@media only screen and (max-width:365px) {
    .card {
        .cover {
            h1 {
                font-size: 25px;
            }

            h4 {
                font-size: 20px;
            }
        }
    }
}

@media only screen and (max-width:700px) {
    .shop header h1 {
        font-size: 36px;
    }
}


@media only screen and (max-width:600px) {
    .pop_up_info_get .image-instruction {
        margin-top: 10vh;
    }
}

@media only screen and (max-width:515px) {
    .pop_up_info_get .image-instruction {
        margin-top: 20vh;
    }
}

@media only screen and (max-width:365px) {
    .pop_up_info_get .image-instruction {
        margin-top: 25vh;
    }
}


@media only screen and (max-width:600px) {

    .contacts .phoneNumber a {
        font-size: 0;
    }

    .contacts .phoneNumber {
        width: 40px;
    }

    .contacts .phoneNumber svg {
        width: 18px;
        height: 18px;
    }

    .shop header h1 {
        font-size: 32px;
    }
}

@media only screen and (max-width:400px) {
    .nav-menu .icon img {
        width: 130px;
    }

    .banner h1 {
        font-size: 42px;
    }
}

@media only screen and (max-width:540px) {

    .banner h1 {
        font-size: 45px;
    }

    .shop header h1 {
        font-size: 27px;
    }

    .card {
        width: 500px;
    }
}

@media only screen and (max-width:430px) {

    .banner h1 {
        font-size: 45px;
    }

    .shop header h1 {
        font-size: 23px;
    }
}

@media only screen and (max-width:350px) {
    .nav-menu .icon img {
        width: 110px;
    }

    .banner h1 {
        font-size: 40px;
    }

    .contacts .icon-contacts {
        width: 34px;
        height: 34px;
    }

    .contacts .phoneNumber {
        width: 34px;
        height: 34px;
    }

    .contacts .phoneNumber svg {
        width: 16.5px;
        height: 16.5px;
    }

    .shop header h1 {
        font-size: 20px;
    }
}
@media only screen and (max-width:930px) {
    .banner-img {
        display:none;
    }
    .banner-img2 {
        display:flex;
    }
}
