/* Общая оболочка и компактный футер. Меню работает и на статических серверных страницах. */
body {
    background: var(--graphite);
}
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    padding: 28px var(--space);
    position: relative;
    z-index: 60;
}
.brand {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    color: var(--cream);
    flex-shrink: 0;
}
.brand > span {
    font: 42px var(--serif);
    letter-spacing: 0.18em;
    line-height: 1;
}
.brand small {
    font-size: 8px;
    letter-spacing: 0.44em;
    margin-top: 7px;
}
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 13px;
}
.desktop-nav a {
    padding: 12px 0;
    position: relative;
}
.desktop-nav a.active {
    color: var(--copper);
}
.desktop-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--copper);
}
.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}
.header-book {
    min-height: 44px;
    padding: 10px 24px;
    font-size: 14px;
}
.site-menu summary {
    list-style: none;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--taupe);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    z-index: 102;
}
.site-menu summary::-webkit-details-marker {
    display: none;
}
.menu-close,
.site-menu[open] .menu-open {
    display: none;
}
.site-menu[open] .menu-close {
    display: flex;
}
body:has(.site-menu[open]) {
    overflow: hidden;
}
.menu-panel {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(470px, 100%);
    padding: 125px 48px 40px;
    background:
        linear-gradient(#1d1b18dd, #1d1b1855),
        url('../images/botanical-copper.png') center bottom / cover;
    box-shadow: 0 0 0 100vmax #0008;
    z-index: 100;
    overflow-y: auto;
    min-height: 100dvh;
}
.menu-route {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin: 40px 0;
    border-left: 1px solid var(--copper);
    padding-left: 30px;
}
.menu-route a,
.menu-route button {
    font: 29px var(--serif);
    position: relative;
    background: none;
    border: 0;
    text-align: left;
    padding: 0;
}
.menu-route a::before,
.menu-route button::before {
    content: '';
    position: absolute;
    left: -39px;
    top: 8px;
    width: 16px;
    height: 16px;
    border: 2px solid var(--taupe);
    border-radius: 50%;
    background: var(--graphite);
}
.menu-route .active::before {
    border-color: var(--cream);
    outline: 2px solid var(--copper);
    outline-offset: 3px;
    box-shadow: 0 0 15px var(--copper);
    background: var(--copper);
}
.menu-contacts {
    border-top: 1px solid var(--line);
    padding-top: 24px;
    color: var(--taupe);
    font-size: 14px;
}
.menu-contacts p {
    margin-top: 12px;
}
.demo-strip {
    padding: 5px var(--space);
    color: var(--taupe);
    background: #e8ab7b08;
    font-size: 11px;
    text-align: center;
}
.demo-strip > span {
    font-size: 9px;
    letter-spacing: 0.1em;
    margin-right: 8px;
}
.site-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 24px;
    padding: 16px var(--space);
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--taupe);
}
.site-footer small {
    font-size: 12px;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 18px;
}
.footer-links a,
.footer-links button,
.footer-credit {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
}
.footer-credit {
    margin-left: auto;
    flex-wrap: wrap;
    gap: 4px 10px;
}
.footer-credit strong {
    font-weight: 600;
    color: var(--copper);
}
.footer-credit:hover strong {
    text-decoration: underline;
    text-underline-offset: 4px;
}
.mobile-book {
    display: none;
}
.icon-button {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
}
@media (min-width: 1700px) {
    body {
        max-width: 1680px;
        margin: auto;
        border-inline: 1px solid #ffffff0a;
    }
}
@media (max-width: 1100px) {
    .desktop-nav {
        gap: 14px;
        font-size: 12px;
    }
    .header-actions {
        gap: 12px;
    }
    .site-header {
        gap: 18px;
    }
}
@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }
}
@media (max-width: 760px) {
    :root {
        --space: 22px;
    }
    .site-header {
        padding: 24px 22px 18px;
    }
    .brand > span {
        font-size: 34px;
    }
    .brand small {
        font-size: 7px;
    }
    .header-book {
        display: none;
    }
    .site-menu summary {
        width: 40px;
        height: 40px;
        border: 0;
    }
    .menu-panel {
        padding: 120px 32px 35px;
    }
    .menu-route {
        gap: 32px;
    }
    .demo-strip {
        font-size: 10px;
        line-height: 1.5;
    }
    .mobile-book {
        display: flex;
        position: fixed;
        bottom: max(16px, env(safe-area-inset-bottom));
        left: 22px;
        right: 22px;
        z-index: 45;
        min-height: 50px;
        box-shadow: 0 5px 25px #0007;
    }
    body:has(.booking-page, .reservation-page, .admin-shell, .account-page) .mobile-book {
        display: none;
    }
    .site-footer {
        padding: 18px 22px calc(88px + env(safe-area-inset-bottom));
        gap: 4px 16px;
    }
    body:has(.booking-page, .reservation-page, .admin-shell, .account-page) .site-footer {
        padding-bottom: 22px;
    }
    .footer-credit {
        margin-left: 0;
    }
}
.menu-panel .menu-brand {
    position: absolute;
    left: 48px;
    top: 30px;
}
@media (max-width: 760px) {
    .menu-panel .menu-brand {
        left: 28px;
        top: 24px;
    }
}
