:root {
    --ink: #000;
    --cream: #f4f2ed;
    --sand: #f5dab6;
    --brown: #803c21;
    --wine: #32030e;
    --peach: #ffd0ad;
    --font: 'Montserrat', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--cream);
    color: var(--wine);
    font-family: var(--font);
    animation: fade-in .5s ease-out both;
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    body { animation: none; }
}

img { max-width: 100%; }

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

/* ---- Welcome (language choice) ---- */
.welcome {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-color: var(--ink);
}
.welcome-logo { width: 150px; margin-bottom: 20px; }
.welcome-langs {
    display: flex;
    gap: 16px;
    width: 100%;
    max-width: 480px;
}
.welcome-langs a {
    flex: 1;
    padding: 10px 15px;
    border-radius: 15px;
    background: var(--brown);
    color: #fdf6cb;
    font-size: 19px;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform .15s, background-color .15s;
}
.welcome-langs a:hover, .welcome-langs a:focus-visible { background: #6a2f18; transform: translateY(-2px); }

/* ---- Header ---- */
.band {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 60px;
    padding: 0 12px;
    background: var(--ink);
}
.socials { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.socials a, .band-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--peach);
    border-radius: 50%;
}
.socials svg, .band-back svg { width: 20px; height: 20px; fill: currentColor; }
.socials a:hover, .band-back:hover { background: rgba(255, 208, 173, .15); }
.lang-switch { margin-left: auto; display: flex; gap: 4px; }
.lang-switch a {
    padding: 4px 8px;
    border-radius: 6px;
    color: var(--peach);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    opacity: .6;
}
.lang-switch a[aria-current] { opacity: 1; background: rgba(255, 208, 173, .15); }

.ribbon {
    position: relative;
    display: flex;
    justify-content: center;
    height: 15px;
    background: var(--sand);
}
.ribbon-logo {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 100px;
    margin-top: -42px;
    background: var(--ink);
    border: 4px solid var(--sand);
    border-radius: 20%;
}
.ribbon-logo img { width: 65%; }

/* ---- Menu list ---- */
.categories {
    max-width: 720px;
    margin: 75px auto 40px;
    padding: 0 20px;
}
.category {
    display: block;
    margin-bottom: 20px;
    padding: 35px 15px;
    background: var(--sand);
    color: var(--brown);
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
    transition: transform .15s, box-shadow .15s;
}
.category:hover, .category:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
}
.empty, .notfound-title { text-align: center; color: var(--brown); }
.notfound-title { margin-bottom: 30px; }

/* ---- Pop-up ---- */
.popup {
    width: min(800px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: #fff;
    overflow: auto;
}
.popup::backdrop { background: rgba(0, 0, 0, .5); }
.popup img { display: block; width: 100%; }
.popup form { position: sticky; top: 0; height: 0; text-align: right; }
.popup-close {
    width: 40px;
    height: 40px;
    margin: 6px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

/* ---- Menu viewer ---- */
.viewer { margin-top: 35px; padding-bottom: 30px; }
.menu-swiper { width: 100%; }
.menu-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.menu-swiper .swiper-slide img { display: block; width: 50%; object-fit: cover; }
.menu-swiper .swiper-button-prev,
.menu-swiper .swiper-button-next {
    position: fixed;
    top: 50vh;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .8);
    color: var(--wine);
    --swiper-navigation-size: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
/* Phone set below 768px, computer set from 768px (same breakpoint in site.js). */
.menu-set-desktop { display: none; }
@media (min-width: 768px) {
    .menu-set-mobile { display: none; }
    .menu-set-desktop { display: block; }
}

.viewer-counter { margin: 12px 0 0; text-align: center; font-weight: 600; color: var(--brown); }

@media (max-width: 600px) {
    .menu-swiper .swiper-slide img { width: 90%; }
    .menu-swiper .swiper-button-prev,
    .menu-swiper .swiper-button-next { width: 36px; height: 36px; --swiper-navigation-size: 18px; }
}
