/* =====================================================================
   Minor Somsa — sayt (minorsomsa.app)
   Mini App bilan bir xil kod; bu fayl faqat sayt ko‘rinishini belgilaydi (body.web).

   Dizayn tizimi
   Ranglar: Tandir (to‘q bordo) — bosh qism; Qizil — asosiy amal; Kunjut — yagona urg‘u;
            neytral fon va oq sirtlar. Qizil faqat amal va narxda, bezak uchun emas.
   Shriftlar: Unbounded — sarlavhalar va jami summa (brend ovozi);
              Onest — interfeys matni (lotin + kirill, o‘qilishi oson).
   Oraliqlar: 4 · 8 · 12 · 16 · 20 · 24 · 32 · 48 px.
   Burchaklar: kichik elementlar 8px, maydon/tugma 10px, kartochka 14px, oyna 18px.
   ===================================================================== */

html { background: #f4f2f0; }

body.web {
  --tandir: #2a0907;      /* bosh qism, to‘q sirtlar */
  --tandir-2: #3b0f0b;
  --red: #c81e0a;         /* asosiy amal */
  --red-deep: #9f1707;
  --red-soft: #fbecea;
  --sesame: #e3a83b;      /* yagona urg‘u: tanlangan kategoriya, savatdagi son */
  --bg: #f4f2f0;
  --card: #ffffff;
  --ink: #1b1513;
  --ink-2: #4a3f3b;
  --muted: #776b67;
  --line: #e6e0dc;
  --line-2: #d6cec9;
  --ok: #18834a; --ok-soft: #e6f4ec;
  --bad: #b3261e; --bad-soft: #fcebea;
  --warn-soft: #fbf1df;
  --focus: 0 0 0 3px rgba(200, 30, 10, .22);
  --shadow-1: 0 1px 2px rgba(42, 9, 7, .05);
  --shadow-2: 0 2px 6px rgba(42, 9, 7, .06), 0 12px 32px rgba(42, 9, 7, .08);
  --font: 'Onest', 'Segoe UI', Roboto, system-ui, -apple-system, Arial, sans-serif;
  --display: 'Unbounded', 'Onest', 'Segoe UI', system-ui, sans-serif;
  --r-sm: 8px; --r-md: 10px; --r-lg: 14px; --r-xl: 18px;
  --max: 1320px;
  --head-h: 0px;
  --gut: 16px;

  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (min-width: 768px) { body.web { --gut: 24px; } }
@media (min-width: 1200px) { body.web { --gut: 32px; } }

.web ::selection { background: rgba(200, 30, 10, .18); }
.web :focus-visible { outline: none; box-shadow: var(--focus); }
.web button { -webkit-tap-highlight-color: transparent; }
.web .muted { color: var(--muted); }
.web .bad-t { color: var(--bad); }
.web .splash { background: var(--tandir); }

/* ---------- Bosh qism ---------- */
.w-head { background: var(--tandir); color: #fff; position: relative; z-index: 40; box-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.w-bar {
  position: relative; max-width: var(--max); margin: 0 auto; padding: 12px var(--gut);
  display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: 'logo seg where acts';
  align-items: center; gap: 16px;
}
.w-logo { grid-area: logo; height: 44px; width: auto; display: block; }
.w-seg { grid-area: seg; display: flex; padding: 4px; gap: 4px; border-radius: var(--r-md); background: rgba(255, 255, 255, .08); }
.w-seg button { border: 0; background: transparent; color: rgba(255, 255, 255, .78); font: 600 14px/1 var(--font); padding: 11px 16px; border-radius: var(--r-sm); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.w-seg button:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.w-seg button.on { background: #fff; color: var(--tandir); }
.w-where {
  grid-area: where; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #fff;
  border-radius: var(--r-md); padding: 8px 14px; min-height: 50px; font: inherit; transition: background .15s, border-color .15s;
}
.w-where:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .24); }
.w-where > svg { flex-shrink: 0; color: var(--sesame); }
.w-where .chev { color: rgba(255, 255, 255, .55); }
.w-where .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.w-where small { font-size: 12px; color: rgba(255, 255, 255, .6); }
.w-where b, .w-where select { font: 600 15px/1.3 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.w-where select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; padding: 0; width: 100%; cursor: pointer; outline: none; }
.w-where select option { color: var(--ink); }
.w-acts { grid-area: acts; display: flex; align-items: center; gap: 6px; }
.w-link { border: 0; background: transparent; color: rgba(255, 255, 255, .82); font: 600 14px/1 var(--font); padding: 10px 10px; border-radius: var(--r-sm); cursor: pointer; white-space: nowrap; }
.w-link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.w-lang { border: 1px solid rgba(255, 255, 255, .22); background: transparent; color: #fff; font: 600 13px/1 var(--font); padding: 9px 10px; border-radius: var(--r-sm); cursor: pointer; }
.w-lang:hover { background: rgba(255, 255, 255, .08); }
.w-login { display: inline-flex; align-items: center; gap: 8px; border: 0; background: #fff; color: var(--tandir); font: 600 14px/1 var(--font); padding: 11px 14px; border-radius: var(--r-md); cursor: pointer; white-space: nowrap; }
.w-login svg { color: #229ed9; }
.w-login:hover { background: #fff3ee; }
.w-user { display: flex; align-items: center; gap: 8px; padding-left: 6px; }
.w-user .av { width: 32px; height: 32px; border-radius: 50%; background: var(--sesame); color: var(--tandir); font: 700 14px/32px var(--font); text-align: center; flex-shrink: 0; }
.w-user .nm { font-weight: 600; font-size: 14px; max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.w-note { background: #fbf1df; border-bottom: 1px solid #efdcb6; color: #6b4a12; font-size: 13.5px; }
.w-note-in { max-width: var(--max); margin: 0 auto; padding: 10px var(--gut); }

/* ---------- Menyu: kategoriyalar | mahsulotlar | savat ---------- */
.web .web-body { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.web .cats {
  position: sticky; top: var(--head-h); z-index: 20; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  background: var(--bg); margin: 0 calc(-1 * var(--gut)); padding: 12px var(--gut); border-bottom: 1px solid var(--line);
}
.web .cats::-webkit-scrollbar { display: none; }
.web .cats button {
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2); border-radius: 999px; padding: 9px 16px;
  font: 600 14px/1 var(--font); white-space: nowrap; cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
.web .cats button:hover { border-color: var(--line-2); color: var(--ink); }
.web .cats button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.web .web-main .wrap { max-width: none; padding: 8px 0 120px; }

.web .menu-sec { padding-top: 8px; scroll-margin-top: calc(var(--head-h) + 64px) !important; }
.web .sec-title { font: 600 22px/1.2 var(--display); letter-spacing: -.01em; margin: 24px 0 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.web .sec-title small { font: 600 12px/1 var(--font); color: var(--ink-2); background: var(--warn-soft); border-radius: 999px; padding: 6px 10px; letter-spacing: 0; }
.web .alert { border-radius: var(--r-md); font-size: 14px; padding: 12px 14px; }
.web .web-main > .wrap > .alert { margin-top: 16px; }

.web .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 620px) { .web .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }

.web .prod { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: none; overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.web .prod:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); }
.web .prod .ph { aspect-ratio: 4 / 3; background: #efe7e3; color: var(--red-deep); font: 600 34px var(--display); position: relative; cursor: default; }
.web .prod .ph img { width: 100%; height: 100%; object-fit: cover; }
.web .prod .info { padding: 12px 14px 0; }
.web .prod .name { font: 600 15px/1.3 var(--font); color: var(--ink); }
.web .prod .desc { font-size: 13px; line-height: 1.4; color: var(--muted); margin-top: 4px; }
.web .prod .foot { padding: 10px 14px 14px; display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: auto; }
.web .prod .price { font: 700 16px/1.2 var(--font); margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.web .prod .add { width: 100%; border: 0; border-radius: var(--r-md); background: var(--red-soft); color: var(--red-deep); font: 600 14px/1 var(--font); padding: 11px 14px; cursor: pointer; transition: background .15s, color .15s; white-space: nowrap; }
.web .prod .add:hover:not(:disabled) { background: var(--red); color: #fff; }
.web .prod .add:disabled { background: #f1eeec; color: var(--muted); }
.web .prod.off .ph img { filter: grayscale(.85); opacity: .7; }
.web .prod.off .name, .web .prod.off .price { color: var(--muted); }
.web .prod.off { opacity: 1; }
.web .prod .qty { width: 100%; border-radius: var(--r-md); background: var(--red); }
.web .qty button { width: 36px; height: 38px; font-size: 18px; font-weight: 600; }
.web .qty button:hover { background: rgba(0, 0, 0, .08); }
.web .qty.light { background: #f3efed; }
.web .qty.light button:hover { background: rgba(0, 0, 0, .05); }
.web .qty-in { font: 700 15px var(--font); }
.web .ph-badge { position: absolute; top: 10px; right: 10px; background: var(--red); color: #fff; font: 700 13px/1 var(--font); border-radius: 999px; padding: 6px 9px; }

/* Telefonda mahsulot pastki qismi tor — narx va tugma ustma-ust */
@media (max-width: 619px) {
  .web .prod .foot { gap: 8px; padding: 8px 12px 12px; }
  .web .prod .info { padding: 10px 12px 0; }
  .web .prod .name { font-size: 14px; }
}

/* Savat (o‘ng ustun) */
.side-cart { display: none; }
.sc-in { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.sc-head { display: flex; align-items: center; gap: 10px; }
.sc-head b { font: 600 18px/1.2 var(--display); }
.sc-head .n { background: var(--sesame); color: var(--tandir); border-radius: 999px; padding: 4px 9px; font: 700 13px/1 var(--font); }
.sc-empty { text-align: center; padding: 28px 8px 20px; }
.sc-empty .ic { font-size: 34px; margin-bottom: 8px; filter: grayscale(.3); }
.sc-lines { display: flex; flex-direction: column; max-height: calc(100vh - 300px); overflow: auto; margin: 0 -6px; padding: 0 6px; }
.sc-line { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sc-line:last-child { border-bottom: 0; }
.sc-line .grow { flex: 1; min-width: 0; }
.sc-line .bold { font-weight: 600; }
.sc-line .thumb { width: 44px; height: 44px; border-radius: var(--r-sm); background: #efe7e3; }
.sc-line.aux .thumb { display: flex; align-items: center; justify-content: center; color: var(--ink-2); background: #f3efed; }
.web .line .thumb svg { color: var(--ink-2); }
.sc-sum { display: flex; justify-content: space-between; font-size: 14px; font-variant-numeric: tabular-nums; }
.qty.sm { width: 104px; flex-shrink: 0; }
.qty.sm button { width: 32px; height: 34px; font-size: 17px; }

/* Savat tugmasi (planshet va telefon) */
.web .cartbar { background: var(--red); border-radius: var(--r-lg); box-shadow: 0 10px 28px rgba(159, 23, 7, .35); padding: 14px 18px; font: 600 15px var(--font); max-width: 640px; left: var(--gut); right: var(--gut); }
.web .cartbar .n { background: rgba(255, 255, 255, .2); border-radius: var(--r-sm); }

@media (min-width: 1024px) {
  .web .web-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: auto 1fr; column-gap: 32px; align-items: start; }
  .web .cats { grid-column: 1; margin: 0; padding: 16px 0 12px; }
  .web .web-main { grid-column: 1; grid-row: 2; min-width: 0; }
  .web .side-cart { display: block; grid-column: 2; grid-row: 1 / span 2; position: sticky; top: calc(var(--head-h) + 24px); margin-top: 24px; }
  .web .cartbar { display: none; }
  .web .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (min-width: 1240px) {
  /* Katta ekran: kategoriyalar chapda vertikal ro‘yxat */
  .web .web-body { grid-template-columns: 200px minmax(0, 1fr) 360px; grid-template-rows: auto; }
  .web .cats { grid-column: 1; grid-row: 1; position: sticky; top: calc(var(--head-h) + 24px); flex-direction: column; gap: 2px; border: 0; padding: 32px 0 0; overflow: visible; background: transparent; }
  .web .cats button { border: 0; background: transparent; border-radius: var(--r-sm); text-align: left; padding: 11px 14px; font-size: 15px; color: var(--ink-2); position: relative; }
  .web .cats button:hover { background: rgba(42, 9, 7, .05); color: var(--ink); }
  .web .cats button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow-1); }
  .web .cats button.on::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: var(--sesame); }
  .web .web-main { grid-column: 2; grid-row: 1; }
  .web .side-cart { grid-column: 3; grid-row: 1; }
  .web .menu-sec:first-child .sec-title { margin-top: 32px; }
}

/* ---------- Umumiy komponentlar ---------- */
.web .btn { border-radius: var(--r-md); min-height: 50px; padding: 14px 18px; font: 600 15px/1.2 var(--font); background: var(--red); transition: background .15s, opacity .15s; }
.web .btn:hover:not(:disabled) { background: var(--red-deep); }
.web .btn:disabled { opacity: 1; background: #e3c9c4; color: #fff; cursor: not-allowed; }
.web .btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line-2); }
.web .btn.ghost:hover:not(:disabled) { background: #f7f4f2; }
.web .btn.soft { background: var(--red-soft); color: var(--red-deep); }
.web .btn.soft:hover:not(:disabled) { background: #f7dcd6; }

.web .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: none; padding: 20px; margin-bottom: 16px; }
.web .card h3 { margin: 0 0 14px; font: 600 16px/1.3 var(--font); text-transform: none; letter-spacing: 0; color: var(--ink); }
.web .field { gap: 6px; margin-bottom: 12px; }
.web .field > span { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.web .input, .web .textarea, .web .select { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 12px 14px; min-height: 48px; font: 400 15px/1.3 var(--font); transition: border-color .15s, box-shadow .15s; }
.web .input:hover, .web .textarea:hover, .web .select:hover { border-color: #c3b8b2; }
.web .input:focus, .web .textarea:focus, .web .select:focus { border-color: var(--red); box-shadow: var(--focus); background: var(--card); }
.web .phone-in { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-md); transition: border-color .15s, box-shadow .15s; }
.web .phone-in:focus-within { border-color: var(--red); box-shadow: var(--focus); }
.web .phone-in .input, .web .phone-in .input:focus, .web .phone-in .input:hover { border: 0; box-shadow: none; background: transparent; }
.web .phone-in b { font-weight: 600; color: var(--ink-2); padding-left: 14px; }
.web .opt { gap: 8px; }
.web .opt button { border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--card); padding: 12px 10px; min-height: 48px; font: 600 14px/1.2 var(--font); color: var(--ink-2); transition: border-color .15s, background .15s; }
.web .opt button:hover:not(:disabled) { border-color: #bfb3ad; }
.web .opt button.on { border-color: var(--red); background: var(--red-soft); color: var(--red-deep); }
.web .opt button:disabled { opacity: .5; cursor: not-allowed; }
.web .line { padding: 12px 0; gap: 12px; }
.web .thumb { border-radius: var(--r-sm); background: #efe7e3; }
.web .badge { border-radius: 999px; padding: 5px 10px; font-weight: 600; }
.web .support { border-radius: var(--r-md); border-color: var(--line); font-size: 13.5px; color: var(--ink-2); }
.web .support a { color: var(--red); }

/* Ichki sahifalar sarlavhasi */
.web .bar { background: var(--card); border-bottom: 1px solid var(--line); padding: 12px max(var(--gut), calc((100% - 1120px) / 2)); min-height: 64px; }
.web .bar h1 { font: 600 18px/1.2 var(--display); letter-spacing: -.01em; }
.web .back { width: 40px; height: 40px; border-radius: var(--r-md); background: #f3efed; font-size: 22px; color: var(--ink); transition: background .15s; }
.web .back:hover { background: #e9e3e0; }
.web .ck-page .wrap, .web .bar + .wrap { max-width: 1120px; padding: 24px var(--gut) 140px; }

/* Rasmiylashtirish: chapda forma, o‘ngda buyurtma va jami */
.web .ck-side .ck-submit { display: none; }
.web .ck-side .ck-products, .web .ck-side .ck-sum { margin-bottom: 16px; }
.web .sum .l { padding: 6px 0; font-variant-numeric: tabular-nums; }
.web .sum .total { font: 600 24px/1.2 var(--display); color: var(--ink); letter-spacing: -.01em; }
.web .sticky-foot { border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(42, 9, 7, .06); padding: 12px var(--gut) calc(12px + env(safe-area-inset-bottom)); }
.web .sticky-foot .inner { max-width: 640px; }
@media (min-width: 1024px) {
  .web .ck { display: grid; grid-template-columns: minmax(0, 1fr) 400px; column-gap: 32px; align-items: start; padding-bottom: 64px; }
  .web .ck-side { position: sticky; top: 88px; }
  .web .ck-side .ck-submit { display: block; margin: 0 0 12px; }
  .web .ck-page .sticky-foot { display: none; }
  .web .ck-side .ck-products { max-height: 42vh; overflow: auto; }
}

/* Buyurtmalarim */
.web .bar + .wrap .card .steps { margin-top: 12px; }
.web .steps i { height: 4px; border-radius: 2px; background: var(--line); }
.web .steps i.on { background: var(--ok); }
.web .empty { padding: 64px 20px; color: var(--muted); font-size: 15px; }

/* Muvaffaqiyat va to‘lov kutish */
.web .done { padding: 72px var(--gut); max-width: 520px; margin: 0 auto; }
.web .done .big { width: 72px; height: 72px; font-size: 34px; background: var(--ok-soft); color: var(--ok); }
.web .done h2 { font: 600 24px/1.25 var(--display); text-wrap: balance; letter-spacing: -.01em; margin-bottom: 10px; }
.web .done .num { font: 600 44px/1.1 var(--display); color: var(--red); letter-spacing: -.02em; }

/* Xarita sahifasi */
.web .map-page .bar { padding: 10px var(--gut); }
.web .map-search .input { box-shadow: var(--shadow-2); border-color: transparent; }
.web .map-search .results { border-radius: var(--r-md); box-shadow: var(--shadow-2); }
.web .map-search .results button:hover { background: #f7f4f2; }
.web .map-foot { border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 18px var(--gut) calc(18px + env(safe-area-inset-bottom)); }
@media (min-width: 768px) {
  .web .map-search { left: 50%; right: auto; width: min(560px, calc(100% - 48px)); transform: translateX(-50%); top: 16px; }
  .web .map-foot { max-width: 640px; width: calc(100% - 48px); margin: 0 auto 24px; border-radius: var(--r-xl); box-shadow: var(--shadow-2); }
  .web .locate { bottom: 24px; right: 24px; }
}

/* Oynalar */
.web .modal-back { background: rgba(27, 12, 9, .5); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.web .modal { border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 24px 20px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 40px rgba(0, 0, 0, .18); }
.web .modal h3 { font: 600 19px/1.3 var(--display); letter-spacing: -.01em; margin-bottom: 10px; }
@media (min-width: 640px) {
  .web .modal-back { align-items: center; padding: 24px; }
  .web .modal { border-radius: var(--r-xl); max-width: 480px; padding: 28px; box-shadow: 0 24px 64px rgba(0, 0, 0, .25); animation: w-pop .18s ease-out; }
}
@keyframes w-pop { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.web .size-opt { border-radius: var(--r-md); }

/* Kirish oynasi */
.login-modal { text-align: center; position: relative; padding-top: 32px !important; }
.login-modal .x { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border: 0; border-radius: var(--r-md); background: #f3efed; font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink); }
.login-modal .x:hover { background: #e9e3e0; }
.login-modal h3 { margin: 16px 0 8px !important; }
.login-modal .small { max-width: 360px; margin: 0 auto; line-height: 1.55; color: var(--ink-2); }
.tg-badge { width: 56px; height: 56px; border-radius: 50%; background: #229ed9; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.tg-widget { min-height: 48px; display: flex; justify-content: center; margin: 22px 0 12px; }

/* Bildirishnoma */
.web .toast { top: auto; bottom: 24px; border-radius: var(--r-md); background: var(--ink); font-size: 14px; padding: 12px 16px; box-shadow: var(--shadow-2); }
.web .toast.bad { background: var(--bad); }

/* Telefon: bosh qism ikki qatorda */
@media (max-width: 899px) {
  .w-bar { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: 'logo . acts' 'seg seg seg' 'where where where'; gap: 12px; padding-top: 12px; }
  .w-logo { height: 42px; }
  .w-seg button { flex: 1; }
  .w-user .nm { display: none; }
}
@media (max-width: 479px) {
  .w-link { padding: 8px 6px; font-size: 13px; }
  .w-login { padding: 10px 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .web *, .web *::before, .web *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 599px) {
  .web .bar h1 { font-size: 16px; }
  .web .card { padding: 16px; }
  .web .done .num { font-size: 36px; }
}

/* Keng ekran: bosh qism tepada qotib turadi */
@media (min-width: 900px) {
  body.web { --head-h: 68px; }
  .w-head { position: sticky; top: 0; }
  .w-bar { min-height: 68px; box-sizing: border-box; }
}

/* Telefon + Telegram kodi bilan kirish */
.otp { display: flex; flex-direction: column; gap: 12px; text-align: left; margin-top: 14px; }
.otp h3 { text-align: center; margin: 0 !important; }
.otp > .small { text-align: center; }
.otp-phone { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-md); background: #fff; min-height: 54px; transition: border-color .15s, box-shadow .15s; }
.otp-phone:focus-within { border-color: var(--red); box-shadow: var(--focus); }
.otp-phone b { padding: 0 6px 0 16px; color: var(--ink-2); font-weight: 600; font-size: 17px; }
.otp-phone input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 18px var(--font); padding: 0 12px 0 4px; height: 52px; letter-spacing: .5px; }
.otp-code { width: 100%; box-sizing: border-box; text-align: center; font: 600 28px/1 var(--display); letter-spacing: .35em; padding: 14px 10px; border: 1px solid var(--line-2); border-radius: var(--r-md); outline: 0; background: #fff; }
.otp-code:focus { border-color: var(--red); box-shadow: var(--focus); }
.otp .tiny { text-align: center; }
.otp-links { display: flex; justify-content: space-between; gap: 10px; }
.link-btn { border: 0; background: transparent; color: var(--red-deep); font: 600 14px var(--font); padding: 8px 0; cursor: pointer; }
.link-btn:disabled { color: var(--muted); cursor: default; }
.web .phone-in.verified { background: #f7f5f3; }
.web .phone-in .ver-badge { margin-right: 12px; font-size: 12px; font-weight: 700; color: var(--ok); background: var(--ok-soft); border-radius: 999px; padding: 4px 9px; white-space: nowrap; }
.w-user .av svg { display: block; margin: 8px auto; }
