.header-9 {
    width: 100%;
    background-color: var(--h9-bg, #ffffff);
    color: var(--h9-text, #000000);
}

.sticky-header-9 {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.header-9 .header-9-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: center;
    gap: 32px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 32px;
}

.header-9 .header-9-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    text-decoration: none;
}

.header-9 .header-9-logo img {
    width: auto;
    max-width: 220px;
    max-height: 55px;
    min-height: 0;
    object-fit: contain;
}

.header-9 .header-9-logo .header-9-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.header-9 .header-9-logo .header-9-logo-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--h9-text, #000000);
    font-family: 'Georgia', serif;
}

.header-9 .header-9-logo .header-9-logo-script {
    font-style: italic;
    font-size: 22px;
    font-weight: 600;
    color: var(--h9-text, #000000);
    font-family: 'Brush Script MT', cursive;
}

.header-9 .header-9-logo .header-9-logo-tagline {
    font-size: 11px;
    color: var(--h9-text, #000000);
    opacity: 0.7;
    margin-top: 3px;
    letter-spacing: 0.02em;
}

.header-9 .header-9-search {
    display: flex;
    justify-content: center;
}

.header-9 .header-9-search-input-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 560px;
    border: 1px solid #e5e5e5;
    border-radius: 999px;
    padding: 4px 6px 4px 20px;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-9 .header-9-search-input-wrap:focus-within {
    border-color: #d97a7a;
    box-shadow: 0 0 0 3px rgba(217, 122, 122, 0.12);
}

.header-9 .header-9-search input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
    color: #333333;
    padding: 8px 0;
}

.header-9 .header-9-search input::placeholder {
    color: #b9b9b9;
}

.header-9 .header-9-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #b9b9b9;
    cursor: pointer;
    border-radius: 999px;
    transition: color 0.2s ease;
}

.header-9 .header-9-search-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.header-9 .header-9-search-btn:hover {
    color: #d97a7a;
}

.header-9 .header-9-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
}

.header-9 .header-9-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #4a4a4a;
    transition: color 0.2s ease;
}

.header-9 .header-9-action:hover {
    color: #d97a7a;
}

.header-9 .header-9-action-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: #4a4a4a;
}

.header-9 .header-9-action-icon svg {
    width: 26px;
    height: 26px;
    stroke: #4a4a4a;
}

.header-9 .header-9-action-label {
    font-size: 12px;
    font-weight: 500;
    margin-top: 3px;
    color: #4a4a4a;
}

.header-9 .header-9-action-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #d97a7a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.header-9 .header-9-menu {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-9 .header-9-menu-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 36px;
    list-style: none;
    margin: 0;
    padding: 10px 32px;
}

.header-9 .header-9-menu-item {
    position: relative;
    padding: 4px 0;
}

.header-9 .header-9-menu-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--h9-text, #000000);
    position: relative;
    padding: 6px 2px;
    transition: color 0.2s ease;
}

.header-9 .header-9-menu-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--h9-accent, #d97a7a);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.header-9 .header-9-menu-link:hover::after,
.header-9 .header-9-menu-item.active .header-9-menu-link::after {
    transform: scaleX(1);
}

.header-9 .header-9-menu-link:hover {
    color: var(--h9-accent, #d97a7a);
}

.header-9 .header-9-menu-item.active .header-9-menu-link {
    color: var(--h9-accent, #d97a7a);
}

.header-9 .header-9-menu-caret {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 2px;
    opacity: 0.7;
}

.header-9 .header-9-menu-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 200px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 50;
}

.header-9 .header-9-menu-item:hover .header-9-menu-dropdown,
.header-9 .header-9-menu-item:focus-within .header-9-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.header-9 .header-9-menu-dropdown a {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: #333333;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.header-9 .header-9-menu-dropdown a:hover {
    background: #f7f7f7;
    color: var(--h9-accent, #d97a7a);
}

.header-9 .header-9-mobile-toggle-wrap {
    display: none;
}

@media (max-width: 991px) {
    .header-9 .header-9-row {
        grid-template-columns: 1fr auto;
        gap: 16px;
        padding: 16px 16px;
    }

    .header-9 .header-9-logo-wrap {
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 0;
    }

    .header-9 .header-9-logo {
        min-width: 0;
    }

    .header-9 .header-9-logo img {
        width: auto;
        max-width: 180px;
        max-height: 64px;
        min-height: 0;
    }

    .header-9 .header-9-search {
        display: none;
    }

    .header-9 .header-9-actions {
        gap: 18px;
    }

    .header-9 .header-9-action-icon {
        width: 28px;
        height: 28px;
    }

    .header-9 .header-9-action-icon svg {
        width: 28px;
        height: 28px;
    }

    .header-9 .header-9-action-label {
        display: none;
    }

    .header-9 .header-9-mobile-toggle-wrap {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .header-9 .header-9-mobile-toggle-wrap > button[id^="openSidebar"] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border: 0;
        background: transparent;
        color: #4a4a4a;
        cursor: pointer;
        padding: 0;
        margin: 0;
    }

    .header-9 .header-9-mobile-toggle-wrap > button[id^="openSidebar"] svg {
        width: 26px;
        height: 26px;
        stroke: currentColor;
    }

    .header-9 .header-9-menu {
        display: none;
    }
}
