.site-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-actions a,
.search-button,
.profile-button {
    color: inherit;
}

.site-actions a {
    color: var(--muted, rgba(255, 250, 241, 0.8));
    font-size: 14px;
    line-height: 1;
    transition: color 0.22s ease;
}

.site-actions a:hover {
    color: var(--text, #fffaf1);
}

.search-button,
.profile-button {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 40px;
    min-width: 40px;
    height: 40px;
    border: 1px solid var(--line, rgba(255, 255, 255, 0.2));
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    padding: 0;
    cursor: pointer;
    transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.search-button:hover,
.profile-button:hover {
    border-color: rgba(233, 223, 204, 0.52);
    background: rgba(233, 223, 204, 0.1);
}

.search-button::before {
    content: "";
    width: 14px;
    height: 14px;
    border: 1.6px solid currentColor;
    border-radius: 999px;
    box-shadow: 8px 8px 0 -6px currentColor;
    transform: translate(-1px, -1px);
}

.profile-button span,
.profile-button span::after {
    display: block;
    border: 1.7px solid currentColor;
}

.profile-button span {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    transform: translateY(-5px);
}

.profile-button span::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 13px;
    width: 20px;
    height: 10px;
    border-radius: 12px 12px 4px 4px;
    transform: translateX(-50%);
}

.profile-root {
    position: relative;
}

.profile-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 30;
    width: min(320px, calc(100vw - 32px));
    border: 1px solid var(--line, rgba(255, 255, 255, 0.2));
    border-radius: 8px;
    background: #211b16;
    color: #ebe4d8;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.profile-root.open .profile-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.profile-form,
.profile-panel {
    display: grid;
    gap: 12px;
}

.profile-form p,
.profile-panel p {
    margin: 0;
    color: #c8bca9;
    line-height: 1.45;
}

.profile-form input {
    width: 100%;
    border: 1px solid rgba(235, 228, 216, 0.22);
    border-radius: 8px;
    background: #2b251f;
    color: #ebe4d8;
    padding: 12px;
    font: inherit;
}

.profile-form button,
.profile-panel button {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    background: #e9dfcc;
    color: #2b251f;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.profile-panel a {
    border-top: 1px solid rgba(235, 228, 216, 0.16);
    padding-top: 10px;
    color: #ebe4d8;
}

.search-panel {
    position: fixed;
    inset: 0 0 auto;
    z-index: 80;
    display: grid;
    gap: 16px;
    border-bottom: 1px solid rgba(235, 228, 216, 0.22);
    background: rgba(33, 27, 22, 0.98);
    color: #ebe4d8;
    padding: 28px clamp(20px, 5vw, 72px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.search-panel.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.search-panel label {
    display: grid;
    gap: 10px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.search-panel input {
    max-width: 720px;
    border: 1px solid rgba(235, 228, 216, 0.22);
    border-radius: 8px;
    background: #2b251f;
    color: #ebe4d8;
    padding: 14px;
    font: inherit;
    text-transform: none;
}

.search-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(235, 228, 216, 0.22);
    border-radius: 999px;
    background: transparent;
    color: #ebe4d8;
    font: inherit;
    cursor: pointer;
}

.search-results {
    display: grid;
    gap: 8px;
    max-width: 720px;
}

.search-results a,
.social-link {
    border: 1px solid var(--line, rgba(235, 228, 216, 0.22));
    border-radius: 8px;
    padding: 12px 14px;
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.search-results a:hover,
.social-link:hover {
    background: #e9dfcc;
    color: #2b251f;
    transform: translateY(-2px);
}

.site-footer {
    border-top: 1px solid var(--line, rgba(235, 228, 216, 0.22));
    padding: 24px clamp(20px, 5vw, 72px);
    color: var(--muted, #c8bca9);
}

.social-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.social-link {
    display: grid;
    gap: 10px;
    min-height: 112px;
    align-content: space-between;
    background: rgba(233, 223, 204, 0.05);
}

.social-link span {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #e9dfcc;
    color: #2b251f;
    font-size: 12px;
    font-weight: 900;
}

.social-link strong {
    font-size: 17px;
}

.qr-card {
    display: grid;
    justify-items: center;
    gap: 12px;
    border: 1px solid var(--line, rgba(235, 228, 216, 0.22));
    border-radius: 8px;
    background: rgba(233, 223, 204, 0.05);
    padding: 16px;
    text-align: center;
    transition: transform 0.22s ease, background 0.22s ease;
}

.qr-card:hover {
    background: rgba(233, 223, 204, 0.08);
    transform: translateY(-3px);
}

.fake-qr {
    width: 92px;
    aspect-ratio: 1;
    border: 8px solid #e9dfcc;
    background:
        linear-gradient(90deg, #2b251f 10px, transparent 0) 0 0 / 20px 20px,
        linear-gradient(#2b251f 10px, transparent 0) 0 0 / 20px 20px,
        #e9dfcc;
}

.qr-copy {
    display: grid;
    gap: 4px;
}

.qr-copy strong {
    font-size: 18px;
}

.app-qr-description {
    margin: 0;
    color: var(--muted, #c8bca9);
    line-height: 1.45;
}

.qr-grid-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mobile-catalog-toggle,
.mobile-catalog-overlay {
    display: none;
}

.booking-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    background: rgba(16, 13, 10, 0.72);
    padding: 18px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.booking-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.booking-card {
    position: relative;
    width: min(620px, 100%);
    max-height: min(760px, calc(100vh - 36px));
    overflow-y: auto;
    border: 1px solid rgba(235, 228, 216, 0.22);
    border-radius: 8px;
    background: #211b16;
    color: #ebe4d8;
    padding: 24px;
}

.booking-card h2 {
    margin: 0 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 400;
}

.booking-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(235, 228, 216, 0.22);
    border-radius: 999px;
    background: transparent;
    color: #ebe4d8;
    font: inherit;
    cursor: pointer;
}

.booking-options,
.profile-list {
    display: grid;
    gap: 10px;
}

.booking-option,
.profile-booking {
    display: grid;
    gap: 6px;
    border: 1px solid rgba(235, 228, 216, 0.18);
    border-radius: 8px;
    background: rgba(233, 223, 204, 0.05);
    padding: 14px;
}

.booking-option {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    cursor: pointer;
}

.booking-option small {
    grid-column: 2;
    color: #c8bca9;
}

.booking-field {
    display: grid;
    gap: 8px;
    color: #c8bca9;
}

.booking-field input {
    border: 1px solid rgba(235, 228, 216, 0.22);
    border-radius: 8px;
    background: #2b251f;
    color: #ebe4d8;
    padding: 12px;
    font: inherit;
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 16px 0;
}

.slot-grid button,
.booking-primary,
.profile-booking button {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    background: #e9dfcc;
    color: #2b251f;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.slot-grid button.busy {
    background: rgba(235, 228, 216, 0.12);
    color: rgba(235, 228, 216, 0.42);
    cursor: not-allowed;
}

.slot-grid button.active {
    outline: 2px solid #ffffff;
}

.booking-primary {
    width: 100%;
    margin-top: 16px;
}

.booking-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.booking-note {
    display: grid;
    gap: 10px;
    color: #c8bca9;
    line-height: 1.55;
}

.booking-note p {
    margin: 0;
}

.profile-booking span {
    color: #c8bca9;
}

.profile-qr-title {
    text-align: center;
}

.profile-qr-box {
    display: grid;
    justify-items: center;
    gap: 12px;
    text-align: center;
}

.profile-qr-image {
    width: min(282px, 78vw);
    aspect-ratio: 1;
    border: 1px solid rgba(235, 228, 216, 0.22);
    border-radius: 8px;
    background: #f8f1e5;
    padding: 0;
    overflow: hidden;
}

.profile-qr-image svg {
    display: block;
    width: 100%;
    height: 100%;
}

.profile-qr-box span {
    min-width: 86px;
    border: 1px solid rgba(235, 228, 216, 0.22);
    border-radius: 999px;
    padding: 8px 14px;
    color: #f5efe4;
    font-weight: 700;
}

.profile-qr-success {
    display: grid;
    justify-items: center;
    gap: 16px;
    padding: 24px 0;
    text-align: center;
}

.profile-qr-success span {
    position: relative;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: #e7dbc7;
    animation: qr-success-pop 0.45s ease both;
}

.profile-qr-success span::after {
    content: "";
    position: absolute;
    left: 27px;
    top: 20px;
    width: 24px;
    height: 39px;
    border: solid #211b16;
    border-width: 0 7px 7px 0;
    transform: rotate(45deg);
}

.profile-qr-success strong {
    color: #f5efe4;
    font-size: 24px;
}

@keyframes qr-success-pop {
    from {
        transform: scale(0.75);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 860px) {
    body.mobile-catalog-open {
        overflow: hidden;
    }

    .topline {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 10px;
        padding: 12px 14px;
    }

    .brand {
        align-self: center;
    }

    .site-actions {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: flex-end;
        margin-left: 0;
        gap: 8px;
    }

    .site-actions a {
        display: inline-flex;
        align-items: center;
        min-height: 34px;
        border: 1px solid var(--line, rgba(235, 228, 216, 0.22));
        border-radius: 999px;
        padding: 0 11px;
        font-size: 13px;
    }

    .search-button,
    .profile-button {
        width: 36px;
        min-width: 36px;
        height: 36px;
    }

    .mobile-catalog-toggle {
        display: inline-grid;
        place-items: center;
        width: 40px;
        height: 40px;
        border: 1px solid var(--line, rgba(235, 228, 216, 0.22));
        border-radius: 999px;
        background: rgba(233, 223, 204, 0.06);
        color: inherit;
        padding: 0;
        z-index: 45;
    }

    .mobile-catalog-toggle span {
        width: 18px;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
        box-shadow: 0 -6px currentColor, 0 6px currentColor;
    }

    .category-nav {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 40;
        display: block;
        width: min(320px, 86vw);
        padding: 82px 18px 24px;
        border-right: 1px solid var(--line, rgba(235, 228, 216, 0.22));
        background: #211b16;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.24s ease;
    }

    body.mobile-catalog-open .category-nav {
        transform: translateX(0);
    }

    body.mobile-catalog-open .mobile-catalog-overlay {
        display: block;
    }

    .mobile-catalog-overlay {
        position: fixed;
        inset: 0;
        z-index: 35;
        background: rgba(16, 13, 10, 0.56);
    }

    .nav-item {
        border-bottom: 1px solid rgba(235, 228, 216, 0.14);
        padding: 14px 0;
    }

    .nav-dropdown {
        position: static;
        display: grid;
        min-width: 0;
        border: 0;
        background: transparent;
        padding: 8px 0 0 12px;
    }

    .nav-dropdown a {
        padding: 7px 0;
        font-size: 14px;
    }

    .profile-menu {
        position: fixed;
        top: 110px;
        right: 14px;
    }

    .social-links,
    .qr-grid {
        grid-template-columns: 1fr;
    }

    .social-link {
        min-height: 82px;
    }

    .fake-qr {
        width: 82px;
    }

    .slot-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
