/* Site header — same as index.html (main.css). Load after page CSS. */

.header .container {
    width: 100%;
    max-width: 1760px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.header {
    height: 72px;
    width: 100%;
    display: flex;
    align-items: center;
    background: #f5fff9;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 8px rgba(0, 138, 95, 0.08);
}

.header-wrap {
    display: flex;
    align-items: center;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

.header a.logo {
    display: flex;
    flex-shrink: 0;
    line-height: 0;
}

.logo {
    width: 48px;
    height: 48px;
}

.header-content {
    display: flex;
    width: 100%;
    align-items: center;
}

.navigation-wrap {
    display: flex;
    width: 100%;
    align-items: center;
}

.navigation {
    margin: 0 auto;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
}

.nav-link {
    font-size: 15px;
    color: #1C202B;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s, font-weight 0.2s;
    white-space: nowrap;
}

.nav-link:not(:last-of-type) {
    margin-right: 72px;
}

.nav-demo-btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 11px;
    line-height: 1.2;
    padding: 0 14px;
    height: 36px;
    border-radius: 6px;
    color: #ffffff;
    background: #008a5f;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.2px;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.nav-demo-btn:hover {
    background: #006b4a;
    color: #ffffff;
}

.nav-demo-btn:focus,
.nav-demo-btn:visited,
.nav-demo-btn.active {
    background: #008a5f;
    color: #ffffff;
}

.nav-demo-btn--header {
    height: 46px;
    min-width: 300px;
    padding: 0 18px;
    font-size: 12px;
    line-height: 1.25;
    flex-shrink: 0;
    text-align: center;
}

.header .active,
.header .nav-link.active {
    font-weight: 600;
    color: #008a5f;
}

.hamburger {
    position: relative;
    width: 25px;
    height: 3px;
    background: #58606e;
    opacity: 0.7;
    border-radius: 10px;
    cursor: pointer;
    z-index: 3;
    transition: 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: "";
    position: absolute;
    height: 3px;
    right: 0;
    background: #58606e;
    border-radius: 10px;
    transition: 0.3s;
}

.hamburger::before {
    top: -8px;
    width: 25px;
}

.hamburger::after {
    top: 8px;
    width: 25px;
}

.toggle-menu {
    position: absolute;
    width: 25px;
    height: 30px;
    z-index: 4;
    cursor: pointer;
    opacity: 0;
}

.hamburger,
.toggle-menu {
    display: none;
}

.header .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1;
}

.header .overlay.open {
    display: block;
}

@media (max-width: 1320px) {
    .nav-link:not(:last-of-type) {
        margin-right: 40px;
    }

    .nav-demo-btn--header {
        min-width: 260px;
        font-size: 11px;
        padding: 0 14px;
    }
}

@media (hover: hover) {
    .header .nav-link:hover {
        color: #008a5f;
        font-weight: 600;
    }

    .header .nav-demo-btn:hover {
        background: #006b4a;
        color: #ffffff;
    }
}

@media (max-width: 960px) {
    .header {
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .header-wrap {
        padding: 2%;
    }

    .header .hamburger,
    .header .toggle-menu {
        display: block;
    }

    .header .toggle-menu {
        top: 10px;
    }

    .header-content {
        justify-content: flex-end;
        align-items: center;
    }

    .navigation-wrap {
        display: flex;
        flex-direction: column;
        width: 300px;
        height: 100%;
        position: fixed;
        right: -300px;
        top: 0;
        gap: 12px;
        padding-top: 72px;
        background: #ffffff;
        transition: 0.3s;
        z-index: 2;
    }

    .navigation {
        display: flex;
        flex-direction: column;
        margin-left: 22px;
        width: 85%;
    }

    .nav-link {
        font-size: 13px;
        padding: 10px 8px;
        white-space: normal;
    }

    .nav-link:not(:first-of-type) {
        border-top: 1px solid #657085cd;
    }

    .nav-link:not(:last-of-type) {
        margin-right: 0;
    }

    .nav-demo-btn--header {
        font-size: 12px;
        margin: 0 auto;
        width: min(100%, 300px);
        min-width: unset;
        height: 42px;
    }

    .header-content input:checked ~ .hamburger {
        background: transparent;
    }

    .header-content input:checked ~ .hamburger::before {
        top: 0;
        transform: rotate(-45deg);
    }

    .header-content input:checked ~ .hamburger::after {
        top: 0;
        transform: rotate(45deg);
    }

    .header-content input:checked ~ .navigation-wrap {
        right: 0;
        box-shadow: -20px 0 40px rgba(0, 0, 0, 0.3);
    }
}

@media (max-width: 480px) {
    .header {
        height: 56px;
    }

    .header .container {
        padding: 0 18px !important;
    }

    .header-wrap {
        padding: 0 !important;
        justify-content: space-between;
    }

    .header-content {
        flex: 1;
        justify-content: flex-end;
    }

    .logo {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
    }

    .hamburger {
        margin-right: 2px;
    }

    .navigation-wrap {
        width: min(100%, 300px) !important;
        padding-top: 56px !important;
        background: #f5fff9 !important;
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12) !important;
    }

    .navigation {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 0 16px;
    }

    .nav-link {
        font-size: 15px !important;
        padding: 14px 8px !important;
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .nav-link:not(:first-of-type) {
        border-top: 1px solid #d0f0e4 !important;
    }

    .nav-demo-btn--header {
        width: calc(100% - 32px) !important;
        height: 48px !important;
        font-size: 12px !important;
        margin: 12px 16px 20px !important;
        border-radius: 10px !important;
        white-space: normal !important;
        line-height: 1.25 !important;
        text-align: center;
    }
}
