.site-header {
    box-sizing: border-box;
    align-self: stretch;
    width: auto;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(180, 191, 184, 0.24);
    background: linear-gradient(180deg, rgba(34, 38, 35, 0.72), rgba(14, 17, 15, 0.60));
    box-shadow:
        inset 0 -1px 0 rgba(0, 0, 0, 0.72),
        0 9px 24px rgba(0, 0, 0, 0.20);
    backdrop-filter: blur(14px);
}

.site-header__title {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    color: #f0f3f1;
    line-height: 1.2;
    text-decoration: none;
    text-shadow:
        0 1px 0 #000,
        0 0 14px rgba(215, 224, 218, 0.12);
}

.site-header__logo {
    display: block;
    width: auto;
    height: 30px;
    transform: translateX(-3px);
    filter: brightness(0) invert(1) drop-shadow(0 1px 0 #000) drop-shadow(0 0 7px rgba(215, 224, 218, 0.12));
}

.site-header__subtitle {
    color: rgba(218, 225, 220, 0.66);
    font-size: 12px;
    font-weight: 700;
}

.site-header__title:focus-visible {
    outline: 2px solid rgba(210, 219, 214, 0.58);
    outline-offset: 4px;
}

.site-footer {
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 28px;
    align-self: stretch;
    width: 100%;
    margin-top: auto;
    padding: 22px 20px calc(22px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(181, 192, 185, 0.18);
    background: rgba(8, 11, 9, 0.30);
    color: rgba(194, 202, 197, 0.48);
    font-size: 12px;
    line-height: 1.5;
}

.site-footer__links {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.site-footer__copyright {
    margin: 0 0 0 auto;
    text-align: right;
}

.site-footer a {
    color: #eef2ef;
    text-underline-offset: 3px;
}

.site-footer a:focus-visible {
    outline: 2px solid rgba(210, 219, 214, 0.58);
    outline-offset: 3px;
}

@media (max-width: 740px), (max-height: 499px) {
    .site-header {
        padding: 14px 20px;
    }

    .site-header__title {
        gap: 7px;
    }

    .site-header__logo {
        height: 24px;
    }

    .site-header__subtitle {
        font-size: 10px;
    }

    .site-footer {
        flex-wrap: nowrap;
        gap: 12px;
        padding-right: 16px;
        padding-left: 16px;
    }

    .site-footer__links,
    .site-footer__copyright {
        white-space: nowrap;
    }
}

@media (max-height: 499px) {
    .site-header {
        padding-top: 8px;
        padding-bottom: 8px;
    }
}
