:root {
    --navy: #2c3e50;
    --navy-dark: #1b2838;
    --green: #153926;
    --price: #e74c3c;
    --bg: #f5f5f5;
    --text: #3a4f66;
    --muted: #666;
    --white: #fff;
    --line: #ddd;
    --header-h: 64px;
    --cats-h: 58px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: "DM Sans", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100dvh;
    -webkit-tap-highlight-color: transparent;
}

body.page-home {
    background: #fff;
}

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

a { color: inherit; }

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
}
.skip-link:focus {
    left: 12px;
    z-index: 2000;
    background: #000;
    color: #fff;
    padding: 8px 12px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 120;
    background: #fff;
}

.page-home .site-header {
    border-bottom: 0;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    min-height: var(--header-h);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.desktop-nav {
    display: none;
    gap: 22px;
    margin-left: auto;
}

.desktop-nav a {
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: .02em;
    color: var(--navy);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

.desktop-nav a.active,
.desktop-nav a:hover {
    border-bottom-color: var(--navy);
}

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

.header-instagram {
    color: var(--navy);
    display: none;
}

.menu-toggle {
    width: 42px;
    height: 42px;
    border: 0;
    background: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    height: 1.7px;
    background: #3a4f66;
    border-radius: 2px;
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 140;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(82vw, 360px);
    height: 100dvh;
    background: var(--green);
    color: #e8eee9;
    z-index: 150;
    padding: 28px 22px calc(28px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .32s ease, visibility .32s ease;
}

.mobile-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
}

.drawer-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 0;
    background: none;
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.drawer-logo {
    margin: 36px 0 28px;
}

.drawer-logo img {
    height: 72px;
    width: auto;
    margin: 0 auto;
    object-fit: contain;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.mobile-nav a {
    text-decoration: none;
    padding: 4px 8px;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255,255,255,.62);
    border: 0;
}

.mobile-nav a.is-current {
    color: #fff;
    font-weight: 700;
}

.drawer-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: auto;
    text-decoration: none;
    color: #fff;
}

.phone-icon {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.phone-text {
    text-align: left;
    line-height: 1.25;
}

.phone-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.phone-text span {
    font-size: 14px;
    font-weight: 400;
}

.drawer-social {
    display: flex;
    margin-top: 36px;
    color: #9aa7b3;
    text-decoration: none;
}

.hero {
    position: relative;
    overflow: hidden;
    background: #111;
    height: auto;
    aspect-ratio: 16 / 9;
}

.hero-track,
.hero-slide {
    height: 100%;
}

.hero-slide {
    display: none;
}

.hero-slide.is-active {
    display: block;
    animation: fade 700ms ease;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes fade {
    from { opacity: .4; }
    to { opacity: 1; }
}

.menu-page {
    max-width: 1200px;
    margin: 0 auto;
}

.menu-top {
    background: var(--bg);
    padding: .8rem 1rem .2rem;
}

.menu-top h1 {
    font-size: 1.5rem;
    color: #000;
    font-weight: 700;
}

.menu-categories {
    padding: .6rem;
    background: var(--bg);
    position: sticky;
    top: var(--header-h);
    z-index: 90;
}

.menu-categories ul {
    list-style: none;
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    padding-bottom: .5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.menu-categories ul::-webkit-scrollbar { height: 4px; }
.menu-categories ul::-webkit-scrollbar-thumb { background: #888; border-radius: 2px; }

.menu-categories a {
    display: inline-block;
    padding: .5rem 1rem;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    white-space: nowrap;
    font-size: .9rem;
    border: 1px solid var(--line);
    transition: all .25s ease;
}

.menu-categories a:hover,
.menu-categories a.active {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

.menu-section {
    padding: 1rem;
    margin-bottom: 1.2rem;
    scroll-margin-top: calc(var(--header-h) + var(--cats-h));
}

.menu-section h2 {
    margin-bottom: 1rem;
    color: var(--navy);
    font-size: 1.3rem;
}

.menu-items {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.menu-item2 {
    background: #fff;
    padding: .8rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    cursor: pointer;
}

.menu-item-content {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.menu-item-content h3 {
    flex: 0 0 100%;
    color: var(--navy);
    font-size: 16px;
    margin-bottom: .8rem;
    text-align: left;
    font-weight: 700;
    line-height: 1.3;
}

.menu-item-content > div {
    flex: 0 0 70%;
    padding-right: 10px;
}

.menu-item-image {
    width: 30%;
    height: auto;
    margin-left: auto;
    border-radius: 8px;
    object-fit: contain;
    object-position: center top;
    background: #f3f3f3;
    align-self: flex-start;
}

.price {
    color: var(--price);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: .3rem;
}

.description {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: flex-end;
}

.popup-overlay.is-open {
    display: flex;
}

.popup-content {
    background: #fff;
    width: 100%;
    max-width: 600px;
    border-radius: 16px 16px 0 0;
    padding: 48px 20px 20px;
    position: relative;
    animation: slideUp .3s ease-out;
    max-height: 92dvh;
    overflow: auto;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #f0f2f5;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--navy);
    z-index: 2;
}

.popup-image {
    width: 100%;
    height: auto;
    max-height: min(52vh, 420px);
    object-fit: contain;
    object-position: center top;
    border-radius: 8px;
    margin-bottom: 16px;
    background: #f3f3f3;
}

.popup-title {
    font-size: 1.3rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.popup-price {
    color: var(--price);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.popup-description {
    color: var(--muted);
    line-height: 1.5;
    font-size: 14px;
}

.popup-thanks {
    margin-top: 16px;
    text-align: center;
    color: var(--navy);
}

.site-footer {
    background: var(--navy);
    color: #fff;
    text-align: center;
    padding: 2rem 1rem 1rem;
    margin-top: 0;
}

.page-home .site-footer {
    background: #fff;
    color: #3a4f66;
    padding: 36px 24px 40px;
}

.footer-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    gap: 28px;
}

.footer-grid h2 {
    font-size: 18px;
    letter-spacing: 2px;
    font-weight: 400;
    margin-bottom: 14px;
}

.footer-grid p,
.footer-grid a {
    font-size: 14px;
    text-decoration: none;
    color: inherit;
    line-height: 1.7;
}

.page-home .footer-contact p {
    margin: 0 auto 2px;
    max-width: 280px;
}

.page-home .footer-brand {
    margin-top: 18px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.footer-brand img {
    width: 150px;
    height: auto;
}

.page-home .footer-instagram {
    color: #3a4f66;
}

.page-home .footer-hours {
    margin-top: 36px;
}

.page-home .footer-hours p {
    margin: 0 auto;
}

.page-home .copyright {
    margin-top: 36px;
    padding-top: 0;
    border: 0;
    font-size: 13px;
    color: #3a4f66;
    opacity: 1;
}

.copyright {
    margin-top: 28px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.12);
    font-size: 13px;
    opacity: .9;
}

@media (min-width: 650px) {
    .menu-items {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 900px) {
    .desktop-nav { display: flex; }
    .menu-toggle { display: none; }
    .header-instagram { display: flex; }
    .header-actions { margin-left: 0; }
    .footer-grid {
        grid-template-columns: 1fr auto 1fr;
        align-items: start;
        text-align: center;
    }
    .page-home .site-footer {
        background: var(--navy);
        color: #fff;
        padding: 2rem 1rem 1rem;
    }
    .page-home .footer-instagram {
        color: #fff;
    }
    .page-home .footer-hours {
        margin-top: 0;
    }
    .page-home .copyright {
        margin-top: 28px;
        padding-top: 14px;
        border-top: 1px solid rgba(255,255,255,.12);
        color: inherit;
        opacity: .9;
    }
    .page-home .footer-contact p {
        max-width: none;
    }
    .popup-image { max-height: min(56vh, 520px); }
    .hero { height: min(78vh, 760px); aspect-ratio: auto; }
}

@media (max-width: 768px) {
    .menu-categories a {
        font-size: .8rem;
        padding: .4rem .8rem;
    }
    .popup-content { padding: 48px 15px 15px; }
    .page-home .site-footer {
        padding-top: 42px;
    }
}
