body > header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 300;
    height: 80px;
    background: #ffffff;
    border-bottom: 0;
    box-shadow: none;
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1920px;
    height: 80px;
    margin: 0 auto;
    padding: 0 clamp(24px, 16.25vw, 312px);
    gap: clamp(20px, 2vw, 40px);
}

.main_logo {
    display: block;
    flex: 0 0 153px;
    width: 153px;
    height: 50px;
}

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

#main_menu {
    flex: 1 1 auto;
    min-width: 0;
}

#main_menu ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(36px, 4.2vw, 80px);
    margin: 0;
    padding: 0;
}

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

#main_menu a {
    color: #242424;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0;
    white-space: nowrap;
}

#main_menu a:hover,
#main_menu a:focus-visible {
    color: #000000;
}

.header-language {
    display: flex;
    flex: 0 0 74px;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 32px;
    gap: 6px;
    border-radius: 999px;
    background: #f1f1f1;
}

.header-language a {
    color: #9a9a9a;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
}

.header-language a.active {
    color: #222222;
    font-weight: 600;
}

.header-language span {
    width: 1px;
    height: 10px;
    background: #cfcfcf;
}

.mobile-menu-toggle {
    display: grid;
    flex: 0 0 30px;
    align-content: center;
    gap: 6px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    border-radius: 999px;
    background: #222222;
}

.dropdown-menu {
    display: none;
}

.dropdown-menu.active {
    position: fixed;
    z-index: 320;
    inset: 0;
    display: flex;
    justify-content: flex-end;
    height: 100vh;
    height: 100dvh;
}

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

.mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(15, 15, 15, .48);
    cursor: pointer;
    animation: menu-backdrop-in .22s ease both;
}

.mobile-menu-panel {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(480px, 100%);
    height: 100%;
    flex-direction: column;
    padding: 30px 42px 36px;
    overflow-y: auto;
    background: #ffffff;
    box-shadow: -16px 0 40px rgba(0, 0, 0, .12);
    animation: menu-panel-in .3s cubic-bezier(.22, 1, .36, 1) both;
}

.mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-logo,
.mobile-menu-logo img {
    display: block;
    width: 138px;
    height: 45px;
}

.mobile-menu-logo img {
    object-fit: contain;
    object-position: left center;
}

.mobile-menu-close {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 1px solid #e4e4e4;
    border-radius: 50%;
    background: #ffffff;
    color: #222222;
    font-size: 22px;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.mobile-menu-close:hover,
.mobile-menu-close:focus-visible {
    border-color: #b8862a;
    background: #faf7f0;
    color: #9b6a12;
}

.mobile-menu-title {
    display: flex;
    flex-direction: column;
    margin-top: 62px;
    gap: 8px;
}

.mobile-menu-title span {
    color: #b8862a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.mobile-menu-title strong {
    color: #1a1a1a;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.25;
}

.mobile-menu-links {
    margin-top: 34px;
}

.mobile-menu-links ul {
    margin: 0;
    padding: 0;
    border-top: 1px solid #dedede;
}

.mobile-menu-links li {
    border-bottom: 1px solid #e8e8e8;
}

.mobile-menu-links a {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    color: #222222;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    transition: color .2s ease, padding-left .2s ease;
}

.mobile-menu-links a i {
    color: #b8b8b8;
    font-size: 15px;
    transition: color .2s ease, transform .2s ease;
}

.mobile-menu-links a:hover,
.mobile-menu-links a:focus-visible {
    padding-left: 8px;
    color: #a87419;
}

.mobile-menu-links a:hover i,
.mobile-menu-links a:focus-visible i {
    color: #b8862a;
    transform: translateX(3px);
}

.mobile-menu-bottom {
    margin-top: auto;
    padding-top: 36px;
}

.mobile-menu-language {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-language a {
    color: #a0a0a0;
    font-size: 14px;
    font-weight: 600;
}

.mobile-menu-language a.active {
    color: #1a1a1a;
}

.mobile-menu-language span {
    width: 1px;
    height: 12px;
    background: #d6d6d6;
}

.mobile-menu-admin {
    display: flex;
    align-items: center;
    margin-top: 22px;
    gap: 10px;
}

.mobile-menu-admin a,
.mobile-menu-admin button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 0 13px;
    gap: 7px;
    border: 1px solid #dedede;
    border-radius: 4px;
    background: #ffffff;
    color: #4a4a4a;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

body.menu-open {
    overflow: hidden;
}

@keyframes menu-backdrop-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes menu-panel-in {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.header-admin-tools {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.header-admin-tools a,
.header-admin-tools button {
    height: 34px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.header-admin-link {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    background: #bd8723;
    color: #ffffff;
}

.header-admin-link:hover,
.header-admin-link:focus-visible {
    background: #a87419;
    color: #ffffff;
}

.header-admin-tools button {
    display: grid;
    width: 34px;
    padding: 0;
    place-items: center;
    border-color: #dedede;
    background: #ffffff;
    color: #4a4a4a;
}

.header-admin-tools button:hover,
.header-admin-tools button:focus-visible {
    border-color: #bd8723;
    background: #f7f2e8;
    color: #9b6a12;
}

@media (max-width: 1500px) {
    .header-inner {
        padding: 0 40px;
        gap: 24px;
    }

    #main_menu ul {
        gap: clamp(24px, 3vw, 42px);
    }
}

@media (max-width: 900px) {
    .header-inner {
        padding: 0 24px;
    }

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

    .main_logo {
        flex-basis: 138px;
        width: 138px;
        height: 45px;
    }

    .main_logo img {
        width: 138px;
        height: 45px;
    }

    .mobile-menu-panel {
        width: min(440px, calc(100% - 32px));
        padding: 24px 30px 30px;
    }
}

@media (max-width: 480px) {
    .header-inner {
        padding: 0 20px;
    }

    .main_logo {
        flex-basis: 122px;
        width: 122px;
        height: 40px;
    }

    .main_logo img {
        width: 122px;
        height: 40px;
    }

    .mobile-menu-panel {
        width: calc(100% - 16px);
        padding: 20px 22px 26px;
    }

    .mobile-menu-title {
        margin-top: 44px;
    }

    .mobile-menu-title strong {
        font-size: 30px;
    }

    .mobile-menu-links a {
        min-height: 66px;
        font-size: 19px;
    }
}
