@import url("fonts.css");

/* ==========================================================================
   Bellariva — dizayn tizimi
   Mobil uchun asosiy uslublar yoziladi, kattaroq ekranlar min-width bilan.
   ========================================================================== */

/* 1. Tokenlar --------------------------------------------------------------- */

:root {
    /* Ranglar: iliq krem qog‘oz, qoraga yaqin siyoh, terrakota urg‘u */
    --paper:        #fbf7f1;
    --paper-alt:    #f3ebe0;
    --white:        #ffffff;
    --ink:          #171310;
    --ink-soft:     #2a231e;
    --body:         #574a40;
    --muted:        #8b7b6d;
    --line:         #e6dccf;
    --line-strong:  #d4c6b4;
    --accent:       #9c4722;
    --accent-dark:  #7d3617;
    --accent-soft:  #f0e1d7;
    --forest:       #1e2922;
    --forest-soft:  #2b3a31;

    /* Tipografika */
    --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
    --font-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --step--2: clamp(0.72rem, 0.70rem + 0.08vw, 0.76rem);
    --step--1: clamp(0.82rem, 0.79rem + 0.13vw, 0.88rem);
    --step-0:  clamp(1rem, 0.97rem + 0.16vw, 1.0625rem);
    --step-1:  clamp(1.13rem, 1.07rem + 0.28vw, 1.25rem);
    --step-2:  clamp(1.4rem, 1.25rem + 0.7vw, 1.85rem);
    --step-3:  clamp(1.75rem, 1.45rem + 1.4vw, 2.6rem);
    --step-4:  clamp(2.2rem, 1.6rem + 2.8vw, 3.9rem);
    --step-5:  clamp(2.6rem, 1.7rem + 4.2vw, 5.2rem);

    /* Bo‘shliq va ritm */
    --gutter:     clamp(1.25rem, 5vw, 3rem);
    --section-y:  clamp(3.5rem, 9vw, 7rem);
    --max-width:  1220px;
    --max-text:   62ch;

    --radius-sm: 4px;
    --radius:    8px;
    --radius-lg: 14px;

    --shadow-sm: 0 1px 2px rgba(23, 19, 16, 0.06), 0 2px 8px rgba(23, 19, 16, 0.04);
    --shadow:    0 4px 12px rgba(23, 19, 16, 0.07), 0 12px 32px rgba(23, 19, 16, 0.06);
    --shadow-lg: 0 18px 48px rgba(23, 19, 16, 0.16);

    --header-h: 4.5rem;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 60rem) {
    :root { --header-h: 5.5rem; }
}

/* 2. Reset ------------------------------------------------------------------ */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--body);
    font-family: var(--font-sans);
    font-size: var(--step-0);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: rgba(156, 71, 34, 0.15);
    overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

/* <picture> o'zi quti yasamaydi — shunda ichidagi <img> ga berilgan
   height: 100% bevosita konteyner balandligidan hisoblanadi. */
picture { display: contents; }
img { height: auto; }

/* Brauzerning 700 qalinligi o'rniga 600 — shunda qo'shimcha shrift
   faylini yuklab o'tirmaymiz, qalin matn esa ajralib turaveradi. */
b, strong { font-weight: 600; }

h1, h2, h3, h4 {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

::selection { background: var(--accent); color: var(--white); }

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

/* 3. Layout ----------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container--narrow { max-width: 820px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--alt { background: var(--paper-alt); }
.section--dark { background: var(--forest); color: rgba(255, 255, 255, 0.78); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    padding: 0.75rem 1.25rem;
    background: var(--ink);
    color: var(--white);
}
.skip-link:focus { left: 0; }

/* 4. Sarlavha bloklari ------------------------------------------------------ */

.eyebrow {
    display: block;
    margin-bottom: 1rem;
    color: var(--accent);
    font-family: var(--font-sans);
    font-size: var(--step--2);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.section--dark .eyebrow { color: #d9a883; }

.section-head { max-width: var(--max-text); margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.section-title { font-size: var(--step-3); }
.section-lead {
    margin-top: 1rem;
    font-size: var(--step-1);
    line-height: 1.6;
}

.rule {
    width: 2.5rem;
    height: 1px;
    margin: 1.25rem 0;
    background: var(--line-strong);
    border: 0;
}
.section-head--center .rule { margin-inline: auto; }

/* 5. Tugmalar --------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.75rem 1.6rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: var(--step--1);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
                border-color 0.25s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-dark); }

.btn--outline { border-color: var(--line-strong); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }

.btn--light { border-color: rgba(255, 255, 255, 0.55); color: var(--white); }
.btn--light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.btn--block { width: 100%; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-size: var(--step--1);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.link-arrow svg { transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* 6. Sarlavha paneli (header) ----------------------------------------------- */

.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: var(--header-h);
}

.header__brand {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.header__name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ink);
    transition: color 0.35s var(--ease);
}
.header__tag {
    margin-top: 0.25rem;
    font-size: 0.5625rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.35s var(--ease);
}

@media (min-width: 60rem) {
    .header__name { font-size: 1.75rem; }
    .header__tag { font-size: 0.625rem; }
}

/* Hero ustidagi shaffof holat (faqat bosh sahifada) */
.header--over { background: transparent; }
.header--over::before {
    content: "";
    position: absolute;
    inset: 0 0 -2.5rem;
    background: linear-gradient(to bottom, rgba(10, 8, 6, 0.72), rgba(10, 8, 6, 0));
    pointer-events: none;
}
.header--over .header__name,
.header--over .header__tag,
.header--over .nav__link,
.header--od .nav__link { color: var(--white); }
.header--over .header__tag { color: rgba(255, 255, 255, 0.72); }
.header--over .burger__bar { background: var(--white); }
.header--over .lang__btn { color: rgba(255, 255, 255, 0.8); }
.header--over .lang__btn.is-active { color: var(--white); }
.header--over .header__phone { color: rgba(255, 255, 255, 0.85); }

/* Skroll qilingandan keyingi qattiq holat */
.header--solid {
    background: rgba(251, 247, 241, 0.94);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    box-shadow: 0 1px 0 var(--line);
}
.header--solid::before { opacity: 0; }
.header--solid .header__name { color: var(--ink); }
.header--solid .header__tag { color: var(--muted); }
.header--solid .nav__link { color: var(--ink); }
.header--solid .burger__bar { background: var(--ink); }
.header--solid .lang__btn { color: var(--muted); }
.header--solid .lang__btn.is-active { color: var(--ink); }
.header--solid .header__phone { color: var(--ink); }

/* Ichki sahifalarda header boshidanoq qattiq */
.header--static {
    background: var(--paper);
    box-shadow: 0 1px 0 var(--line);
}

.nav { display: none; }

.header__actions {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1.5rem);
}

.header__phone { display: none; }

.lang {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    font-size: var(--step--2);
    font-weight: 600;
    letter-spacing: 0.08em;
}
.lang__btn {
    padding: 0.4rem 0.35rem;
    color: var(--muted);
    transition: color 0.2s var(--ease);
}
.lang__btn.is-active { color: var(--ink); }
.lang__btn:hover { color: var(--accent); }
.lang__sep { color: var(--line-strong); }

.header__cta { display: none; }

.burger {
    display: grid;
    place-content: center;
    gap: 5px;
    width: 2.75rem;
    height: 2.75rem;
    margin-right: -0.6rem;
}
.burger__bar {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), background-color 0.3s var(--ease);
}
.burger[aria-expanded="true"] .burger__bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bar:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (min-width: 62rem) {
    .burger { display: none; }

    .nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.25rem); }
    .nav__link {
        position: relative;
        padding-block: 0.5rem;
        color: var(--ink);
        font-size: var(--step--1);
        font-weight: 500;
        letter-spacing: 0.02em;
        transition: color 0.25s var(--ease);
    }
    .nav__link::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0.15rem;
        height: 1px;
        background: currentColor;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s var(--ease);
    }
    .nav__link:hover::after,
    .nav__link.is-active::after { transform: scaleX(1); }

    .header__phone {
        display: inline-block;
        font-size: var(--step--1);
        font-weight: 600;
        white-space: nowrap;
    }
    .header__cta { display: inline-flex; min-height: 2.75rem; padding-inline: 1.25rem; }
}

/* 7. Mobil menyu ------------------------------------------------------------ */

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem;
    background: var(--paper);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-1rem);
    transition: opacity 0.3s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }

.mobile-menu__list { display: flex; flex-direction: column; }
.mobile-menu__item + .mobile-menu__item { border-top: 1px solid var(--line); }
.mobile-menu__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 1.05rem;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
}
.mobile-menu__link.is-active { color: var(--accent); }
.mobile-menu__link span { font-family: var(--font-sans); font-size: 0.7rem; color: var(--muted); }

.mobile-menu__foot { margin-top: auto; padding-top: 2.5rem; }
.mobile-menu__phone {
    display: block;
    margin-bottom: 0.35rem;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--ink);
}
.mobile-menu__hours { margin-bottom: 1.5rem; font-size: var(--step--1); color: var(--muted); }

@media (min-width: 62rem) {
    .mobile-menu { display: none; }
}

/* 8. Hero ------------------------------------------------------------------- */

.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 100vh;
    min-height: 100svh;
    padding-bottom: clamp(3rem, 9vw, 5.5rem);
    color: var(--white);
    isolation: isolate;
}

.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* Pardani mobilda kuchliroq qilamiz: vertikal suratlar yorug‘roq bo‘ladi
   va matn ular ustida yo‘qolib ketmasligi kerak. */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to top,
            rgba(10, 8, 6, 0.94) 0%,
            rgba(10, 8, 6, 0.80) 38%,
            rgba(10, 8, 6, 0.50) 68%,
            rgba(10, 8, 6, 0.58) 100%);
}

@media (min-width: 48em) {
    .hero::before {
        background:
            linear-gradient(to top,
                rgba(10, 8, 6, 0.86) 0%,
                rgba(10, 8, 6, 0.55) 35%,
                rgba(10, 8, 6, 0.28) 62%,
                rgba(10, 8, 6, 0.46) 100%);
    }
}

.hero__inner { width: 100%; }
.hero__content { max-width: 40rem; }

.hero__eyebrow {
    display: block;
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: var(--step--2);
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.hero__title {
    color: var(--white);
    font-size: var(--step-5);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.015em;
}

.hero__text {
    max-width: 34rem;
    margin-top: 1.25rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: var(--step-1);
    line-height: 1.6;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}
.hero__actions .btn { flex: 1 1 13rem; }

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.78);
    font-size: var(--step--1);
}
.hero__meta strong { color: var(--white); font-weight: 600; }

@media (min-width: 48rem) {
    .hero__actions .btn { flex: 0 0 auto; min-width: 13rem; }
}

/* 9. Hikoya bloki ----------------------------------------------------------- */

.split {
    display: grid;
    gap: clamp(2rem, 6vw, 4.5rem);
    align-items: center;
}
@media (min-width: 56rem) {
    .split { grid-template-columns: 1fr 1fr; }
    .split--reverse .split__media { order: 2; }
}

.split__media { position: relative; }
.split__media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius);
}
.split__media--wide img { aspect-ratio: 3 / 2; }

.split__badge {
    position: absolute;
    right: clamp(-0.5rem, -1vw, -1.5rem);
    bottom: clamp(1rem, 3vw, 2rem);
    padding: 1rem 1.35rem;
    background: var(--paper);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}
.split__badge strong {
    display: block;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1;
}
.split__badge span {
    font-size: var(--step--2);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.prose { max-width: var(--max-text); }
.prose p + p { margin-top: 0.85em; }

/* 10. Statistik / qadriyat kartochkalari ------------------------------------ */

.values {
    display: grid;
    gap: clamp(1.5rem, 4vw, 2.5rem);
}
@media (min-width: 40rem) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .values { grid-template-columns: repeat(3, 1fr); } }

.value__icon {
    display: grid;
    place-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.1rem;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: var(--accent);
    font-weight: 500;
}
.value__title { margin-bottom: 0.5rem; font-size: var(--step-1); }
.value__text { font-size: var(--step--1); line-height: 1.7; }

/* 11. Menyu ----------------------------------------------------------------- */

.menu-nav {
    position: sticky;
    top: var(--header-h);
    z-index: 40;
    margin-bottom: clamp(2rem, 5vw, 3rem);
    background: rgba(251, 247, 241, 0.95);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.menu-nav__scroll {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x proximity;
    padding-block: 0.7rem;
}
.menu-nav__scroll::-webkit-scrollbar { display: none; }

.menu-nav__link {
    flex: 0 0 auto;
    padding: 0.55rem 1rem;
    border: 1px solid transparent;
    border-radius: 100px;
    color: var(--body);
    font-size: var(--step--1);
    font-weight: 500;
    white-space: nowrap;
    scroll-snap-align: start;
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.menu-nav__link:hover { border-color: var(--line-strong); }
.menu-nav__link.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }

.menu-group + .menu-group { margin-top: clamp(3rem, 7vw, 5rem); }

.menu-group__head { margin-bottom: clamp(1.5rem, 4vw, 2.25rem); }
.menu-group__title { font-size: var(--step-2); }
.menu-group__desc { margin-top: 0.5rem; max-width: var(--max-text); font-size: var(--step--1); color: var(--muted); }

.dish-list { display: grid; gap: 0.25rem; }
@media (min-width: 60rem) {
    .dish-list { grid-template-columns: repeat(2, 1fr); column-gap: clamp(2rem, 4vw, 3.5rem); }
}

.dish {
    display: flex;
    gap: 1rem;
    padding-block: 1.15rem;
    border-bottom: 1px solid var(--line);
}

.dish__thumb {
    flex: 0 0 auto;
    width: 5.25rem;
    height: 5.25rem;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--paper-alt);
}
.dish__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.dish:hover .dish__thumb img { transform: scale(1.06); }

@media (min-width: 40rem) {
    .dish__thumb { width: 6.25rem; height: 6.25rem; }
}

.dish__body { flex: 1 1 auto; min-width: 0; }

.dish__top {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}
.dish__name {
    flex: 1 1 auto;
    font-family: var(--font-display);
    font-size: var(--step-1);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.25;
}
.dish__price {
    flex: 0 0 auto;
    font-size: var(--step--1);
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.dish__price sub {
    font-size: 0.72em;
    font-weight: 500;
    color: var(--muted);
    vertical-align: baseline;
}

.dish__desc {
    margin-top: 0.35rem;
    font-size: var(--step--1);
    line-height: 1.6;
    color: var(--muted);
}

.dish__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.tag {
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
    font-size: var(--step--2);
    font-weight: 500;
    letter-spacing: 0.02em;
}
.tag--veg { background: #e7efe4; color: #3f5c38; }
.tag--spicy { background: #f7e3dc; color: #99412a; }
.tag--serving { color: var(--muted); border: 1px solid var(--line); }

/* Tavsiya etilgan taomlar (bosh sahifa) */
.featured {
    display: grid;
    gap: clamp(1.25rem, 3vw, 2rem);
}
@media (min-width: 40rem) { .featured { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .featured { grid-template-columns: repeat(4, 1fr); } }

.dish-card { display: flex; flex-direction: column; }
.dish-card__media {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--paper-alt);
}
.dish-card__media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.dish-card:hover .dish-card__media img { transform: scale(1.05); }

.dish-card__title {
    margin-top: 0.9rem;
    font-size: var(--step-1);
    font-weight: 600;
}
/* Tavsifni ikki qatorga cheklaymiz — shunda kartochkalar bir tekisda turadi. */
.dish-card__desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0.3rem;
    font-size: var(--step--1);
    color: var(--muted);
}
.dish-card__price {
    margin-top: auto;
    padding-top: 0.5rem;
    font-size: var(--step--1);
    font-weight: 600;
    color: var(--accent);
}

/* 12. Galereya -------------------------------------------------------------- */

.gallery { columns: 2; column-gap: clamp(0.5rem, 2vw, 1rem); }
@media (min-width: 48rem) { .gallery { columns: 3; } }
@media (min-width: 72rem) { .gallery { columns: 4; } }

.gallery__item {
    display: block;
    width: 100%;
    margin-bottom: clamp(0.5rem, 2vw, 1rem);
    break-inside: avoid;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--paper-alt);
}
.gallery__item img { width: 100%; transition: transform 0.6s var(--ease), opacity 0.3s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); opacity: 0.92; }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 4vw, 3rem);
    background: rgba(12, 10, 8, 0.94);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
}
.lightbox__caption {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: var(--step--1);
    text-align: center;
}
.lightbox__btn {
    position: absolute;
    display: grid;
    place-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: background-color 0.2s var(--ease);
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox__btn--close { top: clamp(0.75rem, 2vw, 1.5rem); right: clamp(0.75rem, 2vw, 1.5rem); }
.lightbox__btn--prev { left: clamp(0.5rem, 2vw, 1.5rem); top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: clamp(0.5rem, 2vw, 1.5rem); top: 50%; transform: translateY(-50%); }

/* 13. Zallar (banket) ------------------------------------------------------- */

.halls { display: grid; gap: clamp(1.75rem, 4vw, 2.5rem); }
@media (min-width: 48rem) { .halls { grid-template-columns: repeat(2, 1fr); } }

.hall {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.hall__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hall__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: clamp(1.25rem, 3vw, 1.85rem); }
.hall__title { font-size: var(--step-2); }
.hall__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
    margin: 0.75rem 0 1rem;
    font-size: var(--step--1);
    color: var(--muted);
}
.hall__facts strong { color: var(--ink); font-weight: 600; }
.hall__text { font-size: var(--step--1); line-height: 1.7; }
.hall__foot { margin-top: auto; padding-top: 1.25rem; }

/* 14. Formalar -------------------------------------------------------------- */

/* Stol / banket tanlagichi — forma ustidagi ikki qismli tugma. */
.segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    max-width: 24rem;
    margin: 0.55rem 0 1.5rem;
    padding: 0.3rem;
    background: var(--paper-alt);
    border-radius: var(--radius);
}
.segmented__item {
    padding: 0.7rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--body);
    font-size: var(--step--1);
    font-weight: 500;
    text-align: center;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.segmented__item:hover { color: var(--ink); text-decoration: none; }
.segmented__item.is-active {
    background: var(--white);
    color: var(--ink);
    box-shadow: 0 1px 3px rgba(30, 41, 34, 0.12);
}

.form { display: grid; gap: 1.15rem; }

.form-grid { display: grid; gap: 1.15rem; }
@media (min-width: 40rem) { .form-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 48rem) { .form-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.field { display: flex; flex-direction: column; gap: 0.4rem; }

.field__label {
    font-size: var(--step--1);
    font-weight: 500;
    color: var(--ink);
}
.field__label span { color: var(--accent); }

.field__control {
    width: 100%;
    min-height: 3.25rem;
    padding: 0.8rem 1rem;
    background: var(--white);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    font-size: var(--step-0);
    color: var(--ink);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
    appearance: none;
}
.field__control::placeholder { color: #b3a595; }
.field__control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(156, 71, 34, 0.14);
}
textarea.field__control { min-height: 7rem; resize: vertical; line-height: 1.6; }

select.field__control {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%238b7b6d' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.field--error .field__control { border-color: #c0492c; }
.field__error { font-size: var(--step--1); color: #c0492c; }
.field__hint { font-size: var(--step--2); color: var(--muted); }

.form__note { font-size: var(--step--2); color: var(--muted); line-height: 1.6; }

/* Xabarlar */
.alert {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    border-radius: var(--radius-sm);
    font-size: var(--step--1);
    line-height: 1.6;
}
.alert--success { background: #e7efe4; color: #33502c; }
.alert--error { background: #f8e4de; color: #8e3620; }
.alert--info { background: var(--accent-soft); color: var(--accent-dark); }

/* 15. Kontakt --------------------------------------------------------------- */

.contact-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 56rem) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; } }

/* Telefonda forma birinchi turadi, kontaktlar undan keyin. */
@media (max-width: 55.99rem) {
    .contact-grid--form-first > *:first-child { order: 2; }
}

.info-list { display: grid; gap: 1.5rem; }
.info__label {
    margin-bottom: 0.3rem;
    font-size: var(--step--2);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}
.info__value { font-size: var(--step-1); color: var(--ink); line-height: 1.5; }
.info__value a:hover { color: var(--accent); }

.map {
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 0;
    border-radius: var(--radius);
    background: var(--paper-alt);
}
@media (min-width: 56rem) { .map { aspect-ratio: 16 / 10; } }

/* 16. Chaqiruv bloki (CTA) -------------------------------------------------- */

.cta {
    position: relative;
    padding-block: clamp(4rem, 10vw, 7rem);
    color: var(--white);
    text-align: center;
    isolation: isolate;
}
.cta__media { position: absolute; inset: 0; z-index: -2; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(14, 12, 10, 0.68);
}
.cta__title { color: var(--white); font-size: var(--step-3); }
.cta__text {
    max-width: 34rem;
    margin: 1rem auto 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: var(--step-1);
}
.cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

/* 17. Pastki panel (footer) ------------------------------------------------- */

.footer {
    padding-block: clamp(3rem, 7vw, 4.5rem) 2rem;
    background: var(--forest);
    color: rgba(255, 255, 255, 0.68);
    font-size: var(--step--1);
}

.footer__grid {
    display: grid;
    gap: clamp(2rem, 5vw, 3rem);
    padding-bottom: clamp(2rem, 5vw, 3rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
@media (min-width: 40rem) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; } }

.footer__name {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--white);
}
.footer__about { margin-top: 0.85rem; max-width: 26rem; line-height: 1.7; }

.footer__title {
    margin-bottom: 1rem;
    color: var(--white);
    font-family: var(--font-sans);
    font-size: var(--step--2);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.footer__list { display: grid; gap: 0.6rem; }
.footer__list a { transition: color 0.2s var(--ease); }
.footer__list a:hover { color: var(--white); }

.footer__phone {
    display: block;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
}

.socials { display: flex; gap: 0.6rem; margin-top: 1.1rem; }
.socials a {
    display: grid;
    place-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.socials a:hover { background: var(--white); border-color: var(--white); color: var(--forest); }

.footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1.75rem;
    font-size: var(--step--2);
    color: rgba(255, 255, 255, 0.45);
}
@media (min-width: 48rem) {
    .footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* 18. Sahifa boshi (ichki sahifalar) ---------------------------------------- */

.page-head {
    padding-top: calc(var(--header-h) + clamp(2.5rem, 7vw, 5rem));
    padding-bottom: clamp(2rem, 5vw, 3.5rem);
    background: var(--paper-alt);
}
.page-head__title { font-size: var(--step-4); }
.page-head__lead { margin-top: 1rem; max-width: var(--max-text); font-size: var(--step-1); }

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
    font-size: var(--step--2);
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.breadcrumbs a:hover { color: var(--accent); }

/* 19. Yordamchi sinflar ----------------------------------------------------- */

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

.img-empty { background: var(--paper-alt); aspect-ratio: 4 / 3; }

.text-center { text-align: center; }
.mt-lg { margin-top: clamp(2rem, 5vw, 3rem); }

/* Skroll bilan paydo bo‘lish */
.reveal {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; }
}

/* Chop etish */
@media print {
    .header, .mobile-menu, .footer, .cta, .menu-nav, .hero__actions { display: none !important; }
    body { background: #fff; color: #000; }
    .dish { break-inside: avoid; }
}



/* ---------------------------------------------------------------------------
   Savol-javob
   Mahalliy qidiruv uchun muhim blok: mehmon narx va sig‘im haqidagi
   savoliga sahifadan chiqmasdan javob topadi.
--------------------------------------------------------------------------- */

.faq {
    max-width: 52rem;
    margin: 0 auto;
    border-top: 1px solid var(--line);
}
.faq__item {
    border-bottom: 1px solid var(--line);
}
.faq__q {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.15rem 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: var(--step-1);
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }

/* "+" belgisi ochilganda "–" ga aylanadi */
.faq__q::after {
    content: "";
    flex: none;
    width: 0.85rem;
    height: 0.85rem;
    margin-top: 0.35rem;
    background:
        linear-gradient(var(--accent), var(--accent)) center/100% 1.5px no-repeat,
        linear-gradient(var(--accent), var(--accent)) center/1.5px 100% no-repeat;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.faq__item[open] .faq__q::after {
    background: linear-gradient(var(--accent), var(--accent)) center/100% 1.5px no-repeat;
    transform: rotate(180deg);
}
.faq__q:hover { color: var(--accent); }
.faq__q:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.faq__a {
    max-width: var(--max-text);
    margin: 0;
    padding: 0 0 1.35rem;
    color: var(--body);
    font-size: var(--step-0);
    line-height: 1.7;
}

@media (prefers-reduced-motion: no-preference) {
    .faq__item[open] .faq__a {
        animation: faq-open 0.28s var(--ease) both;
    }
}
@keyframes faq-open {
    from { opacity: 0; transform: translateY(-0.35rem); }
    to   { opacity: 1; transform: none; }
}
