/* ============================================================
   ASL FOOD — asos: ranglar, tipografika, umumiy qoidalar
   ============================================================ */

/* --- Shrift: Inter -------------------------------------------------------
   Avval sayt 'Inter' ni SO'RARDI, lekin uni yuklamasdi. Natijada
   kompyuterda (Inter o'rnatilgan bo'lsa) bir xil, telefonda esa tizim
   shriftida — butunlay boshqacha ko'rinardi. Telefondagi kengroq shrift
   sabab "ASL FOOD" gigant yozuvi ham sig'may, "A" harfi kesilardi.

   Endi shrift LOYIHANING O'ZIDA (public/fonts). Tashqi manbadan
   yuklanmaydi — CSP `default-src 'self'` shunga ham to'sqinlik qilardi,
   ustiga tashqi xizmatga bog'liqlik ham yo'qoladi.

   O'ZGARUVCHAN shrift tanlandi: saytda 550, 650, 750 kabi oraliq
   qalinliklar ishlatilgan, ularni oddiy (statik) shrift bera olmaydi.

   Faqat kerakli belgilar olingan (jami ~174 KB): lotin, kengaytirilgan
   lotin, kirill va kengaytirilgan kirill (o'zbek kirillidagi қ, ғ, ҳ
   hamda 359 ta kirill nomli mahsulot uchun). Yunon va vetnam qismlari
   olinmadi.

   Inter — SIL Open Font License 1.1 (rasm.me/inter). */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    /* swap — shrift yuklanguncha matn tizim shriftida ko'rinadi, ya'ni
       sekin internetda sahifa bo'sh turmaydi */
    font-display: swap;
    src: url('/fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('/fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('/fonts/inter-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('/fonts/inter-cyrillic-ext.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

:root {
    /* Brend — logotipdan */
    --red: #d3211a;
    --red-bright: #e8342c;
    --red-deep: #9e120c;
    --red-wash: rgba(211, 33, 26, .08);

    --ink: #14141a;
    --ink-soft: #3d3d47;

    /* Yorug' mavzu */
    --bg: #ffffff;
    --bg-alt: #f6f6f8;
    --bg-deep: #101014;
    --surface: #ffffff;
    --surface-2: #f2f2f5;
    --text: #14141a;
    --text-dim: #6a6a76;
    --text-faint: #9a9aa6;
    --line: rgba(20, 20, 26, .09);
    --line-strong: rgba(20, 20, 26, .16);

    --shadow-sm: 0 1px 2px rgba(16, 16, 24, .05), 0 2px 8px rgba(16, 16, 24, .04);
    --shadow: 0 4px 12px rgba(16, 16, 24, .07), 0 12px 32px rgba(16, 16, 24, .06);
    --shadow-lg: 0 12px 28px rgba(16, 16, 24, .12), 0 32px 64px rgba(16, 16, 24, .10);
    --shadow-red: 0 6px 20px rgba(211, 33, 26, .28);

    --r-xs: 8px;
    --r-sm: 12px;
    --r: 16px;
    --r-lg: 22px;
    --r-xl: 30px;
    --r-pill: 999px;

    --ease: cubic-bezier(.22, .61, .36, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --spring: cubic-bezier(.34, 1.4, .64, 1);
    --fast: .16s;
    --mid: .28s;
    --slow: .5s;

    --header-h: 72px;
    --wrap: 1280px;
    --gutter: 24px;
}

:root[data-theme="dark"] {
    --bg: #0d0d11;
    --bg-alt: #141419;
    --bg-deep: #08080b;
    --surface: #16161c;
    --surface-2: #1f1f27;
    --text: #f2f2f5;
    --text-dim: #9b9ba8;
    --text-faint: #6e6e7c;
    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .17);
    --red-wash: rgba(232, 52, 44, .13);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 4px 14px rgba(0, 0, 0, .45);
    --shadow-lg: 0 16px 44px rgba(0, 0, 0, .6);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    /* iOS rezinka effektida chetlar sahifa foniga mos boʻlsin */
    background: var(--bg);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/1.55 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body.locked {
    overflow: hidden;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

/* --- Tipografika shkalasi --- */

h1,
h2,
h3,
h4 {
    margin: 0;
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.12;
}

.display {
    font-size: clamp(2.6rem, 6.4vw, 5rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.02;
}

.h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.h2 {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

.h3 {
    font-size: clamp(1.15rem, 1.6vw, 1.35rem);
}

.lead {
    font-size: clamp(1rem, 1.35vw, 1.18rem);
    color: var(--text-dim);
    line-height: 1.6;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--red);
}

.eyebrow::before {
    content: '';
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.muted {
    color: var(--text-dim);
}

.tabular {
    font-variant-numeric: tabular-nums;
}

/* --- Karkas --- */

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

.section {
    padding: clamp(56px, 8vw, 104px) 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(24px, 3vw, 40px);
}

.section-head p {
    margin: 10px 0 0;
    max-width: 52ch;
}

/* --- Skroll bilan ochilish --- */

.reveal {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
    transition: opacity var(--slow) var(--ease-out), transform var(--slow) var(--ease-out);
    transition-delay: var(--d, 0ms);
}

.reveal.in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Klaviatura bilan yurganda fokus ko'rinsin */
:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    background: var(--red);
    color: #fff;
}

/* --- Chop etish ---------------------------------------------------------
   Buyurtma xulosasi yoki profildagi tarixni qog'ozga chiqarish uchun:
   sayt jihozlari (menyu, footer, tugmalar) bosilmaydi — faqat mazmun.
   Omborchi yoki filialga boradigan mijoz ro'yxatni qo'lda ko'chirmasin. */
@media print {
    .topbar,
    .header,
    .footer,
    .mega-word,
    .co-bar,
    .buy-bar,
    .toasts,
    .drawer,
    .drawer-veil,
    .totop,
    button,
    .btn {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }
}
