:root {
    --menu-chata-font-section-title: "Cormorant Garamond", Georgia, serif;
    --menu-chata-font-dish-title: "Cormorant Garamond", Georgia, serif;
    --menu-chata-font-ingredients: "Manrope", "Segoe UI", sans-serif;
    --menu-chata-font-portion: "Manrope", "Segoe UI", sans-serif;
    --menu-chata-ink: #20150f;
    --menu-chata-muted: #6d584b;
    --menu-chata-accent: #c99534;
    --menu-chata-accent-soft: rgba(201, 149, 52, 0.18);
    --menu-chata-section-title-color: #19100b;
    --menu-chata-dish-title-color: #1b120d;
    --menu-chata-ingredients-color: #6b5648;
    --menu-chata-portion-color: #c99534;
    --menu-chata-line: rgba(77, 53, 37, 0.14);
    --menu-chata-surface: rgba(248, 240, 229, 0.9);
    --menu-chata-section-title-size: 2.5rem;
    --menu-chata-dish-title-size: 1.8rem;
    --menu-chata-ingredients-size: 0.98rem;
    --menu-chata-portion-size: 0.96rem;
    --menu-chata-fallback-bg:
        radial-gradient(circle at top, rgba(210, 143, 59, 0.3), rgba(22, 13, 8, 0) 38%),
        linear-gradient(135deg, #1f130d 0%, #2f1c12 42%, #120c08 100%);
}

html {
    height: 100%;
    background: #120c08;
}

body.menu-chata-template {
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background: #120c08;
    color: var(--menu-chata-ink);
    font-family: var(--menu-chata-font-ingredients);
}

.menu-chata-shell {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0 clamp(18px, 2vw, 28px);
    isolation: isolate;
}

.menu-chata-shell::before,
.menu-chata-shell::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.menu-chata-shell::before {
    background-image:
        linear-gradient(180deg, rgba(17, 10, 7, 0.32), rgba(17, 10, 7, 0.64)),
        var(--menu-chata-bg-image, var(--menu-chata-fallback-bg));
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    filter: saturate(1.05) contrast(1.04);
    z-index: -2;
}

.menu-chata-shell::after {
    background:
        linear-gradient(90deg, rgba(14, 10, 8, 0.58) 0%, rgba(14, 10, 8, 0.12) 38%, rgba(14, 10, 8, 0.58) 100%),
        linear-gradient(180deg, rgba(14, 10, 8, 0.08) 0%, rgba(14, 10, 8, 0.58) 100%);
    z-index: -1;
}

.menu-chata-card {
    position: relative;
    width: min(980px, 100%);
    min-height: 100dvh;
    height: auto;
    display: block;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(255, 250, 244, 0.96) 0%, rgba(239, 228, 214, 0.92) 100%);
    box-shadow:
        0 26px 70px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(14px);
}

.menu-chata-topline {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.menu-chata-toolbar {
    display: grid;
    gap: 18px;
    margin-bottom: 26px;
}

.menu-chata-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-left: auto;
    flex-wrap: wrap;
}

.menu-chata-language-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border: 1px solid rgba(32, 21, 15, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
}

.menu-chata-language-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #3a281f;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.menu-chata-language-link:hover,
.menu-chata-language-link:focus-visible,
.menu-chata-language-link.is-active {
    background: var(--menu-chata-accent);
    color: #fff8f1;
    transform: translateY(-1px);
    outline: none;
}

.menu-chata-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #2f2017;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition:
        transform 0.18s ease,
        color 0.18s ease;
}

.menu-chata-back-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(32, 21, 15, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    color: #21140f;
    font-size: 1rem;
    transition:
        transform 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease;
}

.menu-chata-back-label {
    line-height: 1;
}

.menu-chata-back:hover,
.menu-chata-back:focus-visible {
    transform: translateY(-1px);
    color: var(--menu-chata-accent);
    outline: none;
}

.menu-chata-back:hover .menu-chata-back-icon,
.menu-chata-back:focus-visible .menu-chata-back-icon {
    background: var(--menu-chata-accent);
    border-color: var(--menu-chata-accent);
    color: #fff8f1;
    box-shadow: 0 12px 22px rgba(20, 12, 8, 0.18);
    transform: translateX(-2px);
}

.menu-chata-nav {
    padding: 0;
}

.menu-chata-nav-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.menu-chata-nav-link {
    white-space: nowrap;
    padding: 10px 16px;
    border: 1px solid rgba(50, 32, 22, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    color: #35261d;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    transition:
        transform 0.18s ease,
        color 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.menu-chata-nav-link:hover,
.menu-chata-nav-link:focus-visible,
.menu-chata-nav-link.is-active {
    border-color: var(--menu-chata-accent);
    background: var(--menu-chata-accent);
    color: #fff8f1;
    box-shadow: 0 16px 28px rgba(20, 12, 8, 0.22);
    transform: translateY(-1px);
    outline: none;
}

.menu-chata-section-filter {
    margin: 0 0 22px;
    padding: 0 0 6px;
}

.menu-chata-section-filter-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.menu-chata-section-filter-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 10px 16px;
    border: 1px solid rgba(50, 32, 22, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #35261d;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    transition:
        transform 0.18s ease,
        color 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.menu-chata-section-filter-link:hover,
.menu-chata-section-filter-link:focus-visible,
.menu-chata-section-filter-link.is-active {
    border-color: var(--menu-chata-accent);
    background: var(--menu-chata-accent);
    color: #fff8f1;
    box-shadow: 0 12px 22px rgba(20, 12, 8, 0.14);
    transform: translateY(-1px);
    outline: none;
}

.menu-chata-scroll {
    min-height: 100dvh;
    overflow: visible;
    padding: 0;
}

.menu-chata-content {
    min-height: 100dvh;
    padding: clamp(18px, 2.6vw, 28px);
    padding-bottom: clamp(34px, 4vw, 46px);
    display: grid;
    align-content: start;
    gap: 0;
    border: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.menu-chata-content > :first-child {
    margin-top: 0;
}

.menu-chata-content > :last-child {
    margin-bottom: 0;
}

.menu-chata-content h2 {
    margin: 0 0 1rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--menu-chata-accent-soft);
    color: var(--menu-chata-section-title-color);
    font-family: var(--menu-chata-font-section-title);
    font-size: var(--menu-chata-section-title-size);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
}

.menu-chata-section + .menu-chata-section {
    margin-top: clamp(30px, 4vw, 42px);
}

.menu-chata-section {
    scroll-margin-top: 28px;
    padding: clamp(26px, 3.4vw, 38px);
    border: 1px solid rgba(77, 53, 37, 0.12);
    background: rgba(255, 255, 255, 0.56);
    box-shadow: 0 16px 34px rgba(72, 45, 23, 0.06);
}

.menu-chata-dishes {
    display: grid;
}

.menu-chata-dish {
    padding: 1rem 0 1.1rem;
    border-bottom: 1px solid rgba(77, 53, 37, 0.12);
}

.menu-chata-dishes .menu-chata-dish:first-child {
    padding-top: 0.35rem;
}

.menu-chata-dishes .menu-chata-dish:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.menu-chata-dish-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.menu-chata-dish-name {
    margin: 0;
    color: var(--menu-chata-dish-title-color);
    font-family: var(--menu-chata-font-dish-title);
    font-size: var(--menu-chata-dish-title-size);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: none;
}

.menu-chata-dish-portion {
    flex: 0 0 auto;
    color: var(--menu-chata-portion-color);
    font-family: var(--menu-chata-font-portion);
    font-size: var(--menu-chata-portion-size);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: none;
    white-space: nowrap;
}

.menu-chata-dish-ingredients {
    margin: 0.45rem 0 0;
    max-width: 42rem;
    color: var(--menu-chata-ingredients-color);
    font-family: var(--menu-chata-font-ingredients);
    font-size: var(--menu-chata-ingredients-size);
    line-height: 1.72;
}

.menu-chata-placeholder {
    display: grid;
    gap: 12px;
}

.menu-chata-placeholder h2 {
    margin-bottom: 0;
}

.menu-chata-placeholder p {
    margin: 0;
    color: var(--menu-chata-ingredients-color);
    font-size: 1rem;
    line-height: 1.7;
}

.menu-chata-content p {
    margin: 0 0 1rem;
    color: var(--menu-chata-ingredients-color);
    font-family: var(--menu-chata-font-ingredients);
    font-size: var(--menu-chata-ingredients-size);
    line-height: 1.72;
}

.menu-chata-content strong {
    color: #1a100c;
}

.menu-chata-content em {
    color: #6f5039;
}

.menu-chata-content a {
    color: var(--menu-chata-accent);
}

.menu-chata-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.2rem;
    border-left: 4px solid var(--menu-chata-accent);
    background: rgba(255, 255, 255, 0.42);
    color: #413127;
}

.menu-chata-empty {
    display: grid;
    place-items: center;
    gap: 16px;
    height: 100%;
    padding: clamp(24px, 4vw, 48px);
    text-align: center;
}

.menu-chata-empty-label {
    color: var(--menu-chata-accent);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.menu-chata-empty h1 {
    margin: 0;
    color: #1d130e;
    font-family: var(--menu-chata-font-section-title);
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 0.98;
    text-transform: uppercase;
}

.menu-chata-empty p {
    max-width: 34rem;
    margin: 0;
    color: var(--menu-chata-ingredients-color);
    font-family: var(--menu-chata-font-ingredients);
    font-size: 1rem;
    line-height: 1.75;
}

.menu-chata-empty-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    background: #21140f;
    color: #fff8f1;
    text-decoration: none;
    font-weight: 700;
}

.menu-chata-empty-link:hover,
.menu-chata-empty-link:focus-visible {
    background: #3a2419;
    outline: none;
}

@media (max-width: 782px) {
    .menu-chata-shell {
        padding: 0;
    }

    .menu-chata-shell::before {
        background-image: none;
        background: #f4ecdf;
        transform: none;
        filter: none;
    }

    .menu-chata-shell::after {
        background: none;
    }

    .menu-chata-card {
        width: 100%;
        border: 0;
        box-shadow: none;
    }
}

@media (max-width: 640px) {
    body.menu-chata-template {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .menu-chata-card {
        width: 100%;
        min-height: 100dvh;
        height: auto;
        border-radius: 0;
    }

    .menu-chata-topline {
        align-items: flex-start;
    }

    .menu-chata-actions {
        width: 100%;
        justify-content: space-between;
        gap: 14px;
    }

    .menu-chata-language-switch {
        margin-left: auto;
    }

    .menu-chata-toolbar {
        gap: 14px;
        margin-bottom: 18px;
    }

    .menu-chata-section-filter {
        margin: 0 0 18px;
        padding-top: 0;
    }

    .menu-chata-section-filter-link {
        padding: 9px 14px;
        font-size: 0.84rem;
    }

    .menu-chata-back {
        font-size: 0.76rem;
        letter-spacing: 0.14em;
    }

    .menu-chata-back-icon {
        width: 34px;
        height: 34px;
    }

    .menu-chata-content {
        padding: 16px 16px 24px;
        padding-bottom: 30px;
        border-radius: 0;
    }

    .menu-chata-section {
        padding: 22px 18px;
    }

    .menu-chata-content h2 {
        font-size: clamp(1.45rem, var(--menu-chata-section-title-size), 1.75rem);
    }

    .menu-chata-content p,
    .menu-chata-dish-ingredients {
        font-size: clamp(0.95rem, var(--menu-chata-ingredients-size), 1.05rem);
    }

    .menu-chata-dish-portion {
        font-size: clamp(0.82rem, var(--menu-chata-portion-size), 0.98rem);
    }

    .menu-chata-dish-name {
        font-size: clamp(1.22rem, var(--menu-chata-dish-title-size), 1.45rem);
    }

    .menu-chata-dish-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}
