:root {
    --bg: #f5f5f4;
    --surface: #ffffff;
    --text: #1c1917;
    --text-muted: #78716c;
    --accent: #0d9488;
    --line: #e7e5e4;
    --radius: 14px;
}

* { box-sizing: border-box; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0.5rem;
    z-index: 100;
    padding: 0.5rem 1rem;
    background: var(--text);
    color: var(--surface);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 8px;
    text-decoration: none;
}

.skip-link:focus {
    left: 0.5rem;
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 7rem;
}

body {
    margin: 0;
    min-height: 100dvh;
    position: relative;
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.45;
    color: var(--text);
    background: var(--bg);
}

.d-none { display: none !important; }

.menu-shell {
    max-width: 32rem;
    margin: 0 auto;
    padding: clamp(1rem, 4vw, 1.35rem) clamp(0.85rem, 3vw, 1rem) 2.5rem;
}

.menu-header {
    text-align: center;
    padding: 0.25rem 0 1.15rem;
}

.menu-title {
    margin: 0;
    font-size: clamp(1.35rem, 4.2vw, 1.6rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
}

.menu-toolbar {
    position: sticky;
    top: 0;
    z-index: 60;
    margin: 0;
    padding: 0.35rem 0 0.5rem;
    background: var(--bg);
}

.menu-search-input {
    display: block;
    width: 100%;
    padding: 0.65rem 0.85rem;
    font: inherit;
    font-size: 1rem;
    color: var(--text);
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.menu-search-input::placeholder {
    color: var(--text-muted);
}

.menu-search-input:hover {
    border-color: #d6d3d1;
}

.menu-search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.25);
}

.search-status {
    margin: 0 0 0.5rem;
    min-height: 1.35em;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.menu-nav-link:focus-visible,
.menu-search-input:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.menu-nav-wrap {
    position: sticky;
    top: 4.35rem;
    z-index: 30;
    margin: 0 0 1rem;
    padding: 0.35rem 0 0.65rem;
    background: linear-gradient(to bottom, var(--bg) 70%, rgba(245, 245, 244, 0));
}

.menu-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.45rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.menu-nav::-webkit-scrollbar { display: none; }

.menu-nav-link {
    flex-shrink: 0;
    padding: 0.45rem 0.95rem;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.menu-nav-link:hover {
    color: var(--text);
    border-color: #d6d3d1;
}

.menu-nav-link:active {
    transform: scale(0.98);
}

.menu-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-card {
    scroll-margin-top: 6.2rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04);
    overflow: hidden;
}

.menu-card-title {
    margin: 0;
    padding: 0.85rem 1rem 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #fafaf9 0%, var(--surface) 100%);
}

.menu-list { display: flex; flex-direction: column; }

.menu-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--line);
}

.menu-row:last-child { border-bottom: none; }

.menu-row-name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.01em;
    min-width: 0;
}

.menu-row-price {
    font-size: 0.9375rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--accent);
    white-space: nowrap;
}

.empty-box {
    margin-top: 0.5rem;
    padding: 1rem 1.1rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}
