:root {
    color-scheme: light;
    --ink: #20211f;
    --muted: #70716d;
    --paper: #f5f4f0;
    --white: #fff;
    --line: #deded8;
    --red: #c72e25;
    --red-dark: #a9231c;
    --yellow: #f5c748;
    --green: #257a49;
    --green-dark: #1d643b;
    --display: 'Oswald', Impact, sans-serif;
    --body: 'DM Sans', sans-serif;
    font-family: var(--body);
    color: var(--ink);
    background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.hidden { display: none !important; }

.site-header {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-mark {
    display: block;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
    background: var(--white);
    border: 1px solid var(--line);
}
.brand-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.brand-name { font: 700 18px var(--display); letter-spacing: 0; line-height: 1.05; }
.brand-location { color: var(--muted); font-size: 11px; margin-top: 4px; }
.header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 5px;
    background: var(--red);
    color: white;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease, border-color .18s ease;
}
.button:hover { background: var(--red-dark); transform: translateY(-1px); }
.button.secondary { border-color: var(--line); background: var(--white); color: var(--ink); }
.button.secondary:hover { background: #eeede8; }
.button.small { min-height: 36px; padding-inline: 12px; font-size: 12px; }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.button svg { width: 17px; height: 17px; flex: 0 0 auto; }

.button.wa-btn { background: var(--green); color: white; }
.button.wa-btn:hover { background: var(--green-dark); }

.hero {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    min-height: 354px;
    margin: 30px 0 22px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--red);
    color: white;
    animation: enter .55s ease both;
}
.hero-copy { align-self: center; padding: 42px clamp(28px, 5vw, 64px); }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--yellow); }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { max-width: 510px; margin: 17px 0 13px; font: 600 clamp(42px, 5vw, 62px)/.98 var(--display); }
.hero-copy > p { max-width: 410px; margin-bottom: 23px; color: #ffe9e5; font-size: 14px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .button { background: var(--yellow); color: var(--ink); }
.hero .button:hover { background: #ffda65; }
.hero .button.hero-outline {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .4);
    color: white;
}
.hero .button.hero-outline:hover { background: rgba(255, 255, 255, .24); }
.hero-photo { position: relative; min-height: 280px; background: #741b15; }
.hero-photo img { width: 100%; height: 100%; min-height: 354px; display: block; object-fit: cover; object-position: left center; }
.hero-photo::after {
    position: absolute;
    inset: 0;
    content: '';
    background: linear-gradient(90deg, rgba(199, 46, 37, .34), transparent 43%);
    pointer-events: none;
}

.catalog-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 42px 0 19px; }
.section-kicker { margin-bottom: 5px; color: var(--red); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.catalog-head h2 { margin-bottom: 0; font: 600 34px/1.1 var(--display); }
.connection { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.connection::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #d4a43b; flex: 0 0 auto; }
.connection.online::before { background: #3a9b62; }
.connection.error::before { background: var(--red); }

.catalog-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.category-carousel { flex: 1 1 auto; min-width: 0; visibility: visible; }
.category-carousel .splide__track { overflow: hidden; }
.category-list { display: flex; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.category-list .splide__slide { width: max-content; }
.category-carousel:not(.is-initialized) .splide__track { overflow-x: auto; overflow-y: hidden; padding-inline: 16px; scrollbar-width: none; }
.category-carousel:not(.is-initialized) .splide__track::-webkit-scrollbar { display: none; }
.category-carousel:not(.is-initialized) .category-list { width: max-content; gap: 8px; }
.category-button {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.category-button:hover { color: var(--ink); }
.category-button.active { border-color: var(--ink); background: var(--ink); color: white; }

.search-box {
    flex: 0 0 250px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
}
.search-box span { color: var(--muted); font-size: 18px; }
.search-box input { width: 100%; min-width: 0; height: 36px; border: 0; outline: 0; background: transparent; font-size: 13px; }

.menu-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 17px 0 14px;
    color: var(--muted);
    font-size: 12px;
}
.menu-meta-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.menu-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-bottom: 46px; }
.menu-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    animation: enter .35s ease both;
}
.menu-photo { position: relative; aspect-ratio: 1.35; overflow: hidden; background: #e5e1d8; }
.menu-photo img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .3s ease; }
.menu-card:hover .menu-photo img { transform: scale(1.04); }
.menu-photo .photo-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e6d6c0, #f2eee5);
    color: #825b3d;
    font: 600 13px var(--display);
    text-transform: uppercase;
}
.menu-content { display: flex; flex: 1 1 auto; flex-direction: column; padding: 14px; }
.menu-category { margin-bottom: 6px; color: var(--red); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.menu-content h3 { margin-bottom: 6px; font: 600 20px/1.15 var(--display); }
.menu-description { flex: 1 1 auto; margin-bottom: 14px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.menu-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 11px;
    border-top: 1px solid #ecebe6;
}
.menu-price { color: var(--ink); font-size: 16px; font-weight: 700; }

.empty-state {
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    min-height: 210px;
    padding: 26px;
    border: 1px dashed #c8c6be;
    border-radius: 6px;
    text-align: center;
}
.empty-state h3 { margin-bottom: 7px; font: 600 23px var(--display); }
.empty-state p { max-width: 420px; margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.contact-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 5px 0 38px;
    padding: 28px;
    border-left: 4px solid var(--yellow);
    border-radius: 0 6px 6px 0;
    background: #e8e7e1;
}
.contact-copy { max-width: 540px; }
.contact-band h2 { margin-bottom: 6px; font: 600 26px/1.15 var(--display); }
.contact-band p { margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.outlet-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 12px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 500;
}
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

footer { padding: 19px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; }

#toast {
    position: fixed;
    z-index: 10;
    right: 20px;
    bottom: 20px;
    max-width: min(400px, calc(100% - 40px));
    padding: 12px 15px;
    border-radius: 4px;
    background: var(--ink);
    color: white;
    font-size: 12px;
    box-shadow: 0 8px 30px #1113;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: .2s ease;
}
#toast.visible { opacity: 1; transform: translateY(0); }

.skeleton {
    grid-column: 1 / -1;
    min-height: 260px;
    border-radius: 6px;
    background: linear-gradient(100deg, #e9e8e2 30%, #f3f2ee 45%, #e9e8e2 60%);
    background-size: 200% 100%;
    animation: shimmer 1.3s linear infinite;
}

@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { to { background-position-x: -200%; } }

@media (max-width: 850px) {
    .menu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hero { min-height: 320px; }
    .hero-photo img { min-height: 320px; }
    .contact-band { flex-direction: column; align-items: flex-start; }
    .contact-actions { justify-content: flex-start; }
}

@media (max-width: 620px) {
    .wrap { width: min(100% - 28px, 480px); }
    .site-header { height: 66px; }
    .brand-mark { width: 38px; height: 38px; }
    .brand-name { font-size: 16px; }
    .brand-location { font-size: 10px; }
    .header-actions { gap: 6px; }
    .header-actions .button { min-height: 36px; padding-inline: 10px; font-size: 11px; }
    .hero { grid-template-columns: 1fr; margin-top: 18px; }
    .hero-copy { padding: 28px 22px 24px; }
    .hero h1 { max-width: 340px; font-size: 44px; }
    .hero-copy > p { max-width: 340px; font-size: 12px; }
    .hero-photo { min-height: 190px; max-height: 220px; }
    .hero-photo img { min-height: 220px; max-height: 220px; object-position: center 42%; }
    .hero-photo::after { background: linear-gradient(0deg, rgba(199, 46, 37, .22), transparent 65%); }
    .catalog-head { align-items: start; flex-direction: column; margin-top: 30px; gap: 10px; }
    .catalog-head h2 { font-size: 31px; }
    .catalog-tools { align-items: stretch; flex-direction: column-reverse; gap: 10px; }
    .search-box { flex-basis: auto; }
    .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .menu-content { padding: 11px; }
    .menu-content h3 { font-size: 17px; }
    .menu-description { font-size: 11px; margin-bottom: 10px; }
    .menu-price { font-size: 14px; }
    .contact-band { padding: 20px; }
    .contact-actions { width: 100%; }
    .contact-actions .button { flex: 1 1 calc(50% - 5px); min-height: 44px; }
    .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
