.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 18px 0 10px;
}

.header_menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header_block {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.header_top {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 170%;
    letter-spacing: 0.02em;
    color: rgba(0, 0, 0, 0.6);
}

.header_bottom {
    display: flex;
    gap: 48px;
}

.header_bottom_link {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 170%;
    letter-spacing: 0.02em;
    color: #323232;
    transition: 0.3s;
}

.header_bottom_link:hover {
    color: #5ab563;
}

.header_bottom_link.partner {
    border-bottom: 1px solid #f8d000;
}

.header_adaptiv_menu_nav_item.partner {
    font-weight: 600;
}

.header_contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.header_block_phone {
    display: flex;
    gap: 20px;
}

.header_contacts_phone {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 170%;
    letter-spacing: 0.02em;
    color: #000;
    transition: 0.3s;
}

.header_contacts_phone:hover {
    color: #5ab563;
}

.header_contacts_all_link {
    display: flex;
    gap: 8px;
}

.header_contacts_link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border: 1px solid #5ab563;
    border-radius: 6px;
    transition: 0.3s;
}

.header_contacts_link:hover {
    background: #5ab563;
}

.header_contacts_link:hover img {
    filter: brightness(0) invert(1);
}

.header_catalog_link {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
}

.header_catalog_link_arrow {
    transition: 0.3s;
}

.header_catalog_link:hover .header_catalog_link_arrow {
    transform: rotate(180deg);
}

.header_catalog {
    opacity: 0;
    display: flex;
    background: #fff;
    border-top: 1px solid #07b35a;
    width: 1400px;
    top: 39px;
    left: -100px;
    position: absolute;
    z-index: 0;
    transition: 0.3s;
    height: 0;
}

.header_catalog .content {
    display: flex;
    gap: 64px;
    padding-left: 120px;
    display: none;
}

.header_catalog_item p {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 170%;
    letter-spacing: 0.02em;
    text-align: center;
    color: #323232;
}

.header_catalog_link:hover .header_catalog {
    opacity: 1;
    z-index: 10;
    height: max-content;
    padding-bottom: 40px;
    padding-left: 40px;
}

.header_catalog_link:hover .header_catalog .content {
    display: flex;
}

.header_catalog_item {
    transition: 0.3s;
}

.header_catalog_item:hover {
    transform: scale(1.1);
}

/*Бургерное меню*/

.header_burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.header_burger span {
    width: 30px;
    height: 2px;
    background-color: #5ab563;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10000;
}

.header_adaptiv_menu {
    position: fixed;
    top: 94px;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.header_adaptiv_menu.active {
    opacity: 1;
    visibility: visible;
}

.header_adaptiv_menu_content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 16px;
    gap: 16px;
    transform: translateY(-50px);
    opacity: 0;
    transition: all 0.3s ease 0.3s;
    width: 594px;
}

.header_adaptiv_menu_text {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 170%;
    letter-spacing: 0.02em;
    color: rgba(0, 0, 0, 0.6);
}

.header_adaptiv_menu.active .header_adaptiv_menu_content {
    transform: translateY(0);
    opacity: 1;
}

.header_adaptiv_menu_nav {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.header_adaptiv_menu_nav_item {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 170%;
    letter-spacing: 0.02em;
    color: #323232;
    padding: 16px 0;
}

.header_adaptiv_menu_nav_item:not(:first-child),
.header_adaptiv_menu_nav_list {
    border-bottom: 1px solid #f2f2f2;
}

.header_adaptiv_menu_nav_list summary {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header_burger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.header_burger.active span:nth-child(2) {
    opacity: 0;
}

.header_burger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

body.menu-open {
    overflow: hidden;
    height: 100vh;
}

.header_span {
    height: 32px;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 2px;
}

.header_span::after,
.header_span::before {
    content: "";
    width: 45%;
    height: 1px;
    background: #5ab563;
    position: absolute;
    left: 30%;
    top: 50%;
    transition: 0.3s;
}

.header_span::before {
    transform: rotate(90deg);
}

[open] summary .header_span::before {
    transform: rotate(0);
}

.header_adaptiv_menu details[open] summary {
    margin-bottom: 5px;
}

.header_adaptiv_menu_nav_list_all {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex-direction: column;
    padding-left: 20px;
    margin-bottom: 20px;
}

.header_adaptiv_menu_nav_list_all .header_adaptiv_menu_nav_item {
    padding: 4px 0;
    border-bottom: 0;
}

.header_adaptiv_menu_phone {
    display: none;
}

.header {
    position: absolute;
    z-index: 1000000;
    background: #fff;
    width: 100%;
    height: 100px;
}

.header .catalog_all_product {
    margin-top: 0;
}

.header .product_item {
    width: 16%;
    height: 230px;
}

.header .product_item .catalog_title,
.header .product_item .catalog_description {
    color: #000;
}

.header .catalog_all_product a {
    display: none;
}

.header_bottom_link:hover .catalog_all_product a {
    display: flex;
}

.header .small_picture {
    width: 150px;
}

@media screen and (max-width: 1500px) {
    .header_menu {
        gap: 22px;
    }

    .header_bottom {
        gap: 17px;
    }

    .header_block_phone {
        gap: 10px;
    }

    .header_contacts_phone {
        font-size: 13px;
    }

    .s_slide .h1 {
        width: 90%;
        font-size: 40px;
    }

    .header_catalog {
        width: 1000px;
    }

    .header .product_item {
        width: 24%;
    }
}

@media screen and (max-width: 1080px) {
    .header_block {
        display: none;
    }

    .header_contacts {
        flex-direction: row;
        gap: 24px;
        align-items: center;
    }

    .header_contacts_all_link {
        gap: 24px;
    }

    .header_burger {
        display: flex;
    }
/* 
    .header_adaptiv_menu_content {
        overflow: scroll;
    } */
}

@media screen and (max-width: 672px) {
    .header_contacts_phone,
    .header_adaptiv_menu_text {
        display: none;
    }

    .header_adaptiv_menu_content {
        width: 324px;
    }

    .header_adaptiv_menu_phone {
        display: flex;
    }

    .header_adaptiv_menu_content {
        gap: 8px;
        margin-top: 24px;
    }

    .header_adaptiv_menu_phone {
        font-family: "Inter", sans-serif;
        font-weight: 600;
        font-size: 16px;
        line-height: 170%;
        letter-spacing: 0.02em;
        color: #000;
    }
}

/* Анимация логотипа */

.header_logo {
    position: relative;
    display: inline-block;
}

.logo_molnia {
    position: absolute;
    left: 33%;
    width: 18px;
}

.logo_main {
    width: 68px;
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Класс для анимации */
.animate {
    animation: bounce 1s ease-in-out;
}
