/* Uslub: Apple Developer ilovasi tartibi — chapda yon panel, tepada asboblar paneli, qorong'i oynalar.
   Kurs qoidalari: bitta font, sarlavha = matn × 2, chapga tekislash, qator 45–66 belgi, urg'u uchun bitta usul. */
:root {
  --bg: #1E1E1E; --side: #262626; --card: #2A2A2C; --row: #262628; --row-h: #2E2E30;
  --hover: rgba(255, 255, 255, .06); --sel: #3A3A3C; --line: #38383A;
  --text: #F5F5F7; --body: #E5E5EA; --muted: #98989D; --dim: #6E6E73; --accent: #FF453A; --blue: #0A84FF;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; background: var(--bg); color: var(--text); font: 17px/1.47 var(--font); -webkit-font-smoothing: antialiased; color-scheme: dark; overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
img, video { display: block; max-width: 100%; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
svg.f { fill: currentColor; stroke: none; }

/* ---------- karkas ---------- */
.app { display: grid; grid-template-columns: 280px 1fr; height: 100vh; height: 100dvh; transition: grid-template-columns .3s var(--ease); }
.app.collapsed { grid-template-columns: 0 1fr; }
.side { background: var(--side); border-right: 1px solid #161616; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.nav { flex: 1; overflow-y: auto; padding: 14px 8px 12px; scrollbar-width: thin; scrollbar-color: #444 transparent; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 8px; font-size: 15px; white-space: nowrap; }
.nav a:hover { background: var(--hover); }
.nav a.on { background: var(--sel); }
.av { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(145deg, #55555A, #2C2C2E); display: grid; place-items: center; font-size: 14px; font-weight: 600; flex: none; letter-spacing: .02em; }

.main { display: flex; flex-direction: column; min-width: 0; height: 100vh; height: 100dvh; }
.bar { display: flex; align-items: center; gap: 10px; padding: 10px 20px; min-height: 58px; border-bottom: 1px solid #161616; flex: none; }
.bar h1 { font-size: 17px; font-weight: 600; margin-left: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.gbtn { width: 36px; height: 36px; border-radius: 50%; background: #2C2C2E; display: grid; place-items: center; color: var(--muted); flex: none; transition: color .15s, background .15s; }
.gbtn:hover, .gbtn.on { color: var(--text); background: #3A3A3C; }
.pill { display: inline-flex; align-items: center; background: #2C2C2E; border-radius: 999px; height: 36px; flex: none; }
.pill button { height: 36px; padding: 0 10px; display: grid; place-items: center; color: var(--muted); }
.pill button:hover:not(:disabled), .pill button.on { color: var(--text); }
.pill button:disabled { color: #4A4A4E; cursor: default; }
.pill .sep { width: 1px; height: 18px; background: #3A3A3C; }

.view { flex: 1; overflow-y: auto; padding: 28px 32px 72px; scrollbar-width: thin; scrollbar-color: #444 transparent; }
.wrap { max-width: 1240px; margin: 0 auto; }
.enter { animation: enter .34s var(--ease); }
@keyframes enter { from { opacity: 0; filter: blur(6px); transform: translateY(6px); } }

/* ---------- umumiy ---------- */
.sec { display: flex; align-items: center; gap: 4px; font-size: 22px; font-weight: 700; margin: 44px 0 14px; width: fit-content; }
.sec svg { width: 18px; height: 18px; color: var(--muted); transition: transform .2s var(--ease); }
a.sec:hover svg { transform: translateX(3px); color: var(--text); }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 600; background: var(--text); color: #000; transition: opacity .15s; }
.btn:hover { opacity: .88; }
.btn.glass { background: rgba(255, 255, 255, .12); color: var(--text); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.btn.glass:hover { background: rgba(255, 255, 255, .18); opacity: 1; }
.btn svg { width: 16px; height: 16px; }
.muted { color: var(--muted); }

/* ---------- hero (Discover banneri) ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(300px, 1fr) 1.9fr; min-height: 460px; border-radius: 16px; overflow: hidden; background: #232325; isolation: isolate; }
.hero .bg { position: absolute; inset: -80px; z-index: -1; background-size: cover; background-position: center; filter: blur(60px) brightness(.42) saturate(1.3); }
.hero .txt { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(90deg, rgba(36, 36, 38, .82), rgba(36, 36, 38, 0)); }
.hero h2 { font-size: 34px; font-weight: 700; line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; }
.hero p { font-size: 17px; color: #C7C7CC; margin-top: 12px; max-width: 34ch; text-wrap: pretty; }
.hero .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.hero .phones { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 2vw, 26px); padding: 32px 24px; }
.hero.solo { grid-template-columns: 1fr; min-height: 300px; background: linear-gradient(160deg, #2E2E30, #1F1F21); }
.hero.solo .txt { background: none; }
/* «Men haqimda» — Apple Developer «Community events» banneri uslubida */
.hero.event { grid-template-columns: 1fr; min-height: 440px; text-align: center;
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(183, 84, 205, .95), rgba(183, 84, 205, 0) 62%),
    radial-gradient(60% 70% at 100% 100%, rgba(128, 56, 232, .95), rgba(128, 56, 232, 0) 65%),
    radial-gradient(55% 60% at 12% 100%, rgba(52, 38, 168, .9), rgba(52, 38, 168, 0) 70%),
    radial-gradient(60% 60% at 80% 18%, rgba(64, 44, 186, .9), rgba(64, 44, 186, 0) 70%),
    linear-gradient(135deg, #8E44C8 0%, #5B33C2 40%, #4430B4 62%, #6A36D6 100%); }
.hero.event .txt { align-items: center; padding: 56px 28px; background: none; }
.hero.event .mark { width: 150px; height: 125px; margin-bottom: 26px; filter: drop-shadow(0 12px 28px rgba(28, 8, 90, .35)); }
.hero.event .av.big { margin-bottom: 24px; }
.hero.event h2 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; letter-spacing: -.02em; color: #F5F5F7; }
.hero.event p { max-width: 40ch; margin: 14px auto 0; font-size: 20px; line-height: 1.45; color: rgba(255, 255, 255, .88); }
.hero.event p.rol { margin-top: 8px; font-size: 22px; font-weight: 500; color: rgba(255, 255, 255, .78); }
.hero.event .acts { justify-content: center; margin-top: 28px; }
/* «Men haqimda» — Apple Developer «WWDC highlights» kartasi: chapda shisha panel, o'ngda nur bilan chizilgan sketch-avatarka */
/* Apple uslubida bo'linish: rasm qatlami butun karta bo'ylab, chap panel — uning ustidagi xira shisha (backdrop blur).
   Shisha ostidagi iliq/sovuq yorug'liklar xiralashib panelga tus beradi; o'ngda rasm aniq va to'qroq — chiziq kerak emas */
.hero.feature { position: relative; grid-template-columns: minmax(280px, 1fr) 2.45fr; min-height: 460px; background: #151518; }
.hero.feature .bg { display: none; }
.hero.feature .txt { position: relative; z-index: 1; padding: 40px 36px 56px; justify-content: center;
  background: linear-gradient(180deg, rgba(28, 28, 32, .62) 0%, rgba(34, 35, 41, .45) 45%, rgba(32, 32, 36, .38) 70%, rgba(26, 26, 29, .6) 100%);
  -webkit-backdrop-filter: blur(44px) saturate(1.35); backdrop-filter: blur(44px) saturate(1.35); }
.hero.feature .eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: #A1A1A6; }
.hero.feature h2 { font-size: 30px; margin-top: 8px; color: #F5F5F7; }
.hero.feature p { color: rgba(235, 235, 245, .6); margin-top: 10px; max-width: 30ch; font-size: 17px; line-height: 1.38; }
/* rasm qatlami: to'q kulrang asos, bosh orqasida sovuq yorug'lik; chap qismdagi iliq va sovuq dog'lar shisha ostida xiralashadi */
.hero.feature .art { position: absolute; inset: 0; z-index: 0; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(30% 56% at 65% 45%, rgba(78, 80, 98, .5) 0%, rgba(58, 60, 76, .24) 45%, rgba(24, 24, 28, 0) 78%),
    radial-gradient(28% 48% at 2% 74%, rgba(160, 142, 138, .55) 0%, rgba(160, 142, 138, 0) 100%),
    radial-gradient(30% 34% at 10% 42%, rgba(96, 104, 132, .3) 0%, rgba(96, 104, 132, 0) 100%),
    linear-gradient(180deg, #131316 0%, #17171B 50%, #121214 100%); }
/* sketch — oq qalam chizmasi (nursiz, rangsiz); qora yoki shaffof fonli rasm ham to'g'ri chiqadi */
.hero.feature .art img.line { position: absolute; left: 65%; top: 57%; height: 168%; width: auto; max-width: none; transform: translate(-50%, -50%); mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(closest-side, #000 80%, transparent); mask-image: radial-gradient(closest-side, #000 80%, transparent); }
.phone { position: relative; display: block; aspect-ratio: 4 / 5; height: clamp(240px, 26vw, 380px); border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); transition: transform .4s var(--ease), opacity .4s var(--ease); }
.phone img, .phone video { width: 100%; height: 100%; object-fit: cover; }
.phone.side { height: clamp(190px, 20vw, 300px); opacity: .72; }
.phone:hover { transform: translateY(-4px); opacity: 1; }

/* ---------- kartalar ---------- */
.wrap > .sec:first-child { margin-top: 0; }
/* qatorda har qanday formatdan 4 ta karta; balandlik rasm nisbatidan */
.row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 18px) / 4); gap: 18px; align-items: start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.row::-webkit-scrollbar { display: none; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: start; }
.grid.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* YouTube kabi keng formatlar — bir qatorda 2 ta */
.grid.qator { grid-template-columns: repeat(4, minmax(0, 1fr)); } /* 4 tagacha dizaynli guruh — har qanday kenglikda bitta qatorda */
.grid > .card.full { grid-column: 1 / -1; } /* banner — to'liq kenglikda */
/* kompaniya ichidagi tur tugmalari (SMD, Flyer, Cover, Banner) */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: -10px 0 14px; padding: 10px 0; position: sticky; top: -28px; z-index: 6; transition: transform .3s var(--ease), opacity .2s, background-color .2s; }
/* yopishgan holat (top = -.view padding-top — eng tepaga): xira fon; pastga aylantirilganda yashirinadi, yuqoriga — chiqadi */
.tabs.stuck { background: rgba(30, 30, 30, .82); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.tabs.stuck.hide { transform: translateY(-110%); opacity: 0; pointer-events: none; }
.tabs-pin { height: 0; }
.tab { height: 36px; padding: 0 18px; border-radius: 999px; background: #2C2C2E; color: var(--muted); font-size: 15px; font-weight: 500; transition: background .15s, color .15s; }
.tab:hover { color: var(--text); }
.tab.on { background: var(--text); color: #000; }
/* karusel postlar: har biri o'z qatorida, ko'p sahifalilarda ostida ‹ › */
.karusel + .karusel { margin-top: 20px; }
.karusel + .grid, .grid + .karusel { margin-top: 44px; } /* bir bo'limda karusel va oddiy dizaynlar aralash bo'lsa */
.k-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }
/* story: har biri o'z joyida suriladi; ostida ‹ chiziqlar › */
.story { min-width: 0; }
.st-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: 12px; cursor: grab; }
.st-track::-webkit-scrollbar { display: none; }
.st-track > .card { scroll-snap-align: start; scroll-snap-stop: always; }
.st-track.drag { scroll-snap-type: none; cursor: grabbing; }
.st-track img { -webkit-user-drag: none; user-select: none; }
.st-bar { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.st-bar .gbtn { width: 30px; height: 30px; color: var(--text); }
.st-bar .gbtn:disabled { color: #4A4A4E; background: #262628; cursor: default; }
.st-bar .gbtn svg { width: 16px; height: 16px; }
.st-seg { flex: 1; display: flex; gap: 4px; }
.st-seg i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .2); transition: background .25s; }
.st-seg i.on { background: var(--text); }
.k-nav .gbtn { width: 34px; height: 34px; color: var(--text); }
.k-nav .gbtn:disabled { color: #4A4A4E; background: #262628; cursor: default; }
.k-nav .gbtn svg { width: 18px; height: 18px; }
.grid + .grid { margin-top: 44px; }
.sub { font-size: 17px; font-weight: 600; color: var(--muted); margin: 34px 0 12px; }
.phead + .sub { margin-top: 0; }
.card { display: block; scroll-snap-align: start; min-width: 0; }
.tile { position: relative; aspect-ratio: var(--ar, 4 / 5); border-radius: 12px; overflow: hidden; background: #2C2C2E; }
.tile > img { width: calc(100% + 2px); max-width: none; height: calc(100% + 2px); margin: -1px; object-fit: cover; } /* 1px ortiqcha — chetda chok qolmasin */
.tile.ph { display: grid; place-items: center; box-shadow: inset 0 0 0 1px #3A3A3C; }
.tile.ph span { font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
.card:hover .tile.ph { background: #313133; }
.badge { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(28, 28, 30, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }
.badge svg { width: 10px; height: 10px; }

/* ---------- ro'yxat (News uslubi) ---------- */
.list > a { display: grid; grid-template-columns: 148px 1fr 18px; gap: 22px; align-items: center; padding: 14px 18px; border-radius: 12px; }
.list > a:nth-child(even) { background: var(--row); }
.list > a:hover { background: var(--row-h); }
.list .t { font-size: 20px; font-weight: 600; line-height: 1.25; text-wrap: pretty; }
.list .d { font-size: 15px; color: var(--muted); margin-top: 3px; }
.list .x { font-size: 17px; color: #D1D1D6; margin-top: 6px; max-width: 72ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-wrap: pretty; }
.list .chev { color: var(--dim); width: 18px; height: 18px; }
.count { font-size: 15px; color: var(--muted); margin-bottom: 14px; }

/* bo'lim sarlavhasi (yo'nalish / mijoz) */
.phead { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 30px; }
.phead .ic { width: 60px; height: 60px; border-radius: 16px; background: var(--card); display: grid; place-items: center; color: var(--text); flex: none; }
.phead .ic svg { width: 28px; height: 28px; }
.phead h2 { font-size: 34px; font-weight: 700; line-height: 1.15; letter-spacing: -.015em; }
.phead p { color: var(--muted); margin-top: 6px; max-width: 62ch; text-wrap: pretty; }

.prose { max-width: 62ch; margin-top: 30px; }
.prose p { font-size: 17px; line-height: 1.55; color: var(--body); margin-top: 14px; text-wrap: pretty; }


.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--card); font-size: 15px; }
a.chip:hover { background: var(--sel); }
.chip svg { width: 16px; height: 16px; color: var(--muted); }

.svc { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.svc a { display: block; background: var(--card); border-radius: 14px; padding: 18px; transition: background .15s; }
.svc a:hover { background: #313133; }
.svc svg { width: 26px; height: 26px; color: var(--muted); }
.svc b { display: block; font-size: 17px; font-weight: 600; margin-top: 16px; }
.svc span { display: block; font-size: 15px; color: var(--muted); margin-top: 4px; line-height: 1.4; text-wrap: pretty; }
.svc small { display: block; font-size: 13px; color: var(--dim); margin-top: 14px; }

/* ---------- men haqimda, ishlagan joylar, bog'lanish ---------- */
.av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.av.big { width: 104px; height: 104px; font-size: 34px; margin-bottom: 20px; }
.hero + .prose { margin-top: 34px; }
.logo { width: 64px; height: 64px; border-radius: 14px; background: var(--card); display: grid; place-items: center; overflow: hidden; color: var(--muted); flex: none; }
.logo img { width: 100%; height: 100%; object-fit: contain; }
.logo svg { width: 28px; height: 28px; }
.list.joys > a { grid-template-columns: 64px 1fr 18px; }
.phead .logo { width: 60px; height: 60px; border-radius: 16px; }
.phead p.d { margin-top: 4px; }
.phead .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.contacts { display: grid; gap: 10px; max-width: 640px; }
.contacts > a { display: grid; grid-template-columns: 48px 1fr 18px; gap: 16px; align-items: center; padding: 14px 18px; border-radius: 14px; background: var(--card); transition: background .15s; }
.contacts > a:hover { background: #313133; }
.contacts .ci { width: 48px; height: 48px; border-radius: 12px; background: #3A3A3C; display: grid; place-items: center; }
.contacts .ci svg { width: 24px; height: 24px; }
.contacts b { display: block; font-size: 17px; font-weight: 600; }
.contacts small { display: block; font-size: 15px; color: var(--muted); margin-top: 2px; }
.contacts .chev { width: 18px; height: 18px; color: var(--dim); }

/* ---------- kattalashtirish oynasi ---------- */
button.card { display: block; width: 100%; text-align: left; cursor: zoom-in; }
button.phone { padding: 0; cursor: zoom-in; }
.lb { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px 84px; background: rgba(12, 12, 14, .88); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); animation: fade .22s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.lb figure { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; }
.lb-m img { display: block; border-radius: 12px; }
.lb-m video { display: block; max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); width: auto; border-radius: 12px; }
.lb figcaption { text-align: center; }
.lb figcaption { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lb .gbtn { position: absolute; background: rgba(255, 255, 255, .1); color: var(--text); }
.lb .gbtn:hover { background: rgba(255, 255, 255, .18); }
.lb-x { top: 18px; right: 18px; }
.lb-p, .lb-n { top: 50%; transform: translateY(-50%); width: 44px; height: 44px; }
.lb-p { left: 18px; }
.lb-n { right: 18px; }

/* ---------- bo'sh holat, menyu, xabar ---------- */
.empty { display: grid; justify-items: center; text-align: center; padding: 90px 20px; color: var(--muted); }
.empty svg { width: 46px; height: 46px; stroke-width: 1.3; }
.empty b { display: block; color: var(--text); font-size: 22px; font-weight: 700; margin: 16px 0 6px; }
.empty p { max-width: 44ch; margin-bottom: 22px; text-wrap: pretty; }
.empty code { font: 15px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); background: var(--card); padding: 1px 6px; border-radius: 5px; }
.av svg { width: 55%; height: 55%; color: var(--muted); }
.scrim { position: fixed; inset: 0; z-index: 15; background: rgba(0, 0, 0, .45); }
.tabbar { display: none; }

/* ---------- moslashuvchanlik ---------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(280px, 1fr) 1.5fr; }
  .phone.side:last-child { display: none; }
  .row { grid-auto-columns: calc((100% - 2 * 18px) / 3); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .app, .app.collapsed { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 20; inset: 0 auto 0 0; width: 280px; transform: translateX(-100%); transition: transform .3s var(--ease); }
  .app.open .side { transform: none; }
  .view { padding: 20px 16px 96px; }
  .bar { padding: 8px 12px; gap: 8px; }
  .hero { grid-template-columns: 1fr; }
  .hero .txt { padding: 30px 22px 6px; background: none; }
  .hero .phones { padding: 22px 16px 28px; }
  .tabs { top: -20px; } /* .view padding-top shu kenglikda 20px */
  .hero.feature { grid-template-columns: 1fr; min-height: 0; }
  .hero.feature .art { position: relative; inset: auto; order: -1; aspect-ratio: 16 / 10; /* shisha ostidagi dog'lar telefonda kerak emas */
    background: radial-gradient(46% 64% at 50% 44%, rgba(78, 80, 98, .5) 0%, rgba(58, 60, 76, .24) 45%, rgba(24, 24, 28, 0) 78%), linear-gradient(180deg, #131316 0%, #17171B 50%, #121214 100%); }
  .hero.feature .art img.line { left: 50%; }
  .hero.feature .txt { -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(180deg, #1F1F23, #1A1A1D); }
  .hero.feature .txt { border-right: 0; }
  .phone.side:last-child { display: block; }
  .phone { height: clamp(210px, 50vw, 330px); }
  .phone.side { height: clamp(160px, 38vw, 250px); }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 12; justify-content: space-around; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: rgba(30, 30, 30, .86); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); border-top: 1px solid #2C2C2E; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 64px; padding: 4px 8px; font-size: 11px; font-weight: 500; color: var(--muted); }
  .tabbar a.on { color: var(--text); }
  .tabbar svg { width: 24px; height: 24px; }
}
@media (max-width: 640px) {
  .hero.feature .txt { padding: 24px 20px 28px; border-right: 0; }
  .hero.feature h2 { font-size: 26px; }
  .hero.event { min-height: 0; }
  .hero.event .txt { padding: 40px 18px 36px; }
  .hero.event .mark { width: 112px; height: 94px; margin-bottom: 20px; }
  .hero.event p { font-size: 17px; }
  .hero.event p.rol { font-size: 18px; }
  .row { grid-auto-columns: calc((100% - 14px) / 2.2); gap: 14px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .grid + .grid { margin-top: 32px; }
  .grid.wide { grid-template-columns: 1fr; }
  .grid.qator { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* bo'lim tugmalari telefonda bitta qatorda, yonga suriladi */
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; top: -20px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
  .list > a { grid-template-columns: 112px 1fr; gap: 14px; padding: 12px; }
  .list .chev, .next .chev { display: none; }
  .list.joys > a { grid-template-columns: 52px 1fr; }
  .list.joys .logo { width: 52px; height: 52px; border-radius: 12px; }
  .list .t, .next b { font-size: 17px; }
  .list .d { font-size: 13px; }
  .list .x { font-size: 15px; }
}
@media (max-width: 640px) {
  .lb { padding: 64px 12px 84px; }
  .lb-p, .lb-n { top: auto; bottom: 20px; transform: none; }
  .lb-p { left: calc(50% - 56px); }
  .lb-n { right: calc(50% - 56px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
