.header-wrap,
.header-wrap *{
    box-sizing:border-box;
}

.header-wrap{
    max-width:1100px;
    margin:0 auto 16px;
    padding:14px 0 4px;
}

.header-top{
    margin-bottom:12px;
}

.header-brand{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
}

.header-logo-img{
    display:block;
    width:56px !important;
    height:56px !important;
    max-width:56px;
    max-height:56px;
    object-fit:contain;
    flex:0 0 56px;
}

.header-logo-text{
    min-width:0;
}

.header-title{
    display:inline-block;
    font-size:30px;
    font-weight:bold;
    line-height:1.1;
    background:linear-gradient(180deg,#fff6d5,#d6a84f,#7a6230);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.header-subtitle{
    color:#d6a84f;
    font-size:13px;
    margin-top:3px;
    line-height:1.5;
}

.header-nav{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:12px;
}

.header-nav a{
    flex:0 0 auto;
    color:#d6a84f;
    border:1px solid #7a6230;
    background:#181818;
    border-radius:20px;
    padding:8px 13px;
    font-size:14px;
    font-weight:bold;
    text-decoration:none;
}

.header-nav a:hover{
    background:#2a2418;
}

.header-search{
    display:flex;
    gap:8px;
    max-width:100%;
    box-sizing:border-box;
}

.header-input{
    flex:1;
    min-width:0;
    box-sizing:border-box;
    background:#1a1a1a;
    border:1px solid #444;
    color:#fff;
    padding:11px 12px;
    border-radius:8px;
    font-size:15px;
}

.header-btn{
    background:#7a6230;
    color:#fff;
    border:0;
    padding:0 14px;
    border-radius:8px;
    font-weight:bold;
    cursor:pointer;
    white-space:nowrap;
}

@media(max-width:520px){
    .header-wrap{
        padding:10px 12px 4px;
    }

    .header-logo-img{
        width:48px !important;
        height:48px !important;
        max-width:48px;
        max-height:48px;
        flex-basis:48px;
    }

    .header-title{
        font-size:24px;
    }

    .header-nav a{
        flex:1 1 calc(33.333% - 8px);
        text-align:center;
        padding:9px 4px;
    }

    .header-search{
        flex-wrap:wrap;
    }

    .header-input{
        flex:0 0 100%;
    }

    .header-btn{
        flex:1;
        height:40px;
    }
}
