.header {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    overflow: hidden;
}

.header-row {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 38px;
}

.header-top {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 30px 0;
    gap: 60px;
    background-color: #3aa159;
}

.header-top:before {
    content: '';
    position: absolute;
    width: 1000px;
    height: 100%;
    top: 0;
    bottom: 0;
    left: -999px;
    background-color: #3aa159;
}

.header-top:after {
    content: '';
    position: absolute;
    width: 1000px;
    height: 100%;
    top: 0;
    bottom: 0;
    right: -999px;
    background-color: #3aa159;
}

.header-logo {
    width: 300px;
    position: relative;
    display: flex;
}

.header-logo img {
    width: 100%;
}

.header-info {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: #ffffff;
    border-radius: 34px;
    padding: 5px 0;
}

.header-address {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 6px 30px 6px 50px;
}

.header-address p {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    font-size: clamp(0.875rem, 0.534rem + 0.55vw, 1.125rem);
    line-height: 100%;
    color: #404040;
}

.header-address p:before {
    content: '';
    width: 25px;
    height: 25px;
    position: relative;
    display: flex;
    flex-shrink: 0;
    background-image: url("../../img/icons/location.svg");
    background-position: center;
    background-repeat: no-repeat;
}

.header-number {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 6px 24px 6px 32px;
    border-left: 2px solid #404040;
}

.header-number a {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    font-size: clamp(0.875rem, 0.534rem + 0.55vw, 1.125rem);
    line-height: 100%;
    color: #404040;
    white-space: nowrap;
}

.header-number a:hover {
    color: #3aa159;
}

.header-number a:before {
    content: '';
    width: 25px;
    height: 25px;
    position: relative;
    display: flex;
    flex-shrink: 0;
    background-image: url("../../img/icons/phone.svg");
    background-position: center;
    background-repeat: no-repeat;
}

.header-left {
    display: flex;
    gap: 12px;
}

#lang {
    background-color: #ffffff;
    border-radius: 34px;
    color: #000;
    width: 47px;
    height: 47px;
    cursor: pointer;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
}

#lang a {
    color: #000;
}

#lang a:hover {
    color: #3AA159
}

#lang .lang-link {
    display: inline;
}

#lang .lang-link.this {
    display: none;
}

.header-nav {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
}

.header.fixed .header-nav {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    background-color: #1F1F1F;
    animation: headerSlideDown linear 1s;
}

.header.fixed .nav-menu {
    max-width: 1720px;
    padding: 15px 20px;
}

.nav-menu {
    flex: 1 1 auto;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-menu li {
    width: calc(100% / 6 - 15px);
    position: relative;
    display: flex;
}

.nav-menu li a {
    width: 100%;
    font-weight: 500;
    font-size: clamp(0.813rem, 0.046rem + 1.24vw, 1.375rem);
    line-height: 100%;
    color: #ffffff;
    padding: 10px;
    border: 1px solid #FFFFFF;
    border-radius: 30px;
    text-align: center;
    white-space: nowrap;
}

.nav-menu li a.active {
    border: 1px solid transparent;
    background-image: linear-gradient(90deg, #3AA159 0%, #78C05C 100%);
}

.nav-menu li a:hover {
    background-color: #3aa159;
    border: 1px solid #3aa159;
}

.header-nav .header-info {
    display: none;
}

.header-burger {
    width: 32px;
    height: 32px;
    position: relative;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    gap: 8px;
}

.header-burger span {
    width: 100%;
    height: 2px;
    background-color: #1F1F1F;
    transition: all 0.8s ease-in-out;
}

.header-burger.active span:nth-child(1) {
    transform: rotate(-400deg) translateY(4px) translateX(-3px);
}

.header-burger.active span:nth-child(2) {
    display: none;
}

.header-burger.active span:nth-child(3) {
    transform: rotate(400deg) translateY(-4px) translateX(-2px);
}


/******************************************/


/***************** Media ******************/

@media only screen and (max-width: 1250px) {
    .header-row {
        gap: 24px;
    }
    .nav-menu {
        gap: 6px;
    }
    .nav-menu li {
        width: calc(100% / 6 - 5px);
    }
}

@media only screen and (max-width: 992px) {
    .header {
        box-shadow: 0 15px 20px 0 #0000000D;
        position: fixed;
        top: 0;
        left: 0;
    }
    .header-row {
        flex-direction: row;
        align-items: center;
        gap: 32px;
    }
    .header-top {
        padding: 20px 0;
    }
    .header:before {
        height: 10px;
    }
    .header-logo {
        width: 240px;
        z-index: 22;
    }
    .header-nav {
        position: fixed;
        top: 0;
        right: -1000px;
        width: 100%;
        max-width: 480px;
        height: 100vh;
        overflow-y: auto;
        z-index: 20;
        transition: right 0.3s ease-in-out;
        padding: 120px 20px 100px;
        flex-direction: column;
        align-items: flex-start;
        background-color: #3aa159;
    }
    .nav:after,
    .nav:before {
        display: none;
    }
    .nav.active {
        right: 0;
    }
    .nav-menu {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 24px;
        margin-bottom: 40px;
    }
    .nav-menu li {
        width: 100%;
    }
    .nav-menu li a {
        font-size: 20px;
        border: none;
        color: #ffffff;
        text-align: left;
        padding: 0;
    }
    .nav-menu li a.active {
        background-color: transparent;
        background-image: unset;
        border: none;
        color: #1f1f1f;
    }
    .header-burger {
        display: flex;
        z-index: 21;
    }
    .header-info {
        display: none;
    }
    .header-nav .header-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        border-radius: 8px;
        padding: 16px 10px;
    }
    .header-address {
        padding: 0;
    }
    .header-number {
        padding: 0;
        border-left: none;
    }
    .header-number a,
    .header-address p {
        font-size: 16px;
    }
}

@media only screen and (max-width: 480px) {
    .header-top {
        padding: 16px 0;
    }
    .header-logo {
        width: 200px;
    }
}


/****************************************/


/*************** Keyframes **************/

@keyframes headerSlideDown {
    0% {
        transform: translateY(-200px);
    }
    100% {
        transform: translateY(0);
    }
}