.header {
    height: 80px;
    background: var(--bg);
    color: var(--color);
    position: sticky;
    top: 0;
    z-index: 9;
}

.header .wrap {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: space-between;
}

.header .logo-icon {
    height: 60px;
    width: auto;
}

.header .menu ul {
    display: flex;
    align-items: center;
}

.header .menu ul li {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
    height: 40px;
    letter-spacing: 2px;
}

.header .menu ul li:last-child {
    margin-right: 0;
}

.header .menu ul li:hover,
.header .menu ul li.active {
    border-bottom: 2px solid var(--color);
}

.header .menu ul li a {
    display: flex;
    width: 100%;
    padding: 0 10px;
}

.banner {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color);
    font-size: 20px;
    width: 100%;
    height: 400px;
    background-color: #dedede;
    background-image: url(../images/banner_1.jpeg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    position: relative;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.254);
}

.banner .text {
    position: relative;
    text-align: center;
}

.banner .slogan {
    font-size: 40px;
    margin-bottom: 20px;
}

#news-block {
    padding-top: 80px;
}

#news-block .items li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    margin: 20px auto;
    border: 1px solid var(--bg);
}

#news-block .items li > div:first-child {
    flex-grow: 1;
    height: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 10px 20px;
    position: relative;
}

#news-block .items li > div:last-child {
    width: 80px;
    height: 100%;
}

#news-block .items .to-btn {
    background: var(--bg);
    color: var(--color);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 30px;
    font-weight: 800;
    font-family: monospace;
    transition: 0.3s;
}

#news-block .items .to-btn:hover {
    background: var(--color-hover);
}

#news-block .items .news-date {
    margin-bottom: 5px;
}

#news-block .items .text {
    line-height: 20px;
}

#product-block {
    padding-top: 80px;
}

#product-block .product-item {
    border: 1px solid #dedede;
    transition: 0.3s;
}

#product-block .product-item .picture {
    height: 200px;
    background-color: #dedede;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

#product-block .product-item .text {
    padding: 10px;
    line-height: 30px;
    text-align: justify;
}

#product-block .product-item .text > h3 {
    margin-bottom: 10px;
    font-size: 20px;
    color: var(--bg);
    transition: 0.3s;
}

#product-block .product-item:hover {
    border: 1px solid var(--color-hover);
}

#product-block .product-item:hover .text > h3 {
    color: var(--color-hover);
}

#contact-block {
    padding-top: 80px;
}

#contact-form {
    margin: 40px auto;
}

.footer {
    padding-top: 30px;
    padding-bottom: 30px;
    background-color: var(--bg);
}

.footer .wrap {
    display: flex;
    justify-content: space-between;
}

.footer .wrap .right-side {
    display: flex;
    align-items: flex-end;
    color: var(--color);
}

.map-wrap {
    width: 100%;
    height: 450px;
    margin: 20px auto;
}

.map-wrap iframe {
    width: 100%;
    height: 100%;
}

.mobile-icon {
    width: 50px;
    height: 100%;
    position: relative;
    cursor: pointer;
    display: none;
}

.mobile-icon > span {
    width: 30px;
    height: 3px;
    background: var(--color);
    display: block;
    position: absolute;
    top: 50%;
    margin-top: -1px;
    left: 10px;
    transition: 0.3s;
}

.mobile-icon > span:first-child {
    margin-top: -12px;
}

.mobile-icon > span:last-child {
    margin-top: 10px;
}

.mobile-icon.active > span {
    background: var(--color-hover);
}

.mobile-icon.active > span:nth-child(2) {
    transform: rotateY(270deg);
    opacity: 0;
}

.mobile-icon.active > span:first-child {
    transform: rotate(140deg);
    margin-top: 0;
}

.mobile-icon.active > span:last-child {
    transform: rotate(-140deg);
    margin-top: 0;
}

@media screen and (max-width: 767px) {
    .mobile-icon {
        display: block;
    }

    .menu {
        position: fixed;
        height: 0;
        overflow: hidden;
        transition: height 0.4s;
        opacity: 0;
    }

    .menu.active {
        top: 80px;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--color);
        z-index: 8;
        color: #000;
        padding-top: 30px;
        opacity: 1;
    }

    .menu.active ul {
        flex-direction: column;
    }

    .menu.active ul li {
        margin-right: 0;
        width: 100%;
        margin-bottom: 10px;
        height: 40px;
    }

    .menu.active ul li a {
        height: 100%;
        justify-content: center;
        align-items: center;
    }

    .header .menu ul li:hover {
        border: 0;
    }
}
