.kiemai-site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(16, 24, 40, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.kiemai-site-header__inner {
    min-height: 62px;
    display: grid;
    grid-template-columns: 98px minmax(0, 1fr) 98px;
    align-items: center;
    gap: 10px;
}

.kiemai-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kiemai-header-actions--left {
    justify-self: start;
}

.kiemai-header-actions--right {
    justify-self: end;
}

.kiemai-header-icon-button {
    position: relative;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 4px 14px rgba(16, 24, 40, 0.06);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.kiemai-header-icon-button:active {
    transform: scale(0.96);
}

.kiemai-header-icon-button:focus-visible {
    outline: 3px solid rgba(21, 94, 239, 0.28);
    outline-offset: 3px;
}

@media (hover: hover) {
    .kiemai-header-icon-button:hover {
        background: var(--soft);
    }
}

.kiemai-header-icon-button svg,
.kiemai-header-sheet svg,
.kiemai-menu-list svg,
.kiemai-language-choice svg,
.kiemai-user-summary svg,
.kiemai-user-sheet__actions svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.kiemai-site-header__brand {
    justify-self: center;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
}

.kiemai-site-header__logo-image {
    display: block;
    max-width: min(160px, 40vw);
    height: 68px;
    object-fit: contain;
}

.kiemai-site-header__logo-fallback {
    display: none;
    font-size: 1.25rem;
    font-weight: 900;
    white-space: nowrap;
}

.kiemai-site-header__logo-fallback span {
    color: var(--brand);
}

.kiemai-site-header__logo-image[src=""],
.kiemai-site-header__logo-image:not([src]) {
    display: none;
}

.kiemai-site-header__logo-image[src=""] + .kiemai-site-header__logo-fallback,
.kiemai-site-header__logo-image:not([src]) + .kiemai-site-header__logo-fallback {
    display: block;
}

.kiemai-header-user-dot {
    position: absolute;
    right: 4px;
    bottom: 5px;
    width: 10px;
    height: 10px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--success);
}

.kiemai-header-sheet {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    visibility: hidden;
    pointer-events: none;
}

.kiemai-header-sheet[hidden] {
    display: none;
}

.kiemai-header-sheet.is-mounted {
    visibility: visible;
    pointer-events: auto;
}

.kiemai-header-sheet__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.48);
    opacity: 0;
    transition: opacity 0.24s ease;
}

.kiemai-header-sheet__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: min(88dvh, 760px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 26px 26px 0 0;
    box-shadow: 0 -20px 60px rgba(15, 23, 42, 0.18);
    transform: translate3d(0, 102%, 0);
    transition: transform 0.32s cubic-bezier(0.22, 0.75, 0.2, 1);
    overflow: hidden;
    will-change: transform;
}

.kiemai-header-sheet.is-open .kiemai-header-sheet__backdrop {
    opacity: 1;
}

.kiemai-header-sheet.is-open .kiemai-header-sheet__panel {
    transform: translate3d(0, 0, 0);
}

.kiemai-header-sheet__handle {
    width: 42px;
    height: 5px;
    margin: 9px auto 0;
    border-radius: 999px;
    background: #d0d5dd;
}

.kiemai-header-sheet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px 14px;
    border-bottom: 1px solid var(--line);
}

.kiemai-header-sheet__header h2 {
    margin: 1px 0 0;
    font-size: 1.25rem;
    line-height: 1.2;
}

.kiemai-header-sheet__eyebrow {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.kiemai-header-sheet__close {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
}

.kiemai-header-sheet__body {
    padding: 14px 16px calc(22px + env(safe-area-inset-bottom));
    overflow: auto;
    overscroll-behavior: contain;
}

.kiemai-menu-section {
    margin-top: 20px;
}

.kiemai-menu-section h3 {
    margin: 0 4px 8px;
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.kiemai-menu-list {
    display: grid;
    gap: 7px;
}

.kiemai-menu-list a,
.kiemai-language-choice a {
    min-height: 50px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 12px;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    color: var(--ink);
    font-weight: 720;
}

.kiemai-menu-list a > svg:last-child {
    width: 18px;
    height: 18px;
    color: #98a2b3;
}

.kiemai-menu-list--secondary a {
    min-height: 47px;
    font-weight: 650;
}

.kiemai-language-choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.kiemai-language-choice a {
    grid-template-columns: 22px minmax(0, 1fr) 18px;
}

.kiemai-language-choice a.is-active {
    border-color: rgba(12, 69, 174, 0.32);
    background: #f2f6ff;
    color: var(--brand);
}

.kiemai-header-sheet__panel--compact {
    max-height: min(72dvh, 540px);
}

.kiemai-user-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 16px;
    background: var(--soft);
}

.kiemai-user-summary__avatar {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: var(--brand);
}

.kiemai-user-summary div {
    display: grid;
    gap: 2px;
}

.kiemai-user-summary span {
    color: var(--muted);
    font-size: 0.86rem;
}

.kiemai-user-sheet__intro {
    margin: 0 0 16px;
    color: var(--muted);
}

.kiemai-user-sheet__actions {
    display: grid;
    gap: 10px;
}

.kiemai-user-sheet__actions .kiemai-button {
    width: 100%;
    gap: 9px;
}

.kiemai-user-sheet__actions .kiemai-button svg {
    width: 19px;
    height: 19px;
}

body.kiemai-sheet-lock {
    overflow: hidden;
}

@media (max-width: 760px) {
    .kiemai-site-header__inner {
        min-height: 70px;
        grid-template-columns: 98px minmax(0, 1fr) 98px;
    }

    .kiemai-site-header__logo-image {
        height: 64px;
        max-width: min(100px, calc(100vw - 220px));
    }

    .kiemai-header-sheet {
        align-items: flex-end;
        padding: 0;
    }

    .kiemai-header-sheet__panel {
        width: 100%;
        max-width: 560px;
        margin: 0;
        border-radius: 26px 26px 0 0;
        transform: translate3d(0, 100%, 0);
        opacity: 0;
        transition:
            transform 0.25s ease,
            opacity 0.2s ease;
    }

    .kiemai-header-sheet.is-open .kiemai-header-sheet__panel {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }

    .kiemai-header-sheet__handle {
        display: none;
    }

    .kiemai-header-sheet__header {
        padding-top: 18px;
    }
}

@media (max-width: 350px) {
    .kiemai-site-header__inner {
        grid-template-columns: 88px minmax(0, 1fr) 88px;
        gap: 6px;
    }

    .kiemai-header-actions {
        gap: 4px;
    }

    .kiemai-header-icon-button {
        width: 42px;
        height: 42px;
    }

    .kiemai-site-header__logo-image {
        max-width: min(88px, calc(100vw - 194px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .kiemai-header-sheet__backdrop,
    .kiemai-header-sheet__panel {
        transition: none;
    }
}

.kiemai-menu-bell{
    position:relative;
    width:24px;
    height:24px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

.kiemai-menu-bell__badge{
    position:absolute;
    top:-6px;
    right:-7px;
    min-width:18px;
    height:18px;
    padding:0 5px;
    border-radius:999px;
    background:#e53935;
    color:#fff;
    font-size:11px;
    font-weight:800;
    display:flex;
    align-items:center;
    justify-content:center;
    border:2px solid #fff;
}