.buffet-page {
    --footer-height: 240px;
    --buffet-ink: #2b2118;
    --buffet-muted: #6b5849;
    --buffet-line: rgba(120, 81, 31, .14);
    --buffet-gold: #c8842d;
    --buffet-gold-deep: #9a5f19;
    --buffet-cream: #fffaf1;
    --buffet-paper: #fffdf8;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: transform .12s ease, filter .12s ease;
}

.btn:hover {
    filter: brightness(1.02);
    transform: translateY(-1px);
}

.buffet-hero .gallery-page-hero-image {
    background:
        linear-gradient(180deg, rgba(17,24,39,.18), rgba(17,24,39,.58)),
        url('../../pildid/restaurant.webp') center/cover no-repeat;
}

.buffet-hero-copy {
    max-width: 44rem;
}

.buffet-hero-copy .cta {
    justify-content: center;
    margin-top: 1.5rem;
}

.buffet-overview {
    padding-top: 1.75rem;
    padding-bottom: 3rem;
}

.buffet-note-card,
.buffet-menu-card {
    padding: 2rem;
    border: 1px solid var(--buffet-line);
    border-radius: 36px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,248,238,.98) 52%, rgba(249,236,213,.98));
    box-shadow:
        0 30px 70px rgba(56, 36, 15, .14),
        inset 0 1px 0 rgba(255,255,255,.92);
}

.buffet-menu-card {
    position: relative;
    overflow: hidden;
    max-width: 1080px;
    margin: 0 auto;
}

.buffet-menu-card::before {
    content: "";
    position: absolute;
    inset: 1rem;
    border-radius: 28px;
    border: 1px solid rgba(200, 132, 45, .16);
    pointer-events: none;
}

.buffet-menu-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0 4.5%, rgba(200,132,45,.035) 4.5% 5%, transparent 5% 95%, rgba(200,132,45,.035) 95% 95.5%, transparent 95.5% 100%);
    pointer-events: none;
}

.buffet-note-card p,
.buffet-menu-card p {
    color: var(--buffet-muted);
    line-height: 1.7;
}

[data-buffet-open],
[data-buffet-closed] {
    position: relative;
    z-index: 1;
}

.buffet-menu-card .section-title,
[data-buffet-closed] .section-title {
    margin: 0;
    color: var(--buffet-ink);
    text-align: center;
    letter-spacing: -.06em;
}

.buffet-menu-card .section-title {
    font-size: clamp(2rem, 4.2vw, 4rem);
    line-height: .96;
    white-space: nowrap;
    margin-inline: auto;
}

.buffet-post {
    margin-top: 1.6rem;
}

.buffet-post ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    align-items: start;
    align-content: start;
}

.buffet-post li {
    position: relative;
    padding: 1rem 1rem 1rem 2.2rem;
    border-radius: 22px;
    border: 1px solid rgba(200, 132, 45, .14);
    background: rgba(255,255,255,.78);
    box-shadow: none;
    color: var(--buffet-ink);
    font-weight: 700;
    line-height: 1.5;
    overflow: hidden;
}

.buffet-post li::before {
    content: "";
    position: absolute;
    left: 1rem;
    top: 1.45rem;
    width: .45rem;
    height: .45rem;
    border-radius: 50%;
    background: var(--buffet-gold-deep);
    box-shadow: none;
}

.buffet-gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(120, 81, 31, .12);
}

.buffet-photo,
.buffet-photo-wide {
    margin: 0;
    grid-column: span 4;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,.78);
    background: var(--buffet-paper);
    box-shadow:
        0 24px 44px rgba(35, 24, 11, .14),
        0 0 0 .45rem rgba(255,251,243,.56);
}

.buffet-photo:nth-child(5n + 1),
.buffet-photo-wide:nth-child(5n + 1) {
    grid-column: span 5;
    aspect-ratio: 5 / 6;
}

.buffet-photo:nth-child(5n + 2),
.buffet-photo-wide:nth-child(5n + 2) {
    grid-column: span 7;
    aspect-ratio: 16 / 10;
}

.buffet-photo:nth-child(5n + 3),
.buffet-photo-wide:nth-child(5n + 3) {
    grid-column: span 4;
}

.buffet-photo:nth-child(5n + 4),
.buffet-photo-wide:nth-child(5n + 4) {
    grid-column: span 4;
}

.buffet-photo:nth-child(5n + 5),
.buffet-photo-wide:nth-child(5n + 5) {
    grid-column: span 4;
}

.buffet-photo img,
.buffet-photo-wide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.buffet-menu-meta {
    margin-top: 1.55rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(120, 81, 31, .14);
    display: flex;
    align-items: center;
    justify-content: center;
}

.buffet-menu-meta strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    min-width: min(100%, 22rem);
    padding: .88rem 1.15rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #2f2418, #4d3822);
    color: #fff8ea;
    font-size: 1rem;
    letter-spacing: .01em;
    box-shadow: 0 18px 34px rgba(48, 33, 17, .18);
}

.buffet-menu-meta strong::before {
    content: "Tänane hind";
    color: rgba(255,248,234,.72);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

[data-buffet-closed] {
    display: grid;
    gap: .8rem;
    justify-items: center;
    padding: 2.25rem 1rem;
}

[data-buffet-closed] .section-kicker {
    margin: 0;
    padding: .5rem .9rem;
    border-radius: 999px;
    background: rgba(47, 36, 24, .06);
    border: 1px solid rgba(47, 36, 24, .08);
    color: #7a5522;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

[data-buffet-closed] .section-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.02;
    max-width: 12ch;
}

@media (max-width: 960px) {
    .buffet-menu-card {
        max-width: 920px;
    }

    .buffet-post ul {
        grid-template-columns: 1fr;
    }

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

    .buffet-photo,
    .buffet-photo-wide,
    .buffet-photo:nth-child(5n + 1),
    .buffet-photo-wide:nth-child(5n + 1),
    .buffet-photo:nth-child(5n + 2),
    .buffet-photo-wide:nth-child(5n + 2),
    .buffet-photo:nth-child(5n + 3),
    .buffet-photo-wide:nth-child(5n + 3),
    .buffet-photo:nth-child(5n + 4),
    .buffet-photo-wide:nth-child(5n + 4),
    .buffet-photo:nth-child(5n + 5),
    .buffet-photo-wide:nth-child(5n + 5) {
        grid-column: auto;
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 640px) {
    .buffet-menu-card,
    .buffet-note-card {
        padding: 1.2rem;
        border-radius: 24px;
    }

    .buffet-menu-card::before {
        inset: .7rem;
        border-radius: 18px;
    }

    .buffet-menu-card .section-title {
        font-size: clamp(1.8rem, 8.4vw, 3rem);
        white-space: normal;
    }

    .buffet-post {
        margin-top: 1.15rem;
    }

    .buffet-post li {
        padding: .95rem .95rem .95rem 2rem;
        border-radius: 18px;
    }

    .buffet-post li::before {
        left: .95rem;
        top: 1.35rem;
        width: .42rem;
        height: .42rem;
    }

    .buffet-gallery-grid {
        grid-template-columns: 1fr;
        gap: .9rem;
    }

    .buffet-menu-meta strong {
        width: 100%;
        min-width: 0;
        flex-wrap: wrap;
    }
}
