/* ==========================================================================
   Zebest platforma sayti (zebest.uz) — 2026-10-03
   Restoran panellari (app.css) bilan bog'liq emas: alohida, mustaqil uslub.
   ========================================================================== */

:root {
    --accent: #E8590C;
    --accent-dark: #C2470A;
    --accent-soft: #FFF0E6;
    --ink: #14161A;
    --ink-2: #3A3F47;
    --muted: #6B7280;
    --line: #ECE6DF;
    --bg: #FFFCF8;
    --bg-alt: #FBF5EE;
    --card: #FFFFFF;
    --ok: #16A34A;
    --warn: #F59E0B;
    --radius: 18px;
    --shadow: 0 1px 2px rgba(20, 22, 26, .04), 0 12px 32px -12px rgba(20, 22, 26, .14);
    --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; }
svg { width: 1em; height: 1em; flex: none; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 24px; border-radius: 12px; border: 1.5px solid transparent;
    font: inherit; font-weight: 700; font-size: 15px; text-decoration: none;
    cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent-soft); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 252, 248, .86);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
    background: var(--accent); color: #fff; font-weight: 800; font-size: 18px;
}
.logo-text { font-weight: 800; font-size: 20px; color: var(--ink); letter-spacing: -.02em; }
.nav { display: flex; gap: 28px; margin-left: 16px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.nav a:hover { color: var(--accent); }
.nav-cta-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.lang { position: relative; }
.lang summary {
    list-style: none; display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 10px; border-radius: 10px; cursor: pointer;
    font-weight: 700; font-size: 13px; color: var(--ink-2);
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { background: var(--bg-alt); }
.lang summary svg { width: 18px; height: 18px; }
.lang-panel {
    position: absolute; right: 0; top: calc(100% + 6px); min-width: 190px;
    background: var(--card); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: var(--shadow); padding: 6px;
}
.lang-panel form { margin: 0; }
.lang-panel button {
    display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; border-radius: 9px;
    background: none; font: inherit; font-size: 14px; color: var(--ink-2); cursor: pointer;
}
.lang-panel button:hover { background: var(--bg-alt); }
.lang-panel button.is-active { color: var(--accent); font-weight: 700; }

.nav-toggle {
    display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer;
    flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.is-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.is-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
    display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 14px;
}
.hero h1 { font-size: clamp(36px, 5.2vw, 58px); font-weight: 800; margin-bottom: 20px; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 28px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.hero-points svg { color: var(--ok); width: 18px; height: 18px; }

.hero-visual { position: relative; min-height: 420px; }
.hero-visual::before {
    content: ""; position: absolute; inset: 8% -20% -10% 8%; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(232, 89, 12, .16), transparent);
    z-index: -1;
}
.mock-board {
    background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
    padding: 16px; width: 100%; max-width: 520px;
}
.mock-top { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.mock-top .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-url {
    margin-left: 10px; padding: 4px 12px; border-radius: 8px; background: var(--bg-alt);
    font-size: 12px; font-weight: 600; color: var(--muted);
}
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.mock-stats div { background: var(--bg-alt); border-radius: 12px; padding: 10px 12px; }
.mock-stats small, .mock-col small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.mock-stats strong { font-size: 17px; color: var(--ink); }
.mock-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-col { background: var(--bg); border-radius: 12px; padding: 10px; min-height: 150px; }
.mock-col small { margin-bottom: 8px; }
.mock-card {
    display: flex; justify-content: space-between; align-items: center; gap: 6px;
    background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent);
    border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; font-size: 12px;
}
.mock-card b { color: var(--ink); }
.mock-card span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-card.is-cook { border-left-color: var(--warn); }
.mock-card.is-ready { border-left-color: var(--ok); }
.mock-phone {
    position: absolute; right: 0; bottom: -10px; width: 200px;
    background: var(--ink); border-radius: 28px; padding: 14px 12px 16px;
    box-shadow: 0 24px 48px -16px rgba(20, 22, 26, .45);
}
.mock-phone-head { color: #fff; font-weight: 800; font-size: 14px; padding: 4px 6px 10px; }
.mock-dish {
    display: flex; align-items: center; gap: 8px; background: #23262C; border-radius: 12px;
    padding: 8px; margin-bottom: 7px; font-size: 12px; color: #D1D5DB;
}
.mock-dish i { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, #F59E0B, var(--accent)); }
.mock-dish span { flex: 1; }
.mock-dish b { color: #fff; white-space: nowrap; }
.mock-phone-btn {
    margin-top: 10px; background: var(--accent); color: #fff; text-align: center;
    border-radius: 12px; padding: 9px; font-weight: 700; font-size: 13px;
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; margin-bottom: 14px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 17px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px 22px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.feature-icon {
    display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
    background: var(--accent-soft); color: var(--accent); margin-bottom: 18px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--muted); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.step { background: var(--card); border-radius: var(--radius); padding: 30px 26px; border: 1px solid var(--line); }
.step-num {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 18px;
}
.step h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }
.step b { color: var(--ink); }

.roles { margin-top: 64px; text-align: center; }
.roles h3 { font-size: 22px; font-weight: 800; margin-bottom: 24px; }
.role-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.role-list li {
    display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
    background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 10px;
}
.role-list svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 6px; }
.role-list b { color: var(--ink); font-size: 15px; }
.role-list span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: stretch; }
.plan {
    position: relative; display: flex; flex-direction: column;
    background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 32px 28px;
}
.plan.is-featured { border: 2px solid var(--accent); box-shadow: 0 24px 48px -24px rgba(232, 89, 12, .45); }
.plan-badge {
    position: absolute; top: -13px; left: 28px; background: var(--accent); color: #fff;
    font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px;
}
.plan h3 { font-size: 22px; font-weight: 800; }
.plan-tagline { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin: 22px 0; flex-wrap: wrap; }
.plan-price strong { font-size: 34px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.plan-price .plan-price-ask { font-size: 24px; }
.plan-price span { color: var(--muted); font-weight: 600; font-size: 14px; }
.plan-features { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 15px; }
.plan-features svg { color: var(--ok); width: 18px; height: 18px; margin-top: 3px; }

/* ---------- FAQ ---------- */
.faq details {
    background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px;
    padding: 0 22px;
}
.faq summary {
    list-style: none; cursor: pointer; padding: 20px 32px 20px 0; position: relative;
    font-weight: 700; color: var(--ink); font-size: 16.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    font-size: 24px; font-weight: 500; color: var(--accent); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); }

/* ---------- Demo ---------- */
.demo-section { background: var(--ink); color: #C9CDD3; }
.demo-section h2 { color: #fff; font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; margin-bottom: 16px; }
.demo-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.demo-copy > p:not(.eyebrow) { font-size: 17px; }
.contacts { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.contacts li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.contacts svg { width: 20px; height: 20px; color: var(--accent); }
.contacts a { color: #fff; text-decoration: none; }
.contacts a:hover { text-decoration: underline; }

.demo-card { background: var(--card); color: var(--ink-2); border-radius: 22px; padding: 32px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.demo-form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 700; color: var(--ink); padding: 0; margin-bottom: 0; }
.field legend { margin-bottom: 6px; }
.req { color: var(--accent); }
.field input, .field textarea {
    width: 100%; font: inherit; font-size: 15px; color: var(--ink);
    padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg);
    transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: #fff; }
.has-error input, .has-error textarea { border-color: #DC2626; }
.field-error { color: #DC2626; font-size: 13px; font-weight: 600; }
.form-alert { background: #FEF2F2; color: #B91C1C; border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: 14px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
    display: inline-block; min-width: 64px; text-align: center; padding: 10px 18px;
    border: 1.5px solid var(--line); border-radius: 12px; font-weight: 700; color: var(--ink-2);
    transition: all .15s;
}
.chip input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px var(--accent-soft); }
.form-note { font-size: 13px; color: var(--muted); text-align: center; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.demo-success { text-align: center; padding: 24px 8px; }
.demo-success-icon {
    display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
    background: #DCFCE7; color: var(--ok); margin-bottom: 18px;
}
.demo-success-icon svg { width: 32px; height: 32px; }
.demo-success h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.demo-success p { color: var(--muted); margin-bottom: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: #0C0D10; color: #8B9099; padding: 48px 0 28px; font-size: 14px; }
.footer-row { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.logo-light .logo-text { color: #fff; }
.site-footer .logo { margin-bottom: 10px; }
.footer-staff { text-align: right; }
.footer-staff p:first-child { color: #fff; font-weight: 700; margin-bottom: 4px; }
.footer-staff b { color: #fff; }
.footer-bottom { border-top: 1px solid #22252B; margin-top: 32px; padding-top: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .features { grid-template-columns: repeat(2, 1fr); }
    .role-list { grid-template-columns: repeat(3, 1fr); }
    .hero-grid, .demo-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-visual { max-width: 560px; }
}
@media (max-width: 860px) {
    .nav {
        display: none; position: absolute; top: 68px; left: 0; right: 0;
        flex-direction: column; gap: 0; margin: 0; padding: 8px 20px 20px;
        background: var(--bg); border-bottom: 1px solid var(--line);
    }
    .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
    .nav .nav-cta-mobile { display: block; color: var(--accent); border-bottom: 0; }
    .is-open .nav { display: flex; }
    .nav-toggle { display: flex; }
    .header-cta { display: none; }
}
@media (max-width: 640px) {
    .wrap { padding: 0 16px; }
    .hero { padding: 36px 0 64px; }
    .lead { font-size: 16.5px; }
    .hero-actions .btn { flex: 1 1 100%; }
    .hero-visual { min-height: 0; padding-bottom: 150px; }
    .mock-phone { width: 170px; right: 4px; bottom: 0; }
    .mock-stats div { padding: 8px 9px; }
    .mock-stats strong { font-size: 13px; white-space: nowrap; }
    .mock-stats small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mock-cols { grid-template-columns: 1fr 1fr; }
    .mock-col:last-child { display: none; }
    .section { padding: 64px 0; }
    .section-head { margin-bottom: 36px; }
    .features, .steps { grid-template-columns: 1fr; }
    .role-list { grid-template-columns: repeat(2, 1fr); }
    .field-row { grid-template-columns: 1fr; }
    .demo-card { padding: 24px 18px; }
    .footer-staff { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
