/* ═══════════════════════════════════════════════════════════════════════
   Ijtimoiy resurs xarita — sayt va Android ilova (yorug' uslub: och yashil fon, IHMA yashil aksent,
   yumshoq soyali kartochkalar)
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  --bg: #edf3eb;
  --paper: #f7fbf6;
  --card: #ffffff;
  --ink: #1a2a19;
  --ink-2: #4b5e49;
  --ink-3: #8a9a88;
  --line: rgba(40, 70, 37, 0.08);
  --teal: #54804f;
  --teal-2: #659961;
  --teal-d: #42673e;
  --teal-l: #dcefd9;
  --gold: #f2b544;
  --r: 26px;
  --sh: 0 14px 34px rgba(30, 56, 28, 0.11), 0 2px 6px rgba(30, 56, 28, 0.05);
  --sh-lg: 0 24px 60px rgba(30, 56, 28, 0.18), 0 4px 12px rgba(30, 56, 28, 0.06);
  --font: "Segoe UI", "Inter", "Roboto", system-ui, -apple-system, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
button, input { font-family: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }
.rise { animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards; }

/* ─── Ochilish ekrani ────────────────────────────────────────────────── */
.splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, var(--bg) 70%);
  transition: opacity 0.6s ease, visibility 0.6s;
}
.splash.is-gone { opacity: 0; visibility: hidden; }
.splash strong { margin-top: 20px; font-size: 24px; font-weight: 750; }
.splash small { font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-3); }
.splash__orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 30px;
  background: linear-gradient(145deg, var(--teal-2), var(--teal-d));
  color: #fff;
  box-shadow: 0 18px 40px rgba(84, 128, 79, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.35);
  animation: orb 1.6s ease-in-out infinite alternate;
}
.splash__ring {
  position: absolute;
  inset: -6px;
  border-radius: 34px;
  border: 2px solid rgba(84, 128, 79, 0.35);
  animation: ring 2s ease-out infinite;
}
.splash__ring + .splash__ring { animation-delay: 1s; }
/* Belgi: viloyat silueti + markazdagi tilla belgi */
.splash__mark { position: relative; overflow: visible; filter: drop-shadow(0 3px 6px rgba(18, 40, 16, 0.35)); }
.splash__land { fill: rgba(255, 255, 255, 0.96); }
.splash__pin { fill: var(--gold); stroke: #fff; stroke-width: 0.8; }
.splash__pulse { fill: var(--gold); transform-box: fill-box; transform-origin: center; animation: pin-pulse 1.6s ease-out infinite; }
@keyframes pin-pulse { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(2.6); opacity: 0; } }
@keyframes orb { to { transform: translateY(-6px); } }
@keyframes ring { from { transform: scale(0.95); opacity: 0.9; } to { transform: scale(1.7); opacity: 0; } }

.screen { position: fixed; inset: 0; }
.screen.is-enter { animation: rise 0.45s cubic-bezier(0.22, 1, 0.36, 1); }

/* ═══ Asosiy menyu ═══════════════════════════════════════════════════ */
.home {
  overflow-y: auto;
  padding: calc(18px + var(--safe-t)) 16px calc(118px + var(--safe-b));
  background:
    radial-gradient(520px 320px at 100% -6%, rgba(101, 153, 97, 0.16), transparent 70%),
    var(--bg);
  scrollbar-width: none;
}
.home::-webkit-scrollbar { display: none; }

.hello { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.hello h1 { margin: 0; font-size: 25px; font-weight: 800; letter-spacing: -0.01em; }
.hello p { margin: 5px 0 0; font-size: 13.5px; color: var(--ink-2); }
.wave { display: inline-block; transform-origin: 70% 80%; animation: wave 2.4s ease-in-out 1s 2; }
@keyframes wave { 15%, 45% { transform: rotate(16deg); } 30%, 60% { transform: rotate(-8deg); } 75% { transform: none; } }
.hello__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--sh);
}
.hello__logo img { display: block; height: 28px; width: auto; }

/* Chipta kartochka */
.ticket {
  display: flex;
  min-height: 182px;
  margin-bottom: 14px;
  border-radius: var(--r);
  background: var(--card);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
.ticket__main { position: relative; flex: 1; min-width: 0; padding: 18px 16px 16px 18px; }
.ticket__main::after {
  /* Yirtiladigan chiziq */
  content: "";
  position: absolute;
  right: 0; top: 14px; bottom: 14px;
  border-right: 2px dashed rgba(40, 70, 37, 0.14);
}
.eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
}
.ticket__title { margin: 6px 0 2px; font-size: 32px; line-height: 1.05; font-weight: 850; letter-spacing: -0.02em; }
.ticket__sub { margin: 0 0 16px; font-size: 13.5px; color: var(--ink-2); }
.ticket__stats { display: flex; gap: 14px; }
.tstat svg { display: block; margin-bottom: 4px; color: var(--teal); }
.tstat b { display: block; font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; }
.tstat span { display: block; font-size: 10.5px; color: var(--ink-3); }

.ticket__stub {
  position: relative;
  flex-shrink: 0;
  width: 96px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #9fcc97 0%, #659961 60%, #54804f 100%);
}
.ticket__stub::before {
  /* Chipta teshigi */
  content: "";
  position: absolute;
  left: -9px; top: 50%;
  width: 18px; height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--bg);
}
.stub__scene { position: relative; flex: 1; overflow: hidden; }
.stub__sun {
  position: absolute;
  right: 16px; top: 16px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #ffe39a;
  box-shadow: 0 0 18px #ffe39a;
  animation: orb 3s ease-in-out infinite alternate;
}
.stub__hill { position: absolute; bottom: -10px; border-radius: 50% 50% 0 0; }
.stub__hill--a { left: -20px; width: 90px; height: 54px; background: #42673e; }
.stub__hill--b { right: -26px; width: 100px; height: 66px; background: #2d4a2a; }
.stub__pin {
  position: absolute;
  left: 50%; top: 40%;
  width: 18px; height: 18px;
  margin-left: -9px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: #ff6b8b;
  box-shadow: 0 0 0 3px #fff;
  animation: pinbob 2s ease-in-out infinite;
}
@keyframes pinbob { 50% { transform: rotate(-45deg) translate(3px, -3px); } }
.stub__code {
  height: 30px;
  margin: 8px 10px 4px;
  background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 4px, #fff 4px 5px, transparent 5px 8px);
  opacity: 0.9;
}
.stub__txt { margin: 0 0 9px; font-size: 8.5px; font-weight: 700; letter-spacing: 0.2em; text-align: center; color: #eef7ef; }

/* Firuza kartochka (bo'limlar) */
.teal {
  margin-bottom: 14px;
  padding: 16px 14px 14px;
  border-radius: var(--r);
  background: linear-gradient(150deg, #659961 0%, #54804f 55%, #2d4a2a 100%);
  color: #fff;
  box-shadow: 0 20px 44px rgba(84, 128, 79, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  animation-delay: 0.08s;
}
.teal__head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.teal__big { display: flex; align-items: center; gap: 12px; }
.teal__big svg { color: #ffe39a; filter: drop-shadow(0 0 10px rgba(255, 227, 154, 0.6)); }
.teal__big b { display: block; font-size: 34px; line-height: 1; font-weight: 800; letter-spacing: -0.02em; }
.teal__big span { display: block; margin-top: 3px; font-size: 12px; color: rgba(238, 247, 239, 0.85); }
.net {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 11px;
  font-weight: 600;
}
.net i { width: 7px; height: 7px; border-radius: 50%; background: #ffe39a; box-shadow: 0 0 8px #ffe39a; }
.net.is-online i { background: #7dffb0; box-shadow: 0 0 8px #7dffb0; }
.teal__row { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.teal__row::-webkit-scrollbar { display: none; }
.tcol {
  flex: 1 0 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px 2px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #fff;
  text-align: center;
}
.tcol:active { background: rgba(255, 255, 255, 0.14); }
.tcol span {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 2.3em;   /* ikki qatorli nomlarda ham belgilar bir chiziqda tursin */
  font-size: 10px;
  line-height: 1.15;
  color: rgba(238, 247, 239, 0.85);
}
.tcol i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--c, var(--teal));
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}
.tcol b { font-size: 16px; font-weight: 750; }

/* 3D diorama */
.diorama {
  position: relative;
  height: 330px;
  margin: 4px -6px 14px;
  animation-delay: 0.16s;
}
.diorama__stage { position: absolute; inset: 0; }
.diorama__stage svg { width: 100%; height: 100%; overflow: visible; }
.dio-float { animation: dio-float 6s ease-in-out infinite; }
@keyframes dio-float { 50% { transform: translateY(-7px); } }
.dio-pin { animation: dio-drop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) backwards; }
@keyframes dio-drop { from { opacity: 0; transform: translateY(-40px); } }
.diorama__sign {
  position: absolute;
  left: 8px; top: 8px;
  padding: 8px 14px 9px;
  border-radius: 12px;
  background: linear-gradient(180deg, #7a5233, #5b3a22);
  color: #ffe9c7;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.05;
  box-shadow: 0 10px 22px rgba(60, 35, 15, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: rotate(-4deg);
}
.diorama__sign span { display: block; font-size: 15px; }
.diorama__sign small { display: block; font-size: 10px; letter-spacing: 0.3em; color: #f5cf9b; }
.diorama__note {
  position: absolute;
  right: 8px; bottom: 6px;
  width: 168px;
  padding: 12px 13px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--sh-lg);
  backdrop-filter: blur(8px);
}
.diorama__note b { display: block; font-size: 13.5px; }
.diorama__note span { display: block; margin-top: 4px; font-size: 11.5px; line-height: 1.4; color: var(--ink-2); }

/* Umumiy kartochka */
.card {
  margin-bottom: 14px;
  padding: 16px;
  border-radius: var(--r);
  background: var(--card);
  box-shadow: var(--sh);
}
.card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.card__head h3 { margin: 0; font-size: 17px; font-weight: 750; }
.card__more { font-size: 12px; color: var(--ink-3); }
.card__link { border: 0; background: transparent; font-size: 13px; font-weight: 650; color: var(--teal); padding: 0; }

.mapcard__view {
  position: relative;
  display: block;
  width: 100%;
  height: 200px;
  padding: 0;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #dcefd9;
}
.mapcard__svg { position: absolute; inset: 0; }
.mapcard__svg svg { width: 100%; height: 100%; }
.mapcard__btn {
  position: absolute;
  right: 12px; bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--sh);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--teal-d);
}

/* Bo'limlar ro'yxati */
.tlist { display: flex; flex-direction: column; }
.trow {
  --c: var(--teal);
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 2px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  text-align: left;
}
.trow:first-child { border-top: 0; }
.trow:active { background: var(--paper); }
.trow__thumb {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background:
    radial-gradient(40px 30px at 30% 20%, rgba(255, 255, 255, 0.45), transparent 70%),
    linear-gradient(145deg, color-mix(in srgb, var(--c) 75%, #fff), var(--c));
  color: #fff;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--c) 35%, transparent);
}
.trow__main { flex: 1; min-width: 0; }
.trow__main b { display: block; font-size: 14px; font-weight: 650; }
.trow__main span { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-3); }
.trow__go {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink-3);
}

/* Dastur haqida */
.acc { display: flex; flex-direction: column; gap: 8px; }
.acc__item { border-radius: 20px; background: var(--paper); transition: background 0.2s; }
.acc__item.is-open { background: var(--teal-l); }
.acc__btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 0;
  background: transparent;
  text-align: left;
}
.acc__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--c, var(--teal));
  color: #fff;
}
.acc__label { flex: 1; min-width: 0; }
.acc__label b { display: block; font-size: 14px; font-weight: 650; }
.acc__label small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--ink-3); }
.acc__chev { color: var(--ink-3); transition: transform 0.3s; }
.acc__item.is-open .acc__chev { transform: rotate(90deg); color: var(--teal); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__text { padding: 0 14px 14px 64px; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.acc__text ul { margin: 0; padding-left: 17px; }
.acc__text li + li { margin-top: 5px; }
.acc__text li::marker { color: var(--teal); }

.foot { margin: 4px 0 0; font-size: 11px; line-height: 1.6; color: var(--ink-3); text-align: center; }

/* Pastki navigatsiya */
.tabbar {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(12px + var(--safe-b));
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 70px;
  padding: 0 6px 8px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--sh-lg);
  backdrop-filter: blur(12px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s;
}
.tabbar.is-hidden { transform: translateY(120%); opacity: 0; }
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 54px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-3);
}
.tab span { font-size: 10.5px; font-weight: 600; }
.tab.is-on { color: var(--teal); }
.tab--main i {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-top: -30px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--teal-2), var(--teal-d));
  color: #fff;
  box-shadow: 0 12px 26px rgba(84, 128, 79, 0.45), 0 0 0 6px var(--bg);
}
.tab--main span { color: var(--teal); }

/* ═══ Xarita ekrani ═════════════════════════════════════════════════ */
.mapscreen {
  background:
    radial-gradient(1px 1px at 20% 30%, #fff, transparent),
    radial-gradient(1px 1px at 70% 20%, #cfe0ff, transparent),
    radial-gradient(1.5px 1.5px at 40% 80%, #fff, transparent),
    radial-gradient(1px 1px at 85% 65%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 55% 45%, #fff, transparent),
    radial-gradient(1200px 900px at 50% 50%, #0b1838, #03060f);
}
#map { position: absolute; inset: 0; }
#map canvas { outline: none; }
.maplibregl-ctrl-bottom-left, .maplibregl-ctrl-bottom-right { display: none; }

.mtop {
  position: absolute;
  left: 0; right: 0; top: 0;
  z-index: 10;
  padding: calc(12px + var(--safe-t)) 12px 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s;
}
.mapscreen.is-intro .mtop, .mapscreen.is-intro .fabs, .mapscreen.is-intro .sheet {
  opacity: 0;
  pointer-events: none;
}
.mapscreen.is-intro .mtop { transform: translateY(-24px); }
.mapscreen.is-intro .sheet { transform: translateY(100%); }
.mtop__row { display: flex; gap: 9px; }

.iconbtn {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 17px;
  background: var(--card);
  box-shadow: var(--sh);
  font-size: 24px;
  line-height: 1;
  color: var(--ink);
}
.iconbtn--sm { width: 36px; height: 36px; border-radius: 12px; font-size: 20px; background: var(--card); box-shadow: 0 3px 10px rgba(30, 56, 28, 0.1); }

.msearch {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 48px;
  padding: 0 12px 0 15px;
  border-radius: 17px;
  background: var(--card);
  box-shadow: var(--sh);
  color: var(--ink-3);
}
.msearch:focus-within { box-shadow: 0 0 0 3px rgba(84, 128, 79, 0.25), var(--sh); }
.msearch input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14.5px;
  color: var(--ink);
  user-select: text;
}
.msearch input::placeholder { color: var(--ink-3); }
.msearch input::-webkit-search-cancel-button { display: none; }
.msearch__clear { border: 0; background: transparent; font-size: 22px; color: var(--ink-3); padding: 0 2px; }

.fabs {
  position: absolute;
  right: 12px;
  top: calc(72px + var(--safe-t));
  z-index: 9;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: opacity 0.4s;
}
.fab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 19px;
  background: var(--card);
  box-shadow: var(--sh);
  color: var(--ink);
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}
.fab small { font-size: 9px; font-weight: 600; color: var(--ink-3); }
.fab.is-on { background: var(--teal); color: #fff; }
.fab.is-on small { color: rgba(255, 255, 255, 0.85); }
.fab:disabled { opacity: 0.45; }
.fab.is-busy svg { animation: spin 1.2s linear infinite; }

.toast {
  position: absolute;
  left: 50%;
  top: calc(72px + var(--safe-t));
  z-index: 30;
  transform: translateX(-50%);
  max-width: calc(100vw - 40px);
  padding: 10px 16px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  box-shadow: var(--sh-lg);
  animation: rise 0.35s ease;
}

/* ─── Navigator paneli (telefonda — pastki, keng ekranda — chap) ────── */
.sheet {
  --h: var(--peek, 150px);
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 12;
  height: 88vh;
  display: flex;
  flex-direction: column;
  border-radius: 30px 30px 0 0;
  background: var(--paper);
  box-shadow: 0 -14px 40px rgba(14, 32, 12, 0.22);
  transform: translateY(calc(88vh - var(--h) - var(--safe-b)));
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s;
  will-change: transform;
}
.sheet[data-state="half"] { --h: 48vh; }
.sheet[data-state="full"] { --h: 88vh; }
.sheet.is-drag { transition: none; }
.sheet__grab { flex-shrink: 0; display: grid; place-items: center; height: 26px; touch-action: none; cursor: grab; }
.sheet__grab i { width: 46px; height: 5px; border-radius: 4px; background: rgba(40, 70, 37, 0.18); }
.sheet__body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  /* Panel qisman ko'rinib turganda ham ro'yxat oxirigacha aylantirib ko'rilsin:
     ekrandan pastdagi yashirin qism pastki bo'shliq bilan to'ldiriladi */
  padding: 0 14px calc(88vh - var(--h) + 24px + var(--safe-b));
  transition: padding-bottom 0.42s;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.sheet__body::-webkit-scrollbar { display: none; }

.nav.is-fwd { animation: nav-fwd 0.32s cubic-bezier(0.22, 1, 0.36, 1); }
.nav.is-back { animation: nav-back 0.32s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes nav-fwd { from { opacity: 0; transform: translateX(18px); } }
@keyframes nav-back { from { opacity: 0; transform: translateX(-18px); } }
.nav.is-still .item, .nav.is-still .nrow, .nav.is-back .item, .nav.is-back .nrow { animation: none; }

/* Bosh menyu: 4 ta katta bo'lim */
.nroot__head { padding: 0 2px 12px; touch-action: none; }
.nroot__head b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.nroot__head small { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-3); }
/* To'liq rangli kartochkalar: belgi, nom, son; burchakda — o'tish (yoki tashqi havola) belgisi */
.ngrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ntile {
  --c: var(--teal);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 1px;
  min-width: 0;
  min-height: 118px;
  padding: 14px 14px 13px;
  border: 0;
  border-radius: 22px;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, #fff 22%, transparent), transparent 55%),
    linear-gradient(155deg, color-mix(in srgb, var(--c) 82%, #fff), var(--c) 70%, color-mix(in srgb, var(--c) 86%, #000));
  box-shadow: 0 10px 22px color-mix(in srgb, var(--c) 30%, transparent);
  color: #fff;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}
.ntile:hover { box-shadow: 0 14px 28px color-mix(in srgb, var(--c) 38%, transparent); }
.ntile:active { transform: scale(0.98); }
.ntile i {
  position: absolute;
  left: 14px; top: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  color: #fff;
}
.ntile__go {
  position: absolute;
  right: 12px; top: 12px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.ntile b { font-size: 14.5px; font-weight: 750; line-height: 1.2; }
.ntile small { font-size: 11.5px; font-weight: 550; color: rgba(255, 255, 255, 0.84); }
.nrow--fav { margin-top: 9px; }
.nrow--fav .nrow__ic { background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); }
.nroot__hint { margin: 12px 4px 0; font-size: 12px; line-height: 1.5; color: var(--ink-3); }

/* Sarlavha: orqaga tugmasi va qaysi bo'limdaligi — aylantirilganda yuqorida qotib turadi */
.nhead {
  position: sticky; top: 0; z-index: 4;
  display: flex; align-items: center; gap: 10px;
  margin: 0 -14px 12px; padding: 0 14px 12px;   /* pastki oraliq: soya birinchi qatorni yopmasin */
  background: var(--paper);
  touch-action: none;
}
.nhead::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px;
  background: linear-gradient(var(--paper), transparent); pointer-events: none;
}
/* Ochilgan tur sarlavhasi — asosiy sarlavha ostida qotadi, tashkilotlar uning ostidan o'tadi */
.nacc.is-open > .nrow--sec { position: sticky; top: var(--nh, 0); z-index: 3; }
.nhead__title { flex: 1; min-width: 0; }
.nhead__title small {
  display: block;
  margin-bottom: 1px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nhead__title small:empty { display: none; }
.nhead__title b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.25;
}
.nhead__n {
  flex: none;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 28px;
  padding: 0 9px;
  border-radius: 14px;
  background: var(--teal-l);
  color: var(--teal-d);
  font-size: 12px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

/* Bo'limlar (tur, toifa, hudud) ro'yxati */
.nlist { display: flex; flex-direction: column; gap: 8px; }
.nrow {
  --c: var(--teal);
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 8px 9px 9px;
  border: 0;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 5px 14px rgba(30, 56, 28, 0.06);
  text-align: left;
  animation: rise 0.4s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.nrow:active { transform: scale(0.99); }
.nrow__ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background:
    radial-gradient(34px 24px at 30% 20%, rgba(255, 255, 255, 0.4), transparent 70%),
    linear-gradient(145deg, color-mix(in srgb, var(--c) 75%, #fff), var(--c));
  color: #fff;
}
.nrow--d .nrow__ic { background: var(--dc, var(--teal-l)); color: var(--teal-d); box-shadow: inset 0 0 0 1px rgba(40, 70, 37, 0.08); }
.nrow__main { flex: 1; min-width: 0; }
.nrow__main b { display: block; font-size: 13.5px; font-weight: 650; line-height: 1.3; }
.nrow__main small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--ink-3); }
.nrow__go, .item__go { flex: none; display: grid; color: var(--ink-3); opacity: 0.7; }
.nrow.is-zero { opacity: 0.5; }

/* Qidiruv natijalari */
.nsec { display: flex; align-items: center; gap: 6px; margin: 14px 4px 8px; font-size: 11px; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.nsec b { color: var(--teal); }
.nsearch__title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 12px;
  border-radius: 14px;
  background: var(--teal-l);
  color: var(--teal-d);
  font-size: 12.5px;
  font-weight: 650;
}
.nsearch__title svg { flex: none; }
.nsearch__title span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nsearch__title.is-sm { margin-bottom: 10px; }
.nsearch__clear { flex: none; padding: 5px 8px; border: 0; border-radius: 10px; background: #fff; color: var(--teal-d); font: 700 12px/1 var(--font); }
.nnote { margin: 0 2px 10px; padding: 10px 12px; border-radius: 14px; background: #fff4d2; color: #6b4e00; font-size: 12px; line-height: 1.45; }

/* Tashkilotlar ro'yxati */
.list { display: flex; flex-direction: column; gap: 8px; }
.item {
  --c: var(--teal);
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 8px 9px 9px;
  border: 0;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 5px 14px rgba(30, 56, 28, 0.06);
  text-align: left;
  animation: rise 0.4s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.item:active { transform: scale(0.99); }
.item__icon {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  overflow: hidden;
  background:
    radial-gradient(36px 26px at 30% 20%, rgba(255, 255, 255, 0.45), transparent 70%),
    linear-gradient(145deg, color-mix(in srgb, var(--c) 75%, #fff), var(--c));
  color: #fff;
}
.item__icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.item__main { flex: 1; min-width: 0; }
.item__name {
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.item__meta {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--ink-3);
}
.item__wide {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 7px;
  border-radius: 8px;
  background: #fff1c7;
  color: #8a6200;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
}
.lsub {
  --c: var(--teal);
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 10px 4px 0;
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.05em;
  line-height: 1.3;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--c) 70%, #000);
}
.lsub:first-child { margin-top: 0; }

/* Toifa / hudud ro'yxatida turlar — yig'iq bo'limlar */
.nacc + .nacc { margin-top: 8px; }
.nrow--sec { width: 100%; }
.nrow--sec .nrow__go svg { transition: transform 0.2s ease; }
.nacc.is-open > .nrow--sec { background: color-mix(in srgb, var(--c) 7%, #fff); }
.nacc.is-open > .nrow--sec .nrow__go svg { transform: rotate(90deg); }
.nacc__body { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 4px 16px; }
.lsub i { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 7px; background: var(--c); color: #fff; }
.lsub i svg { width: 12px; height: 12px; }
.empty { padding: 26px 10px; text-align: center; font-size: 13px; color: var(--ink-3); line-height: 1.5; }

/* Tugmalar */
.sbtn {
  --c: var(--teal);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 3px 8px rgba(30, 56, 28, 0.08);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}
.sbtn--main { background: var(--c); color: #fff; box-shadow: 0 8px 18px color-mix(in srgb, var(--c) 40%, transparent); }
.sbtn--icon { flex: 0 0 44px; padding: 0; }
.sbtn.is-on { color: #e2486b; }

/* ─── Tashkilot sahifasi ─────────────────────────────────────────────── */
.det { --c: var(--teal); }
.det__hero { padding: 0 2px 4px; }
.det__type {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 4px 11px 4px 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c) 13%, #fff);
  color: color-mix(in srgb, var(--c) 78%, #000);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.25;
}
.det__type i { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--c); color: #fff; }
.det__name { margin: 10px 0 8px; font-size: 19px; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; overflow-wrap: anywhere; user-select: text; }
.det__groups { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.det__groups span {
  --c: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 7px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
  background: color-mix(in srgb, var(--c) 12%, #fff);
  color: color-mix(in srgb, var(--c) 75%, #000);
}
.det__groups i { flex: none; display: grid; color: var(--c); }
.det__note {
  display: flex;
  gap: 11px;
  margin: 2px 0 12px;
  padding: 12px 13px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff6d6, #ffeaa6);
  color: #5c4300;
  box-shadow: 0 0 0 1px rgba(245, 179, 1, 0.4), 0 8px 20px rgba(245, 179, 1, 0.16);
  font-size: 13px;
  line-height: 1.45;
}
.det__note i { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: #f5b301; color: #fff; box-shadow: 0 6px 14px rgba(245, 179, 1, 0.4); }
.det__note b { color: #3d2c00; }
.det__note button { display: block; margin-top: 6px; padding: 0; border: 0; background: transparent; color: #8a5a00; font: 700 12px/1.2 var(--font); text-decoration: underline; text-underline-offset: 3px; }
.det__photos { display: flex; gap: 8px; overflow-x: auto; margin: 0 -2px 12px; padding: 2px; scrollbar-width: none; }
.det__photos::-webkit-scrollbar { display: none; }
.det__photos a { flex: none; width: 46%; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 16px rgba(30, 56, 28, 0.12); }
.det__photos a:first-child { width: 78%; }
.det__photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.det__info { margin-bottom: 12px; padding: 3px 12px; border-radius: 18px; background: var(--card); box-shadow: 0 4px 12px rgba(30, 56, 28, 0.06); }
.dinfo { display: flex; gap: 10px; padding: 8px 0; font-size: 13px; line-height: 1.45; }
.dinfo + .dinfo { border-top: 1px solid var(--line); }
.dinfo i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); }
.dinfo span { min-width: 0; padding-top: 4px; overflow-wrap: anywhere; user-select: text; }
.dinfo small { display: block; margin-top: 1px; font-size: 11.5px; color: var(--ink-3); }
.dinfo a { color: var(--teal-d); font-weight: 650; text-decoration: none; }
.det__acts { display: flex; gap: 7px; margin: 0 0 4px; }
.det__acts .sbtn--main { flex: 1.4; }
.det__sec { margin-top: 10px; padding: 13px 14px; border-radius: 18px; background: var(--card); box-shadow: 0 4px 12px rgba(30, 56, 28, 0.06); }
.det__sec h4 { margin: 0 0 8px; font-size: 11.5px; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 65%, var(--ink)); }
.det__sec--basis { box-shadow: inset 4px 0 0 var(--c), 0 4px 12px rgba(30, 56, 28, 0.06); }
.det__sub { margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(40, 70, 37, 0.16); }
.det__sub h5 { margin: 0 0 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); }

/* Matn: raqamli ro'yxatlar va izohlar */
.rt { font-size: 13.5px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; user-select: text; }
.rt p { margin: 0 0 6px; }
.rt p:last-child { margin-bottom: 0; }
.rt .rt__h { margin-top: 8px; font-weight: 700; color: var(--ink-2); }
/* Faoliyat yo'nalishi: boshidagi kalit so'z (masalan «Tibbiy-ijtimoiy ekspert komissiyasi (TIEK)») */
.rt .rt__kw {
  display: inline-block;
  margin: 0 0 8px;
  padding: 5px 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--c, var(--teal)) 12%, #fff);
  color: color-mix(in srgb, var(--c, var(--teal)) 78%, #000);
  font-size: 13.5px;
  font-weight: 750;
  line-height: 1.35;
}
.rt ol, .rt ul { margin: 0 0 6px; padding-left: 20px; }
.rt ol:last-child, .rt ul:last-child { margin-bottom: 0; }
.rt li + li { margin-top: 4px; }
.rt li::marker { color: var(--c); font-weight: 700; }
.rt--sm { font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }

/* Tuman yorliqlari (sun'iy yo'ldosh tasvirida ham o'qilsin) */
.dlab { position: relative; width: 0; height: 0; }
.dlab__in {
  position: absolute;
  left: 0; top: 0;
  transform: translate(-50%, -50%);
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  text-align: center;
  color: var(--ink);
  cursor: pointer;
  transition: opacity 0.3s;
}
.dlab__in small { display: block; font-size: 9.5px; font-weight: 600; color: var(--teal); }
.dlab.is-sel .dlab__in { box-shadow: 0 0 0 2px var(--teal-2), 0 4px 14px rgba(0, 0, 0, 0.28); }
.dlab.is-static .dlab__in { pointer-events: none; cursor: default; }
.dlab.is-hidden .dlab__in { opacity: 0; pointer-events: none; }
body.labels-far .dlab:not(.is-sel) .dlab__in { opacity: 0; pointer-events: none; }
.dlab.is-zero .dlab__in small { color: var(--ink-3); }
/* Tashkilot tanlanganda tuman yorliqlari pin va belgilarga xalaqit bermasin */
body.fx-focus .dlab__in { opacity: 0; pointer-events: none; transition: opacity 0.3s; }

.me { position: relative; width: 0; height: 0; }
.me i {
  position: absolute;
  left: -9px; top: -9px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #2f80ed;
  border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(47, 128, 237, 0.25), 0 2px 8px rgba(0, 0, 0, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01s !important; transition-duration: 0.01s !important; }
}

/* Telefonda bosh menyu ixcham — maslahat matni faqat keng ekranda */
@media (max-width: 719px) {
  .nroot__hint { display: none; }
}

/* ═══ Planshet va keng ekran: navigator chap yon panelda ═══════════════ */
@media (min-width: 720px) {
  .home { padding-left: 28px; padding-right: 28px; }
  .home > * { max-width: 760px; margin-left: auto; margin-right: auto; }
  .tabbar { left: 50%; right: auto; width: 520px; transform: translateX(-50%); }
  .tabbar.is-hidden { transform: translate(-50%, 120%); }
  .diorama { height: 420px; }

  .mtop { right: auto; left: 0; width: 400px; padding-right: 0; }
  .fabs { top: calc(12px + var(--safe-t)); }
  .toast { left: calc(50% + 200px); max-width: calc(100vw - 460px); }
  /* Panel mazmuniga qarab o'sadi (bosh menyu ixcham), uzun ro'yxatda — ekran bo'yi */
  .sheet,
  .sheet[data-state="half"],
  .sheet[data-state="full"] {
    top: calc(72px + var(--safe-t));
    bottom: auto;
    left: 12px;
    right: auto;
    width: 376px;
    height: auto;
    max-height: calc(100% - 84px - var(--safe-t));
    border-radius: 26px;
    transform: none;
  }
  .sheet__grab { display: none; }
  .sheet__body { flex: 0 1 auto; min-height: 0; padding-top: 14px; padding-bottom: 16px; }
  /* Qotgan sarlavha panelning yuqori chetigacha yopadi (ustidan ro'yxat ko'rinmasin) */
  .nhead { top: -14px; margin-top: -14px; padding-top: 14px; }
  .nacc.is-open > .nrow--sec { top: calc(var(--nh, 14px) - 14px); }
  .mapscreen.is-intro .sheet { transform: translateX(-110%); }
}

.pview {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(8, 14, 7, 0.92);
  animation: rise 0.25s ease-out;
}
.pview img { max-width: 100%; max-height: 100%; border-radius: 14px; }
.pview button {
  position: absolute;
  top: calc(14px + var(--safe-t));
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 24px;
}

.hseg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 8px;
  border-radius: 16px;
  background: var(--paper);
}
.hseg button {
  padding: 10px 6px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-3);
  font: 700 12.5px/1.2 var(--font);
}
.hseg button.is-on { background: var(--teal); color: #fff; box-shadow: 0 6px 14px rgba(84, 128, 79, 0.28); }
.trow.is-zero { opacity: 0.55; }
.tlist__note { margin: 10px 2px 0; font-size: 12px; color: var(--ink-3); line-height: 1.45; }

/* ═══ Bosh sahifa ustunlari: telefonda — bitta ustun, asl tartibda ════════ */
.home__grid { display: flex; flex-direction: column; }
.home__col { display: contents; }
.home__grid .ticket { order: 1; }
.home__grid .teal { order: 2; }
.home__grid .appcard { order: 3; }
.home__grid .diorama { order: 4; }
.home__grid .mapcard { order: 5; }
.home__grid .listcard { order: 6; }
.home__grid .aboutcard { order: 7; }

/* Faqat saytda: Android ilovasi ichida ko'rinmaydi */
.is-native .webonly { display: none !important; }
.tab--web, .tabbar__brand { display: none; }

.appcard { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.appcard__icon {
  display: grid; place-items: center; flex: none;
  width: 50px; height: 50px; border-radius: 16px;
  background: linear-gradient(145deg, var(--teal-2), var(--teal-d)); color: #fff;
  box-shadow: 0 10px 22px rgba(84, 128, 79, 0.3);
}
.appcard__txt { flex: 1; min-width: 170px; }
.appcard__txt b { display: block; font-size: 15px; font-weight: 750; }
.appcard__txt span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.appcard__acts { display: flex; gap: 8px; width: 100%; }
.appbtn {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 44px; border-radius: 14px;
  background: var(--teal-l); color: var(--teal-d);
  font: 700 13px/1 var(--font); text-decoration: none;
}
.appbtn--main {
  flex: 1.6;
  background: linear-gradient(145deg, var(--teal-2), var(--teal-d)); color: #fff;
  box-shadow: 0 10px 20px rgba(84, 128, 79, 0.3);
}

/* Bo'limlar: bosilganda ichidagi tashkilotlar ochiladi */
.tgrp + .tgrp { border-top: 1px solid var(--line); }
.tgrp .trow { border-top: 0; }
.tgrp .trow__go svg { transition: transform 0.25s; }
.tgrp.is-open .trow__go { background: var(--teal-l); color: var(--teal); }
.tgrp.is-open .trow__go svg { transform: rotate(90deg); }
.tsub { display: flex; flex-direction: column; gap: 6px; margin: 0 0 12px; animation: rise 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.tsub__all {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 13px; border: 0; border-radius: 14px;
  background: var(--teal-l); color: var(--teal-d);
  font: 700 12.5px/1.2 var(--font); text-align: left;
}
.tsub__all span { flex: 1; }
.tsub__all b { font-variant-numeric: tabular-nums; }
.tsub__type {
  --c: var(--teal);
  display: flex; align-items: center; gap: 7px; margin: 6px 2px 0;
  font-size: 10.5px; font-weight: 750; letter-spacing: 0.05em; text-transform: uppercase;
  color: color-mix(in srgb, var(--c) 70%, #000);
}
.tsub__type i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; background: var(--c); color: #fff; }
.torg {
  --c: var(--teal);
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 12px; border-radius: 14px;
  background: var(--paper); border-left: 3px solid var(--c);
  cursor: pointer;
}
.torg:active { transform: scale(0.99); }
.torg__main { flex: 1; min-width: 0; }
.torg__main b {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 12.5px; font-weight: 650; line-height: 1.3;
}
.torg__main small { display: block; margin-top: 2px; font-size: 11px; color: var(--ink-3); }
.torg__map {
  flex: none; display: grid; place-items: center;
  width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: var(--c); color: #fff;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--c) 35%, transparent);
}
/* Toifa ichidagi turlar (bosh sahifa): bosilsa — tur tashkilotlari */
.tsub--types { gap: 8px; }
.ttype { --c: var(--teal); border-radius: 16px; background: var(--paper); }
.ttype__row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 10px 10px 12px; border: 0; border-radius: 16px;
  background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.ttype__row i {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  background: var(--c); color: #fff;
}
.ttype__main { flex: 1; min-width: 0; }
.ttype__main b { display: block; font-size: 13px; font-weight: 650; line-height: 1.3; }
.ttype__main small { display: block; margin-top: 1px; font-size: 11.5px; color: var(--ink-3); }
.ttype__go { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--ink-3); }
.ttype__go svg { transition: transform 0.25s; }
.ttype.is-open .ttype__go { background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); }
.ttype.is-open .ttype__go svg { transform: rotate(90deg); }
.ttype .tsub { margin: 0; padding: 0 8px 10px; }
.ttype .torg { background: #fff; }
.tsub__more {
  align-self: flex-start; padding: 8px 12px; border: 0; border-radius: 12px;
  background: transparent; color: var(--teal); font: 700 12.5px/1 var(--font);
}

/* ═══ Sayt (keng ekran): tepada menyu, ikki ustun ══════════════════════ */
@media (min-width: 1100px) {
  .home { padding: 104px 32px 48px; }
  .home > * { max-width: 1240px; }
  .home__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 0 24px;
    align-items: start;
  }
  .home__col { display: flex; flex-direction: column; }
  .home__grid .diorama { height: 470px; margin: 0 0 14px; }
  .hello { margin-bottom: 22px; }
  .hello h1 { font-size: 30px; }
  .hello__logo { display: none; }

  .tabbar,
  .tabbar.is-hidden {
    top: 14px; bottom: auto; left: 50%; right: auto;
    width: min(1240px, calc(100% - 48px)); height: 66px;
    padding: 0 10px 0 14px;
    align-items: center; justify-content: flex-start; gap: 4px;
    border-radius: 20px;
    transform: translateX(-50%);
  }
  .tabbar.is-hidden { transform: translate(-50%, -150%); }
  .tabbar__brand {
    display: flex; align-items: center; gap: 11px; margin-right: auto;
    color: var(--ink); text-decoration: none;
  }
  .tabbar__brand img { height: 34px; width: auto; }
  .tabbar__brand b { display: block; font-size: 15px; font-weight: 800; }
  .tabbar__brand small { display: block; font-size: 11px; color: var(--ink-3); }
  .tab {
    flex-direction: row; gap: 8px;
    height: 44px; padding: 0 14px; border-radius: 13px;
    min-width: 0; cursor: pointer; text-decoration: none;
  }
  .tab:hover { background: var(--paper); color: var(--ink-2); }
  .tab svg { width: 19px; height: 19px; }
  .tab span { font-size: 13px; }
  .tab.is-on { background: var(--teal-l); }
  .tab--main { background: linear-gradient(145deg, var(--teal-2), var(--teal-d)); color: #fff; margin: 0 4px; }
  .tab--main:hover { background: linear-gradient(145deg, var(--teal-2), var(--teal-d)); color: #fff; filter: brightness(1.08); }
  .tab--main i { width: auto; height: auto; margin: 0; border-radius: 0; background: none; box-shadow: none; }
  .tab--main i svg { width: 19px; height: 19px; }
  .tab--main span { color: #fff; }
  .tab--web { display: flex; color: var(--teal-d); }
  .home__grid .appcard { display: none; }  /* tepadagi menyuda bor */
}

/* «Blue Planet»: yulduzli fazo xarita ortida */
.stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mapscreen.is-intro .stars { animation: stars-in 1.2s ease-out; }
@keyframes stars-in { from { opacity: 0; } }
