* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: sans-serif;
}

.preloader {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader,
.loader::before,
.loader::after {
    background: #65abf8;
    animation: load1 1s infinite ease-in-out;
    width: 1em;
    height: 4em;
}

.loader {
    color: #65abf8;
    text-indent: -9999em;
    margin: 88px auto;
    position: relative;
    font-size: 11px;
    transform: translateZ(0);
    animation-delay: -0.16s;
}

.loader:before,
.loader:after {
    position: absolute;
    top: 0;
    content: '';
}

.loader:before {
    left: -1.5em;
    animation-delay: -0.32s;
}

.loader:after {
    left: 1.5em;
}

@keyframes load1 {

    0%,
    80%,
    100% {
        box-shadow: 0 0;
        height: 4em;
    }

    40% {
        box-shadow: 0 -2em;
        height: 5em;
    }
}


.main_wrapper {
    max-width: 1920px;
    margin: 0 auto;
    overflow-x: hidden;
    display: none;
}

.main_wrapper.loaded {
    display: block;
}

.header_wrapper {
    background-image: url("images/header_back.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    text-align: center;
    display: flex;
    justify-content: space-around;
    flex-direction: column;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
}

.header_logo_img {
    height: 100px;
    margin-right: auto;
    margin-left: 0;
}

.header_menu {
    margin-right: 0;
    margin-left: auto;
}

.header_menu_list {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 600px;
}

.header_menu_link {
    color: #fff;
    font-size: 24px;
    padding: 3px;
    text-decoration: none;
    transition: color 0.5s;
    text-shadow: 0 0 2px #000;
}

.header_menu_link:hover {
    color: orange;
}

.header_title {
    font-size: 72px;
    color: #fff;
    margin-top: 200px;
    text-shadow: 0 0 5px #000;
}

.header_text {
    font-size: 22px;
    max-width: 40%;
    margin: 0px auto;
    color: white;
}

.header_btn {
    background-color: orange;
    color: #fff;
    padding: 15px 50px;
    margin-top: 50px;
    box-shadow: 0 0 5px black;
    transition: .5s;
    text-decoration: none;
    display: inline-block;
    align-self: center;
}

.header_btn:hover {
    background-color: rgb(144, 71, 7);
    box-shadow: 0 0 2px rgb(90, 42, 3);
}

.categories {
    margin: 100px auto;
    text-align: center;
    max-width: 1200px;
}

.categories_title {
    font-size: 30px;
    margin-bottom: 20px;
    font-weight: 700;
}

.categories_text {
    margin-top: 20px;
    margin-bottom: 100px;
    font-size: 24px;
}

.categories_tiles_wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 40px;
    padding: 10px;
}

.categories_tile {
    box-shadow: 0 0 15px #000;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    transition: 0.3s;
}

.categories_tile:active {
    transform: scale(1.2);
    z-index: 10;
}

.categories_tile:active .categories_tile_text {
    background-color: rgba(0, 0, 0, 0.2);
}

.categories_tile_img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    position: relative;
    transition: 0.5s;
}

.categories_tile_text {
    font-size: 30px;
    color: white;
    font-weight: 500;
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    text-shadow: 2px 2px 4px #000;
    transition: 0.3s;
}

.categories_tile:hover .categories_tile_img {
    transform: scale(1.1);
}

.categories_tile:hover .categories_tile_text {
    color: orange;
}

.footer {
    background-color: black;
    height: 30vh;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    margin: 100px auto 0;
    box-shadow: 0 0 15px #000;
}

.footer_item {
    color: #fff;
    font-size: 32px;
    text-align: center;
    text-decoration: none;
    transition: 0.3s;
}

.footer_item:hover {
    color: orange;
    letter-spacing: 2px;
}

/*Shop*/
.header_wrapper_shop {
    background-image: url("images/shop_header_back.jpg");
    height: 60vh;
}

.categories_cart_wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 30px 20px;
    padding: 0 10px;
}

.categories_cart {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    font-size: 18px;
}

.categories_cart_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.categories_cart_title {
    height: 40px;
    overflow: hidden;
    font-weight: 900;
    margin-top: 25px;
}

.categories_cart_price {
    font-size: 20px;
}

.categories_cart_btn {
    margin-top: 25px;
    background-color: #000;
    border-radius: 7px;
    padding: 10px 50px;
    text-shadow: 0 0 5px #fff;
    display: block;
    color: #fff;
    text-decoration: none;
    transition: 0.5s;
    border: 1px solid transparent;
    cursor: pointer;
}

.categories_cart_btn:hover {
    border-color: #000;
    color: #000;
    background-color: transparent;
}

/*About*/
.header_wrapper_about {
    background-image: url("images/about_header_back.jpg");
    height: 60vh;
}

.promo {
    display: flex;
    min-height: 40vh;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px 50px 20px;
}

.promo_title {
    font-size: 36px;
    margin: 0;
}

.promo_line {
    width: 250px;
    background-color: grey;
    height: 2px;
    margin: 20px 0;
}

.promo_text {
    font-size: 20px;
    margin: 0;
}

.categories_team_wrapper {
    margin: 100px auto 0;
    padding: 0 20px;
    display: grid;
    grid-gap: 80px;
    grid-template-columns: repeat(4, 1fr);
}

.categories_team_item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 0 15px #000;
    padding: 8px;
    border-radius: 15px;
    text-align: center;
}

.categories_team_image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.categories_team_info {
    height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 25px 0;
}

.categories_team_name {
    font-size: 24px;
    font-weight: 700;
}

.categories_team_position {
    color: #888;
    font-size: 18px;
}

/*contacts*/

.header_wrapper_contacts {
    background-image: url("images/contacts_header_back.webp");
    height: 60vh;
}

.contacts_block {
    font-size: 20px;
    margin: 100px 10px;
}

.contacts_title {
    margin-bottom: 30px;
    font-size: 20px;
    font-weight: 700;
}

.contacts_link {
    font-weight: 700;
    color: #000;
    text-decoration: none;
    font-size: 20px;
    transition: color 0.5s;

}

.contacts_link:hover {
    color: orange;
}

.contacts_form {
    padding: 100px 5px;
    background-image: url("images/shop_header_back.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
    text-shadow: 2px 2px 2px #000;
}

.contacts_form_title {
    font-weight: 700;
    font-size: 28px;
    text-align: left;
}

.contacts_form_text {
    font-size: 22px;
}

.form {
    padding: 10px;
    max-width: 600px;
}

.form input {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    color: #fff;
    display: block;
    width: 100%;
    border: none;
    border-bottom: 1px solid #000;
    font-size: 18px;
    padding: 20px 15px;
    margin: 30px 0;
}

.form input::placeholder {
    color: #fff;
    font-weight: 700;
}

.form_btn {
    background-color: #000;
    border-radius: 40px;
    width: 300px;
    color: #fff;
    margin: 30px auto 0;
    border: 2px solid transparent;
    transition: 1s;
    cursor: pointer;
    text-shadow: 0 0 5px #fff;
    font-size: 24px;
    padding: 15px 0;
    display: block;
}

.form_btn:hover {
    border-color: #000;
    background-color: rgba(0, 0, 0, 0.2);
    letter-spacing: 5px;
    box-shadow: 0 0 10px #000;
    text-shadow: 0 0 5px #000;
}

.map {
    margin-top: 100px;
}

.map_title {
    font-size: 27px;
    font-weight: 700;
}

.map_address {
    font-size: 24px;
}

.map-map {
    width: 100%;
    height: 600px;
}

.footer_contacts {
    margin-top: 0;
}

.footer_item_contacts {
    color: #fff;
    font-size: 32px;
    text-align: center;
    margin: 30px 0;
}

@media all and (max-width:1200px) {
    .header_text {
        max-width: 60%;
    }
}

@media all and (max-width:1000px) {
    .header {
        padding: 20px 20px;
    }

    .header_menu_list {
        width: 450px;
    }

    .header_text {
        max-width: 100%;
        padding: 0 20px;
    }
    .categories_team_wrapper{
        grid-template-columns:repeat(3, 1fr);
    }
}


@media all and (max-width: 700px) {
    .header_menu {
        position: relative;
        user-select: none;
    }

    .header_menu_btn {
        position: absolute;
        right: 0;
        top: 65px;
        background-image: url(images/icons/menu1.svg);
        width: 48px;
        height: 48px;
        cursor: pointer;
        z-index: 15;
    }

    .header_menu.active .header_menu_btn {
        background-image: url(images/icons/menu2.svg);
    }

    .header_menu_list {
        overflow: hidden;
        height: 0;
        opacity: 0;
        transition: height 1s, opacity 1s;
        position: absolute;
        top: -75px;
        right: -20px;
        align-items: center;
        display: flex;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.8);
        width: 100vw;
        z-index: 10;
        animation: none;
    }

    .header_menu.active .header_menu_list {
        height: 60vh;
        opacity: 1;
        transition: height 1s, opacity 0.8s;
    }

    .header_menu_item:first-child {
        margin-top: 120px;
    }

    .header_menu_item:last-child {
        margin-bottom: 120px;
    }

    .header_menu_item {
        margin: 30px auto;
    }
    .header_menu_link{
        padding: 15px 30px;
    }
    .categories_cart_wrapper{
        grid-template-columns: repeat(2, 1fr);
    }
    .categories_cart_title{
        font-size: 15px;
    }
    .categories_cart_price{
        font-size: 15px;
    }
    .categories_cart_btn{
        font-size: 15px;
    }
    .promo{
        padding: 10px 30px 100px;
    }
    .promo_title{
        font-size: 24px;
    }
    .promo_text{
        font-size: 18px;
    }
    .promo_line{
        width: 100%;
    }
    .categories_team_wrapper{
        grid-template-columns:repeat(2, 1fr);
    }

}
@media all and (max-width:500px){
    .header_menu.active .header_menu_list{
        height: 100vh;
    }
    .header_title{
        font-size: 48px;
    }
    .header_text{
        font-size: 24px;
    }

    .promo_title{
        font-size: 24px;
    }
    .promo_text{
        font-size: 18px;
    }
    .promo_line{
        width: 100%;
    }
    .categories_team_wrapper{
        grid-template-columns:(2, 1fr);
    }
    .contacts_block{
        margin: 50px 10px;
    }
    .map{
        margin-top: 50px;
    }
    
}
@media all and (max-width:400px){
    .header_logo_img{
        height: 60px;
    }
    .header_menu_btn{
        top: -30px;
    }
    .header_title{
        font-size: 32px;
    }
    .header_text{
        font-size: 14px;
    }
    .categories{
        margin: 50px auto;
    }
    .categories_tile{
        font-size: 28px;
    }
    .categories_text{
        margin-bottom: 50px;
        font-size: 20px;
    }
    .categories_title_text{
        font-size: 18px;
    }
    .footer{
        margin-top: 50px;
    }
    .footer_item{
        font-size: 24px;
    }
    .categories_cart_wrapper{
        grid-template-columns: 1fr;
    }
    
    .footer_item_contacts{
        font-size: 24px;
    }


}