/* ==========================================================================
   Bekajonlar.Uz — premium gastronomik dizayn tizimi
   Ranglar: Cream / Ivory, Warm Beige, Terracotta, Deep Olive, Dark Charcoal
   ========================================================================== */

:root {
    --cream: #FBF7F0;
    --ivory: #FFFDF9;
    --beige: #F3E9DA;
    --beige-2: #E9DBC6;
    --sand: #D9C4A6;
    --terracotta: #B4532A;
    --terracotta-600: #9C4421;
    --terracotta-50: #F8E9E0;
    --olive: #55663A;
    --olive-700: #3E4C29;
    --olive-50: #ECEFE2;
    --charcoal: #231F1B;
    --ink: #3A332D;
    --muted: #7A6F64;
    --line: #EADFCF;
    --white: #FFFFFF;
    --gold: #D79A2B;
    --danger: #B4372A;
    --success: #4E7A3A;

    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    --r-xs: 8px;
    --r-sm: 12px;
    --r-md: 18px;
    --r-lg: 26px;
    --r-xl: 36px;
    --shadow-sm: 0 1px 2px rgba(35, 31, 27, .05), 0 2px 8px rgba(35, 31, 27, .04);
    --shadow-md: 0 2px 4px rgba(35, 31, 27, .04), 0 12px 32px -8px rgba(35, 31, 27, .12);
    --shadow-lg: 0 24px 60px -18px rgba(35, 31, 27, .28);
    --ease: cubic-bezier(.22, .8, .24, 1);
    --container: 1280px;
    --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--charcoal); line-height: 1.12; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.015em; font-optical-sizing: auto; }
p { margin: 0 0 1em; }
::selection { background: var(--terracotta); color: #fff; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 6px; }

.icon { width: 1.15em; height: 1.15em; stroke-width: 1.9; flex-shrink: 0; vertical-align: -.2em; }
i.icon[data-lucide] { display: inline-block; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 880px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* --------------------------------------------------------------------------
   Tugmalar va formalar
   -------------------------------------------------------------------------- */
.btn {
    --bg: var(--charcoal); --fg: #fff;
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    padding: .82em 1.45em; border-radius: 999px; border: 1px solid transparent;
    background: var(--bg); color: var(--fg); font-weight: 700; font-size: .95rem; line-height: 1.2;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn-primary { --bg: var(--terracotta); }
.btn-primary:hover { --bg: var(--terracotta-600); }
.btn-olive { --bg: var(--olive); }
.btn-olive:hover { --bg: var(--olive-700); }
.btn-light { --bg: var(--ivory); --fg: var(--charcoal); border-color: var(--line); }
.btn-light:hover { border-color: var(--sand); }
.btn-ghost { --bg: transparent; --fg: var(--charcoal); border-color: var(--line); }
.btn-ghost:hover { background: var(--ivory); box-shadow: none; }
.btn-white { --bg: #fff; --fg: var(--charcoal); }
.btn-sm { padding: .55em 1em; font-size: .85rem; }
.btn-lg { padding: 1.05em 1.8em; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: 50%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--terracotta); font-size: .95rem; }
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

.field { margin-bottom: 18px; }
.field label, .label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 7px; color: var(--charcoal); }
.input, .select, .textarea {
    width: 100%; padding: 13px 16px; border-radius: var(--r-sm); border: 1px solid var(--line);
    background: var(--ivory); transition: border-color .2s, box-shadow .2s; font-size: .97rem;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 4px rgba(180, 83, 42, .12); }
.textarea { min-height: 120px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%237A6F64' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field-error { color: var(--danger); font-size: .84rem; margin-top: 6px; font-weight: 600; }
.field-hint { color: var(--muted); font-size: .82rem; margin-top: 6px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--terracotta); margin-top: 3px; }
.hp { position: absolute; left: -9999px; opacity: 0; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .9rem; font-weight: 600; user-select: none; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 42px; height: 24px; border-radius: 999px; background: var(--beige-2); position: relative; transition: background .25s; flex-shrink: 0; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease); }
.switch input:checked + .track { background: var(--olive); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--terracotta); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 60; height: var(--header-h);
    background: rgba(251, 247, 240, .82); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
    border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(35, 31, 27, .35); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-mark { width: 40px; height: 40px; border-radius: 13px; background: var(--terracotta); display: grid; place-items: center; color: #fff; box-shadow: 0 6px 16px -6px rgba(180, 83, 42, .7); }
.logo-mark svg { width: 24px; height: 24px; }
.logo-text { font-family: var(--font-display); font-weight: 650; font-size: 1.38rem; letter-spacing: -.02em; color: var(--charcoal); line-height: 1; }
.logo-text span { color: var(--terracotta); }
.main-nav { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.main-nav a { padding: 9px 13px; border-radius: 999px; font-weight: 650; font-size: .92rem; color: var(--ink); transition: background .2s, color .2s; white-space: nowrap; }
.main-nav a:hover { background: var(--beige); }
.main-nav a.is-active { color: var(--terracotta); background: var(--terracotta-50); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--ivory); transition: background .2s, border-color .2s, transform .2s; position: relative; }
.header-icon:hover { border-color: var(--sand); transform: translateY(-1px); }
.header-icon .badge { position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; border-radius: 10px; background: var(--terracotta); color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center; padding: 0 5px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--beige); display: grid; place-items: center; font-weight: 800; color: var(--terracotta); border: 2px solid #fff; box-shadow: var(--shadow-sm); }
.avatar-sm { width: 36px; height: 36px; font-size: .85rem; }
.avatar-lg { width: 88px; height: 88px; font-size: 1.8rem; }
.menu-toggle { display: none; }

.user-menu { position: relative; }
.dropdown { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s, transform .25s var(--ease); z-index: 70; }
.user-menu.is-open .dropdown { opacity: 1; transform: none; pointer-events: auto; }
.dropdown a, .dropdown button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: .92rem; background: none; border: 0; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: var(--beige); }
.dropdown hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.dropdown-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dropdown-head strong { display: block; color: var(--charcoal); }
.dropdown-head small { color: var(--muted); }

/* Mobil menyu */
.mobile-drawer { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.mobile-drawer .scrim { position: absolute; inset: 0; background: rgba(35, 31, 27, .45); opacity: 0; transition: opacity .3s; }
.mobile-drawer .panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); background: var(--cream); transform: translateX(100%); transition: transform .4s var(--ease); display: flex; flex-direction: column; padding: 20px; overflow-y: auto; }
.mobile-drawer.is-open { pointer-events: auto; }
.mobile-drawer.is-open .scrim { opacity: 1; }
.mobile-drawer.is-open .panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer-nav a { display: flex; align-items: center; gap: 14px; padding: 14px 12px; border-radius: 14px; font-weight: 700; font-size: 1.02rem; }
.drawer-nav a:hover, .drawer-nav a.is-active { background: var(--beige); }
.drawer-nav .icon { color: var(--terracotta); }
.drawer-foot { margin-top: auto; padding-top: 18px; display: grid; gap: 10px; }

.bottom-nav { display: none; }

/* --------------------------------------------------------------------------
   Qidiruv oynasi (command palette)
   -------------------------------------------------------------------------- */
.search-modal { position: fixed; inset: 0; z-index: 100; display: none; }
.search-modal.is-open { display: block; }
.search-modal .scrim { position: absolute; inset: 0; background: rgba(35, 31, 27, .5); backdrop-filter: blur(4px); animation: fade .2s; }
.search-box { position: relative; max-width: 680px; margin: 10vh auto 0; background: var(--ivory); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .3s var(--ease); }
.search-box form { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.search-box input { flex: 1; border: 0; background: none; font-size: 1.15rem; outline: none; }
.search-box kbd { font-size: .72rem; padding: 3px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); }
.search-results { max-height: 60vh; overflow-y: auto; padding: 10px; }
.search-results .group-title { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px 12px 6px; }
.search-item { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 14px; }
.search-item:hover, .search-item.is-active { background: var(--beige); }
.search-item img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--beige); }
.search-item strong { display: block; color: var(--charcoal); font-size: .98rem; }
.search-item small { color: var(--muted); font-size: .82rem; }
.search-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 12px 12px; }
.search-empty { padding: 30px 20px; text-align: center; color: var(--muted); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; padding: 40px 0 70px; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 720px; height: 720px; right: -260px; top: -260px; background: radial-gradient(circle, rgba(217, 196, 166, .45), transparent 65%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--terracotta); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.02; margin-bottom: 22px; letter-spacing: -.03em; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--terracotta); }
.hero-lead { font-size: 1.14rem; color: var(--muted); max-width: 520px; margin-bottom: 30px; }
.hero-search { position: relative; max-width: 560px; }
.hero-search form { display: flex; align-items: center; background: #fff; border-radius: 999px; padding: 7px 7px 7px 22px; box-shadow: var(--shadow-md); border: 1px solid var(--line); gap: 10px; }
.hero-search input { flex: 1; border: 0; outline: none; background: none; font-size: 1.02rem; min-width: 0; padding: 8px 0; }
.hero-search .icon { color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; align-items: center; }
.hero-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; align-items: center; font-size: .88rem; color: var(--muted); }
.hero-quick a { padding: 6px 13px; border-radius: 999px; background: var(--ivory); border: 1px solid var(--line); font-weight: 600; color: var(--ink); transition: border-color .2s, color .2s; }
.hero-quick a:hover { border-color: var(--terracotta); color: var(--terracotta); }
.hero-stats { display: flex; gap: 34px; margin-top: 38px; }
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--charcoal); line-height: 1; }
.hero-stats span { font-size: .85rem; color: var(--muted); font-weight: 600; }
.hero-visual { position: relative; }
.hero-image { position: relative; border-radius: 220px 220px var(--r-xl) var(--r-xl); overflow: hidden; aspect-ratio: 4 / 4.6; box-shadow: var(--shadow-lg); background: var(--beige); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 6s var(--ease); }
.hero-visual:hover .hero-image img { transform: scale(1.07); }
.float-card { position: absolute; background: rgba(255, 253, 249, .94); backdrop-filter: blur(10px); border-radius: var(--r-md); box-shadow: var(--shadow-md); padding: 14px 16px; display: flex; gap: 12px; align-items: center; animation: floaty 6s ease-in-out infinite; }
.float-card .fc-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--terracotta-50); color: var(--terracotta); }
.float-card strong { display: block; font-size: .95rem; color: var(--charcoal); line-height: 1.25; }
.float-card small { color: var(--muted); font-size: .8rem; }
.float-card.fc-1 { left: -36px; bottom: 70px; }
.float-card.fc-2 { right: -18px; top: 56px; animation-delay: -3s; }
.float-card.fc-2 .fc-icon { background: var(--olive-50); color: var(--olive); }
.hero-credit { position: absolute; right: 14px; bottom: 12px; font-size: .66rem; color: rgba(255, 255, 255, .78); max-width: 70%; text-align: right; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.hero-credit a { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Bo'limlar
   -------------------------------------------------------------------------- */
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--ivory); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.55rem); margin: 0; }
.section-head p { margin: 8px 0 0; color: var(--muted); max-width: 560px; }
.section-head .eyebrow { margin-bottom: 10px; }

.grid { display: grid; gap: 26px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* --------------------------------------------------------------------------
   Retsept kartochkasi
   -------------------------------------------------------------------------- */
.recipe-card { position: relative; display: flex; flex-direction: column; background: var(--ivory); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; }
.recipe-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.rc-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--beige); }
.rc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.recipe-card:hover .rc-media img { transform: scale(1.06); }
.rc-media::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(to top, rgba(35, 31, 27, .35), transparent); pointer-events: none; }
.rc-chip { position: absolute; left: 14px; top: 14px; z-index: 2; padding: 5px 11px; border-radius: 999px; background: rgba(255, 253, 249, .92); backdrop-filter: blur(6px); font-size: .74rem; font-weight: 800; color: var(--charcoal); letter-spacing: .01em; }
.rc-time { position: absolute; left: 14px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; color: #fff; font-size: .82rem; font-weight: 700; }
.fav-btn { position: absolute; right: 12px; top: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 253, 249, .92); backdrop-filter: blur(6px); display: grid; place-items: center; color: var(--charcoal); transition: transform .25s var(--ease), color .2s, background .2s; }
.fav-btn:hover { transform: scale(1.1); color: var(--terracotta); }
.fav-btn.is-active { color: #fff; background: var(--terracotta); }
.fav-btn.is-active svg { fill: currentColor; }
.rc-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.rc-title { font-size: 1.24rem; line-height: 1.22; margin: 0 0 8px; }
.rc-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.rc-desc { font-size: .9rem; color: var(--muted); margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rc-meta { margin-top: auto; display: flex; align-items: center; gap: 14px; font-size: .82rem; color: var(--muted); font-weight: 650; flex-wrap: wrap; }
.rc-meta span { display: inline-flex; align-items: center; gap: 5px; }
.rc-meta .rating { color: var(--charcoal); }
.rc-meta .rating .icon { color: var(--gold); fill: var(--gold); }

.recipe-card.is-horizontal { flex-direction: row; }
.recipe-card.is-horizontal .rc-media { aspect-ratio: auto; width: 42%; flex-shrink: 0; }
.recipe-card.is-horizontal .rc-media::after { display: none; }

.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 26px) / 4); gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; }
.scroller-nav { display: flex; gap: 8px; }

/* Kategoriyalar */
.cat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.cat-tile { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 22px 12px 20px; border-radius: var(--r-lg); background: var(--ivory); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--sand); }
.cat-thumb { width: 92px; height: 92px; border-radius: 50%; overflow: hidden; background: var(--beige); display: grid; place-items: center; color: var(--terracotta); box-shadow: 0 0 0 5px var(--cream), 0 0 0 6px var(--line); transition: box-shadow .3s; }
.cat-tile:hover .cat-thumb { box-shadow: 0 0 0 5px var(--cream), 0 0 0 6px var(--terracotta); }
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-thumb .icon { width: 34px; height: 34px; }
.cat-tile strong { font-size: .95rem; color: var(--charcoal); line-height: 1.25; }
.cat-tile small { color: var(--muted); font-size: .78rem; font-weight: 600; }

/* Feature (editorial) bloki */
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; border-radius: var(--r-xl); overflow: hidden; background: var(--ivory); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.feature-media { position: relative; min-height: 420px; background: var(--beige); }
.feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-body { padding: 48px 46px; display: flex; flex-direction: column; justify-content: center; }
.feature-body h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.meta-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 24px; }
.meta-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: var(--beige); font-size: .86rem; font-weight: 700; color: var(--ink); }
.meta-chip .icon { color: var(--terracotta); }

.wtc { display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px; align-items: stretch; }
.wtc-random { position: relative; }
.wtc-list { display: grid; gap: 14px; align-content: start; }
.mini-card { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: var(--r-md); background: var(--ivory); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; position: relative; }
.mini-card:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.mini-card img { width: 84px; height: 84px; border-radius: 14px; object-fit: cover; flex-shrink: 0; background: var(--beige); }
.mini-card strong { display: block; font-family: var(--font-display); font-size: 1.08rem; color: var(--charcoal); line-height: 1.25; margin-bottom: 4px; }
.mini-card small { color: var(--muted); font-weight: 650; font-size: .8rem; display: inline-flex; gap: 10px; }

/* Finder banneri */
.finder-banner { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--olive-700); color: #F4EFE4; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; min-height: 380px; }
.finder-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .08), transparent 40%), radial-gradient(circle at 90% 90%, rgba(180, 83, 42, .35), transparent 45%); }
.finder-banner .fb-body { position: relative; padding: 56px; }
.finder-banner h2 { color: #fff; font-size: clamp(2rem, 3.6vw, 3rem); }
.finder-banner h2 em { color: #F2C39C; font-weight: 500; }
.finder-banner p { color: rgba(244, 239, 228, .82); font-size: 1.05rem; max-width: 460px; margin-bottom: 28px; }
.finder-banner .eyebrow { color: #F2C39C; }
.fb-chips { position: relative; display: flex; flex-wrap: wrap; gap: 10px; padding: 40px; align-content: center; justify-content: center; height: 100%; }
.fb-chip { padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #fff; font-weight: 700; font-size: .92rem; display: inline-flex; gap: 8px; align-items: center; backdrop-filter: blur(4px); animation: floaty 7s ease-in-out infinite; }
.fb-chip:nth-child(2n) { animation-delay: -2s; }
.fb-chip:nth-child(3n) { animation-delay: -4s; background: rgba(242, 195, 156, .22); }
.fb-chip .icon { color: #9FD27A; }

.promo { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-xl); overflow: hidden; background: var(--terracotta); color: #fff; }
.promo-media { position: relative; min-height: 300px; }
.promo-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-body { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.promo-body h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.promo-body p { color: rgba(255, 255, 255, .85); margin-bottom: 26px; }

/* --------------------------------------------------------------------------
   Sahifa sarlavhasi, breadcrumbs
   -------------------------------------------------------------------------- */
.page-head { padding: 34px 0 30px; }
.page-head h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); margin-bottom: 10px; }
.page-head p { color: var(--muted); font-size: 1.06rem; max-width: 680px; margin: 0; }
.page-head-flex { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .84rem; color: var(--muted); font-weight: 600; margin-bottom: 18px; list-style: none; padding: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; color: var(--sand); }
.breadcrumbs a:hover { color: var(--terracotta); }
.breadcrumbs [aria-current] { color: var(--charcoal); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px; border-radius: 999px; background: var(--ivory); border: 1px solid var(--line); font-weight: 700; font-size: .86rem; color: var(--ink); transition: all .2s; cursor: pointer; }
.chip:hover { border-color: var(--terracotta); color: var(--terracotta); }
.chip.is-active { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
.chip small { opacity: .6; font-weight: 700; }
.tag { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: var(--beige); font-size: .82rem; font-weight: 700; color: var(--ink); transition: background .2s, color .2s; }
.tag:hover { background: var(--terracotta); color: #fff; }

/* Filtrlar */
.listing { display: grid; grid-template-columns: 280px 1fr; gap: 36px; align-items: start; padding-bottom: 70px; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.filters h3 { font-family: var(--font-body); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 800; margin: 0 0 12px; }
.filter-group { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.filter-group:last-of-type { border-bottom: 0; margin-bottom: 8px; }
.filter-opt { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-weight: 600; font-size: .92rem; }
.filter-opt input { accent-color: var(--terracotta); width: 17px; height: 17px; }
.filter-opt small { margin-left: auto; color: var(--muted); }
.listing-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.listing-toolbar .count { font-weight: 700; color: var(--muted); }
.listing-toolbar .count strong { color: var(--charcoal); }
.filters-toggle { display: none; }
.results-loading { opacity: .45; pointer-events: none; transition: opacity .2s; }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 44px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 44px; height: 44px; padding: 0 12px; display: grid; place-items: center; border-radius: 999px; font-weight: 700; border: 1px solid var(--line); background: var(--ivory); }
.pagination a:hover { border-color: var(--terracotta); color: var(--terracotta); }
.pagination .is-current { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
.pagination .dots { border: 0; background: none; }

.empty-state { text-align: center; padding: 70px 24px; background: var(--ivory); border: 1px dashed var(--sand); border-radius: var(--r-lg); }
.empty-state .es-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: var(--beige); color: var(--terracotta); }
.empty-state .es-icon .icon { width: 32px; height: 32px; }
.empty-state h3 { font-size: 1.5rem; }
.empty-state p { color: var(--muted); max-width: 420px; margin: 0 auto 22px; }

/* --------------------------------------------------------------------------
   Retsept sahifasi
   -------------------------------------------------------------------------- */
.recipe-hero { padding: 26px 0 40px; }
.recipe-hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 54px; align-items: center; }
.recipe-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); letter-spacing: -.03em; margin-bottom: 16px; }
.recipe-lead { font-size: 1.12rem; color: var(--muted); margin-bottom: 22px; }
.recipe-rating-line { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; font-size: .92rem; font-weight: 650; color: var(--muted); }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars .icon { width: 18px; height: 18px; }
.stars .icon.is-filled { fill: var(--gold); }
.recipe-facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--ivory); margin-bottom: 26px; }
.recipe-facts > div { padding: 16px 14px; text-align: center; }
.recipe-facts > div + div { border-left: 1px solid var(--line); }
.recipe-facts .icon { color: var(--terracotta); width: 22px; height: 22px; margin-bottom: 6px; }
.recipe-facts small { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; }
.recipe-facts strong { display: block; font-size: 1.02rem; color: var(--charcoal); }
.recipe-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.recipe-actions .fav-btn-lg.is-active { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }
.recipe-actions .fav-btn-lg.is-active svg { fill: currentColor; }
.recipe-media { position: relative; }
.recipe-media .main-img { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 5 / 4; background: var(--beige); box-shadow: var(--shadow-lg); }
.recipe-media .main-img img { width: 100%; height: 100%; object-fit: cover; }
.img-credit { font-size: .72rem; color: var(--muted); margin-top: 10px; line-height: 1.4; word-break: break-word; }
.img-credit a { text-decoration: underline; }
.preview-banner { background: var(--gold); color: var(--charcoal); text-align: center; padding: 10px; font-weight: 700; }

.recipe-layout { display: grid; grid-template-columns: 380px 1fr; gap: 50px; align-items: start; padding: 20px 0 60px; }
.ingredients-card { position: sticky; top: calc(var(--header-h) + 20px); background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.ingredients-card h2 { font-size: 1.7rem; margin-bottom: 4px; }
.servings { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--beige); margin: 16px 0 18px; }
.servings span { font-weight: 700; font-size: .92rem; }
.stepper { display: inline-flex; align-items: center; gap: 4px; background: #fff; border-radius: 999px; padding: 4px; box-shadow: var(--shadow-sm); }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--beige); display: grid; place-items: center; font-weight: 800; transition: background .2s; }
.stepper button:hover { background: var(--terracotta); color: #fff; }
.stepper output { min-width: 34px; text-align: center; font-weight: 800; font-size: 1.05rem; color: var(--charcoal); }
.ing-group-title { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: var(--terracotta); margin: 18px 0 6px; }
.ing-list { list-style: none; margin: 0; padding: 0; }
.ing-item { display: flex; align-items: flex-start; gap: 12px; padding: 11px 2px; border-bottom: 1px dashed var(--line); cursor: pointer; transition: opacity .2s; }
.ing-item:last-child { border-bottom: 0; }
.ing-check { width: 22px; height: 22px; border-radius: 7px; border: 1.8px solid var(--sand); flex-shrink: 0; display: grid; place-items: center; margin-top: 1px; transition: all .2s; color: transparent; }
.ing-item.is-checked .ing-check { background: var(--olive); border-color: var(--olive); color: #fff; }
.ing-item.is-checked .ing-name { text-decoration: line-through; color: var(--muted); }
.ing-name { flex: 1; font-weight: 600; color: var(--charcoal); font-size: .96rem; line-height: 1.4; }
.ing-name small { display: block; color: var(--muted); font-weight: 500; font-size: .82rem; }
.ing-amount { font-weight: 800; color: var(--terracotta); white-space: nowrap; font-size: .92rem; text-align: right; }
.ing-badge { font-size: .68rem; padding: 2px 7px; border-radius: 999px; background: var(--olive-50); color: var(--olive); font-weight: 800; margin-left: 4px; vertical-align: 1px; }
.ing-badge.have { background: var(--olive); color: #fff; }
.ing-actions { display: grid; gap: 10px; margin-top: 18px; }

.content-block { margin-bottom: 46px; }
.content-block > h2 { font-size: 2rem; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.prose { font-size: 1.04rem; color: var(--ink); }
.prose p { margin-bottom: 1.1em; }
.prose h2 { font-size: 1.6rem; margin: 1.4em 0 .5em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--terracotta); text-decoration: underline; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding-bottom: 34px; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 31px; top: 64px; bottom: 6px; width: 2px; background: repeating-linear-gradient(to bottom, var(--sand) 0 6px, transparent 6px 12px); }
.step-num { width: 64px; height: 64px; border-radius: 50%; background: var(--charcoal); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; transition: background .3s; }
.step.is-done .step-num { background: var(--olive); }
.step-body { padding-top: 6px; }
.step-body h3 { font-size: 1.32rem; margin-bottom: 8px; }
.step-body p { font-size: 1.04rem; margin-bottom: 14px; }
.step-img { border-radius: var(--r-md); overflow: hidden; margin: 6px 0 14px; max-width: 560px; }
.step-tools { display: flex; gap: 8px; flex-wrap: wrap; }

.tips-card { border-radius: var(--r-lg); padding: 28px; background: var(--olive-50); border: 1px solid #DCE2CB; }
.tips-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; color: var(--olive-700); }
.tips-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tips-card li { display: flex; gap: 10px; }
.tips-card li .icon { color: var(--olive); margin-top: 5px; }
.storage-card { background: var(--terracotta-50); border-color: #F0D5C6; }
.storage-card h3 { color: var(--terracotta-600); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery a { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 1; background: var(--beige); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery a:hover img { transform: scale(1.07); }

.rate-box { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 28px; border-radius: var(--r-lg); background: var(--ivory); border: 1px solid var(--line); }
.rate-box h3 { margin: 0 0 4px; font-size: 1.35rem; }
.rate-stars { display: flex; gap: 6px; }
.rate-stars button { border: 0; background: none; padding: 2px; color: var(--sand); transition: transform .2s, color .2s; }
.rate-stars button .icon { width: 32px; height: 32px; }
.rate-stars button.is-on { color: var(--gold); }
.rate-stars button.is-on svg { fill: var(--gold); }
.rate-stars button:hover { transform: scale(1.15); }

/* Izohlar */
.comment-form { display: grid; gap: 12px; margin-bottom: 28px; }
.comment-list { display: grid; gap: 18px; }
.comment { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.comment-bubble { background: var(--ivory); border: 1px solid var(--line); border-radius: 4px var(--r-md) var(--r-md) var(--r-md); padding: 14px 18px; }
.comment-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.comment-head strong { color: var(--charcoal); }
.comment-head time { font-size: .8rem; color: var(--muted); }
.comment-body { white-space: pre-line; margin: 0; font-size: .97rem; }
.comment-actions { display: flex; gap: 14px; margin-top: 8px; font-size: .82rem; font-weight: 700; }
.comment-actions button { background: none; border: 0; padding: 0; color: var(--muted); }
.comment-actions button:hover { color: var(--terracotta); }
.comment-replies { margin-top: 14px; display: grid; gap: 14px; }
.comment.is-reply { grid-template-columns: 36px 1fr; }
.badge-pending { font-size: .7rem; padding: 2px 8px; border-radius: 999px; background: #FFF3D6; color: #8A5D00; font-weight: 800; }
.badge-admin { font-size: .7rem; padding: 2px 8px; border-radius: 999px; background: var(--terracotta); color: #fff; font-weight: 800; }
.reply-form { margin-top: 12px; display: grid; gap: 8px; }

.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--ivory); transition: all .2s; }
.share-btn:hover { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 110; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal .scrim { position: absolute; inset: 0; background: rgba(35, 31, 27, .5); backdrop-filter: blur(3px); animation: fade .2s; }
.modal-box { position: relative; width: 100%; max-width: 480px; background: var(--ivory); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-lg); animation: pop .3s var(--ease); max-height: 90vh; overflow-y: auto; }
.modal-box h3 { font-size: 1.5rem; }
.modal-close { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--beige); display: grid; place-items: center; }

/* Oshxona taymeri */
.timer-dock { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: grid; gap: 10px; width: 270px; }
.timer-card { background: var(--charcoal); color: #fff; border-radius: var(--r-md); padding: 14px 16px; box-shadow: var(--shadow-lg); animation: pop .35s var(--ease); }
.timer-card.is-done { background: var(--terracotta); animation: pulse 1s infinite; }
.timer-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .82rem; color: rgba(255, 255, 255, .7); font-weight: 600; }
.timer-time { font-family: var(--font-display); font-size: 2.1rem; font-variant-numeric: tabular-nums; line-height: 1.1; margin: 4px 0 8px; }
.timer-bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .15); overflow: hidden; margin-bottom: 10px; }
.timer-bar span { display: block; height: 100%; background: #F2C39C; transition: width 1s linear; }
.timer-btns { display: flex; gap: 6px; }
.timer-btns button { flex: 1; border: 0; border-radius: 999px; padding: 7px; font-weight: 700; font-size: .8rem; background: rgba(255, 255, 255, .12); color: #fff; }
.timer-btns button:hover { background: rgba(255, 255, 255, .22); }
.timer-card .x { background: none; border: 0; color: rgba(255, 255, 255, .6); padding: 0; }

/* --------------------------------------------------------------------------
   Masalliqlardan taom topish
   -------------------------------------------------------------------------- */
.finder-hero { padding: 36px 0 26px; }
.finder-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); max-width: 820px; }
.finder-hero h1 em { color: var(--terracotta); font-weight: 500; }
.finder-steps { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 18px; font-weight: 700; font-size: .92rem; color: var(--muted); }
.finder-steps span { display: inline-flex; align-items: center; gap: 9px; }
.finder-steps b { width: 28px; height: 28px; border-radius: 50%; background: var(--charcoal); color: #fff; display: grid; place-items: center; font-size: .82rem; }
.finder-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 34px; align-items: start; padding-bottom: 80px; }
.picker { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.picker-search { position: relative; margin-bottom: 16px; }
.picker-search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.picker-search input { padding-left: 46px; border-radius: 999px; }
.picker-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: none; }
.picker-tabs::-webkit-scrollbar { display: none; }
.picker-tabs .chip { flex-shrink: 0; }
.ing-group { margin-bottom: 22px; }
.ing-group h3 { font-family: var(--font-body); font-size: .9rem; font-weight: 800; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--charcoal); }
.ing-group h3 .icon { color: var(--terracotta); }
.ing-group h3 small { color: var(--muted); font-weight: 600; }
.ing-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ing-chip { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px 9px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: .9rem; transition: all .2s var(--ease); user-select: none; cursor: pointer; }
.ing-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ing-chip .tick { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--beige); color: transparent; transition: all .2s; }
.ing-chip .tick .icon { width: 13px; height: 13px; stroke-width: 3; }
.ing-chip:hover { border-color: var(--sand); transform: translateY(-1px); }
.ing-chip.is-on { background: var(--olive); border-color: var(--olive); color: #fff; }
.ing-chip.is-on .tick { background: #fff; color: var(--olive); }
.ing-chip.is-staple::after { content: "•"; color: var(--gold); margin-left: -2px; }
.ing-chip.is-hidden { display: none; }
.selected-tray { position: sticky; top: calc(var(--header-h) + 12px); z-index: 5; background: var(--charcoal); color: #fff; border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; box-shadow: var(--shadow-md); }
.selected-tray .count { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; }
.selected-tray .label-sm { font-size: .82rem; color: rgba(255, 255, 255, .7); font-weight: 600; line-height: 1.2; }
.selected-tray .tray-actions { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.tray-btn { border: 0; border-radius: 999px; padding: 8px 13px; font-weight: 700; font-size: .8rem; background: rgba(255, 255, 255, .12); color: #fff; display: inline-flex; gap: 6px; align-items: center; }
.tray-btn:hover { background: rgba(255, 255, 255, .22); }
.finder-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px; background: var(--beige); border-radius: var(--r-md); margin-bottom: 18px; }
.finder-options .full { grid-column: 1 / -1; }
.finder-options .select { padding: 10px 40px 10px 14px; font-size: .9rem; background-color: #fff; }
.results-panel { position: sticky; top: calc(var(--header-h) + 12px); }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.results-head h2 { font-size: 1.8rem; margin: 0; }
.results-scroll { max-height: calc(100vh - var(--header-h) - 100px); overflow-y: auto; padding-right: 6px; scrollbar-width: thin; }
.result-group { margin-bottom: 26px; }
.result-group-title { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: .95rem; margin-bottom: 12px; color: var(--charcoal); }
.result-group-title .dot { width: 10px; height: 10px; border-radius: 50%; }
.result-group-title small { color: var(--muted); font-weight: 700; }
.match-card { position: relative; display: grid; grid-template-columns: 112px 1fr auto; gap: 16px; align-items: center; padding: 12px; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 12px; transition: transform .3s var(--ease), box-shadow .3s; animation: rise .45s var(--ease) both; }
.match-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.match-card img { width: 112px; height: 96px; border-radius: 13px; object-fit: cover; background: var(--beige); }
.match-card h3 { font-size: 1.14rem; margin: 0 0 6px; }
.match-card h3 a::after { content: ""; position: absolute; inset: 0; }
.match-meta { display: flex; gap: 12px; font-size: .8rem; color: var(--muted); font-weight: 650; margin-bottom: 6px; flex-wrap: wrap; }
.missing { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; font-size: .78rem; font-weight: 700; color: var(--muted); }
.missing .m { padding: 3px 9px; border-radius: 999px; background: var(--terracotta-50); color: var(--terracotta-600); }
.missing .ok { color: var(--olive); display: inline-flex; gap: 5px; align-items: center; }
.ring { --p: 50; --c: var(--olive); width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--beige-2) 0); position: relative; flex-shrink: 0; }
.ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--ivory); }
.ring span { position: relative; font-weight: 800; font-size: .88rem; color: var(--charcoal); }
.finder-placeholder { text-align: center; padding: 50px 26px; border: 1.5px dashed var(--sand); border-radius: var(--r-lg); background: var(--ivory); }
.finder-placeholder .es-icon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: var(--olive-50); color: var(--olive); }
.finder-placeholder .es-icon .icon { width: 36px; height: 36px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); font-weight: 700; margin-top: 6px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* --------------------------------------------------------------------------
   Kabinet
   -------------------------------------------------------------------------- */
.account { display: grid; grid-template-columns: 270px 1fr; gap: 36px; padding: 34px 0 80px; align-items: start; }
.account-nav { position: sticky; top: calc(var(--header-h) + 20px); background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.account-user { display: flex; align-items: center; gap: 12px; padding: 6px 6px 18px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.account-user strong { display: block; color: var(--charcoal); line-height: 1.25; }
.account-user small { color: var(--muted); font-size: .8rem; word-break: break-all; }
.account-nav a, .account-nav button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 12px; font-weight: 650; font-size: .93rem; background: none; border: 0; text-align: left; }
.account-nav a:hover, .account-nav button:hover { background: var(--beige); }
.account-nav a.is-active { background: var(--charcoal); color: #fff; }
.account-nav a.is-active .icon { color: #fff; }
.account-nav .icon { color: var(--terracotta); }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 34px; }
.stat-card { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; display: flex; flex-direction: column; gap: 6px; transition: transform .3s var(--ease), box-shadow .3s; }
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-card .icon { color: var(--terracotta); width: 24px; height: 24px; }
.stat-card strong { font-family: var(--font-display); font-size: 2rem; color: var(--charcoal); line-height: 1; }
.stat-card span { color: var(--muted); font-size: .86rem; font-weight: 650; }
.card { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.card + .card { margin-top: 24px; }
.card h2 { font-size: 1.5rem; }

/* Haftalik menyu */
.week-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.week-nav strong { font-family: var(--font-display); font-size: 1.15rem; min-width: 200px; text-align: center; }
.meal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.meal-day { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.meal-day.is-today { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(180, 83, 42, .12); }
.meal-day-head { text-align: center; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.meal-day-head strong { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--charcoal); }
.meal-day-head small { color: var(--muted); font-weight: 650; font-size: .76rem; }
.meal-slot { border-radius: 12px; min-height: 108px; }
.meal-slot .slot-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--muted); margin-bottom: 5px; }
.meal-slot .slot-empty { width: 100%; min-height: 84px; border: 1.5px dashed var(--sand); border-radius: 12px; background: none; color: var(--muted); display: grid; place-items: center; transition: all .2s; }
.meal-slot .slot-empty:hover { border-color: var(--terracotta); color: var(--terracotta); background: var(--terracotta-50); }
.slot-recipe { position: relative; border-radius: 12px; overflow: hidden; background: var(--beige); }
.slot-recipe img { width: 100%; height: 64px; object-fit: cover; }
.slot-recipe .sr-body { padding: 7px 8px 8px; }
.slot-recipe a { font-weight: 700; font-size: .8rem; line-height: 1.25; color: var(--charcoal); display: block; }
.slot-recipe small { font-size: .7rem; color: var(--muted); font-weight: 650; }
.slot-recipe form { position: absolute; top: 4px; right: 4px; }
.slot-recipe .slot-x { width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); display: grid; place-items: center; }
.slot-recipe .slot-x .icon { width: 13px; height: 13px; }

/* Xaridlar ro'yxati */
.shop-group { margin-bottom: 24px; }
.shop-group h3 { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 800; margin-bottom: 8px; }
.shop-item { display: flex; align-items: center; gap: 14px; padding: 13px 16px; background: var(--ivory); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; transition: opacity .2s; }
.shop-item.is-checked { opacity: .55; }
.shop-item.is-checked .shop-name { text-decoration: line-through; }
.shop-item button.check-btn { width: 26px; height: 26px; border-radius: 8px; border: 1.8px solid var(--sand); background: #fff; display: grid; place-items: center; color: transparent; flex-shrink: 0; }
.shop-item.is-checked button.check-btn { background: var(--olive); border-color: var(--olive); color: #fff; }
.shop-name { flex: 1; font-weight: 700; color: var(--charcoal); }
.shop-name small { display: block; font-weight: 600; color: var(--muted); font-size: .78rem; }
.shop-amount { font-weight: 800; color: var(--terracotta); }
.shop-del { border: 0; background: none; color: var(--muted); padding: 4px; }
.shop-del:hover { color: var(--danger); }
.add-row { display: grid; grid-template-columns: 1fr 120px 150px auto; gap: 10px; }

/* Auth */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header-h)); }
.auth-visual { position: relative; background: var(--olive-700); overflow: hidden; }
.auth-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.auth-visual img.illu { opacity: 1; object-position: center 40%; }
.auth-visual::after { content: ""; position: absolute; inset: auto 0 0 0; height: 42%; background: linear-gradient(to top, rgba(35, 20, 12, .62), rgba(35, 20, 12, 0)); pointer-events: none; }
.auth-visual .quote { position: absolute; left: 48px; right: 48px; bottom: 48px; color: #fff; z-index: 1; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.auth-visual .quote p { font-family: var(--font-display); font-size: 2rem; line-height: 1.2; font-style: italic; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 50px 24px; }
.auth-form .inner { width: 100%; max-width: 420px; }
.auth-form h1 { font-size: 2.4rem; }
.auth-alert { display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; border-radius: var(--r-sm); margin-bottom: 20px; font-weight: 650; font-size: .93rem; line-height: 1.45; border: 1px solid transparent; animation: alertIn .35s var(--ease); }
.auth-alert-icon { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; margin-top: -3px; }
.auth-alert-icon .icon { width: 16px; height: 16px; }
.auth-alert > span:last-child { padding-top: 1px; }
.auth-alert-error { background: #FBEDEA; border-color: #F2D2CB; color: #8E2A1F; }
.auth-alert-error .auth-alert-icon { background: #F4D3CC; color: var(--danger); }
.auth-alert-info { background: #F6EFE3; border-color: #EADDC6; color: #6B4E1F; }
.auth-alert-info .auth-alert-icon { background: #EEDFC4; color: #8A6417; }
.auth-alert-success { background: #EAF1E3; border-color: #D3E0C6; color: #2F5320; }
.auth-alert-success .auth-alert-icon { background: #D6E5C8; color: var(--success); }
.input.is-invalid { border-color: #E3A99D; background: #FFFAF8; }
.input.is-invalid:focus { box-shadow: 0 0 0 4px rgba(180, 55, 42, .12); border-color: var(--danger); }
@keyframes alertIn { 0% { opacity: 0; transform: translateY(-6px); } 60% { transform: translateX(3px); } 80% { transform: translateX(-2px); } 100% { opacity: 1; transform: none; } }
.password-wrap { position: relative; }
.password-wrap button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); padding: 6px; }

/* Bildirishnomalar */
.flash { padding: 14px 18px; border-radius: var(--r-sm); margin: 18px 0 0; font-weight: 650; display: flex; gap: 10px; align-items: center; }
.flash-success { background: #E8F0E1; color: #2F5320; }
.flash-error { background: #F9E3DF; color: #8E2A1F; }
.flash-info { background: #F3ECDF; color: #6B4E1F; }
.toast-wrap { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 200; display: grid; gap: 10px; justify-items: center; pointer-events: none; }
.toast { background: var(--charcoal); color: #fff; padding: 13px 20px; border-radius: 999px; font-weight: 650; font-size: .92rem; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; animation: toastIn .4s var(--ease); pointer-events: auto; }
.toast a { color: #F2C39C; text-decoration: underline; }
.toast.is-error { background: var(--danger); }
.toast.is-leaving { animation: toastOut .3s forwards; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--charcoal); color: rgba(255, 255, 255, .72); padding: 70px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 44px; }
.footer-links a { display: inline-flex; align-items: center; gap: 11px; transition: color .2s, transform .2s; }
.footer-links a:hover { transform: translateX(3px); }
.footer-links .icon { width: 18px; height: 18px; flex: none; color: #F2C39C; opacity: .85; }
.footer-links a:hover .icon { opacity: 1; }
.site-footer .logo-text { color: #fff; }
.site-footer h4 { font-family: var(--font-body); color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; font-weight: 800; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: #F2C39C; }
.footer-about p { margin: 18px 0 22px; max-width: 360px; font-size: .95rem; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); display: grid; place-items: center; transition: all .2s; }
.socials a:hover { background: var(--terracotta); border-color: var(--terracotta); color: #fff; transform: translateY(-2px); }
.socials a { color: #fff; }
.socials .social-telegram:hover { background: #229ED9; border-color: #229ED9; }
.socials .social-youtube:hover { background: #FF0033; border-color: #FF0033; }
.socials .social-instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); border-color: transparent; }
.socials .social-facebook:hover { background: #1877F2; border-color: #1877F2; }
.brand-icon { width: 19px; height: 19px; flex-shrink: 0; }
.share-btn .brand-icon { width: 18px; height: 18px; }
.footer-bottom { margin-top: 54px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .86rem; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: #F2C39C; margin-top: 4px; }

.error-page { text-align: center; padding: 100px 20px 120px; }
.error-page .code { font-family: var(--font-display); font-size: clamp(6rem, 18vw, 11rem); line-height: 1; color: var(--terracotta); font-style: italic; }

/* Animatsiyalar */
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(180, 83, 42, .6); } 50% { box-shadow: 0 0 0 12px rgba(180, 83, 42, 0); } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
.hero-grid > *, .finder-layout > *, .recipe-layout > *, .listing > *, .account > *, .wtc > *, .feature > *, .recipe-hero-grid > * { min-width: 0; }
html, body { overflow-x: clip; }
/* Sarlavha menyusi: menyu bandlari ko'paygani uchun bosqichma-bosqich ixchamlashadi */
@media (max-width: 1600px) {
    .header-inner { gap: 16px; }
    .main-nav a { padding: 8px 10px; font-size: .88rem; }
    .main-nav a.nav-home { display: none; }
}
@media (max-width: 1400px) {
    .logo-text { font-size: 1.22rem; }
    .main-nav a { padding: 7px 8px; font-size: .84rem; }
    .header-actions { gap: 6px; }
}
@media (max-width: 1260px) {
    .main-nav, .header-actions .hide-md { display: none; }
    .menu-toggle { display: grid; }
    .header-inner { justify-content: space-between; }
}
@media (max-width: 1180px) {
    .cat-grid { grid-template-columns: repeat(4, 1fr); }
    .meal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
    :root { --header-h: 68px; }
    .main-nav, .header-actions .hide-md { display: none; }
    .menu-toggle { display: grid; }
    .header-inner { justify-content: space-between; }
    .hero-grid, .recipe-hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { max-width: 560px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .scroller { grid-auto-columns: calc((100% - 26px) / 2.3); }
    .listing { grid-template-columns: 1fr; }
    .filters { position: fixed; inset: auto 0 0 0; top: auto; z-index: 95; border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 85vh; overflow-y: auto; transform: translateY(100%); transition: transform .4s var(--ease); box-shadow: var(--shadow-lg); }
    .filters.is-open { transform: none; }
    .filters-toggle { display: inline-flex; }
    .recipe-layout { grid-template-columns: 1fr; gap: 30px; }
    .ingredients-card { position: static; }
    .finder-layout { grid-template-columns: 1fr; }
    .results-panel { position: static; }
    .results-scroll { max-height: none; overflow: visible; }
    .footer-grid { grid-template-columns: 1fr 1fr; justify-content: stretch; }
    .footer-grid .footer-about { grid-column: 1 / -1; }
    .feature, .finder-banner, .promo, .wtc { grid-template-columns: 1fr; }
    .feature-media { min-height: 300px; }
    .account { grid-template-columns: 1fr; }
    .account-nav { position: static; display: flex; gap: 6px; overflow-x: auto; padding: 10px; }
    .account-nav .account-user, .account-nav hr { display: none; }
    .account-nav a, .account-nav button { width: auto; flex-shrink: 0; white-space: nowrap; }
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
    .fb-chips { padding: 0 40px 50px; }
}
@media (max-width: 720px) {
    body { padding-bottom: 72px; font-size: 15.5px; }
    .container { padding: 0 16px; }
    .section { padding: 46px 0; }
    .hero { padding: 18px 0 40px; }
    .hero-ctas .btn, .finder-banner .btn { white-space: normal; text-align: center; }
    .hero-search form { padding-left: 16px; }
    .hero-search .btn { padding: .7em 1.1em; }
    .selected-tray .tray-actions { margin-left: 0; width: 100%; }
    .week-nav { flex-wrap: nowrap; width: 100%; justify-content: space-between; }
    .week-nav strong { min-width: 0; font-size: .92rem; }
    .recipe-actions .btn { flex: 1 1 auto; }
    .hero-stats { gap: 22px; }
    .hero-stats strong { font-size: 1.6rem; }
    .float-card.fc-1 { left: 8px; bottom: 16px; }
    .float-card.fc-2 { right: 8px; top: 16px; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr 1fr; gap: 14px; }
    .grid-4 .rc-body { padding: 12px 13px 14px; }
    .grid-4 .rc-title { font-size: 1.02rem; }
    .grid-4 .rc-desc { display: none; }
    .grid-4 .rc-meta { gap: 8px; font-size: .74rem; }
    .scroller { grid-auto-columns: 74%; gap: 14px; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
    .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .cat-tile { padding: 14px 6px; }
    .cat-thumb { width: 66px; height: 66px; }
    .cat-tile strong { font-size: .8rem; }
    .feature-body, .finder-banner .fb-body, .promo-body { padding: 30px 24px; }
    .recipe-facts { grid-template-columns: repeat(2, 1fr); }
    .recipe-facts > div:nth-child(3) { border-left: 0; }
    .recipe-facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
    .step { grid-template-columns: 46px 1fr; gap: 14px; }
    .step-num { width: 46px; height: 46px; font-size: 1.2rem; }
    .step:not(:last-child)::before { left: 22px; top: 46px; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .match-card { grid-template-columns: 84px 1fr; }
    .match-card img { width: 84px; height: 84px; }
    .match-card .ring { position: absolute; right: 10px; top: 10px; width: 48px; height: 48px; }
    .match-card .ring span { font-size: .74rem; }
    .match-card h3 { padding-right: 52px; font-size: 1.02rem; }
    .finder-options { grid-template-columns: 1fr; }
    .picker { padding: 16px; }
    .meal-grid { grid-template-columns: 1fr; }
    .meal-day { display: grid; grid-template-columns: 1fr 1fr 1fr; }
    .meal-day-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; text-align: left; }
    .add-row { grid-template-columns: 1fr 1fr; }
    .add-row .input:first-child { grid-column: 1 / -1; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .timer-dock { right: 12px; left: 12px; width: auto; bottom: 84px; }
    .toast-wrap { bottom: 90px; width: calc(100% - 32px); }
    .search-box { margin: 0; border-radius: 0 0 var(--r-lg) var(--r-lg); }
    .recipe-card.is-horizontal { flex-direction: column; }
    .recipe-card.is-horizontal .rc-media { width: 100%; aspect-ratio: 4 / 3; }

    .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; height: 66px; padding-bottom: env(safe-area-inset-bottom); background: rgba(255, 253, 249, .96); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
    .bottom-nav a, .bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .66rem; font-weight: 750; color: var(--muted); background: none; border: 0; }
    .bottom-nav .icon { width: 22px; height: 22px; }
    .bottom-nav .is-active { color: var(--terracotta); }
    .bottom-nav .bn-center { position: relative; }
    .bottom-nav .bn-center span.bubble { width: 50px; height: 50px; border-radius: 50%; background: var(--terracotta); color: #fff; display: grid; place-items: center; margin-top: -24px; box-shadow: 0 8px 20px -6px rgba(180, 83, 42, .7); }
}

/* Chop etish */
@media print {
    .site-header, .site-footer, .bottom-nav, .no-print, .timer-dock, .toast-wrap { display: none !important; }
    body { background: #fff; padding: 0; }
}

/* Aloqa: natija modali */
.field-error:empty { display: none; }
.input.is-invalid, .textarea.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(185, 60, 40, .1); }
.contact-result { text-align: center; padding: 40px 32px 32px; max-width: 460px; }
.contact-result .result-icon { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: #e6efdc; color: #4f6b3a; animation: pop .45s var(--ease); }
.contact-result .result-icon svg { width: 38px; height: 38px; stroke-width: 2.6; }
.contact-result .result-icon.warn { background: #fbe9dc; color: var(--terracotta, #c0603a); }
.contact-result h3 { margin-bottom: 10px; }
.contact-result p { color: var(--muted); line-height: 1.65; margin: 0 0 24px; }
.contact-result .result-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.contact-result .result-icon > span:not([hidden]) { display: grid; place-items: center; }
.contact-result .result-list { text-align: left; color: var(--muted); line-height: 1.6; margin: 0 auto 24px; padding-left: 1.2em; max-width: 360px; }
.contact-result .result-list li + li { margin-top: 6px; }
.btn.is-loading { opacity: .75; cursor: wait; }
.btn.is-loading svg { animation: send-fly 1s ease-in-out infinite; }
@keyframes send-fly { 50% { transform: translate(3px, -3px); } }

/* Sahifa boshiga qaytish tugmasi */
.to-top { position: fixed; right: 20px; bottom: 24px; z-index: 75; width: 50px; height: 50px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--terracotta); color: #fff; box-shadow: 0 10px 24px -8px rgba(180, 83, 42, .6); cursor: pointer; opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease), bottom .25s var(--ease), background .2s; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--terracotta-600); }
.to-top:focus-visible { outline: 3px solid var(--terracotta-50); outline-offset: 3px; }
.to-top .icon { width: 22px; height: 22px; stroke-width: 2.4; }
@media (max-width: 720px) { .to-top { right: 16px; width: 46px; height: 46px; } }
@media print { .to-top { display: none; } }
