:root {
    --header-height-desktop: 200px;
    --header-height-tablet: 200px;
    --header-height-mobile: 200px;

    --header-text: #ffffff;
    --header-accent: #9bcf53;
    --header-panel: rgba(15, 30, 19, 0.72);
    --header-panel-border: rgba(255, 255, 255, 0.26);
    --header-button-bg: rgba(255, 255, 255, 0.95);
    --header-button-text: #17311e;
}

.site-header {
    position: relative;
    width: 100%;
    height: var(--header-height-desktop);
    overflow: hidden;
    isolation: isolate;
    background: #1c3422;
    border-radius: 18px;
}

.site-header__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 48%;
}

.site-header__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(5, 31, 17, 0.62) 0%,
            rgba(5, 31, 17, 0.16) 52%,
            rgba(5, 31, 17, 0.46) 100%
        ),
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.12) 0%,
            rgba(0, 0, 0, 0.01) 52%,
            rgba(0, 0, 0, 0.18) 100%
        );
}

.site-header__content {
    position: relative;
    z-index: 2;
    width: min(1460px, calc(100% - 40px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-top: 18px;
}

.site-header__brand {
    color: var(--header-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.25rem, 2.2vw, 1.7rem);
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.42);
}

.site-header__brand:hover {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: var(--header-accent);
    text-underline-offset: 5px;
}

.site-header__brand:focus-visible {
    border-radius: 4px;
    outline: 3px solid var(--header-accent);
    outline-offset: 5px;
}

.site-header__account {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.site-header__status {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 7px 13px;
    border: 1px solid var(--header-panel-border);
    border-radius: 999px;
    color: var(--header-text);
    background: var(--header-panel);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.site-header__status-dot {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--header-accent);
    box-shadow: 0 0 0 4px rgba(155, 207, 83, 0.17);
}

.site-header__status-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.14;
}

.site-header__status-text strong {
    max-width: 220px;
    overflow: hidden;
    font-size: 0.9rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-header__status-text span {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.74rem;
    font-weight: 500;
}

.site-header__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    color: var(--header-button-text);
    background: var(--header-button-bg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 750;
    transition:
        transform 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease;
}

.site-header__button:hover {
    background: #ffffff;
    box-shadow: 0 13px 34px rgba(0, 0, 0, 0.26);
    transform: translateY(-1px);
}

.site-header__button:focus-visible {
    outline: 3px solid var(--header-accent);
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .site-header {
        height: var(--header-height-tablet);
    }

    .site-header__content {
        width: calc(100% - 28px);
        padding-top: 14px;
    }

    .site-header__status-text strong {
        max-width: 150px;
    }
}

@media (max-width: 640px) {
    .site-header {
        height: var(--header-height-mobile);
    }

    .site-header__content {
        width: calc(100% - 20px);
        padding-top: 10px;
    }

    .site-header__status {
        min-height: 40px;
        padding: 6px 10px;
        gap: 8px;
    }

    .site-header__status-dot {
        width: 7px;
        height: 7px;
        box-shadow: 0 0 0 3px rgba(155, 207, 83, 0.17);
    }

    .site-header__status-text strong {
        max-width: 92px;
        font-size: 0.78rem;
    }

    .site-header__status-text span {
        font-size: 0.66rem;
    }

    .site-header__button {
        min-height: 40px;
        padding: 0 13px;
        font-size: 0.78rem;
    }
}

@media (max-width: 430px) {
    .site-header__status {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header__button {
        transition: none;
    }
}
