@import 'common.css';


/* Header */
.header {
    position: relative;
    z-index: 111;
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 55px;
    padding-bottom: 35px;
}

.top_down {
    transform: translateY(-150px);
    opacity: 0;
    animation-duration: 0.75s;
    animation-name: top_down;
    animation-fill-mode: forwards;
}
@keyframes top_down {
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* logo */
.logo {
    width: 80px;
}

/* menu */
.menu_items {
    display: flex;
}
.menu_item {
    margin-left: 15px;
    margin-right: 15px;
}
.menu_item.item_1 {
    animation-delay: 400ms;
}
.menu_item.item_2 {
    animation-delay: 600ms;
}
.menu_item.item_3 {
    animation-delay: 800ms;
}
.menu_item.item_4 {
    animation-delay: 1000ms;
}
.menu_item_link {
    color: #181818;
    text-transform: uppercase;
    font-weight: 600;
}
.menu_item_link:hover {
    color: #9af012;
}

/* popup menu */
.popup_menu {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 999;
    width: 400px;
    background-color: #fff;
    box-shadow: -20px 20px 35px rgba(0,0,0, 0.1);
    visibility: hidden;
    opacity: 0;
    transform: translateX(100%);
    transition: 1s;
}
.popup_menu:target {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}
.popup_menu_container {
    padding: 35px;
    overflow: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* popup label */
.popup_menu_label {
    text-transform: uppercase;
    font-weight: 900;
    font-size: 50px;
    line-height: 0.5;
}

/* popup close */
.popup_menu_close {
    position: absolute;
    top: 15px;
    left: -64px;
    font-size: 45px;
    cursor: pointer;
    background-color: #fff;
    padding: 0 20px 10px 20px;
    border-radius: 10px 0 0 10px;
    box-shadow: -30px 20px 35px rgba(0,0,0, 0.1);
    background-color: #9af012;
    color: #181818;
    transition: 500ms;
}
.popup_menu_close:hover {
    background-color: #181818;
    color: #fff;
}

/* popup nav */
.popup_menu_item {
    margin-top: 15px;
    margin-bottom: 15px;
}
.popup_menu_item_link {
    display: inline-block;
    color: #181818;
    font-size: 35px;
    transition: 350ms;
    font-weight: 800;
}
.popup_menu_item_link:hover,
.popup_menu_item_link.active {
    transform: scale(1.2);
    color: #9af012;
}

/* popup contacts */
.popup_menu_contacts_item {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 5px;
}

.popup_menu_contacts_social {
    display: flex;
    margin: 50px -5px 0;
}
.popup_menu_contacts_social_item {
    width: calc(25% - 10px);
    height: 75px;
    background-color: #181818;
    margin: 5px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 500ms;
}
.popup_menu_contacts_social_item:hover {
    background-color: #9af012;
}
.popup_menu_contacts_social_item img {
    width: 50%;
}

/* search */
.search {
    animation-delay: 1.2s;
    margin-left: 10px;
    margin-right: 10px;
}
.search_form {
    position: relative;
    width: 200px;
}
.search_button {
    background: none;
    position: absolute;
    width: 44px;
    height: 44px;
    right: 5px;
    top: calc(50% - 22px);
}

/* menu toggle */
.menu_toggle {
    width: 35px;
    height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation-delay: 1.4s;
}
.menu_toggle_line,
.menu_toggle_line::before,
.menu_toggle_line::after {
    width: 100%;
    height: 4px;
    background-color: #181818;
}
.menu_toggle_line {
    position: relative;
    font-weight: 600;
}
.menu_toggle_line::before,
.menu_toggle_line::after {
    content: '';
    position: absolute;
}
.menu_toggle_line::before {
    top: -10px;
}
.menu_toggle_line::after {
    bottom: -10px;
}
.menu_toggle:hover .menu_toggle_line,
.menu_toggle:hover .menu_toggle_line::before,
.menu_toggle:hover .menu_toggle_line::after {
    background-color: #9af012;
}



/* Banner */
.banner {
    min-height: 100vh;
    padding-bottom: 100px;
}
.banner .container {
    position: relative;
}

/* title */
.banner_title {
    text-align: center;
    font-size: 365px;
    line-height: 0.9;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: -5px;
    position: relative;
}
.banner_title::before {
    content: '';
    position: absolute;
    top: 35px;
    left: -35px;
    bottom: 0;
    right: 0;
    z-index: 1;
    background:url(../img/title-bg.png) no-repeat center / 100% 100%;
}
.banner_title span {
    display: inline-block;
    transform: scaleX(1) translateX(calc(100vw + 500px));
    animation-duration: 1s;
    animation-name: title;
    animation-fill-mode: forwards;
    animation-timing-function: linear;
}
.banner_title span.n {
    animation-delay: 1.4s;
}
.banner_title span.i {
    animation-delay: 1.9s;
}
.banner_title span.k {
    animation-delay: 2.4s;
}
.banner_title span.e {
    animation-delay: 2.9s;
}
@keyframes title {
    50% {
        transform: scaleX(5) translateX(100%);
    }
    100% {
        transform: scaleX(1.4) translateX(0);
    }
}

/* product */
.banner_product {
    position: absolute;
    top: 70px;
    right: -100px;
    z-index: 9;
    width: 1100px;
    height: 480px;
    transform: translateX(150%);
    animation: product 1s forwards linear 3.4s;
}
@keyframes product {
    100% {
        transform: translateX(0);
    }
}
.banner_product_img {
    position: relative;
    z-index: 2;
    transform: rotate(-15deg);
    animation: product_img 5s infinite alternate;
}
@keyframes product_img {
    0% {
        transform: rotate(-12deg) translateY(-45px);
    } 
    100% {
        transform: rotate(-17deg) translateY(10px);
    }
}

/* info */
.banner_info {
    margin-top: 25px;
    transform: translateX(-500px);
    opacity: 0;
    animation: 1s 4.5s banner_info forwards;
}
@keyframes banner_info {
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}
.banner_info_text_bold {
    margin-bottom: 15px;
    font-weight: 800;
}

/* lines */
.banner_lines {
    position: relative;
    margin-top: 151px;
    margin-bottom: 80px;
    animation: 1s banner_lines 4s forwards;
    opacity: 0;
}
@keyframes banner_lines {
    100% {
        opacity: 1;
    }
}
.banner_line {
    background-color: #181818;
    color: #fff;
    width: 110%;
}
.banner_line_1 {
    transform: translateX(-5%) rotate(10deg) skewX(-20deg);
}
.banner_line_2 {
    transform: translateX(-5%) rotate(-15deg) skewX(-20deg);
}
.banner_line_content {
    display: flex;
    animation: 50s banner_line_content infinite alternate linear;
}
@keyframes banner_line_content {
    100% {
        transform: translateX(-2700px);
    }
}
.banner_line_text {
    display: flex;
    align-items: center;
    white-space: nowrap;
    margin-right: 70px;
}
.banner_line_big {
    font-weight: 800;
    font-size: 55px;
    text-transform: uppercase;
    line-height: 1.1;
    margin-right: 15px;
}
.banner_line_middle {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 20px;
}
.banner_line_small {
    margin-left: 25px;
}





@media(max-width: 1300px) {
    .container {
        width: 1200px;
    }

    /* title */
    .banner_title {
        font-size: 338px;
    }
}

@media(max-width: 1200px) {
    .container {
        width: 1024px;
    }

    /* title */
    .banner_title {
        font-size: 290px;
    }

    /* product */
    .banner_product {
        width: 900px;
        height: auto;
    }
}

@media(max-width: 1024px) {
    .container {
        width: 768px;
    }

    /* menu */
    .menu_item_link {
        font-size: 12px;
    }

    /* title */
    .banner_title {
        font-size: 220px;
    }

    /* product */
    .banner_product {
        width: 700px;
    }

    /* lines */
    .banner_lines {
        margin-top: 100px;
    }
    .banner_line_big {
        font-size: 38px;
    }
    .banner_line_middle {
        font-size: 15px;
    }
    .banner_line_small {
        font-size: 10px;
    }
    @keyframes banner_line_content {
        100% {
            transform: translateX(-2000px);
        }
    }
}

@media(max-width: 768px) {
    .container {
        width: 576px;
    }

    /* menu */
    .menu {
        display: none;
    }

    /* title */
    .banner_title {
        font-size: 167px;
    }
    .banner_title::before {
        top: 0;
    }

    /* product */
    .banner_product {
        width: 500px;
        top: 50px;
        right: -100px;
    }
    @keyframes product_img {
        100% {
            transform: rotate(-15deg)  translateY(-20px);
        }
    }

    /* lines */
    .banner_lines {
        margin-top: 80px;
    }
    .banner_line_big {
        font-size: 25px;
    }
    .banner_line_middle {
        font-size: 11px;
    }
    .banner_line_small {
        font-size: 8px;
    }
    @keyframes banner_line_content {
        100% {
            transform: translateX(-1700px);
        }
    }

    /* info */
    .banner_info {
        margin-top: 0;
    }
    .banner_info_text_bold {
        margin-bottom: 5px;
    }
    .banner_info_text  {
        font-size: 10px;
    }
}

@media(max-width: 576px) {
    .container {
        width: 414px;
    }

    .banner {
        min-height: 100%;
    }

    /* title */
    .banner_title {
        font-size: 123px;
        margin-top: 70px;
    }

    /* product */
    .banner_product {
        width: 110%;
        top: -10px;
        right: -30px;
    }

    /* lines */
    .banner_lines {
        margin-top: 150px;
        margin-bottom: 0px;
    }

    /* popup menu */
    .popup_menu {
        width: 100vw;
    }
    .popup_menu_close {
        top: 0;
        right: 0;
        left: auto;
        border-radius: 0 0 0 10px;
    }
}

@media(max-width: 414px) {
    .container {
        width: 90%;
    }

    /* logo */
    .logo {
        width: 60px;
    }

    /* title */
    .banner_title {
        font-size: 26.5vw;
    }

    /* info */
    .banner_info {
        display: none;
    }

    /* popup menu */
    .popup_menu_label {
        font-size: 35px;
    }
    .popup_menu_item_link {
        font-size: 30px;
    }
    .popup_menu_contacts_social_item {
        height: 70px;
    }
}
