:root {
    --bg: #f7fbf7;
    --surface: #ffffff;
    --surface-soft: #e9f9ec;
    --text: #26322b;
    --muted: #69746d;
    --line: #dce9df;
    --green: #39c967;
    --green-dark: #20994a;
    --green-soft: #c8f4d3;
    --shadow: 0 18px 45px rgba(42, 82, 54, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: radial-gradient(circle at top right, #ddf8e2 0, rgba(221, 248, 226, 0) 34rem), var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
    padding-bottom: 5.5rem;
}

body.has-open-modal {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.hero {
    min-height: 21rem;
    padding: 1rem;
    display: flex;
    align-items: stretch;
}

.hero__inner {
    position: relative;
    width: 100%;
    padding: 2rem 1.25rem;
    border-radius: 0 0 2rem 2rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(237, 252, 240, 0.78)),
        radial-gradient(circle at 92% 22%, rgba(57, 201, 103, 0.24), transparent 11rem);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero__inner::after {
    content: "";
    position: absolute;
    right: -3rem;
    bottom: -5rem;
    width: 15rem;
    height: 15rem;
    border: 1.2rem solid rgba(57, 201, 103, 0.16);
    border-radius: 50%;
}

.admin-link {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1;
    padding: 0.45rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.8);
}

.eyebrow {
    margin: 0 0 0.75rem;
    color: var(--green-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.hero h1 {
    position: relative;
    z-index: 1;
    max-width: 13ch;
    margin-bottom: 1rem;
    font-size: clamp(2.1rem, 12vw, 4.5rem);
    line-height: 0.98;
}

.hero__text {
    position: relative;
    z-index: 1;
    max-width: 34rem;
    color: var(--muted);
    font-size: 1rem;
}

.hero__meta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.25rem;
}

.hero__meta span {
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: var(--muted);
    font-size: 0.86rem;
}

.page {
    width: min(72rem, 100%);
    margin: 0 auto;
    padding: 0.85rem 1rem 2rem;
}

.search-panel,
.notice,
.empty-state {
    margin: 1.25rem 0;
    padding: 0.62rem;
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 28px rgba(42, 82, 54, 0.07);
}

#search,
#categories,
#menu,
#info {
    scroll-margin-top: 5.5rem;
}

.search-form label {
    display: block;
    margin-bottom: 0.38rem;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 700;
}

.search-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.42rem;
}

.search-row input {
    min-width: 0;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.58rem 0.85rem;
    color: var(--text);
    font: inherit;
    line-height: 1.15;
    background: #fff;
}

.search-row button {
    border: 0;
    border-radius: 999px;
    padding: 0.46rem 0.82rem;
    color: #fff;
    font: inherit;
    font-weight: 700;
    line-height: 1.1;
    background: var(--green);
    box-shadow: 0 10px 22px rgba(57, 201, 103, 0.25);
}

.category-tabs {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    gap: 0.5rem;
    margin: 1rem -1rem 1.25rem;
    padding: 0.75rem 1rem;
    overflow-x: auto;
    background: rgba(247, 251, 247, 0.94);
    backdrop-filter: blur(14px);
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tabs a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

.category-tabs a.is-active {
    border-color: var(--green);
    color: #fff;
    background: var(--green);
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
}

.nav-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.section-heading {
    margin: 1.5rem 0 1rem;
}

.section-heading h2 {
    margin-bottom: 0.35rem;
    font-size: 1.8rem;
}

.section-heading p:last-child {
    color: var(--muted);
}

.menu-section {
    position: relative;
}

.menu-section.is-loading .dish-grid,
.menu-section.is-loading .empty-state {
    opacity: 0.45;
    transform: scale(0.995);
    transition: opacity 160ms ease, transform 160ms ease;
}

.menu-loader {
    position: absolute;
    inset: 4.8rem 0 auto;
    z-index: 4;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.menu-loader__box {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(57, 201, 103, 0.26);
    border-radius: 999px;
    color: var(--green-dark);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 32px rgba(42, 82, 54, 0.14);
    backdrop-filter: blur(14px);
    font-size: 0.9rem;
    font-weight: 800;
}

.menu-loader__ring {
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid rgba(57, 201, 103, 0.22);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: menu-spin 720ms linear infinite;
}

@keyframes menu-spin {
    to {
        transform: rotate(360deg);
    }
}

.dish-grid {
    display: grid;
    gap: 1rem;
}

.dish-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: var(--surface);
    box-shadow: 0 12px 28px rgba(42, 82, 54, 0.08);
    overflow: hidden;
}

.dish-card.is-hidden-by-search {
    display: none;
}

.dish-card.is-unavailable {
    opacity: 0.62;
}

.dish-card__image {
    position: relative;
    min-height: 0;
    aspect-ratio: 4 / 3;
    background: var(--surface-soft);
}

.dish-card__image img,
.detail-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dish-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 10rem;
    background:
        linear-gradient(135deg, rgba(57, 201, 103, 0.16), rgba(255, 255, 255, 0.5)),
        var(--surface-soft);
}

.dish-placeholder span {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    color: var(--green-dark);
    font-size: 1.5rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.72);
}

.status-badge {
    position: absolute;
    left: 0.55rem;
    bottom: 0.55rem;
    padding: 0.38rem 0.55rem;
    border-radius: 999px;
    color: #fff;
    background: rgba(38, 50, 43, 0.78);
    font-size: 0.75rem;
    font-weight: 700;
}

.dish-card__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1rem;
}

.dish-card__top {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    margin-bottom: 0.45rem;
}

.sku,
.category-name {
    padding: 0.28rem 0.48rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.sku {
    color: var(--green-dark);
    background: var(--green-soft);
}

.category-name {
    color: var(--muted);
    background: #f0f5f1;
}

.dish-card h3 {
    margin-bottom: 0.45rem;
    font-size: 1.2rem;
    line-height: 1.22;
}

.ingredients {
    display: -webkit-box;
    margin-bottom: 0.8rem;
    color: var(--muted);
    font-size: 0.92rem;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dish-card__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.9rem;
}

.dish-fact {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.5rem;
    border-radius: 999px;
    background: #f4f8f5;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.dish-fact .nav-icon {
    width: 0.95rem;
    height: 0.95rem;
    color: var(--green-dark);
}

.dish-fact__text {
    display: inline;
}

.dish-card__footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
}

.dish-card__footer strong {
    color: var(--text);
    font-size: 1.15rem;
}

.dish-card__footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(57, 201, 103, 0.28);
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    box-shadow: 0 10px 20px rgba(57, 201, 103, 0.2);
    font-weight: 700;
    font-size: 0.86rem;
    line-height: 1;
    white-space: nowrap;
}

.dish-card__footer a:hover,
.dish-card__footer a:focus {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(57, 201, 103, 0.28);
}

.info-panel {
    scroll-margin-top: 5.5rem;
    margin: 1.25rem 0 2.5rem;
    padding: 1.1rem;
    border: 1px solid var(--line);
    border-radius: 1.35rem;
    background:
        radial-gradient(circle at top right, rgba(57, 201, 103, 0.16), transparent 11rem),
        rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 28px rgba(42, 82, 54, 0.08);
}

.info-panel h2 {
    margin-bottom: 0.45rem;
    font-size: 1.45rem;
}

.info-panel p {
    color: var(--muted);
}

.info-grid {
    display: grid;
    gap: 0.7rem;
    margin-top: 1rem;
}

.info-grid article {
    display: grid;
    grid-template-columns: 2.35rem 1fr;
    gap: 0.1rem 0.75rem;
    align-items: center;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.72);
}

.info-grid .nav-icon {
    grid-row: span 2;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    color: var(--green-dark);
    background: var(--green-soft);
}

.info-grid .nav-icon svg {
    width: 1.15rem;
    height: 1.15rem;
}

.info-grid span {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.info-grid strong {
    color: var(--text);
    font-size: 0.95rem;
}

.bottom-nav {
    position: fixed;
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.35rem;
    padding: 0.45rem;
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.bottom-nav a {
    display: grid;
    grid-template-rows: 1.25rem auto;
    gap: 0.24rem;
    align-items: center;
    justify-items: center;
    min-height: 3rem;
    border-radius: 0.9rem;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
}

.bottom-nav a.is-active,
.bottom-nav a:focus,
.bottom-nav a:hover {
    color: #fff;
    background: var(--green);
}

.bottom-nav .nav-icon {
    width: 1.2rem;
    height: 1.2rem;
}

.detail-page {
    min-height: 100vh;
    padding-bottom: 0;
}

.dish-detail {
    width: min(54rem, 100%);
    margin: 0 auto;
    padding: 1rem;
}

.back-link {
    display: inline-flex;
    margin-bottom: 1rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--green-dark);
    font-weight: 700;
}

.detail-card {
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.detail-card__image {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--surface-soft);
    overflow: hidden;
}

.detail-placeholder {
    min-height: 18rem;
}

.dish-slider {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    touch-action: pan-y;
}

.dish-slider__track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 260ms ease;
}

.dish-slider__slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    margin: 0;
}

.dish-slider__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dish-slider__button {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 2.45rem;
    height: 2.45rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 50%;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04)),
        rgba(25, 36, 30, 0.38);
    box-shadow: 0 10px 22px rgba(25, 36, 30, 0.22);
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
    transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.dish-slider__button:hover,
.dish-slider__button:focus {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.08)),
        rgba(25, 36, 30, 0.56);
    box-shadow: 0 12px 26px rgba(25, 36, 30, 0.28);
    transform: translateY(-50%) scale(1.04);
}

.dish-slider__button svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dish-slider__button--prev svg {
    transform: translateX(-0.05rem);
}

.dish-slider__button--next svg {
    transform: translateX(0.05rem);
}

.dish-slider__button--prev {
    left: 0.75rem;
}

.dish-slider__button--next {
    right: 0.75rem;
}

.dish-slider__dots {
    position: absolute;
    right: auto;
    bottom: 0.85rem;
    left: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 1.35rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    background: rgba(25, 36, 30, 0.38);
    box-shadow: 0 8px 18px rgba(25, 36, 30, 0.18);
    transform: translateX(-50%);
    backdrop-filter: blur(10px);
}

.dish-slider__dots button {
    width: 0.42rem;
    height: 0.42rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: none;
    cursor: pointer;
}

.dish-slider__dots button.is-active {
    width: 1rem;
    border-radius: 999px;
    background: #fff;
}

.detail-card__body {
    padding: 1.1rem;
}

.detail-card h1 {
    margin-bottom: 0.7rem;
    font-size: 2rem;
    line-height: 1.05;
}

.detail-description {
    color: var(--muted);
}

.dish-props {
    display: grid;
    gap: 0.7rem;
    margin: 1rem 0;
}

.dish-props div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
}

.dish-props dt {
    color: var(--muted);
}

.dish-props dd {
    margin: 0;
    font-weight: 800;
}

.ingredients-block {
    margin-top: 1.25rem;
    padding: 1rem;
    border-radius: 1rem;
    background: var(--surface-soft);
}

.ingredients-block h2 {
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
}

.waiter-note {
    margin: 1.2rem 0 0;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    color: var(--green-dark);
    background: #f1fbf3;
    font-weight: 700;
}

.dish-modal {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: end center;
    padding: 0.75rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.dish-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dish-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 30, 24, 0.5);
    backdrop-filter: blur(12px);
}

.dish-modal__panel {
    position: relative;
    z-index: 1;
    width: min(58rem, 100%);
    max-height: min(92vh, 56rem);
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: 0 24px 70px rgba(20, 30, 24, 0.26);
    overflow: hidden;
    transform: translateY(1rem);
    transition: transform 180ms ease;
}

.dish-modal.is-open .dish-modal__panel {
    transform: translateY(0);
}

.dish-modal__content {
    max-height: min(92vh, 56rem);
    overflow: auto;
}

.dish-modal__content .detail-card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.dish-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 2.45rem;
    height: 2.45rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.06)),
        rgba(25, 36, 30, 0.46);
    box-shadow: 0 10px 22px rgba(25, 36, 30, 0.18);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.dish-modal__close:hover,
.dish-modal__close:focus {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.08)),
        rgba(25, 36, 30, 0.64);
}

.dish-modal__close svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.25;
    stroke-linecap: round;
}

.dish-modal__loader {
    display: grid;
    place-items: center;
    gap: 0.8rem;
    min-height: 22rem;
    color: var(--green-dark);
    background:
        radial-gradient(circle at top right, rgba(57, 201, 103, 0.16), transparent 12rem),
        #fff;
}

.dish-modal__loader .menu-loader__ring {
    width: 2rem;
    height: 2rem;
}

@media (min-width: 720px) {
    body {
        padding-bottom: 2rem;
    }

    .hero {
        min-height: 26rem;
        padding: 1.5rem;
    }

    .hero__inner {
        padding: 4rem;
        border-radius: 0 0 3rem 3rem;
    }

    .page {
        padding: 1.25rem 1.5rem 3rem;
    }

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

    .dish-card {
        display: grid;
        grid-template-columns: 12rem 1fr;
        min-height: 13rem;
    }

    .dish-card__image {
        min-height: 100%;
        aspect-ratio: auto;
    }

    .bottom-nav {
        display: none;
    }

    .info-panel {
        padding: 1.4rem;
    }

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

    .detail-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .dish-modal {
        place-items: center;
        padding: 1.5rem;
    }

    .detail-card__image {
        min-height: 100%;
        aspect-ratio: auto;
    }

    .detail-card__body {
        padding: 2rem;
    }
}

@media (min-width: 1060px) {
    .dish-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dish-card {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .dish-card__image {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .dish-card__body {
        flex: 1;
    }
}
