body > header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 300;
    height: 104px;
    background: #ffffff;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

body > header.main-header {
    background: transparent;
    border-bottom-color: transparent;
}

body > header.main-header.is-scrolled {
    background: rgba(8, 38, 25, 0.68);
    border-bottom-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    backdrop-filter: blur(16px) saturate(130%);
}

.header-inner {
    position: relative;
    width: min(100%, 1920px);
    height: 104px;
    margin: 0 auto;
}

.main_logo {
    position: absolute;
    top: 32px;
    left: 80px;
    display: block;
    width: 130px;
    height: 40px;
    z-index: 2;
}

.main_logo img {
    display: block;
    width: 130px;
    height: 40px;
    object-fit: contain;
    object-position: left center;
}

body > header:not(.main-header) .main_logo img {
    filter: brightness(0) saturate(100%);
}

#main_menu {
    position: absolute;
    top: 48px;
    left: 293px;
}

#main_menu ul {
    display: flex;
    align-items: center;
    gap: 80px;
    margin: 0;
    padding: 0;
}

#main_menu li,
#main_menu a,
#main_menu span {
    display: block;
}

#main_menu a {
    color: #111111;
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: 0;
    white-space: nowrap;
}

.main-header #main_menu a {
    color: #ffffff;
}

#main_menu a:hover,
#main_menu a:focus-visible {
    opacity: 0.72;
}

.header-contact-link {
    position: absolute;
    top: 35px;
    right: 80px;
    width: 120px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 54px;
    background: #111111;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: 0;
}

.main-header .header-contact-link {
    background: #ffffff;
    color: #111111;
}

.header-contact-link:hover,
.header-contact-link:focus-visible {
    color: inherit;
    opacity: 0.86;
}

.header-admin-tools {
    position: absolute;
    top: 40px;
    right: 220px;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-admin-tools a,
.header-admin-tools button {
    height: 40px;
    border: 0;
    background: #eaf4ef;
    color: #176c50;
    font-size: 14px;
    font-weight: 700;
}

.header-admin-tools a {
    display: flex;
    align-items: center;
    padding: 0 14px;
}

.header-admin-tools button {
    width: 40px;
}

.main-header .header-admin-tools a,
.main-header .header-admin-tools button {
    background: rgba(255, 255, 255, 0.92);
    color: #126d50;
}

.mobile-menu-toggle,
.dropdown-menu {
    display: none;
}

@media (max-width: 1100px) {
    body > header,
    .header-inner {
        height: 80px;
    }

    .main_logo {
        top: 24px;
        left: 28px;
        width: 104px;
        height: 32px;
    }

    .main_logo img {
        width: 104px;
        height: 32px;
    }

    #main_menu,
    .header-contact-link,
    .header-admin-tools {
        display: none;
    }

    .mobile-menu-toggle {
        position: absolute;
        top: 19px;
        right: 24px;
        display: grid;
        place-items: center;
        width: 42px;
        height: 42px;
        border: 0;
        background: transparent;
        color: #111111;
        font-size: 24px;
    }

    .main-header .mobile-menu-toggle {
        color: #ffffff;
    }

    .dropdown-menu.active {
        position: fixed;
        inset: 0;
        display: flex;
        flex-direction: column;
        padding: 28px;
        background: #ffffff;
        color: #173b2d;
    }

    .dropdown-menu.hidden {
        display: none;
    }

    .mobile-menu-close {
        align-self: flex-end;
        width: 42px;
        height: 42px;
        border: 0;
        background: transparent;
        font-size: 25px;
    }

    .dropdown-menu ul {
        display: flex;
        flex-direction: column;
        gap: 24px;
        margin-top: 60px;
    }

    .dropdown-menu a,
    .mobile-logout-button {
        font-size: 24px;
        font-weight: 700;
    }

    .mobile-logout-button {
        padding: 0;
        border: 0;
        background: transparent;
        color: #173b2d;
        font-family: inherit;
        cursor: pointer;
    }
}

@media (max-width: 480px) {
    .main_logo { left: 20px; }
    .mobile-menu-toggle { right: 14px; }
}
