:root {
  --brand: #0E6BA8; --brand-d: #0A5586; --brand-tint: #E4F0F8;
  --text: #16181D; --dim: #5E6472; --faint: #9AA0AC;
  --bg: #FFFFFF; --soft: #F1F2F5; --line: #E6E8EE;
  --ad: #B4650B; --ad-tint: #FCEBD2; --sos: #D8342C;
  --radius: 16px;
  --shadow: 0 1px 3px rgba(20, 24, 40, .06), 0 6px 18px rgba(20, 24, 40, .06);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: #E9ECF1; }
body { font: 15px/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; color: var(--text); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img { max-width: 100%; display: block; }
.ic { flex: none; }

.app { max-width: 520px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; background: var(--bg); padding-bottom: calc(100px + var(--safe-b)); position: relative; }

/* ---------- Brand band (home) ---------- */
.band { display: flex; align-items: center; gap: 10px; padding: 12px 16px; padding-top: calc(12px + var(--safe-t)); background: var(--brand); color: #fff; }
.logo { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.brand { display: flex; flex-direction: column; min-width: 0; }
.brand b { font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.brand b span { color: #FFD166; }
.brand small { font-size: 12.5px; font-weight: 600; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Language menu ---------- */
.lang { position: relative; flex: none; }
.lang summary { list-style: none; display: flex; align-items: center; gap: 3px; padding: 7px 11px; border-radius: 12px; background: rgba(255, 255, 255, .2); font-weight: 800; font-size: 14px; cursor: pointer; user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.topbar .lang summary { background: var(--soft); color: var(--text); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; color: var(--text); border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); padding: 6px; z-index: 50; min-width: 170px; }
.lang-menu a { display: block; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 14.5px; }
.lang-menu a:hover, .lang-menu a[aria-current] { background: var(--brand-tint); color: var(--brand); }

/* ---------- Home ---------- */
.home { padding: 16px 16px 8px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { position: relative; height: 140px; border-radius: var(--radius); overflow: hidden; background: var(--brand); box-shadow: var(--shadow); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .25) 100%); }
.tile-label { position: absolute; z-index: 1; left: 12px; top: 10px; right: 10px; color: #fff; font-weight: 800; font-size: 15px; line-height: 1.2; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.tile-go { position: absolute; z-index: 1; left: 9px; bottom: 9px; color: #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); }

.icons-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 30px) / 4); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 18px -16px 0; padding: 0 16px 4px; scrollbar-width: none; }
.icons-row::-webkit-scrollbar { display: none; }
.ic-btn { display: flex; flex-direction: column; align-items: center; gap: 7px; scroll-snap-align: start; text-align: center; }
.ic-circle { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; background: color-mix(in srgb, var(--c) 14%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 18%, transparent); }
.ic-btn.on .ic-circle { box-shadow: 0 0 0 2.5px var(--c); background: color-mix(in srgb, var(--c) 24%, #fff); }
.ic-label { font-size: 12.5px; line-height: 1.2; color: var(--text); }

.near-btn { margin-top: 18px; width: 100%; height: 52px; border-radius: var(--radius); background: var(--soft); display: flex; align-items: center; gap: 10px; padding: 0 16px; color: var(--brand); }
.near-title { flex: 1; text-align: left; color: #5A6070; font-size: 16px; font-weight: 600; }
.near-hint { color: var(--faint); font-size: 13px; }

.sec-h { font-size: 19px; font-weight: 800; color: var(--brand-d); margin: 24px 0 12px; }
.hscroll { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.tip-card { flex: none; width: 78%; max-width: 330px; scroll-snap-align: start; display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(135deg, #fff, var(--brand-tint)); box-shadow: var(--shadow); }
.tip-card img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex: none; }
.tip-card b { display: block; font-size: 16px; color: var(--brand-d); line-height: 1.2; }
.tip-card small { display: block; color: var(--dim); font-size: 13.5px; margin-top: 4px; }

.foot { text-align: center; color: var(--faint); font-size: 12px; padding: 22px 10px 6px; }
.foot a { color: var(--brand); }

/* ---------- Inner pages ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 16px; padding-top: calc(10px + var(--safe-t)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar h1 { flex: 1; min-width: 0; margin: 0; font-size: 18px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.round-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--soft); display: flex; align-items: center; justify-content: center; flex: none; color: var(--text); }
.page { padding: 12px 16px 8px; }
.note { color: var(--dim); font-size: 13px; margin: -4px 0 12px; }
.pill-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); font-weight: 700; font-size: 14px; margin: 4px 0 2px; }

.card { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); margin-bottom: 10px; }
.thumb { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; flex: none; }
.thumb-empty { display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c, #9AA0AC) 14%, #fff); color: var(--faint); font-size: 36px; }
.card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.card-title, .card-body b { font-weight: 700; font-size: 15.5px; line-height: 1.25; }
.card-body small { color: var(--dim); font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-chev { color: var(--faint); }
.badge-ad { display: inline-block; vertical-align: 2px; margin-left: 6px; background: var(--ad-tint); color: var(--ad); font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 6px; letter-spacing: .02em; }
.call-card { padding: 14px; }
.call-btn { flex: none; display: flex; align-items: center; gap: 6px; background: var(--sos); color: #fff; font-weight: 800; font-size: 16px; padding: 11px 14px; border-radius: 12px; }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 8px; padding-top: 8px; }
.cat-item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; line-height: 1.2; }

/* ---------- Place page ---------- */
.hero { position: relative; aspect-ratio: 16 / 10; background: var(--brand-tint); overflow: hidden; }
.hero-empty { aspect-ratio: auto; height: calc(64px + var(--safe-t)); }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero .round-btn { position: absolute; top: calc(12px + var(--safe-t)); background: rgba(255, 255, 255, .92); box-shadow: var(--shadow); }
.hero-back { left: 14px; }
.hero-fav { right: 14px; }
.hero-fav.on { color: #E0455F; }
.hero-fav.on svg { fill: #E0455F; }
.place { margin-top: -18px; position: relative; background: #fff; border-radius: 22px 22px 0 0; padding-top: 16px; }
.hero-empty + .place { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 10px; color: color-mix(in srgb, var(--c) 80%, #000); background: color-mix(in srgb, var(--c) 13%, #fff); }
.chips .badge-ad { margin: 0; }
.place-name { font-size: 23px; font-weight: 800; line-height: 1.2; margin: 10px 0 8px; }
.about { color: #3A3F4B; font-size: 15.5px; line-height: 1.55; margin: 0 0 10px; }
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin: 16px 0; }
.act { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 11px 4px; border-radius: 14px; background: var(--soft); font-size: 12.5px; font-weight: 700; color: var(--brand); text-align: center; }
.act-main { background: var(--brand); color: #fff; }
.info { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.info-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; color: var(--brand); }
.info-row + .info-row { border-top: 1px solid var(--line); }
.info-row span { color: var(--text); font-size: 15px; }
.info-row small { display: block; color: var(--faint); font-size: 12px; }
.info-row a { color: var(--brand); font-weight: 700; }
.info:empty { display: none; }
.mini-map { height: 190px; border-radius: var(--radius); overflow: hidden; margin-top: 14px; background: var(--soft); }

.credits { padding-left: 18px; font-size: 13px; color: var(--dim); }
.credits li { margin-bottom: 6px; }
.credits a { color: var(--brand); word-break: break-word; }

/* ---------- Tab bar ---------- */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 520px; z-index: 30; display: flex; align-items: flex-end; justify-content: space-around; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + var(--safe-b)); }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #8A909C; font-size: 11px; font-weight: 600; }
.tab.on { color: var(--brand); }
.tab-sos { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: -26px; color: var(--sos); font-size: 11px; font-weight: 800; }
.sos-btn { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #F0555F, #C62A2A); color: #fff; font-weight: 900; font-size: 15px; letter-spacing: .02em; display: flex; align-items: center; justify-content: center; border: 4px solid #fff; box-shadow: 0 6px 16px rgba(216, 52, 44, .4); }

/* ---------- «Near you» sheet ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 100; background: rgba(15, 18, 30, .45); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease; }
.sheet { width: 100%; max-width: 520px; height: calc(100% - 44px - var(--safe-t)); background: #fff; border-radius: 26px 26px 0 0; display: flex; flex-direction: column; padding: 16px 16px calc(12px + var(--safe-b)); animation: up .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.sheet-head b { flex: 1; font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.sheet-head b .ic { color: var(--brand); }
.map-box { position: relative; flex: 1; min-height: 200px; border-radius: 18px; overflow: hidden; background: var(--soft); }
.map-box .map { position: absolute; inset: 0; }
.locate-btn { position: absolute; right: 10px; bottom: 26px; z-index: 500; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.map-msg { position: absolute; left: 10px; right: 10px; top: 10px; z-index: 500; background: rgba(22, 24, 29, .85); color: #fff; font-size: 13px; padding: 8px 12px; border-radius: 10px; text-align: center; }
.pin-card { position: absolute; left: 10px; right: 64px; bottom: 26px; z-index: 500; display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 14px; padding: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.pin-card img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; }
.pin-card .card-body b { font-size: 14.5px; }
.pin-card .pin-acts { display: flex; gap: 6px; margin-top: 4px; }
.pin-card .pin-acts a { font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 9px; background: var(--brand-tint); color: var(--brand); }
.pin-card .pin-acts a:first-child { background: var(--brand); color: #fff; }
.sheet-sub { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 10px; color: var(--dim); font-size: 14px; }
.sheet-sub button { color: var(--brand); font-weight: 700; display: flex; align-items: center; gap: 2px; }
.sheet .icons-row { margin-top: 0; }
.sheet .ic-circle { width: 58px; height: 58px; font-size: 29px; }

.pin { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 17px; background: var(--c); border: 2.5px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.you { width: 18px; height: 18px; border-radius: 50%; background: #2F80ED; border: 3px solid #fff; box-shadow: 0 0 0 8px rgba(47, 128, 237, .2); }
.leaflet-container { font: inherit; background: var(--soft); }
.leaflet-tile-pane { filter: saturate(.75) brightness(1.04); }
.leaflet-control-attribution { font-size: 9px !important; }

.more-note { margin-top: 14px; }
.src-note { margin: 12px 0 0; font-size: 12px; }
.pin-ad { position: absolute; top: -8px; right: -10px; background: var(--ad); color: #fff; font-size: 9px; font-weight: 800; padding: 1px 5px; border-radius: 6px; }
.pin-wrap { position: relative; }
.pin-big .pin { width: 42px; height: 42px; font-size: 21px; border-width: 3px; }
.pin-thumb { width: 56px; height: 56px; border-radius: 10px; font-size: 28px; }

/* ---------- Home: MedKomfort layout, one screen, grey placeholders ---------- */
.app-home { height: 100vh; height: 100dvh; min-height: 0; padding-bottom: 0; display: flex; flex-direction: column; overflow: hidden; }
.app-home .band { flex: none; height: calc(47px + var(--safe-t)); padding: var(--safe-t) 15px 0; gap: 12px; }
.band-logo { flex: none; display: flex; }
.band-slogan { flex: 1; min-width: 0; text-align: center; font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-home .lang summary { padding: 5px 9px; font-size: 12.5px; border-radius: 10px; }
.app-home .home { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 23px 15px 0; }
.app-home .tiles { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.app-home .tile { aspect-ratio: 3 / 2; }
.app-home .tile { height: auto; background: #E4E6EB; box-shadow: none; }
.app-home .tile::after { display: none; }
.app-home .tile-label { color: #3A3F4B; text-shadow: none; font-size: 11px; left: 11px; top: 11px; }
.app-home .tile-go { color: #3A3F4B; filter: none; }
/* 4 icons fully visible + a sliver of the 5th at the screen edge = "you can swipe" */
.app-home .icons-row { flex: none; display: grid; grid-auto-flow: column; grid-template-columns: none; grid-template-rows: auto;
  grid-auto-columns: calc((100% - 24px) / 4.3); gap: 6px; margin: 16px -15px 0 0; padding: 0 15px 2px 0;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 0; }
.app-home .ic-btn { gap: 8px; scroll-snap-align: start; }
.app-home .ic-circle { width: 62px; height: 62px; border-radius: 18px; background: var(--brand-tint); color: var(--brand); box-shadow: inset 0 0 0 1px rgba(14, 107, 168, .08); }
.app-home .ic-label { font-size: 12px; font-weight: 600; line-height: 1.2; color: var(--text); }
.app-home .near-btn { flex: none; margin-top: 16px; height: 43px; border-radius: 16px; background: #F1F2F5; padding: 0 16px; }
.app-home .near-title { font-size: 14.5px; }
.app-home .near-hint { font-size: 12px; }
.memo-h { flex: none; margin: 28px 0 12px; font-size: 15px; font-weight: 800; color: var(--brand-d); }
.app-home .hscroll { flex: none; margin: 0 -15px; padding: 0 15px 24px; gap: 10px; }
.app-home .tip-card { width: 230px; height: 100px; padding: 8px 12px 8px 6px; gap: 10px; background: #fff; border: 1px solid var(--line); box-shadow: none; border-radius: 16px; }
.tip-pic { flex: none; width: 61px; height: 61px; border-radius: 17px; background: #E4E6EB; }
.app-home .tip-card b { font-size: 12px; }
.app-home .tip-card small { font-size: 10.5px; margin-top: 3px; }
.app-home .tabbar { position: relative; left: auto; transform: none; flex: none; }

/* ---------- Tours ---------- */
.big-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 16px; background: var(--brand); color: #fff; font-size: 16px; font-weight: 800; text-align: center; box-shadow: 0 6px 16px rgba(14, 107, 168, .28); margin: 14px 0 0; }
.big-btn small { font-weight: 600; opacity: .85; font-size: 13px; }
.big-btn-soft { background: var(--brand-tint); color: var(--brand); box-shadow: none; }
.big-btn[hidden] { display: none; }

.tour-card { position: relative; display: block; height: 190px; border-radius: 22px; overflow: hidden; margin-bottom: 14px; background: #1b2a38; box-shadow: var(--shadow); }
.tour-card img { width: 100%; height: 100%; object-fit: cover; }
.tour-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.72)); }
.tour-card-body { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px; color: #fff; }
.tour-card-body b { display: block; font-size: 20px; font-weight: 800; line-height: 1.15; }
.tour-card-body small { opacity: .9; font-size: 13px; }

.tour-hero { position: relative; height: 330px; background: #1b2a38; overflow: hidden; }
.tour-hero img { width: 100%; height: 100%; object-fit: cover; }
.tour-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.78) 100%); }
.tour-hero .round-btn { position: absolute; z-index: 2; top: calc(12px + var(--safe-t)); left: 14px; background: rgba(255,255,255,.92); }
.tour-hero-text { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 34px; color: #fff; }
.tour-hero-text h1 { margin: 4px 0 0; font-size: 30px; line-height: 1.1; font-weight: 900; letter-spacing: -.01em; }
.tour-hero-text small { font-size: 13px; font-weight: 700; opacity: .9; }
.tour { margin-top: -20px; position: relative; background: #fff; border-radius: 22px 22px 0 0; padding-top: 18px; }
.tour-intro { font-size: 16px; line-height: 1.6; color: #3A3F4B; margin: 0; }

.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--brand-tint), var(--brand), var(--brand-tint)); border-radius: 2px; }
.tl-part { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px -22px; font-weight: 800; font-size: 15px; color: var(--brand-d); }
.tl-part span { width: 20px; text-align: center; background: #fff; }
.tl-stop, .next-card { position: relative; display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.tl-dot { position: absolute; left: -24px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.tl-thumb { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; flex: none; }
.tl-thumb-empty { display: flex; align-items: center; justify-content: center; background: #E4E6EB; font-size: 30px; }
.tl-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tl-time { color: var(--brand); font-weight: 800; font-size: 12px; }
.tl-body b { font-size: 16px; line-height: 1.2; }
.tl-lead { color: var(--dim); font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tl-move { display: inline-flex; margin: 10px 0 10px 6px; padding: 5px 11px; border-radius: 20px; background: var(--soft); color: var(--dim); font-size: 12.5px; font-weight: 700; }
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.rating small { color: var(--faint); }
.stars { display: inline-flex; gap: 1px; font-size: var(--s, 15px); line-height: 1; }
.stars i { font-style: normal; color: #D5D8DE; }
.stars i.on { color: #F5B301; }

/* stop page */
.stop-bar { position: sticky; top: 0; z-index: 25; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px 8px; padding-top: calc(10px + var(--safe-t)); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.stop-bar-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.stop-bar-title small { color: var(--brand); font-weight: 800; font-size: 11.5px; }
.stop-bar-title b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress { flex-basis: 100%; display: flex; gap: 4px; }
.progress i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.progress i.on { background: var(--brand); }

.gallery { display: grid; gap: 4px; height: 300px; }
.gallery.g1 { grid-template-columns: 1fr; }
.gallery.g2 { grid-template-columns: 2fr 1fr; }
.gallery.g3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery.g3 .g-item:first-child { grid-row: span 2; }
.g-item { overflow: hidden; background: #E4E6EB; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.g-item:active img { transform: scale(1.03); }
.g-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: #E4E6EB; color: var(--faint); }
.g-empty span { font-size: 64px; }
.g-empty small { font-weight: 700; }
.stop-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.part-chip { font-size: 12.5px; font-weight: 800; padding: 5px 10px; border-radius: 10px; background: var(--brand-tint); color: var(--brand); }
.part-chip.adult { background: #FDE2E0; color: #C0392B; }
.stop-title { font-size: 27px; line-height: 1.12; font-weight: 900; letter-spacing: -.01em; margin: 10px 0 8px; }
.stop-lead { font-size: 17px; line-height: 1.45; color: #2E333D; margin: 0 0 8px; font-weight: 500; }
.hl-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 2px; }
.hl { font-size: 13px; font-weight: 700; padding: 7px 11px; border-radius: 12px; background: var(--soft); }
.start-btn { flex-direction: column; gap: 0; min-height: 60px; font-size: 18px; margin-top: 16px; }
.stop-body p { font-size: 15.5px; line-height: 1.65; color: #3A3F4B; margin: 14px 0 0; }
.video-box { margin-top: 16px; aspect-ratio: 16 / 9; border-radius: 18px; background: #E4E6EB; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--faint); overflow: hidden; }
.video-box span { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--brand); }
.video-box small { font-weight: 700; }
.video-box video { width: 100%; height: 100%; object-fit: cover; }
.tip-box { margin-top: 16px; padding: 14px 16px; border-radius: 18px; background: #FFF6E0; }
.tip-box b { font-size: 14px; }
.tip-box p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.5; color: #5A4A1E; }
.stop .info { margin-top: 14px; }

.rate-box { margin-top: 22px; padding: 18px 16px; border-radius: 20px; background: linear-gradient(135deg, #EAF4FB, #FFF8E6); text-align: center; }
.rate-title { font-size: 19px; font-weight: 900; }
.rate-box > p { margin: 6px 0 10px; color: var(--dim); font-size: 14px; line-height: 1.45; }
.rate-stars { display: flex; justify-content: center; gap: 6px; }
.rate-stars button { font-size: 40px; line-height: 1; color: #D5D8DE; transition: transform .15s, color .15s; }
.rate-stars button.on { color: #F5B301; transform: scale(1.08); }
.rate-box textarea, .rate-box input { display: none; width: 100%; margin-top: 10px; font: inherit; font-size: 15px; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; resize: vertical; }
.rate-box.open textarea, .rate-box.open input { display: block; }
.rate-box .big-btn { display: none; }
.rate-box.open .big-btn { display: flex; }
.rate-box.done .rate-stars, .rate-box.done textarea, .rate-box.done input, .rate-box.done .big-btn { display: none; }
.rate-msg { margin: 12px 0 0; font-weight: 800; color: var(--brand-d); }
.reviews .review { padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); margin-bottom: 8px; }
.review b { margin-left: 8px; font-size: 14px; }
.review p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.45; color: #3A3F4B; }
.next-box { margin-top: 22px; }
.next-box .tl-move { margin-left: 0; }
.finish-box { margin-top: 22px; padding: 20px; border-radius: 20px; background: var(--brand-tint); text-align: center; }
.finish-box b { font-size: 21px; }
.finish-box p { color: var(--dim); }

/* top map sheet («Start») */
.topsheet-bg { position: fixed; inset: 0; z-index: 110; background: rgba(15, 18, 30, .45); display: flex; justify-content: center; align-items: flex-start; animation: fade .2s ease; }
.topsheet { position: relative; width: 100%; max-width: 520px; max-height: 92%; display: flex; flex-direction: column; background: #fff; border-radius: 0 0 26px 26px; overflow: hidden; animation: down .32s cubic-bezier(.2, .8, .2, 1); padding-bottom: 14px; }
.topsheet-bg.closing .topsheet { animation: upout .25s ease forwards; }
@keyframes down { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes upout { to { transform: translateY(-100%); } }
.topsheet .map-box { flex: none; height: 40vh; min-height: 210px; border-radius: 0; }
.ts-body { padding: 14px 16px 0; overflow-y: auto; }
.ts-body .sheet-head b { font-size: 18px; }
.ts-list { margin-top: 14px; }
.ts-h { display: block; color: var(--faint); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.ts-item { width: 100%; display: grid; grid-template-columns: 1fr auto; text-align: left; gap: 0 10px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line); margin-bottom: 6px; }
.ts-item b { font-size: 14.5px; }
.ts-item small { grid-column: 1; color: var(--dim); font-size: 12.5px; }
.ts-item span { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 800; color: var(--brand); font-size: 14px; }
.ts-item.on { border-color: var(--brand); background: var(--brand-tint); }
.ts-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ts-acts .big-btn { margin-top: 0; font-size: 15px; }
.ts-here { width: 100%; margin-top: 12px; padding: 12px; border-radius: 14px; background: #EAF7EE; color: #1D7B34; font-weight: 800; font-size: 14.5px; }
.ts-grip { position: absolute; left: 50%; bottom: 5px; transform: translateX(-50%); width: 40px; height: 4px; border-radius: 4px; background: var(--line); }

.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.94); display: flex; align-items: center; justify-content: center; animation: fade .2s ease; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-close { position: absolute; top: calc(14px + var(--safe-t)); right: 14px; }
.lb-count { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); color: #fff; font-weight: 700; font-size: 14px; }

.audio-box { margin-top: 16px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(135deg, #1C2C44, #2E4A6E); color: #fff; }
.audio-box > span { width: 48px; height: 48px; flex: none; border-radius: 50%; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.audio-box b { display: block; font-size: 16px; }
.audio-box small { opacity: .8; font-size: 13px; }
.audio-box audio { width: 100%; margin-top: 8px; }

.app-home a.memo-h { display: block; }
.coll-intro { margin: 4px 0 14px; font-size: 14px; line-height: 1.5; }
.coll-item { margin-bottom: 10px; }

/* «Tasty spots» category chips — scroll sideways */
.chip-row { position: sticky; top: calc(59px + var(--safe-t)); z-index: 15; display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.cat-chip { flex: none; display: flex; align-items: center; gap: 7px; padding: 9px 14px 9px 10px; border-radius: 14px; background: var(--soft); font-weight: 700; font-size: 14px; white-space: nowrap; }
.cat-chip span { width: 30px; height: 30px; border-radius: 9px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.cat-chip.on { background: var(--brand); color: #fff; }

.app-home .ic-circle.ic-img { background: none; box-shadow: none; }
.ic-circle.ic-img { overflow: visible; }
/* every picture has the same drawing height; wide ones are simply wider */
.ic-circle.ic-img img { height: 52px; width: auto; max-width: none; object-fit: contain; }

/* «Near you» sheet: the same 8 icons as on the home page — 4 visible + a sliver of the 5th */
.sheet .icons-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 4.3); gap: 6px; margin: 0 -16px 0 0; padding: 0 16px 2px 0; overflow-x: auto; scroll-snap-type: x mandatory; }
.sheet .ic-btn { gap: 6px; scroll-snap-align: start; }
.sheet .ic-circle { width: 58px; height: 58px; border-radius: 16px; }
.sheet .ic-circle.ic-img { background: none; box-shadow: none; overflow: visible; }
.sheet .ic-circle.ic-img img { height: 48px; width: auto; max-width: none; transition: transform .15s; }
.sheet .ic-btn .ic-label { font-size: 12px; font-weight: 600; color: var(--dim); }
.sheet .ic-btn.on .ic-circle.ic-img { box-shadow: none; background: none; }
.sheet .ic-btn.on .ic-circle.ic-img img { transform: scale(1.12); }
.sheet .ic-btn.on .ic-label { color: var(--brand); font-weight: 800; }
.sheet .ic-btn.on .ic-label::after { content: ''; display: block; width: 22px; height: 3px; border-radius: 3px; background: var(--brand); margin: 3px auto 0; }
.pin-pic { background: #fff; border-color: #fff; }
.pin-pic img { width: 26px; height: 26px; object-fit: contain; }

/* ---------- Section page (modern) ---------- */
.sec-hero { position: relative; height: 210px; overflow: hidden; background: linear-gradient(135deg, #DCEBF7, #F4F8FC); }
.sec-hero-img { width: 100%; height: 100%; object-fit: cover; }
.sec-hero:not(.sec-hero-plain)::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,0) 40%, rgba(0,0,0,.7)); }
.sec-hero-icon { position: absolute; right: 18px; bottom: 26px; height: 120px; width: auto; }
.sec-hero-emoji { position: absolute; right: 22px; bottom: 30px; font-size: 90px; }
.sec-hero .hero-back { position: absolute; z-index: 2; top: calc(12px + var(--safe-t)); left: 14px; background: rgba(255,255,255,.92); }
.sec-hero-lang { position: absolute; z-index: 2; top: calc(12px + var(--safe-t)); right: 14px; }
.sec-hero-lang .lang summary { background: rgba(255,255,255,.92); color: var(--text); }
.sec-hero-text { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 30px; color: #fff; }
.sec-hero-plain .sec-hero-text { color: var(--text); right: 150px; }
.sec-hero-text h1 { margin: 0; font-size: 28px; font-weight: 900; line-height: 1.1; }
.sec-hero-text small { font-size: 14px; font-weight: 700; opacity: .85; }
.sec-chips { top: 0; margin-top: -16px; border-radius: 18px 18px 0 0; position: relative; }
.sec-page { padding-top: 4px; }
.pick-row { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pick-row::-webkit-scrollbar { display: none; }
.pick-card { position: relative; flex: none; width: 250px; height: 175px; border-radius: 20px; overflow: hidden; scroll-snap-align: start; background: #E4E6EB; box-shadow: var(--shadow); }
.pick-card > img { width: 100%; height: 100%; object-fit: cover; }
.pick-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.72)); }
.pick-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 60px; }
.pick-empty img { height: 90px; }
.pick-body { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; color: #fff; }
.pick-body b { display: block; font-size: 17px; line-height: 1.2; }
.pick-body small { display: block; font-size: 12.5px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-ad { position: absolute; z-index: 2; top: 10px; left: 10px; margin: 0; }
.near-card .thumb { width: 64px; height: 64px; }
.thumb-icon { display: flex; align-items: center; justify-content: center; background: #F3F6FA; }
.thumb-icon img { height: 42px; width: auto; }
.near-dist { flex: none; font-weight: 800; color: var(--brand); font-size: 13.5px; }
.map-fab { position: fixed; z-index: 29; left: 50%; transform: translateX(-50%); bottom: calc(92px + var(--safe-b)); display: flex; align-items: center; gap: 6px; padding: 12px 20px; border-radius: 30px; background: #16181D; color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 8px 22px rgba(0,0,0,.28); }

.sec-h-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nearme-btn { flex: none; margin-top: 12px; padding: 7px 12px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); font-weight: 800; font-size: 13px; }
.nearme-btn[hidden] { display: none; }

/* ---------- Place page ---------- */
.place-top { position: relative; }
.place-top .hero-back, .place-top .hero-fav { position: absolute; top: calc(12px + var(--safe-t)); background: rgba(255,255,255,.92); box-shadow: var(--shadow); }
.place-top .hero-back { left: 14px; } .place-top .hero-fav { right: 14px; }
.place-top .hero-fav.on { color: #E0455F; } .place-top .hero-fav.on svg { fill: #E0455F; }
.place-top + .place { margin-top: -18px; }
.g-empty-icon { height: 130px; width: auto; }
.share-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 14px; }
.sh-btn { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 2px; border-radius: 14px; background: var(--soft); font-size: 11px; font-weight: 700; color: var(--dim); }
.sh-btn svg { width: 24px; height: 24px; }
.sh-tg svg { color: #229ED9; } .sh-wa svg { color: #25D366; } .sh-ig svg { color: #E1306C; } .sh-fb svg { color: #1877F2; } .sh-more svg { color: var(--brand); }
.sim-card { flex: none; width: 150px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; }
.sim-card > img, .sim-pic { width: 150px; height: 110px; border-radius: 16px; object-fit: cover; background: #F3F6FA; display: flex; align-items: center; justify-content: center; font-size: 44px; }
.sim-pic img { height: 64px; width: auto; }
.sim-card b { font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sim-card small { color: var(--brand); font-weight: 800; font-size: 12.5px; }
.toast { position: fixed; z-index: 130; left: 50%; bottom: calc(100px + var(--safe-b)); transform: translateX(-50%); max-width: 90%; background: #16181D; color: #fff; padding: 11px 16px; border-radius: 14px; font-weight: 700; font-size: 14px; text-align: center; }
.place .info { margin-top: 14px; }

/* ---------- Splash (MedKomfort tempo): «ARE YOU READY?» in the centre → GO (fast spin, calm travel, driven by the inline
   script) rolls across it leaving «TASHKENT» → GO lands (bigger than the word), the word eases into place with a soft wobble →
   line and slogan. Hidden at 7 s by app.js. ---------- */
#splash { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: radial-gradient(120% 80% at 50% 40%, #1784C9 0%, #0E6BA8 45%, #094B78 100%); color: #fff; transition: opacity .5s ease, visibility .5s;
  --H: min(36px, 7vw); --G: calc(var(--H) * 2.3); --tx: 0px; overflow: hidden; }
#splash.done { opacity: 0; visibility: hidden; }
.sp-logo { display: flex; align-items: center; gap: calc(var(--H) * .5); }
.sp-txt { position: relative; display: grid; align-items: center; padding: .15em 0; }  /* TASHKENT is revealed right in its final place — one continuous move */
.sp-txt > span { grid-area: 1 / 1; white-space: nowrap; font: 600 var(--H)/1 'Josefin Sans', 'Futura', 'Century Gothic', Arial, sans-serif; padding-top: .12em; }
.sp-word { letter-spacing: .3em; margin-right: -.3em; clip-path: inset(0 100% 0 0); }
.sp-ready { position: absolute; left: 50%; top: 50%; translate: -50% -50%; margin-left: var(--tx); font-size: calc(var(--H) * .8) !important; letter-spacing: .12em; opacity: 0;
  animation: spReady .8s 0s cubic-bezier(.2,.8,.2,1) forwards; }
.sp-pos { position: relative; z-index: 1; width: var(--G); height: var(--G); flex: none; transform: translateX(-200vw); }

.sp-go-img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 8px 14px rgba(0,0,0,.28)); }
.sp-line { width: 0; height: 1.5px; background: rgba(255,255,255,.85); }
.sp-slogan { font: 400 16px/1.4 'Josefin Sans', 'Futura', 'Century Gothic', Arial, sans-serif; letter-spacing: .14em; text-align: center; padding: 0 24px;
  opacity: 0; transform: translateY(26px); filter: blur(4px); }
.sp-landed .sp-line { animation: spLine 1s 1.2s ease-out forwards; }
.sp-landed .sp-slogan { animation: spSl 1s 1.4s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes spReady { from { opacity: 0; transform: scale(.8); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes spGlide { from { transform: translateX(var(--tx)); } to { transform: none; } }
@keyframes spSpring { 0% { transform: translateX(var(--tx)); } 62% { transform: translateX(calc(var(--tx) * -0.09)); }
  84% { transform: translateX(calc(var(--tx) * 0.03)); } 100% { transform: none; } }
@keyframes spLine { to { width: min(260px, 66vw); } }
@keyframes spSl { to { opacity: .95; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { #splash * { animation-duration: .01s !important; animation-delay: 0s !important; } }

/* «Рядом с вами» after the splash: the bar starts empty, a small GO rolls through it and the text appears right behind it */
.near-btn { position: relative; overflow: hidden; }
.nb-inner { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.nb-go { position: absolute; top: 50%; left: 0; width: 30px; height: 30px; margin-top: -15px; opacity: 0; pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(14,107,168,.35)); }
.near-btn.nb-wait .nb-inner { clip-path: inset(0 100% 0 0); }
.near-btn.nb-run .nb-inner { clip-path: inset(0 0 0 0); transition: clip-path 1.5s cubic-bezier(.45,0,.2,1); }
.near-btn.nb-run .nb-go { animation: nbRoll 1.5s cubic-bezier(.45,0,.2,1) forwards; }
@keyframes nbRoll { 0% { opacity: 0; transform: translateX(1px) rotate(0); } 6% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; transform: translateX(calc(var(--nbw) - 31px)) rotate(1080deg); } }
@media (prefers-reduced-motion: reduce) { .near-btn.nb-wait .nb-inner { clip-path: none; } .nb-go { display: none; } }

/* Splash food: flies in from beyond the screen edges while GO rolls (from 1.0 s), lands around the logo, then floats gently */
.sp-food { position: absolute; inset: 0; pointer-events: none; }
.sp-food img { position: absolute; height: auto; opacity: 0; transform: translate(var(--fx), var(--fy)) rotate(calc(var(--r) * -4)) scale(calc(.6 * var(--sx, 1)), .6);
  filter: drop-shadow(0 10px 14px rgba(0, 20, 50, .35));
  animation: spFoodIn 1.3s calc(1s + var(--d)) cubic-bezier(.2,.9,.3,1.12) forwards, spFloat 4s calc(2.4s + var(--d)) ease-in-out infinite alternate; }
.sp-logo, .sp-line, .sp-slogan { position: relative; z-index: 2; }
.sp-slogan { text-shadow: 0 1px 8px rgba(0, 30, 70, .6); }
@keyframes spFoodIn { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 1; transform: rotate(var(--r)) scaleX(var(--sx, 1)); } }
@keyframes spFloat { from { transform: rotate(var(--r)) scaleX(var(--sx, 1)) translateY(0); } to { transform: rotate(calc(var(--r) * .6)) scaleX(var(--sx, 1)) translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .sp-food img { opacity: 1; transform: rotate(var(--r)); } }

/* the teapot does not sway (it is pouring); a tea stream runs from its spout into the piala */
.sp-food img.sf-teapot { animation: spFoodIn 1.3s calc(1s + var(--d)) cubic-bezier(.2,.9,.3,1.12) forwards; }
.sp-pour { position: absolute; left: calc(-8% + 28.5vw); top: calc(5% + 12.2vw); width: 5vw; height: calc(19% - 9.2vw); overflow: visible;
  clip-path: inset(0 0 100% 0); animation: spPour .7s 2.7s ease-in forwards; filter: drop-shadow(0 0 2px rgba(255,200,120,.5)); }
.sp-pour-shine { animation: spShine .6s linear infinite; }
@keyframes spPour { to { clip-path: inset(0 0 0 0); } }
@keyframes spShine { to { stroke-dashoffset: -36; } }

/* ---------- GO everywhere: the brand wheel rolls into main action buttons ---------- */
.big-btn .go-wheel { flex: none; width: 34px; height: 34px; margin: -6px 12px -6px -4px; transform: translateX(-60px) rotate(-720deg); opacity: 0; }
.big-btn.go-in .go-wheel { animation: goRollIn 1.1s cubic-bezier(.25,.8,.25,1) forwards; }
.big-btn:active .go-wheel { transform: rotate(180deg); transition: transform .3s; }
.start-btn { flex-direction: row; }
.start-btn .go-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; text-align: left; }
@keyframes goRollIn { 70% { opacity: 1; transform: translateX(4px) rotate(20deg); } to { opacity: 1; transform: none; } }

/* ---------- Section poster pop-up ---------- */
.poster-pop { position: fixed; inset: 0; z-index: 140; display: flex; align-items: center; justify-content: center; padding: 7vh 9vw;
  background: rgba(8, 22, 40, .72); backdrop-filter: blur(3px); animation: fade .3s ease; }
.poster-pop[hidden] { display: none; }
.poster-card { position: relative; max-height: 100%; animation: popIn .5s cubic-bezier(.2,.9,.3,1.15); }
.poster-card > img { display: block; max-width: 100%; max-height: 86vh; border-radius: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.55); }
.poster-go { position: absolute; right: -34px; bottom: 16%; width: 76px; height: 76px; padding: 0; border-radius: 50%;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.5)); transform: translateX(60vw) rotate(1440deg); animation: popGo 1.4s .45s cubic-bezier(.25,.8,.25,1) forwards; }
.poster-go img { width: 100%; height: 100%; display: block; }
.poster-go::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); opacity: 0; animation: goPulse 1.6s 2s ease-out infinite; }
.poster-pop.leaving .poster-go { animation: popGoAway 1.3s cubic-bezier(.5,0,.6,.5) forwards; }
.poster-pop.leaving .poster-go::after { display: none; }
.poster-pop.leaving .poster-card > img { animation: fadeOut .5s .8s ease forwards; }
.poster-pop.leaving { animation: fadeOut .4s 1.2s ease forwards; }
@keyframes popIn { from { opacity: 0; transform: scale(.85) translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes popGo { 75% { transform: translateX(-6px) rotate(-15deg); } to { transform: none; } }
@keyframes popGoAway { 0% { transform: none; } 15% { transform: translateX(14px) rotate(25deg); } 100% { transform: translateX(-120vw) rotate(-1440deg); } }
@keyframes goPulse { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes fadeOut { to { opacity: 0; } }

/* pin card on the map: whole top part opens the profile, taxi + directions below */
.pin-card { flex-direction: column; align-items: stretch; gap: 8px; }
.pin-main { display: flex; gap: 10px; align-items: center; }
.pin-main small { color: var(--brand) !important; font-weight: 700; }
.pin-card .pin-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0; }
.pin-card .pin-acts a { text-align: center; padding: 9px 6px; font-size: 13.5px; }
.pin-card .pin-acts a:first-child { background: #16181D; color: #FFD166; }
.pin-card .pin-acts a:last-child { background: var(--brand); color: #fff; }

/* ---------- Market ---------- */
.mk-hero { position: relative; overflow: hidden; padding: calc(22px + var(--safe-t)) 18px 30px; background: radial-gradient(120% 90% at 30% 20%, #1784C9, #0E6BA8 55%, #094B78); color: #fff; min-height: 170px; }
.mk-hero h1 { margin: 26px 0 6px; font-size: 30px; font-weight: 900; }
.mk-hero p { margin: 0; max-width: 62%; font-size: 14.5px; line-height: 1.4; opacity: .95; }
.mk-hero-pic { position: absolute; right: -30px; bottom: -14px; width: 190px; transform: rotate(-10deg); filter: drop-shadow(0 10px 16px rgba(0,0,0,.35)); }
.mk-hero-lang { position: absolute; top: calc(12px + var(--safe-t)); right: 14px; z-index: 2; }
.mk-hero-lang .lang summary { background: rgba(255,255,255,.2); color: #fff; }
.mk-chips { top: 0; margin-top: -14px; border-radius: 18px 18px 0 0; position: relative; }
.prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.prod-card { position: relative; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.prod-pic { display: flex; align-items: center; justify-content: center; height: 130px; background: linear-gradient(160deg, #F4F8FC, #E6EEF7); }
.prod-pic img { max-width: 88%; max-height: 118px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0,0,0,.18)); }
.prod-emoji { font-size: 56px; } .prod-emoji.big { font-size: 110px; }
.prod-body { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; }
.prod-body b { font-size: 14.5px; line-height: 1.25; }
.prod-body span { color: var(--brand); font-weight: 800; font-size: 14px; }
.prod-add { position: absolute; right: 8px; top: 96px; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 24px; font-weight: 700; box-shadow: 0 4px 12px rgba(14,107,168,.4); }
.prod-add.added { background: #1D8A3D; }
.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.18); } }
.prod-hero { display: flex; align-items: center; justify-content: center; height: 260px; margin: -12px -16px 0; background: linear-gradient(160deg, #F4F8FC, #E1ECF7); }
.prod-hero img { max-width: 80%; max-height: 230px; filter: drop-shadow(0 12px 16px rgba(0,0,0,.2)); }
.prod-price { font-size: 22px; font-weight: 900; color: var(--brand); margin: 0 0 6px; }
.prod-price small { font-size: 12px; color: var(--faint); font-weight: 700; }
.cart-bar { position: fixed; z-index: 29; left: 50%; transform: translateX(-50%); bottom: calc(92px + var(--safe-b)); width: calc(100% - 32px); max-width: 488px;
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 18px; background: #16181D; color: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.cart-bar[hidden] { display: none; }
.cart-count { min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; background: #FFD166; color: #16181D; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.cart-bar b { flex: 1; } .cart-sum { font-weight: 800; }
.cart-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-pic { width: 60px; height: 60px; border-radius: 14px; background: #F3F6FA; display: flex; align-items: center; justify-content: center; flex: none; }
.cart-pic img { max-width: 52px; max-height: 52px; } .cart-pic .prod-emoji { font-size: 32px; }
.cart-name { flex: 1; min-width: 0; display: flex; flex-direction: column; } .cart-name small { color: var(--brand); font-weight: 700; }
.qty { display: flex; align-items: center; gap: 10px; } .qty button { width: 32px; height: 32px; border-radius: 10px; background: var(--soft); font-size: 18px; font-weight: 800; color: var(--brand); }
.cart-total { font-size: 17px; margin: 14px 0 0; text-align: right; } .cart-total b { color: var(--brand); font-size: 20px; }
.order-form input, .order-form textarea { display: block; width: 100%; margin-top: 10px; font: inherit; font-size: 15.5px; padding: 13px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; }
.order-form input:focus, .order-form textarea:focus { outline: none; border-color: var(--brand); }
.big-btn.added { background: #1D8A3D; }

/* ---------- Centre button: Market. Muted red disc; the basket outline turns into a spinning GO and back every few seconds ---------- */
.tab-mk { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: -26px; color: #B5474B; font-size: 11px; font-weight: 800; }
.tab-mk.on { color: #9C3A3E; }
.mk-btn { position: relative; width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(140deg, #D2676A, #A9403F); color: #fff;
  display: flex; align-items: center; justify-content: center; border: 4px solid #fff; box-shadow: 0 6px 16px rgba(169, 64, 63, .35); overflow: hidden; }
.mk-spin { position: relative; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; animation: mkSpin 20s 1s infinite; }
.mk-basket { width: 29px; height: 29px; transform: none; animation: mkBasket 20s 1s infinite step-end; }
.mk-go { position: absolute; inset: 0; width: 40px; height: 40px; opacity: 0; animation: mkGo 20s 1s infinite step-end; }
/* 20 s loop: basket stands 8 s → spins up hard (swap to GO at full speed) → slows to a stop → GO stands 3 s → spins up again → turns back into the basket */
@keyframes mkSpin {
  0% { transform: rotate(0); }
  40% { transform: rotate(0); animation-timing-function: cubic-bezier(.55,0,1,.45); }
  45% { transform: rotate(1080deg); animation-timing-function: cubic-bezier(0,.55,.45,1); }
  50% { transform: rotate(1800deg); }
  90% { transform: rotate(1800deg); animation-timing-function: cubic-bezier(.55,0,1,.45); }
  95% { transform: rotate(2880deg); animation-timing-function: cubic-bezier(0,.55,.45,1); }
  100% { transform: rotate(3600deg); }
}
@keyframes mkBasket { 0% { opacity: 1; } 45% { opacity: 0; } 95% { opacity: 1; } }
@keyframes mkGo { 0% { opacity: 0; } 45% { opacity: 1; } 95% { opacity: 0; } }
.sup-card { margin-top: 6px; padding: 18px 16px; border-radius: 20px; background: linear-gradient(135deg, #EAF4FB, #F6FAFD); }
.sup-card b { font-size: 20px; } .sup-card p { color: var(--dim); line-height: 1.5; margin: 6px 0 0; }
@media (prefers-reduced-motion: reduce) { .mk-spin, .mk-basket, .mk-go { animation: none; } }



/* home tiles with photos (MedKomfort style): picture fills the tile, soft dark top, white title with a shadow */
.app-home .tile.tile-pic { background: #0B1A2E; }
.app-home .tile.tile-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.app-home .tile.tile-pic::after { display: block; background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.12) 34%, rgba(0,0,0,0) 55%); }
.app-home .tile.tile-pic .tile-label { color: #fff; z-index: 1; font-size: 11px; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.app-home .tile.tile-pic .tile-go { z-index: 1; color: #fff; filter: drop-shadow(0 0 2px rgba(0,0,0,.5)) drop-shadow(0 1px 3px rgba(0,0,0,.45)); }

.tip-pic.tip-pic-ic { background: none; display: flex; align-items: center; justify-content: center; overflow: visible; }
.app-home .tip-pic.tip-pic-ic { width: 82px; height: 82px; }
.tip-card .tip-pic-ic img { border-radius: 0; overflow: visible; height: 78px; width: auto; max-width: 84px; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(14,60,110,.2)); }
.tour-card-ic { position: absolute; z-index: 2; right: 14px; bottom: 12px; width: auto !important; height: 64px !important; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.35)); }
.tour-card .tour-card-body { right: 104px; }


/* ===== Home metrics copied 1:1 from the MedKomfort home (owner's request 2026-09-29).
   To go back: restore backups/before-medkomfort-metrics/app.css (or delete this block). ===== */
.app-home .band { height: calc(52px + var(--safe-t)); padding: var(--safe-t) 16px 0; gap: 0; }
.app-home .band-logo { width: 52px; }
.app-home .band-logo img { width: 36px !important; height: 36px !important; }
.app-home .band-slogan { padding: 0 4px; font-size: clamp(10px, 2.85vw, 13.5px); font-weight: 700; }
.app-home .band .lang { width: 52px; display: flex; justify-content: flex-end; }
.app-home .band .lang summary { padding: 6px 7px; border-radius: 10px; font-size: 11.5px; font-weight: 800; background: rgba(255,255,255,.18); }
.app-home .home { padding: 12px 16px 12px; }
.app-home .home::before { content: ''; flex: none; height: 13px; margin-top: auto; }
.app-home .home::after { content: ''; flex: none; height: 13px; margin-bottom: auto; }
.app-home .tiles { flex: 1 1 auto; min-height: 216px; max-height: 440px; grid-auto-rows: 1fr; gap: 8px; margin-bottom: 0; }
.app-home .tile { aspect-ratio: auto; height: auto; border-radius: 16px; }
.app-home .tile-label { left: 12px; top: 12px; right: 12px; line-height: 1.2; }
.app-home .tile-go { left: 12px; bottom: 12px; width: 22.5px; height: 22.5px; display: flex; align-items: center; justify-content: center; }
.app-home .icons-row { margin: 16px 0 0; padding: 0; gap: 8px; grid-auto-columns: calc((100% - 24px) / 4); }
.app-home .ic-btn { gap: 6px; }
.app-home .ic-circle, .app-home .ic-circle.ic-img { width: 66px; height: 66px; margin-top: 7px; margin-bottom: -7px; }
.app-home .ic-circle.ic-img img { height: 60px; }
.app-home .ic-label { font-size: clamp(10px, 2.85vw, 11px); font-weight: 500; line-height: 1.2; white-space: nowrap; }
.app-home .near-btn { margin-top: 16px; height: 48px; border-radius: 16px; padding: 0 16px; gap: 10px; }
.app-home .near-title { font-size: 14.5px; font-weight: 600; }
.app-home .near-hint { font-size: 12px; font-weight: 500; }
.app-home .memo-h { margin: 22px 0 12px; font-size: 15px; font-weight: 800; }
.app-home .hscroll { margin: -5px -16px -7px; padding: 5px 16px 7px; gap: 10px; scroll-padding: 0 16px; }
.app-home .tip-card { width: 212px; height: 92px; padding: 10px 12px 10px 10px; gap: 11px; border-radius: 20px; }
.app-home .tip-pic, .app-home .tip-pic.tip-pic-ic { width: 70px; height: 70px; }
.app-home .tip-card .tip-pic-ic img { height: 70px; max-width: 70px; }
.app-home .tip-card b { font-size: 13px; font-weight: 800; line-height: 1.2; }
.app-home .tip-card small { font-size: 11px; font-weight: 600; line-height: 1.25; margin-top: 3px; }

/* band slogan in the TASHKENT GO logo lettering (same size and place as before) */
.app-home .band-slogan { font-family: 'Josefin Sans', 'Futura', 'Century Gothic', Arial, sans-serif; font-weight: 600; letter-spacing: .12em; padding-top: .15em; }

/* In Telegram for Android the bot title «Tashkent GO» sits left at 72px — put the slogan right under it, same left edge */
.tg-android .app-home .band-slogan { text-align: left; padding-left: 17px; }  /* logo ends at 68px → text starts at 72px */
/* Ready routes: a see-through themed picture behind each card */
.tip-card { position: relative; overflow: hidden; }
.tip-card > :not(.tip-bg) { position: relative; z-index: 1; }
.tip-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .3; pointer-events: none; }
/* Wide route icons (suitcase with map, heart with towel) get more room so they look as big as the others */
.app-home .tip-pic.tip-pic-first-day, .app-home .tip-pic.tip-pic-health { width: 88px; margin-left: -4px; margin-right: -4px; }
.app-home .tip-card .tip-pic-first-day img { height: 64px; max-width: 94px; }
.app-home .tip-card .tip-pic-health img { height: 62px; max-width: 90px; }
/* Home band: thin outline of the Tashkent skyline behind the logo, slogan and language button */
.app-home .band { background: var(--brand) url(/brand/skyline-band.png) right 60px bottom / auto 100% no-repeat; }
/* Ready routes on the home: photo on top, title, number of stops and an arrow below (3 cards + a peek of the 4th) */
.app-home .rt-row { gap: 8px; }
.rt-card { flex: none; width: 104px; scroll-snap-align: start; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); color: inherit; }
.rt-img { display: block; height: 72px; background: #E4E6EB center / cover no-repeat; }
.rt-body { display: flex; flex-direction: column; flex: 1; padding: 7px 8px 8px; }
.rt-body b { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.6em; font-size: 11.5px; font-weight: 800; line-height: 1.2; color: var(--brand-d); }
.rt-meta { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: 6px; }
.rt-pts { display: flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--dim); white-space: nowrap; }
.rt-pts svg { flex: none; color: var(--brand); }
.rt-go { flex: none; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--brand-tint); color: var(--brand); }
/* Ready routes: 2 cards fully visible + the edge of the 3rd */
.app-home .rt-row { gap: 10px; }
.rt-card { width: 150px; border-radius: 16px; }
.rt-img { height: 100px; }
.rt-body { padding: 8px 10px 10px; }
.rt-body b { -webkit-line-clamp: 2; min-height: 2.4em; font-size: 13.5px; }
.rt-meta { margin-top: 8px; }
.rt-pts { font-size: 12px; gap: 4px; }
.rt-pts svg { width: 14px; height: 14px; }
.rt-go { width: 24px; height: 24px; }
.rt-go svg { width: 14px; height: 14px; }
/* Home must end above the tab bar with the same 25px gap as at the top: on short screens the tiles and route photos shrink */
.app-home .tiles { min-height: 150px; }
.rt-img { height: clamp(64px, 12.5dvh, 100px); }
.rt-img { height: clamp(58px, calc(30dvh - 152px), 100px); }
.rt-body { padding: 7px 10px 8px; }
.rt-body b { font-size: 13px; }
.rt-meta { margin-top: 5px; }
.app-home .tiles { min-height: 200px; }

/* ===== Splash #2 «Great ancestors» (every second launch; waits for the Start button) ===== */
.ga { display: none; }
#splash.ga.on { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr auto auto auto; justify-content: stretch; align-items: stretch; gap: 0;
  padding: calc(var(--safe-t) + 1.6vh) 10px calc(env(safe-area-inset-bottom, 0px) + 1.8vh); overflow: hidden;
  background: #07101F url(/brand/ancestors/v2/bg.webp) center / cover no-repeat; --gold: #F1D58A; --gold-d: #C9A24B; }
.ga-sparks { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.ga-sparks i { position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%; background: #FFD98A; box-shadow: 0 0 6px 2px rgba(255,190,90,.6); opacity: 0; animation: gaRise var(--t) var(--d) linear infinite; }
@keyframes gaRise { 0% { transform: translate(0,0); opacity: 0; } 10% { opacity: .9; } 100% { transform: translate(var(--x), -75vh); opacity: 0; } }
.ga-head { position: relative; z-index: 3; text-align: center; opacity: 0; animation: gaFade 1s .2s forwards; }
.ga-title { font: 700 min(25px, 6.4vw)/1 'Josefin Sans', 'Futura', Arial, sans-serif; letter-spacing: .2em; color: var(--gold); padding-top: .15em; }
.ga-line { width: 0; height: 1.5px; margin: 7px auto 6px; background: linear-gradient(90deg, transparent, var(--gold-d), transparent); animation: gaGrow 1.2s .6s forwards; }
.ga-sub { font: 400 min(13px, 3.4vw)/1.3 'Josefin Sans', 'Futura', Arial, sans-serif; letter-spacing: .08em; color: rgba(255,255,255,.88); }
@keyframes gaGrow { to { width: min(240px, 64vw); } }
@keyframes gaFade { to { opacity: 1; } }
.ga-p { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; text-align: center; background: none; border: 0; padding: 0; margin: 0; color: #fff; font: inherit; cursor: pointer;
  opacity: 0; transform: scale(.5) translateY(10px); animation: gaPop .7s var(--d) cubic-bezier(.2,.9,.3,1.3) forwards; -webkit-tap-highlight-color: transparent; }
.ga-pic { display: block; width: var(--s); height: var(--s); border-radius: 50%; padding: 2px; background: conic-gradient(from 200deg, #FBE7A6, #A7792A, #F6DC92, #8E6420, #FBE7A6);
  box-shadow: 0 0 0 3px rgba(7,16,31,.8), 0 6px 18px rgba(0,0,0,.6), 0 0 22px rgba(241,213,138,.18); }
.ga-pic img { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; }
.ga-p b { display: block; margin-top: 4px; font-size: min(11px, 2.9vw); font-weight: 800; line-height: 1.12; color: var(--gold); text-shadow: 0 1px 4px #000; }
.ga-p small { display: block; margin-top: 1px; font-size: min(9.5px, 2.5vw); font-weight: 600; line-height: 1.15; color: rgba(255,255,255,.85); text-transform: uppercase; letter-spacing: .04em; text-shadow: 0 1px 4px #000; }
@keyframes gaPop { to { opacity: 1; transform: none; } }
.ga-top { position: relative; z-index: 3; display: flex; justify-content: center; align-items: flex-end; gap: min(6vw, 26px); margin-top: 1.2vh; }
.ga-top .ga-p { --s: min(18vw, 8.6vh, 76px); width: 28%; }
.ga-top .ga-hero { --s: min(23vw, 11vh, 98px); width: 40%; }
.ga-hero .ga-pic { background: conic-gradient(from 200deg, #FFF0B8, #C8962E, #FFE7A0, #A0721F, #FFF0B8); box-shadow: 0 0 0 3px rgba(7,16,31,.8), 0 0 30px rgba(241,213,138,.45); }
.ga-mid { position: relative; display: grid; grid-template-columns: minmax(0,26%) minmax(0,1fr) minmax(0,26%); min-height: 0; margin-top: .6vh; }
.ga-col { position: relative; z-index: 3; display: flex; flex-direction: column; justify-content: space-around; align-items: center; }
.ga-col .ga-p, .ga-bottom .ga-p { --s: min(16vw, 7.6vh, 70px); }
.ga-temur { position: absolute; z-index: 1; left: 50%; top: 56%; height: 122%; aspect-ratio: 700 / 797; translate: -50% -50%; pointer-events: none; }
.ga-temur img { width: 100%; height: 100%; display: block; opacity: 0; transform: scale(1.25); filter: brightness(1.6) blur(6px);
  animation: gaTemurIn 1.6s .3s cubic-bezier(.2,.8,.2,1) forwards, gaBreathe 9s 1.9s ease-in-out infinite alternate; }
.ga-temur::after { content: ''; position: absolute; inset: 20% 15% 25%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(241,180,90,.35), transparent); animation: gaGlow 3s 1.5s ease-in-out infinite alternate; }
@keyframes gaTemurIn { to { opacity: 1; transform: scale(1); filter: none; } }
@keyframes gaBreathe { from { transform: scale(1); } to { transform: scale(1.05) translateY(-1%); } }
@keyframes gaGlow { from { opacity: .6; } to { opacity: 1; } }
.ga-bottom { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0,26%) minmax(0,1fr) minmax(0,26%); align-items: end; margin-top: .8vh; }
.ga-tcap { position: relative; z-index: 3; text-align: center; align-self: center; padding: 0 4px; opacity: 0; animation: gaFade 1s 1.6s forwards; cursor: pointer; }
.ga-tcap b { display: block; white-space: nowrap; font: 700 min(24px, 6vw)/1 'Josefin Sans', 'Futura', Arial, sans-serif; letter-spacing: .08em; color: var(--gold); text-shadow: 0 2px 10px #000, 0 0 18px rgba(241,190,90,.35); padding-top: .12em; }
.ga-tcap span { display: block; margin-top: 3px; font-size: min(10.5px, 2.8vw); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.9); text-shadow: 0 1px 6px #000; }
.ga-tcap em { display: block; white-space: nowrap; margin-top: 3px; font: italic 600 min(14px, 3.7vw)/1.2 Georgia, 'Times New Roman', serif; color: #FBE7A6; text-shadow: 0 1px 6px #000; }
.ga-motto { position: relative; z-index: 3; text-align: center; margin-top: 1vh; font: 600 min(12px, 3.1vw)/1.3 'Josefin Sans', 'Futura', Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: rgba(241,213,138,.9); opacity: 0; animation: gaFade 1s 4.8s forwards; }
/* Start button with the GO logo inside; it keeps pulsing so it is never lost among the pictures */
.ga-cta { position: relative; z-index: 4; display: flex; justify-content: center; margin-top: 1.6vh; opacity: 0; transform: translateY(14px); animation: gaCtaIn .8s 4.3s cubic-bezier(.2,.9,.3,1.2) forwards; }
.ga-start { display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 12px; border: 0; background: none; cursor: pointer; color: #fff;
  font: 700 20px 'Josefin Sans', 'Futura', Arial, sans-serif; letter-spacing: .3em; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0,0,0,.8);
  animation: gaPulse 1.6s 5.1s ease-in-out infinite; -webkit-tap-highlight-color: transparent; }
.ga-start img { width: 48px; height: 48px; display: block; filter: drop-shadow(0 3px 8px rgba(0,0,0,.6)); }
.ga-start span { padding-top: .12em; }
.ga-start svg { width: 18px; height: 18px; }
@keyframes gaCtaIn { to { opacity: 1; transform: none; } }
@keyframes gaPulse { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(241,213,138,0)); } 50% { transform: scale(1.08); filter: drop-shadow(0 0 12px rgba(241,213,138,.75)); } }
.ga-card { position: fixed; z-index: 10; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); max-width: 460px; margin: 0 auto; padding: 16px 18px 18px; border-radius: 20px;
  background: linear-gradient(180deg, #13244A, #0A1630); border: 1px solid rgba(241,213,138,.45); box-shadow: 0 -10px 40px rgba(0,0,0,.6); color: #fff;
  transform: translateY(140%); transition: transform .35s cubic-bezier(.2,.9,.3,1.1); }
.ga-card.on { transform: none; }
.ga-card h3 { margin: 0; padding-right: 36px; font: 700 18px 'Josefin Sans', 'Futura', Arial, sans-serif; letter-spacing: .06em; color: var(--gold); }
.ga-yrs { margin-top: 2px; font-size: 12px; font-weight: 700; color: rgba(255,255,255,.6); }
.ga-card p { margin: 8px 0 0; font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.92); }
.ga-x { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .ga * { animation-duration: .01s !important; animation-delay: 0s !important; } }

/* ===== «12 gates of Tashkent»: map (splash #3 and the /gates section) ===== */
.gm { position: relative; width: 100%; aspect-ratio: 843 / 1264; }
.gm-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border-radius: 16px; }
.gm-spot { position: absolute; width: 12.4%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 0; padding: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.gm-gate { animation: gmPing 3.2s ease-out infinite; animation-delay: calc(var(--k, 0) * 1s); }
.gm-gate::after, .gm-city::after { content: ''; position: absolute; inset: -4%; border-radius: 50%; box-shadow: 0 0 0 0 rgba(255,255,255,.0); transition: box-shadow .2s; }
.gm-gate.on::after, .gm-gate:active::after { box-shadow: 0 0 0 4px #F1D58A, 0 0 18px 6px rgba(241,213,138,.8); }
.gm-city { width: 10%; }
.gm-city::after { inset: 10%; border: 2px dashed rgba(14,107,168,.0); }
.gm-city.on::after, .gm-city:active::after { border-color: #0E6BA8; background: rgba(255,255,255,.25); }
.gm-city::before { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; translate: -50% -50%; border-radius: 50%; background: #F1D58A; box-shadow: 0 0 0 2px #0E6BA8; animation: gmDot 1.8s ease-in-out infinite; }
@keyframes gmDot { 0%, 100% { scale: 1; opacity: .9; } 50% { scale: 1.5; opacity: 1; } }
@keyframes gmPing { 0%, 70%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } 20% { box-shadow: 0 0 0 3px rgba(255,255,255,.8); } 45% { box-shadow: 0 0 0 9px rgba(255,255,255,0); } }
.gm-camel { position: absolute; z-index: 2; font-size: clamp(14px, 4.4vw, 22px); line-height: 1; translate: -50% -60%; pointer-events: none; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35));
  animation: gmWalk 14s var(--d) linear infinite; opacity: 0; transform: scaleX(var(--f)); }
@keyframes gmWalk { 0% { left: var(--x0); top: var(--y0); opacity: 0; } 8% { opacity: 1; } 85% { opacity: 1; } 100% { left: var(--x1); top: var(--y1); opacity: 0; } }
.gm-battle { position: absolute; z-index: 2; font-size: clamp(13px, 4vw, 20px); translate: -50% -50%; pointer-events: none; animation: gmDot 1.4s ease-in-out infinite; }

/* splash #3 */
.gg { display: none; }
#splash.gg.on { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: .8vh; padding: calc(var(--safe-t) + 1.4vh) 8px calc(env(safe-area-inset-bottom, 0px) + 1vh);
  background: radial-gradient(80% 70% at 50% 45%, #F1E2BF, #D9BF8C 70%, #B8975E); color: #4A3016; overflow: hidden; }
.gg-head { text-align: center; opacity: 0; animation: gaFade 1s .2s forwards; }
.gg-title { font: 700 min(22px, 5.8vw)/1 'Josefin Sans', 'Futura', Arial, sans-serif; letter-spacing: .16em; color: #5A3613; padding-top: .15em; }
.gg-sub { margin-top: 5px; font-size: min(12.5px, 3.3vw); font-weight: 600; color: #6B4A22; }
.gg-map { flex: 1 1 auto; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; opacity: 0; animation: ggIn 1.1s .3s cubic-bezier(.2,.8,.2,1) forwards; }
.gg-map .gm { height: 100%; width: auto; max-width: 100%; max-height: 100%; }
.gg-map .gm-img { border-radius: 6px; box-shadow: 0 6px 22px rgba(70,40,10,.35); }
@keyframes ggIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.gg-cta { margin-top: 0; animation-delay: 1.4s; }
.gg .ga-start { color: #5A3613; text-shadow: none; }
.gg .ga-start img { filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }

/* /gates section */
.gates-page { padding-bottom: 110px; }
.gt-mapwrap { margin: 4px -4px 0; border-radius: 18px; overflow: hidden; background: #BFD995; }
.gt-hint { margin: 8px 0 0; text-align: center; font-size: 13px; font-weight: 600; color: var(--dim); }
.gt-intro { margin: 14px 0 0; font-size: 14.5px; line-height: 1.55; }
.gt-h { margin: 20px 0 8px; font-size: 17px; font-weight: 800; color: var(--brand-d); }
.gt-list { display: grid; gap: 8px; }
.gt-row { display: block; width: 100%; text-align: left; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: inherit; font: inherit; cursor: pointer; }
.gt-n { display: block; font-size: 15px; font-weight: 800; color: var(--brand-d); }
.gt-why { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; color: var(--dim); }
.gt-tag { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 999px; background: #FFF4DA; font-size: 11.5px; font-weight: 700; color: #8A5A00; }
.gt-src { margin: 18px 0 0; font-size: 12px; color: var(--dim); }
.gt-sheet { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; max-height: 72vh; overflow-y: auto; padding: 18px 18px calc(env(safe-area-inset-bottom, 0px) + 22px);
  border-radius: 22px 22px 0 0; background: #fff; box-shadow: 0 -10px 40px rgba(0,0,0,.25); transform: translateY(105%); transition: transform .35s cubic-bezier(.2,.9,.3,1.1); }
.gt-sheet.on { transform: none; }
.gt-sheet .ga-x { background: #EEF0F4; color: #333; }
.gt-sheet h3 { margin: 0; padding-right: 36px; font-size: 20px; font-weight: 800; color: var(--brand-d); }
.gt-photo { display: block; width: 100%; height: 170px; object-fit: cover; border-radius: 14px; margin-bottom: 12px; }
.gt-daha { margin-top: 2px; font-size: 12.5px; font-weight: 700; color: var(--dim); }
.gt-plain { margin: 8px 0 0; font-size: 14.5px; line-height: 1.5; }
.gt-blk { margin-top: 12px; }
.gt-blk b { display: block; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); }
.gt-blk p { margin: 3px 0 0; font-size: 14.5px; line-height: 1.5; }
.gt-car, .gt-bat { padding: 10px 12px; border-radius: 12px; background: #FFF6E0; }
.gt-bat { background: #FDECEC; }
.gt-bat b { color: #B3261E; }
.gt-car b { color: #8A5A00; }
.gt-open { display: block; margin-top: 14px; padding: 12px; border-radius: 14px; background: var(--brand); color: #fff; text-align: center; font-weight: 700; text-decoration: none; }
/* «Then / Now» on the gates page */
.gt-tabs { display: flex; gap: 6px; margin: 4px 0 10px; padding: 4px; border-radius: 14px; background: #EEF1F5; }
.gt-tabs button { flex: 1; height: 38px; border: 0; border-radius: 11px; background: none; font: inherit; font-weight: 700; color: var(--dim); cursor: pointer; }
.gt-tabs button.on { background: #fff; color: var(--brand-d); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.gt-now #gt-lmap { height: min(72vh, 560px); border-radius: 18px; overflow: hidden; z-index: 0; }
.gt-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--dim); }
.gt-legend span { display: flex; align-items: center; gap: 6px; }
.gt-legend i { display: inline-block; width: 18px; height: 0; }
.lg-gate { height: 12px !important; width: 12px !important; border-radius: 50%; background: #C8963E; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #8B5A2B; }
.lg-wall { border-top: 3px dashed #8B5A2B; }
.lg-canal { border-top: 4px solid #1E88E5; }
.gt-note { margin: 6px 0 0; font-size: 12px; line-height: 1.4; color: var(--dim); }
.gt-gpin { position: relative; }
.gt-gpin b { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #F6E3B4; box-shadow: 0 0 0 2px #8B5A2B, 0 2px 6px rgba(0,0,0,.3); font-size: 14px; }
.gt-gpin span, .gt-cpin span { position: absolute; left: 50%; top: 28px; translate: -50% 0; white-space: nowrap; padding: 1px 6px; border-radius: 8px; background: rgba(255,255,255,.92); font-size: 11px; font-weight: 800; color: #5A3A17; }
.gt-cpin i { display: block; width: 14px; height: 14px; border-radius: 50%; background: #0E6BA8; box-shadow: 0 0 0 2px #fff; }
.gt-cpin span { top: 17px; color: #0B4F7C; font-weight: 700; }
.gt-clabel span { display: inline-block; translate: -50% -50%; white-space: nowrap; padding: 1px 7px; border-radius: 8px; background: #1E88E5; color: #fff; font-size: 11px; font-weight: 700; font-style: italic; }

/* ===== map v2 (restored 1865 plan): live layer ===== */
.gm .gm-spot { width: 7.5%; }
.gm .gm-gate { animation: gmPing 3.2s ease-out infinite; animation-delay: calc(var(--k, 0) * .8s); }
.gm button { -webkit-tap-highlight-color: transparent; }
.gm-dot { position: absolute; z-index: 3; width: 8.5%; aspect-ratio: 1; translate: -50% -50%; border: 0; padding: 0; background: none; cursor: pointer; }
.gm-dot::before { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; translate: -50% -50%; border-radius: 50%; background: #F2C14E; box-shadow: 0 0 0 2px #fff, 0 1px 4px rgba(0,0,0,.5); }
.gm-dot::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; translate: -50% -50%; border-radius: 50%; border: 2px solid #F2C14E; animation: gmRing 2s ease-out infinite; animation-delay: calc(var(--k, 0) * .3s); }
.gm-water::before { background: #3D8FD1; } .gm-water::after { border-color: #3D8FD1; }
.gm-dot.on::before { background: #E0452B; scale: 1.3; }
@keyframes gmRing { 0% { scale: 1; opacity: .9; } 100% { scale: 3; opacity: 0; } }
.gm-camel { position: absolute; z-index: 2; border: 0; padding: 4px; background: none; cursor: pointer; font-size: clamp(13px, 3.8vw, 20px); line-height: 1; translate: -50% -60%;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); animation: gmWalk 11s var(--d) linear infinite; opacity: 0; }
.gm-camel { transform: scaleX(var(--f)); }
@keyframes gmWalk { 0% { left: var(--x0); top: var(--y0); opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { left: var(--x1); top: var(--y1); opacity: 0; } }
.gm-tiger { position: absolute; z-index: 3; translate: -50% -50%; border: 0; padding: 4px; background: none; cursor: pointer; font-size: clamp(15px, 4.4vw, 24px); line-height: 1; }
.gm-tiger span { display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,.45)); animation: gmProwl 6s var(--d) ease-in-out infinite; }
.gm-tiger::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid rgba(242,140,40,.9); animation: gmRing 2.4s ease-out infinite; }
@keyframes gmProwl { 0%, 100% { transform: translateX(-6px) scaleX(1); } 45% { transform: translateX(6px) scaleX(1); } 50% { transform: translateX(6px) scaleX(-1); } 95% { transform: translateX(-6px) scaleX(-1); } }
.gm-fight { position: absolute; z-index: 3; translate: -50% -50%; width: 15%; aspect-ratio: 1.3; border: 0; padding: 0; background: radial-gradient(closest-side, rgba(255,120,30,.35), transparent); cursor: pointer; font-size: clamp(11px, 3.2vw, 17px); line-height: 1; }
.gm-fight span { position: absolute; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.gf-h1 { left: 4%; top: 30%; transform: scaleX(-1); animation: gfCharge1 1.1s ease-in-out infinite alternate; }
.gf-h2 { right: 4%; top: 30%; animation: gfCharge2 1.1s ease-in-out infinite alternate; }
.gf-x { left: 50%; top: 22%; translate: -50% 0; animation: gfClash 1.1s ease-in-out infinite alternate; }
.gf-f1 { left: 20%; bottom: 0; font-size: .8em; animation: gfFire .5s ease-in-out infinite alternate; }
.gf-f2 { right: 18%; bottom: 4%; font-size: .7em; animation: gfFire .6s .2s ease-in-out infinite alternate; }
@keyframes gfCharge1 { from { transform: scaleX(-1) translateX(0) rotate(0); } to { transform: scaleX(-1) translateX(-5px) rotate(-8deg); } }
@keyframes gfCharge2 { from { transform: translateX(0) rotate(0); } to { transform: translateX(-5px) rotate(-8deg); } }
@keyframes gfClash { from { scale: .8; opacity: .7; } to { scale: 1.2; opacity: 1; } }
@keyframes gfFire { from { scale: .8; opacity: .75; } to { scale: 1.15; opacity: 1; } }
.gt-more { background: #fff; color: var(--brand); border: 1.5px solid var(--brand); }
#splash .gt-sheet { z-index: 10; }
/* map banner title in the chosen language (the picture's own banner is blank) */
.gm { container-type: inline-size; }
.gm-title { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.gm-title text { font: 600 30px Georgia, 'Times New Roman', 'Liberation Serif', serif; fill: #3B2513; }
.gg-title { font-size: min(21px, 4.8vw); letter-spacing: .09em; white-space: nowrap; }

/* splash #3: even margins around the map */
#splash.gg.on { padding-left: 14px; padding-right: 14px; gap: 1.4vh; }
.gg-map { padding: 0 2px; }
.gg-map { container-type: size; }
.gg-map .gm { height: auto; max-height: none; width: min(100cqw, calc(100cqh * 843 / 1264)); }
#splash.gg.on { justify-content: center; gap: 2.2vh; }
.gg-map { flex: 0 1 calc((100vw - 32px) * 1264 / 843); }
.gt-fig { margin: 0 0 12px; }
.gt-fig .gt-photo { height: auto; aspect-ratio: 3 / 2; margin: 0; box-shadow: 0 3px 12px rgba(60,35,10,.25); }
.gt-fig figcaption { margin-top: 5px; font-size: 11.5px; color: var(--dim); font-style: italic; }
.gt-sheet { max-height: 82vh; }
.gt-pic { position: relative; display: block; }
.gt-ribbon { position: absolute; left: 50%; top: 3%; width: 82%; translate: -50% 0; filter: drop-shadow(0 3px 4px rgba(60,35,10,.35)); pointer-events: none; }
.gm-daha::before { background: #8B5A2B; } .gm-daha::after { border-color: #8B5A2B; }
.gt-sheet .ga-x { z-index: 3; background: rgba(255,255,255,.92); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.gm-ribbon { position: absolute; z-index: 3; left: 25%; top: 3.6%; width: 50%; height: 5.6%; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 10px; animation: gmPing 3.2s 1s ease-out infinite; }
.gt-era { padding-left: 12px; border-left: 3px solid #C9A24B; }
.gt-bars { margin: 10px 0 0 15px; padding: 10px 12px; border-radius: 12px; background: #F4F7FB; }
.gt-bars > b { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 800; color: var(--brand); }
.gt-bar { display: grid; grid-template-columns: 38px 1fr 34px; align-items: center; gap: 8px; margin-top: 4px; font-size: 12.5px; }
.gt-bar i { display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, #C9A24B, #0E6BA8); }
.gt-bar em { font-style: normal; font-weight: 800; text-align: right; }

/* ===== Splash #4 «O‘zbekiston — chempionlar vatani» ===== */
.gc { display: none; }
#splash.gc.on { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6vh; padding: calc(var(--safe-t) + 1vh) 12px calc(env(safe-area-inset-bottom, 0px) + 2vh);
  background: radial-gradient(80% 50% at 50% 40%, #0F1F3D, #060A14 75%); overflow: hidden; }
.gc-art { position: relative; flex: none; width: min(100%, calc((100vh - 230px) / 1.5)); aspect-ratio: 1024 / 1536; container-type: inline-size; }
.gc-art img { width: 100%; height: 100%; display: block; animation: gcZoom 1.6s ease-out both;
  -webkit-mask: radial-gradient(120% 100% at 50% 45%, #000 70%, transparent 100%); mask: radial-gradient(120% 100% at 50% 45%, #000 70%, transparent 100%); }
@keyframes gcZoom { from { transform: scale(1.08); opacity: 0; } to { transform: none; opacity: 1; } }
.gc-slogan { position: absolute; left: 0; right: 0; top: 13.6%; text-align: center; white-space: nowrap;
  font: 700 7.4cqw/1 'Josefin Sans', 'Futura', Arial, sans-serif; letter-spacing: .14em; color: #F2C14E; text-shadow: 0 2px 12px rgba(0,0,0,.9), 0 0 18px rgba(242,193,78,.35);
  opacity: 0; animation: gcIn .9s 1.2s forwards; }
.gc-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 460px; }
.gc-chips button { display: flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(242,193,78,.45); background: rgba(255,255,255,.07);
  color: #fff; font: 700 12px system-ui, Arial, sans-serif; letter-spacing: .03em; cursor: pointer; opacity: 0; animation: gcIn .5s calc(1.6s + var(--k, 0) * .08s) forwards; }
.gc-chips button:nth-child(2) { --k: 1 } .gc-chips button:nth-child(3) { --k: 2 } .gc-chips button:nth-child(4) { --k: 3 } .gc-chips button:nth-child(5) { --k: 4 }
.gc-chips button:nth-child(6) { --k: 5 } .gc-chips button:nth-child(7) { --k: 6 } .gc-chips button:nth-child(8) { --k: 7 }
.gc-chips button.on { background: #F2C14E; color: #1A1206; }
.gc .ga-start { opacity: 0; animation: gcIn .8s 2.4s forwards, gaPulse 1.6s 3.2s ease-in-out infinite; }
@keyframes gcIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.gc .gt-sheet { color: var(--text, #1F2430); }

.gc-art { width: min(100%, calc((100vh - 300px) / 1.5)); }
.gc-chips { gap: 5px; max-width: 480px; }
.gc-chips button { padding: 5px 9px; font-size: 11px; }
.gc-chips button:nth-child(n+9) { --k: 8 }
/* champions splash: starry sports background (owner's picture, thinner softer outlines) + falling confetti */
#splash.gc.on { background: #07101F url(/brand/champions/bg.webp) center / cover no-repeat; }
#splash.gc.on::before { content: ''; position: absolute; inset: 0; pointer-events: none; animation: gcTwinkle 3.5s ease-in-out infinite alternate;
  background-image: radial-gradient(1.5px 1.5px at 18% 12%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 82% 20%, #F2C14E 50%, transparent 51%), radial-gradient(1.2px 1.2px at 66% 8%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 30% 30%, #F2C14E 50%, transparent 51%), radial-gradient(1.2px 1.2px at 90% 60%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 8% 70%, #F2C14E 50%, transparent 51%); }
@keyframes gcTwinkle { from { opacity: .25; } to { opacity: 1; } }
.gc-fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.gc-fx i { position: absolute; top: -12px; width: 6px; height: 10px; border-radius: 1px; background: var(--c); opacity: 0; animation: gcFall var(--t) var(--d) linear infinite; }
@keyframes gcFall { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 8% { opacity: .9; } 100% { transform: translate(30px, 105vh) rotate(540deg); opacity: .2; } }
.gc-art, .gc-chips, .gc .ga-start { position: relative; z-index: 1; }
.gc-art img { -webkit-mask: radial-gradient(85% 75% at 50% 48%, #000 62%, transparent 100%); mask: radial-gradient(85% 75% at 50% 48%, #000 62%, transparent 100%); }
/* champions: poster cropped under the chessboard, larger, evenly spaced */
#splash.gc.on { justify-content: space-evenly; gap: 0; padding-left: 0; padding-right: 0; }
.gc-art { aspect-ratio: 1024 / 1410; width: min(100vw, calc((100vh - 250px - var(--safe-t) - env(safe-area-inset-bottom, 0px)) * 1024 / 1410)); }
.gc-art img { -webkit-mask: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%), linear-gradient(transparent 0, #000 4%, #000 92%, transparent 100%); -webkit-mask-composite: source-in;
  mask: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%), linear-gradient(transparent 0, #000 4%, #000 92%, transparent 100%); mask-composite: intersect; }
.gc-slogan { top: 15.4%; }
.gc-chips { padding: 0 12px; }
.gc-slogan { font-size: 6.4cqw; letter-spacing: .12em; }
/* champions (owner 2026-10-04, variant C): 17 sports no longer fit — bigger poster, Asian Games bar on its own,
   sport chips in 2 rows sliding sideways with a fading edge, so TASHKENT GO always fits on screen */
.gc-art { width: min(100vw, calc((100dvh - 215px - var(--safe-t) - env(safe-area-inset-bottom, 0px)) * 1024 / 1410)); }
.gc .gc-asiad { position: relative; z-index: 1; flex-basis: auto; margin: 0 12px; }
.gc-chips { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); justify-content: start; overflow-x: auto; width: 100vw; max-width: 100vw; padding: 0 12px; scrollbar-width: none;
  -webkit-mask: linear-gradient(90deg, #000 85%, transparent); mask: linear-gradient(90deg, #000 85%, transparent); }
.gc-chips::-webkit-scrollbar { display: none; }
.gc-chips button { white-space: nowrap; }
.gt-people { display: grid; gap: 10px; margin-top: 14px; }
.gt-person { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 14px; background: #F4F7FB; }
.gt-person img { flex: none; width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.gt-person b { display: block; font-size: 14.5px; color: var(--brand-d); }
.gt-person p { margin: 3px 0 0; font-size: 13px; line-height: 1.4; }
/* Home (owner 2026-10-01): icon row one third smaller; tiles take the freed space; route cards unchanged */
.app-home .ic-circle, .app-home .ic-circle.ic-img { width: 44px; height: 44px; margin-top: 5px; margin-bottom: -5px; }
.app-home .ic-circle.ic-img img { height: 40px; }
/* first splash: the plov is the partner's place (Kamolon Osh); the TASHKENT GO logo closes the splash */
.sp-partner { position: absolute; z-index: 3; left: 0; top: 64%; width: min(41vw, 214px); height: min(38vw, 200px); border-radius: 50%; -webkit-tap-highlight-color: transparent;
  opacity: 0; animation: spPartnerIn .6s 3.6s forwards, spPlovPulse 2s 4.3s ease-in-out infinite; }
.sp-badge { position: absolute; left: 50%; top: -6px; translate: -50% -100%; display: flex; flex-direction: column; align-items: center; padding: 5px 12px 4px; border-radius: 12px;
  background: #fff; color: #0B4F7C; box-shadow: 0 4px 14px rgba(0,30,70,.35); white-space: nowrap; }
.sp-badge::after { content: ''; position: absolute; left: 50%; bottom: -6px; translate: -50% 0; border: 6px solid transparent; border-bottom: 0; border-top-color: #fff; }
.sp-badge b { font: 700 14px/1.1 'Josefin Sans', 'Futura', Arial, sans-serif; letter-spacing: .04em; }
.sp-badge small { font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8A95A5; }
@keyframes spPartnerIn { to { opacity: 1; } }
@keyframes spPlovPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.0); } 50% { box-shadow: 0 0 0 10px rgba(255,255,255,.18), 0 0 40px 10px rgba(255,220,140,.35); } }
.sp-logo { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sp-landed .sp-logo { animation: gaPulse 1.6s 1.6s ease-in-out infinite; }

/* ===== Venue page (inspired by delivery/booking apps, our own blue style) ===== */
.v-top .v-hero { display: block; width: 100%; height: 260px; border: 0; padding: 0; background: #E9EEF4; position: relative; cursor: zoom-in; }
.v-top .v-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v-hero-empty { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--dim); }
.v-count { position: absolute; right: 14px; bottom: 30px; padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 700; }
.venue { padding-bottom: 170px; }
.v-card { position: relative; margin: 0 -16px; padding: 16px 16px 6px; border-radius: 22px 22px 0 0; background: #fff; }
.v-name { margin: 8px 0 4px; font: 800 28px/1.1 'Josefin Sans', 'Futura', Arial, sans-serif; letter-spacing: -.01em; color: var(--brand-d); }
.v-addr { display: flex; align-items: center; gap: 5px; margin: 0; font-size: 14px; color: var(--dim); }
.v-addr svg { flex: none; color: var(--brand); }
.v-info { display: flex; margin: 14px 0 4px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.v-info > * { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; color: inherit; text-decoration: none; min-width: 0; }
.v-info > * + * { border-left: 1px solid var(--line); }
.v-info b { font-size: 15px; font-weight: 800; white-space: nowrap; }
.v-info small { font-size: 11.5px; color: var(--dim); }
.vi-open { color: #1E9A4A; } .vi-closed { color: #C0392B; }
.v-tabs { position: sticky; top: 0; z-index: 20; display: flex; gap: 6px; margin: 0 -16px; padding: 10px 16px; overflow-x: auto; scrollbar-width: none; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.v-tabs::-webkit-scrollbar { display: none; }
.v-tabs a { flex: none; padding: 7px 14px; border-radius: 999px; background: #F1F4F8; color: var(--dim); font-size: 14px; font-weight: 700; text-decoration: none; }
.v-tabs a.on { background: var(--brand); color: #fff; }
.v-sec { scroll-margin-top: 64px; padding-top: 18px; }
.v-sec h2 { margin: 0 0 10px; font-size: 21px; font-weight: 800; color: var(--brand-d); }
.v-gal { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.v-gal button { flex: none; width: 74%; aspect-ratio: 4 / 3; border: 0; padding: 0; border-radius: 16px; overflow: hidden; scroll-snap-align: start; background: #E9EEF4; }
.v-gal img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v-menu { margin-bottom: 14px; padding: 12px 14px; border-radius: 16px; background: #F7F9FC; border: 1px solid var(--line); }
.v-menu h3 { margin: 0 0 8px; font-size: 15px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); }
.v-mi { display: flex; align-items: baseline; gap: 6px; padding: 4px 0; font-size: 14px; }
.v-mi i { flex: 1; border-bottom: 1.5px dotted #C5CEDA; transform: translateY(-3px); }
.v-mi b { font-weight: 800; white-space: nowrap; }
.v-score { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.v-score > b { font: 800 44px/1 'Josefin Sans', Arial, sans-serif; color: var(--brand-d); }
.v-score span { display: flex; flex-direction: column; gap: 3px; } .v-score small { color: var(--dim); font-size: 12.5px; }
.v-revs { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px 12px; padding: 0 16px 4px; scrollbar-width: none; }
.v-revs .review { flex: none; width: 78%; margin: 0; }
.v-revs .note { margin: 0; }
.v-about { margin: 0 0 12px; font-size: 15px; line-height: 1.55; }
.v-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.v-row svg { flex: none; margin-top: 2px; color: var(--brand); }
.v-row small { display: block; font-size: 12px; color: var(--dim); }
.v-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 6px 0 12px; }
.v-details div { padding: 9px 11px; border-radius: 12px; background: #F4F7FB; }
.v-details small { display: block; font-size: 11.5px; color: var(--dim); } .v-details b { font-size: 14px; }
.v-map { height: 170px; border-radius: 16px; overflow: hidden; background: #E9EEF4; margin-bottom: 4px; z-index: 0; }
.v-contacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.v-contacts a { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 12px; background: #F1F4F8; color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.v-bar { position: fixed; z-index: 29; left: 50%; transform: translateX(-50%); width: 100%; max-width: 520px; bottom: calc(64px + var(--safe-b, 0px)); display: flex; gap: 8px; padding: 10px 14px; background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(14,60,110,.08); }
.v-bar .start-btn { flex: 1; margin: 0; }
.v-bar-btn { flex: none; width: 52px; display: flex; align-items: center; justify-content: center; border-radius: 16px; background: #F1F4F8; color: var(--brand); font-size: 20px; text-decoration: none; }

/* ===== Tile sections: food / go out / sights ===== */
.sx-head { display: flex; align-items: center; gap: 12px; padding: calc(10px + var(--safe-t)) 16px 4px; background: #fff; }
.sx-head .round-btn { flex: none; background: #F1F4F8; }
.sx-title { flex: 1; min-width: 0; }
.sx-title h1 { margin: 0; font: 800 26px/1.05 'Josefin Sans', 'Futura', Arial, sans-serif; color: var(--brand-d); }
.sx-title small { color: var(--dim); font-size: 13px; }
.sx-search { position: sticky; top: 0; z-index: 25; padding: 8px 16px 10px; background: #fff; }
.sx-search label { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-radius: 999px; background: #F1F4F8; color: var(--dim); }
.sx-search input { flex: 1; border: 0; background: none; font: inherit; font-size: 15.5px; outline: none; color: var(--text); }
.sx-page { padding-top: 4px; padding-bottom: 110px; }
.sx-circles { display: flex; justify-content: space-between; gap: 6px; margin: 8px 0 4px; }
.sx-circles > * { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; padding: 0; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--text); text-decoration: none; cursor: pointer; }
.sx-circles span { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: #EEF3F9; font-size: 24px; transition: background .2s; }
.sx-circles .on span { background: var(--brand); box-shadow: 0 4px 12px rgba(14,107,168,.35); }
.sx-h { margin: 24px 0 2px; font: 800 24px/1.1 'Josefin Sans', 'Futura', Arial, sans-serif; color: var(--brand-d); scroll-margin-top: 70px; }
.sx-sub { margin: 4px 0 12px; color: var(--dim); font-size: 14px; }
.sx-topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sx-topic { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, #1784C9, #0B4F7C) center / cover; color: #fff; text-decoration: none; }
.sx-topic.wide { grid-column: span 2; aspect-ratio: auto; }
.sx-topic::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,30,60,.55), rgba(5,30,60,0) 55%); }
.sx-topic b { position: absolute; left: 11px; top: 10px; right: 8px; font-size: 14px; font-weight: 700; line-height: 1.2; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.sx-emoji { position: absolute; right: 8px; bottom: 4px; font-size: 40px; }
.sx-more { background: #EEF3F9; color: var(--brand-d); }
.sx-more::before { display: none; }
.sx-more b { text-shadow: none; }
.sx-arrow { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--brand); box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.sx-stories { display: flex; gap: 10px; overflow-x: auto; margin: 12px -16px 0; padding: 0 16px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sx-stories::-webkit-scrollbar, .sx-chips::-webkit-scrollbar { display: none; }
.sx-story { position: relative; flex: none; width: 66%; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: #0B4F7C center / cover; scroll-snap-align: start; color: #fff; text-decoration: none; }
.sx-story::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,25,50,.85), rgba(5,25,50,0) 55%); }
.sx-story span { position: absolute; left: 14px; right: 14px; bottom: 14px; text-align: center; }
.sx-story b { display: block; font-size: 18px; font-weight: 800; line-height: 1.2; }
.sx-story small { display: block; margin-top: 4px; font-size: 12.5px; opacity: .9; }
.sx-chips { display: flex; gap: 8px; overflow-x: auto; margin: 12px -16px 14px; padding: 0 16px; scrollbar-width: none; }
.sx-chips a { flex: none; padding: 9px 15px; border-radius: 999px; background: #F1F4F8; color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.sx-chips a.on { background: var(--brand); color: #fff; }
.sx-card { display: block; margin-bottom: 20px; color: inherit; text-decoration: none; }
.sx-pic { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #EEF3F9; }
.sx-pic > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sx-noimg { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 54px; }
.sx-noimg img { height: 58%; }
.sx-fav { position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0,0,0,.28); color: #fff; font-size: 19px; line-height: 1; cursor: pointer; }
.sx-fav.on { background: #fff; color: #E0455F; }
.sx-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 9px; padding: 0 4px; }
.sx-row b { font-size: 18px; font-weight: 800; }
.sx-row em { flex: none; font-style: normal; font-weight: 700; font-size: 15px; }
.sx-meta { display: block; margin-top: 2px; padding: 0 4px; font-size: 14px; color: var(--text); }
.sx-ab { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 3px; padding: 0 4px; font-size: 13.5px; line-height: 1.35; color: var(--dim); }
.sx-tags { display: flex; gap: 6px; overflow-x: auto; margin-top: 8px; padding: 0 4px; scrollbar-width: none; }
.sx-tag { flex: none; padding: 4px 10px; border-radius: 8px; background: #F1F4F8; font-size: 12.5px; color: var(--text); }
.sx-tag-p { background: #E6F1FA; color: var(--brand); font-weight: 700; }
.sx-up { position: fixed; z-index: 31; right: 16px; bottom: calc(140px + var(--safe-b, 0px)); width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.2); font-size: 22px; color: var(--text); }

/* ===== «Tasty spots»: light, warm look with blue legend numbers ===== */
.ts-hero { position: relative; min-height: 250px; padding: calc(12px + var(--safe-t)) 16px 18px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(180deg, rgba(255,255,255,0) 30%, #fff 98%), url(/photos/tile_tasty.jpg) center / cover; }
.ts-hero .round-btn { background: rgba(255,255,255,.92); }
.ts-hero-t small { display: inline-block; padding: 3px 9px; border-radius: 999px; background: #E6F1FA; font-size: 11px; font-weight: 800; letter-spacing: .16em; color: var(--brand); }
.ts-hero-t h1 { margin: 6px 0 4px; font: 800 34px/1 'Josefin Sans', 'Futura', Arial, sans-serif; color: var(--brand-d); }
.ts-hero-t p { margin: 0; font-size: 14.5px; color: var(--dim); }
.ts-page { padding-bottom: 120px; }
.ts-h { margin: 22px 0 12px; font: 800 22px/1.1 'Josefin Sans', 'Futura', Arial, sans-serif; color: var(--brand-d); scroll-margin-top: 20px; }
.ts-dishes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ts-dishes button { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; padding: 0; color: var(--text); font: 600 12px/1.2 system-ui, Arial, sans-serif; text-align: center; cursor: pointer; }
.ts-dishes span { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: #EEF3F9; transition: transform .2s, box-shadow .2s; }
.ts-dishes img { width: 86%; height: 86%; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(14,60,110,.25)); }
.ts-dishes .on span { box-shadow: inset 0 0 0 3px var(--brand), 0 4px 14px rgba(14,107,168,.3); transform: scale(1.06); }
.ts-top { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
.ts-top::-webkit-scrollbar, .ts-chips::-webkit-scrollbar { display: none; }
.ts-leg { position: relative; flex: none; display: flex; align-items: flex-end; width: 176px; height: 210px; color: #fff; text-decoration: none; }
.ts-num { position: absolute; left: -4px; bottom: -14px; z-index: 0; font: 900 150px/1 'Josefin Sans', Impact, sans-serif; color: #fff; -webkit-text-stroke: 4px #1784C9; letter-spacing: -.06em; }
.ts-leg-pic { position: relative; z-index: 1; margin-left: 58px; width: 118px; height: 200px; border-radius: 16px; overflow: hidden; background: #EEF3F9 center / cover; box-shadow: 0 8px 20px rgba(14,60,110,.22); }
.ts-leg-pic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,30,60,.75), transparent 55%); }
.ts-leg-pic b { position: absolute; z-index: 1; left: 8px; right: 8px; bottom: 8px; font-size: 13px; font-weight: 800; line-height: 1.2; }
.ts-pic-e, .ts-pic.ts-pic-e, .ts-leg-pic.ts-pic-e { display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, #F3F7FC, #DCE9F5) !important; }
.ts-pic-e i { font-style: normal; font-size: 46px; margin-bottom: 30px; }
.ts-pic.ts-pic-e i { margin-bottom: 0; font-size: 62px; filter: drop-shadow(0 6px 8px rgba(14,60,110,.2)); }
.ts-chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 14px; padding: 0 16px; scrollbar-width: none; }
.ts-chips a { flex: none; padding: 9px 14px; border-radius: 999px; background: #F1F4F8; color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.ts-chips a.on { background: var(--brand); color: #fff; }
.ts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; }
.ts-card { display: flex; flex-direction: column; gap: 3px; color: var(--text); text-decoration: none; min-width: 0; }
.ts-card[hidden] { display: none; }
.ts-pic { display: block; aspect-ratio: 1; border-radius: 16px; background: #EEF3F9 center / cover; margin-bottom: 4px; }
.ts-card b { font-size: 14.5px; font-weight: 800; line-height: 1.2; }
.ts-card small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; line-height: 1.35; color: var(--dim); }
.ts-card em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--brand); }
.ts-intro { margin-top: 22px; font-size: 13.5px; line-height: 1.5; color: var(--dim); }

/* topic grid: every row the height of one square; the wide tile spans 2 columns, «All places» fills what's left of the last row */
.sx-topics { grid-auto-rows: calc((min(100vw, 520px) - 48px) / 3); }
.sx-topic, .sx-topic.wide, .sx-topic.sx-more { aspect-ratio: auto; height: auto; min-height: 0; }
.ts-dishes { grid-template-columns: repeat(5, 1fr); gap: 4px; }
.ts-dishes span { width: 62px; height: 62px; }
.ts-dishes button { font-size: 11.5px; }
.ts-emo { font-style: normal; font-size: 34px; filter: drop-shadow(0 4px 5px rgba(14,60,110,.25)); }
/* section = menu of sub-sections; sub-section = list */
.sx-search { margin: 0; }
.sx-cnt { position: absolute; left: 11px; bottom: 9px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--brand-d); font-size: 11.5px; font-weight: 800; z-index: 1; }
.sx-quick { display: flex; gap: 8px; margin: 4px 0 10px; }
.sx-quick button { flex: 1; height: 40px; border: 0; border-radius: 12px; background: #F1F4F8; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--text); cursor: pointer; }
.sx-quick button.on { background: var(--brand); color: #fff; }
.sx-listpage .sx-chips { margin-top: 0; }
/* Home icon row = the same icon size and spacing as in the «Near you» sheet (owner 2026-10-01); «Near you» button 2 mm lower */
.app-home .icons-row { grid-auto-columns: calc((100% - 24px) / 4.3); gap: 6px; margin-right: -16px; padding-right: 16px; }
.app-home .ic-circle, .app-home .ic-circle.ic-img { width: 52px; height: 52px; margin-top: 2px; margin-bottom: -2px; }
.app-home .ic-circle.ic-img img { height: 48px; }
.app-home .near-btn { margin-top: 12px; }
.app-home .icons-row { margin-top: 11px; }  /* icons lowered: gap icons → «Near you» = 12px, like «Near you» → «Ready routes» */
.app-home .memo-h { margin-top: 12px; }  /* gap «Near you» → «Ready routes» = gap «Ready routes» → cards (12px) */
/* ancestors card: the portrait of the person */
.ga-card { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
.ga-face { width: 86px; height: 86px; border-radius: 50%; padding: 3px; background: conic-gradient(from 200deg, #FBE7A6, #A7792A, #F6DC92, #8E6420, #FBE7A6); box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.ga-face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: #0A1630; }
.ga-card p { grid-column: 1 / -1; }
.ga-ct { min-width: 0; padding-right: 30px; }

/* ===== Asian Games 2026 ===== */
.gc-asiad { flex-basis: 100%; display: block; text-align: center; padding: 9px 14px; border-radius: 999px; background: linear-gradient(90deg, #F2C14E, #E0A23A); color: #1A1206; font: 800 13px system-ui, Arial, sans-serif; text-decoration: none; box-shadow: 0 4px 14px rgba(242,193,78,.35); opacity: 0; animation: gcIn .5s 1.5s forwards; }
.as-page { padding-bottom: 110px; }
.as-hero { position: relative; margin: 0 -16px; height: 210px; background: #0B4F7C center / cover; color: #fff; display: flex; align-items: flex-end; }
.as-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,30,60,.9), rgba(5,30,60,.1) 70%); }
.as-hero > div { position: relative; padding: 16px; }
.as-hero small { font-size: 12px; font-weight: 700; opacity: .85; }
.as-hero h1 { margin: 4px 0; font: 800 28px/1.05 'Josefin Sans', 'Futura', Arial, sans-serif; }
.as-hero p { margin: 0; font-size: 14px; color: #F2C14E; font-weight: 700; }
.as-tally { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 14px 0; }
.as-tally div { padding: 10px 4px; border-radius: 14px; background: #F4F7FB; text-align: center; }
.as-tally b { display: block; font: 800 26px/1 'Josefin Sans', Arial, sans-serif; color: var(--brand-d); }
.as-tally span { font-size: 11.5px; color: var(--dim); }
.as-tally .as-tot { background: var(--brand); } .as-tally .as-tot b, .as-tally .as-tot span { color: #fff; }
.as-cer { padding: 12px 14px; border-radius: 16px; background: #FFF6E0; } .as-cer b { font-size: 14.5px; } .as-cer p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; color: #5A4A1E; }
.as-chips { display: flex; gap: 8px; overflow-x: auto; margin: 16px -16px 6px; padding: 0 16px; scrollbar-width: none; }
.as-chips::-webkit-scrollbar { display: none; }
.as-chips button { flex: none; padding: 8px 13px; border: 0; border-radius: 999px; background: #F1F4F8; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text); }
.as-chips button.on { background: var(--brand); color: #fff; }
.as-sport { margin-top: 16px; } .as-sport[hidden] { display: none; }
.as-sport h2 { display: flex; justify-content: space-between; align-items: center; margin: 0 0 8px; font-size: 18px; font-weight: 800; color: var(--brand-d); }
.as-sport h2 span { font-size: 14px; font-weight: 700; color: var(--text); }
.as-row { display: flex; align-items: center; gap: 12px; padding: 9px 10px; margin-bottom: 6px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.as-row.as-g { border-left: 4px solid #E3B33C; } .as-row.as-s { border-left: 4px solid #AEB6C2; } .as-row.as-b { border-left: 4px solid #C98A52; }
.as-ph { flex: none; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.as-ini { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1784C9, #0B4F7C); color: #fff; font-weight: 800; font-size: 17px; }
.as-g .as-ini { background: linear-gradient(135deg, #F6D77A, #C9962E); } .as-s .as-ini { background: linear-gradient(135deg, #D5DBE3, #8F99A8); } .as-b .as-ini { background: linear-gradient(135deg, #E2A877, #A8693A); }
.as-txt { flex: 1; min-width: 0; } .as-txt b { display: block; font-size: 14.5px; line-height: 1.25; } .as-txt small { display: block; margin-top: 2px; color: var(--dim); font-size: 12.5px; }
.as-medal { flex: none; font-size: 26px; }
/* Ready routes: the white part of the card is 1/4 lower (75 → 56 px), photo unchanged (owner 2026-10-03) */
.rt-body { flex: none; height: 56px; padding: 4px 10px; justify-content: space-between; }
.rt-body b { font-size: 12px; line-height: 1.15; min-height: 0; -webkit-line-clamp: 2; }
.rt-meta { margin-top: 0; }
.rt-pts { font-size: 11px; } .rt-pts svg { width: 12px; height: 12px; }
.rt-go { width: 18px; height: 18px; } .rt-go svg { width: 11px; height: 11px; }
/* /gates section: 3D picture with the same live layer */
.gm.gm3d { aspect-ratio: 1024 / 1536; }
.gt-3d { background: #CDB98A; }
.gm-hist { position: absolute; z-index: 4; left: 50%; top: 2.5%; translate: -50% 0; padding: 7px 14px; border: 0; border-radius: 999px; background: rgba(255,248,230,.95); color: #5A3613; font: 800 13px system-ui, Arial, sans-serif; box-shadow: 0 3px 12px rgba(0,0,0,.3); animation: gmPing 3.2s 1s ease-out infinite; }
.gm3d .gm-spot { width: 9%; }
.gm-lbl { position: absolute; left: 50%; top: 100%; translate: -50% 2px; white-space: nowrap; padding: 1px 6px; border-radius: 7px; background: rgba(255,248,230,.92); color: #4A2C10; font: 800 10px system-ui, Arial, sans-serif; pointer-events: none; }
/* 3D map labels = the parchment scroll labels of the splash map */
.gm3d { container-type: inline-size; }
.gm3d .gm-lbl { position: absolute; z-index: 5; left: 50%; top: 100%; translate: -50% 1px; white-space: nowrap; padding: .25em .6em .3em; border-radius: 3px;
  background: #E9D2A8; border: 1px solid #8B6A3A; box-shadow: 0 1px 3px rgba(60,35,10,.35);
  font: italic 700 2.55cqw/1.05 Georgia, 'Times New Roman', 'Liberation Serif', serif; color: #2E1C0E; letter-spacing: -.01em; pointer-events: none; }
.gm3d .gm-dot .gm-lbl { top: 70%; background: #E4C08A; }
.gm3d .gm-lbl-water { background: #E9D2A8; color: #1F4E79; }
.gm3d .gm-lbl-daha { background: none; border: 0; box-shadow: none; font-size: 3.4cqw; font-weight: 600; color: rgba(255,250,235,.9); text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.gm-banner { position: absolute; z-index: 6; left: 50%; top: 1.2%; width: 74%; translate: -50% 0; border: 0; padding: 0; background: none; cursor: pointer; filter: drop-shadow(0 3px 5px rgba(60,35,10,.4)); }
.gm-banner svg { display: block; width: 100%; height: auto; }
.gm3d .gm-lbl { font-size: 2.25cqw; padding: .2em .5em .25em; }
.gm3d .gm-lbl.gm-b { left: 50%; top: 100%; translate: -50% 1px; }
.gm3d .gm-lbl.gm-t { left: 50%; top: auto; bottom: 100%; translate: -50% -1px; }
.gm3d .gm-lbl.gm-r { left: 100%; top: 50%; translate: 2px -50%; }
.gm3d .gm-lbl.gm-l { left: auto; right: 100%; top: 50%; translate: -2px -50%; }
.gm3d .gm-dot .gm-lbl.gm-b { top: 75%; } .gm3d .gm-dot .gm-lbl.gm-t { bottom: 75%; }
.gm3d .gm-dot .gm-lbl.gm-r { left: 75%; } .gm3d .gm-dot .gm-lbl.gm-l { right: 75%; }
.gm3d .gm-dot.gm-daha .gm-lbl { background: none; border: 0; box-shadow: none; font-size: 3.2cqw; font-weight: 600; color: rgba(255,250,235,.95); text-shadow: 0 1px 3px rgba(0,0,0,.9), 0 0 8px rgba(0,0,0,.5); }
/* Market: real product photos fill the picture area */
.prod-pic:has(.prod-photo), .prod-hero:has(.prod-photo), .cart-pic:has(.prod-photo) { padding: 0; overflow: hidden; }
.prod-pic img.prod-photo, .prod-hero img.prod-photo, .cart-pic img.prod-photo { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; filter: none; }
.cart-pic img.prod-photo { width: 52px; height: 52px; border-radius: 10px; }

/* ===== Section = round buttons + carousels (like food-delivery apps); sub-section = compact list (like TripAdvisor) ===== */
.sb-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 6px; margin: 6px 0 4px; }
.sb-cats a { display: flex; flex-direction: column; align-items: center; text-align: center; font-size: 12px; font-weight: 700; line-height: 1.15; color: var(--text); text-decoration: none; }
.sb-cats small { font-size: 11px; font-weight: 600; color: var(--dim); margin-top: 1px; }
.sb-ring { width: 66px; height: 66px; margin-bottom: 6px; border-radius: 50%; background: #EEF3F9 center / cover; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(14,60,110,.15); }
.sb-ring i { font-style: normal; font-size: 30px; }
.sb-all { background: var(--brand); } .sb-all i { color: #fff; font-size: 26px; font-weight: 800; }
.sb-h { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 0 10px; }
.sb-h b { font: 800 19px/1.15 'Josefin Sans', 'Futura', Arial, sans-serif; color: var(--brand-d); }
.sb-h a { font-size: 13.5px; font-weight: 700; color: var(--brand); text-decoration: none; white-space: nowrap; }
.sb-car { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sb-car::-webkit-scrollbar { display: none; }
.sb-card { flex: none; width: 62%; max-width: 240px; scroll-snap-align: start; color: var(--text); text-decoration: none; }
.sb-pic { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; border-radius: 16px; background: #EEF3F9 center / cover; font-size: 42px; }
.sb-pic em { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 8px; background: #fff; color: var(--brand); font-style: normal; font-size: 11.5px; font-weight: 800; }
.sb-noimg img { height: 62%; }
.sb-card b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 7px; font-size: 14.5px; line-height: 1.2; }
.sb-card small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-page { padding-bottom: 110px; }
/* sub-section rows */
.sx-card.sd-row { position: relative; display: flex; gap: 12px; margin: 0 -16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sd-row .sx-pic { flex: none; width: 108px; height: 84px; aspect-ratio: auto; border-radius: 12px; }
.sd-row .sx-noimg { font-size: 34px; }
.sd-info { flex: 1; min-width: 0; padding-right: 30px; }
.sd-row .sx-row { margin: 0; padding: 0; } .sd-row .sx-row b { font-size: 15.5px; line-height: 1.2; }
.sd-row .sx-meta { padding: 0; margin-top: 3px; font-size: 13px; }
.sd-row .sx-ab { padding: 0; margin-top: 2px; font-size: 12.5px; -webkit-line-clamp: 1; }
.sd-row .sx-tags { padding: 0; margin-top: 5px; } .sd-row .sx-tag { font-size: 11.5px; padding: 2px 8px; }
.sd-row .sx-fav { top: 12px; right: 12px; width: 32px; height: 32px; font-size: 16px; background: #F1F4F8; color: #9AA3AF; }
.sd-row .sx-fav.on { background: #FDECEF; color: #E0455F; }
.sb-car { scroll-padding-left: 16px; }
.sb-noimg { background: linear-gradient(145deg, #F3F7FC, #DCE9F5) !important; }
.sb-noimg i { font-style: normal; font-size: 54px; filter: drop-shadow(0 6px 8px rgba(14,60,110,.2)); }
.sd-row .sx-noimg { background: linear-gradient(145deg, #F3F7FC, #DCE9F5); font-size: 40px; }
/* 3D icons for sub-sections */
.sb-ring.sb-ic { background: radial-gradient(circle at 50% 40%, #fff, #E9F0F8); overflow: visible; }
.sb-ring.sb-ic img { width: 84%; height: 84%; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(14,60,110,.18)); }
.sb-hic { height: 28px; width: auto; vertical-align: -6px; margin-right: 2px; }
.chip-ic { height: 22px; width: auto; vertical-align: -6px; margin: -4px 2px -4px -4px; }
.sb-noimg img, .sd-row .sx-noimg img { max-height: 70%; max-width: 80%; object-fit: contain; }
.ts-dishes span img { width: 86%; height: 86%; object-fit: contain; }
.sx-chips a, .ts-chips a { display: inline-flex; align-items: center; gap: 6px; }
.chip-ic { height: 24px; margin: -6px 0; vertical-align: 0; }
.sb-h b { display: flex; align-items: center; gap: 8px; }
.sb-hic { height: 32px; vertical-align: 0; margin: 0; }

/* ===== Market like a classifieds app ===== */
.mo-top { display: flex; align-items: center; gap: 10px; padding: calc(12px + var(--safe-t)) 14px 12px; background: #EEF2F6; }
.mo-search { flex: 1; display: flex; height: 50px; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.mo-search input { flex: 1; min-width: 0; border: 0; padding: 0 16px; font: inherit; font-size: 16px; outline: none; }
.mo-search button { width: 54px; border: 0; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; }
.mo-lang .lang summary { background: #fff; }
.mo-page { padding-top: 6px; padding-bottom: 120px; }
.mo-h { margin: 16px 0 12px; font: 800 22px/1.15 'Josefin Sans', 'Futura', Arial, sans-serif; color: var(--brand-d); }
.mo-h small { font: 600 14px system-ui, Arial, sans-serif; color: var(--dim); margin-left: 4px; }
.mo-cats { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.mo-cats::-webkit-scrollbar { display: none; }
.mo-cats a { flex: none; width: 88px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 7px; font-size: 13px; line-height: 1.2; color: var(--text); text-decoration: none; }
.mo-ic { width: 70px; height: 70px; border-radius: 50%; background: #EEF2F6; display: flex; align-items: center; justify-content: center; overflow: hidden; transition: box-shadow .2s; }
.mo-ic img { width: 82%; height: 82%; object-fit: contain; }
.mo-cat-ph { width: 100%; height: 100%; background: center / cover; }
.mo-cats a.on .mo-ic { box-shadow: 0 0 0 3px var(--brand); }
.mo-cats a.on { font-weight: 800; color: var(--brand-d); }
.mo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mo-card { position: relative; display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 1px 5px rgba(14,40,70,.1); }
.mo-card[hidden] { display: none; }
.mo-pic { display: block; aspect-ratio: 1; background: #EEF2F6; overflow: hidden; }
.mo-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mo-pic .prod-emoji { display: flex; height: 100%; align-items: center; justify-content: center; }
.mo-body { flex: 1; display: flex; flex-direction: column; padding: 10px 12px 12px; }
.mo-body a { color: var(--text); text-decoration: none; }
.mo-body b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; font-weight: 600; line-height: 1.25; min-height: 2.5em; }
.mo-body small { margin-top: 6px; font-size: 12.5px; color: var(--dim); }
.mo-price { margin-top: 6px; font-size: 17px; font-weight: 800; color: var(--text); }
.mo-add { position: absolute; right: 8px; top: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); color: var(--brand); font-size: 22px; font-weight: 700; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.mo-add.added { background: var(--brand); color: #fff; }
/* market category = list like «What to eat» sub-sections */
.mo-row { box-shadow: none; border-radius: 0; background: none; overflow: visible; flex-direction: row; }
.mo-row .sx-pic img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 12px; }
.mo-row .sd-info { color: inherit; text-decoration: none; padding-right: 44px; }
.mo-row .sx-ab { -webkit-line-clamp: 2; }
.mo-rprice { color: var(--text); font-weight: 800; }
.mo-radd { top: 50%; right: 12px; translate: 0 -50%; background: var(--brand); color: #fff; }
.mo-radd.added { background: #1E9A4A; }
/* Ready routes: only the title in the white part (2 lines, same height for all); the photo takes the rest, card size unchanged (140px) */
.rt-body { height: 40px; padding: 4px 10px; justify-content: center; }
.rt-img { height: 98px; }
.prod-page .v-bar .big-btn { flex: 1; margin: 0; }
.prod-page.venue + .v-bar ~ .cart-bar, .prod-page ~ .cart-bar { bottom: calc(140px + var(--safe-b, 0px)); }
/* Market product description: the «В наборе» list keeps its line breaks (owner 2026-10-04) */
.prod-page .v-about { white-space: pre-line; }
/* «Ask GO» AI guide chat (owner 2026-10-04) */
.ask-page { padding-bottom: 150px; }
.ask-log { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.ask-msg { display: flex; gap: 8px; align-items: flex-end; }
.ask-msg.me { justify-content: flex-end; }
.ask-bubble { max-width: 84%; padding: 10px 13px; border-radius: 18px; font-size: 15px; line-height: 1.45; background: #F1F4F8; color: var(--text, #1F2430); overflow-wrap: anywhere; }
.ask-msg.go .ask-bubble { border-bottom-left-radius: 6px; }
.ask-msg.me .ask-bubble { background: var(--brand); color: #fff; border-bottom-right-radius: 6px; }
.ask-bubble a { color: var(--brand); font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(14,107,168,.3); }
.ask-ava { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; }
.ask-ava img { width: 22px; height: 22px; }
.ask-msg.wait .ask-bubble { opacity: .7; animation: askPulse 1.2s ease-in-out infinite alternate; }
@keyframes askPulse { from { opacity: .45; } to { opacity: .9; } }
.ask-msg.note .ask-bubble { background: #FFF6E3; }
.ask-say { border: 0; background: none; margin-left: 6px; padding: 0; font-size: 15px; cursor: pointer; vertical-align: middle; }
.ask-sugg { display: flex; flex-wrap: wrap; gap: 8px; margin-left: 38px; }
.ask-sugg button { border: 1px solid var(--line); background: #fff; color: var(--brand); border-radius: 999px; padding: 8px 12px; font: 600 13px system-ui, Arial, sans-serif; text-align: left; cursor: pointer; }
.ask-bar { position: fixed; z-index: 29; left: 50%; transform: translateX(-50%); width: 100%; max-width: 520px; bottom: calc(64px + var(--safe-b, 0px));
  display: flex; align-items: flex-end; gap: 6px; padding: 8px 10px; background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(14,60,110,.08); }
.ask-bar textarea { flex: 1; min-width: 0; resize: none; border: 1px solid var(--line); border-radius: 20px; padding: 10px 14px; font: 15px/1.35 system-ui, Arial, sans-serif; max-height: 120px; background: #fff; color: var(--text, #1F2430); }
.ask-ic { flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #F1F4F8; color: var(--brand); font-size: 18px; display: grid; place-items: center; cursor: pointer; }
.ask-ic.on { background: #DCEBFA; box-shadow: inset 0 0 0 2px var(--brand); }
#ask-mic.on { background: #E5484D; color: #fff; }
.ask-send { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; }
/* «Ask GO» in the home band instead of the slogan (owner 2026-10-04, variant B); band height unchanged */
.band-ask { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.45);
  color: #fff; font: 700 13.5px system-ui, Arial, sans-serif; letter-spacing: 0; text-decoration: none; white-space: nowrap; overflow: hidden; backdrop-filter: blur(2px); }
.band-ask svg { flex: none; }

/* ===== Telegram full screen (owner 2026-10-11). Off Telegram nothing below applies. =====
   --fs-sa: phone status bar, --fs-cs: row with Telegram's ✕ and ⋯, --fs-b: home indicator */
html.tg-fs { --safe-t: calc(var(--fs-sa, 0px) + var(--fs-cs, 0px)); --safe-b: max(env(safe-area-inset-bottom, 0px), var(--fs-b, 0px)); }
.band-title { display: none; }
html.tg-fs .app-home .band { position: relative; background-size: auto 52px; }
html.tg-fs .band-title { position: absolute; left: 96px; right: 96px; top: var(--fs-sa, 0px); height: var(--fs-cs, 0px); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; text-align: center; white-space: nowrap; }
.band-title b { font: 600 16px 'Josefin Sans', 'Futura', 'Century Gothic', Arial, sans-serif; letter-spacing: .08em; padding-top: .15em; }
.band-title small { font-size: 10.5px; font-weight: 600; opacity: .85; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* «Ask GO» stands on the left (owner 2026-10-11: the GO logo there is removed) */
.app-home .band-slogan.band-slogan-ask, .tg-android .app-home .band-slogan.band-slogan-ask { text-align: left; padding: 0; }
/* Market disc: iPhone does not clip a spinning picture to the round button, so the GO tails stuck out of the circle
   while it spun (owner 2026-10-11). 34 px square → its corners stay inside the 50 px white-ringed disc. */
.mk-go { inset: auto; width: 34px; height: 34px; }
/* iPhone drew four red corners around the Market disc: a round element with overflow:hidden and a spinning child loses
   its round clip there. The GO mark already fits inside the circle, so no clipping is needed at all. */
.mk-btn { overflow: visible; }
/* iPhone still drew red corners: Safari loses the round shape of an element whose child spins. The red disc and its white
   ring are now drawn by a separate layer (::before) that holds nothing that moves, so it stays a perfect circle. */
.mk-btn { background: none; border: 0; box-shadow: none; }
.mk-btn::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 4px solid #fff;
  background: linear-gradient(140deg, #D2676A, #A9403F); box-shadow: 0 6px 16px rgba(169, 64, 63, .35); }
.mk-spin { z-index: 1; }
/* DEMO «B» (owner 2026-10-11, not approved yet): sub-sections as equal rounded tiles, 3 per row, a quarter lower than square.
   Switched on only by ?demo=b (kept for the session, ?demo=0 turns it off) — nobody else sees it. */
.sb-demo-b .sb-cats { grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0 6px; }
.sb-demo-b .sb-cats a { aspect-ratio: 1 / .78; justify-content: flex-end; padding: 6px 4px 8px; border-radius: 18px; background: linear-gradient(180deg, #F6F9FC, #E9F0F7); font-size: 13px; }
.sb-demo-b .sb-ring, .sb-demo-b .sb-ring.sb-ic { flex: 1; min-height: 0; width: 100%; height: auto; margin: 0 0 4px; border-radius: 0; background: none; box-shadow: none; }
.sb-demo-b .sb-ring.sb-ic img { width: auto; max-width: 78%; height: 100%; object-fit: contain; }
.sb-demo-b .sb-cats small { font-size: 11px; }
.sb-demo-b .sb-cats a:last-child { background: var(--brand); color: #fff; }
.sb-demo-b .sb-cats a:last-child small { color: #fff; opacity: .8; }
.sb-demo-b .sb-ring.sb-all { background: none; }
.sb-demo-b .sb-ring.sb-all i { font-size: 30px; }
/* card photos are real <img loading="lazy">: pictures further along a carousel load only when scrolled to (owner 2026-10-11: speed) */
.sb-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
/* iPhone kept drawing four corners while the basket spun into GO (owner 2026-10-11, twice). The spin is switched off:
   a still basket in a plain round disc. To bring the spin back delete these two lines. */
.mk-spin, .mk-basket { animation: none !important; transform: none !important; }
.mk-go { display: none; }
/* «Что поесть»: sub-sections in one sideways row — 3 tiles and a peek of the 4th so it is clear the row scrolls (owner 2026-10-12) */
.sb-cats.sb-row { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - 16px) / 3.35); gap: 8px;
  overflow-x: auto; margin: 8px -16px 6px; padding: 0 16px 4px; scroll-padding: 0 16px; scroll-snap-type: x proximity; scrollbar-width: none; }
.sb-cats.sb-row::-webkit-scrollbar { display: none; }
.sb-cats.sb-row a { scroll-snap-align: start; aspect-ratio: 1 / .92; justify-content: flex-end; padding: 6px 4px 8px; border-radius: 18px;
  background: linear-gradient(180deg, #F6F9FC, #E9F0F7); font-size: 13px; }
.sb-row .sb-ring, .sb-row .sb-ring.sb-ic { flex: 1; min-height: 0; width: 100%; height: auto; margin: 0 0 4px; border-radius: 0; background: none; box-shadow: none; }
.sb-row .sb-ring.sb-ic img { width: auto; max-width: 80%; height: 100%; object-fit: contain; }
.sb-row small { font-size: 11px; }
.sb-row a:last-child { background: var(--brand); color: #fff; }
.sb-row a:last-child small { color: #fff; opacity: .8; }
.sb-row .sb-ring.sb-all { background: none; }
.sb-row .sb-ring.sb-all i { font-size: 30px; }
/* Paid places (owner 2026-10-12): «Реклама» mark on cards and in lists; sub-section label on «Выбор TashkentGO» cards */
.sb-pic em.sb-ad { background: var(--ad-tint); color: var(--ad); }
.sx-tag-ad { background: var(--ad-tint); color: var(--ad); font-weight: 700; }
.sb-sub { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 4px; border-radius: 999px;
  background: rgba(255,255,255,.94); color: var(--text); font: 700 12px/1 system-ui, Arial, sans-serif; font-style: normal; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.sb-sub img { width: 22px; height: 22px; object-fit: contain; }
/* «Вкусные точки» → «Что попробовать»: the same sideways row of tiles as the section menus (owner 2026-10-12) */
.ts-dishes { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - 16px) / 3.35); gap: 8px;
  overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; scroll-padding: 0 16px; scroll-snap-type: x proximity; scrollbar-width: none; }
.ts-dishes::-webkit-scrollbar { display: none; }
.ts-dishes button { scroll-snap-align: start; aspect-ratio: 1 / .92; justify-content: flex-end; gap: 4px; padding: 6px 4px 8px; border-radius: 18px;
  background: linear-gradient(180deg, #F6F9FC, #E9F0F7); font: 700 13px/1.15 system-ui, Arial, sans-serif; }
.ts-dishes span { flex: 1; min-height: 0; width: 100%; height: auto; border-radius: 0; background: none; }
.ts-dishes span img { width: auto; max-width: 80%; height: 100%; }
.ts-dishes .on { background: var(--brand); color: #fff; }
.ts-dishes .on span { box-shadow: none; transform: none; }
/* Tiles without the grey-blue background (owner 2026-10-12): just the picture, name and count. «Все места» = a blue round arrow. */
.sb-cats.sb-row a, .ts-dishes button { background: none; padding-left: 0; padding-right: 0; }
.sb-row a:last-child { background: none; color: var(--text); }
.sb-row a:last-child small { color: var(--dim); opacity: 1; }
.sb-row .sb-ring.sb-all { flex: none; width: 58px; height: 58px; margin: auto auto 6px; border-radius: 50%; background: var(--brand); }
.sb-row .sb-ring.sb-all i { color: #fff; font-size: 26px; }
.ts-dishes .on { background: none; color: var(--brand); }
.ts-dishes .on span img { filter: drop-shadow(0 0 0 var(--brand)) drop-shadow(0 4px 6px rgba(14,107,168,.45)); }
.ts-dishes .on { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ts-dishes button { font-weight: 700; font-size: 13px; }
.ts-row[hidden] { display: none; }

/* narration button next to ✕ on «12 gates» cards (owner 2026-10-24) */
.gt-sheet .gt-snd { position: absolute; top: 10px; right: 48px; z-index: 3; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 1px 4px rgba(0,0,0,.25); font-size: 15px; line-height: 30px; text-align: center; cursor: pointer; }
.gt-sheet .gt-snd.off { opacity: .65; }

/* ---------- «Xayrli tong» — the morning splash (owner 2026-10-24): dawn sky over Tashkent, a breakfast dastarkhan laid dish by dish ---------- */
.gb { display: none; }
#splash.gb.on { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1vh; padding: calc(var(--safe-t) + 2vh) 12px calc(env(safe-area-inset-bottom, 0px) + 1.2vh);
  background: linear-gradient(180deg, #F2A97E 0%, #F8C99A 14%, #FBE2BE 30%, #FAEFD9 48%, #F3E4C8 100%); color: #5A3613; overflow: hidden; }
.gb-sky { position: absolute; left: 0; right: 0; top: 0; height: 26vh; pointer-events: none; }
.gb-sun { position: absolute; left: 50%; bottom: 8%; width: min(150px, 34vw); aspect-ratio: 1; margin-left: calc(min(150px, 34vw) / -2); border-radius: 50%;
  background: radial-gradient(circle, #FFF8E4 0 34%, #FFDD8E 52%, rgba(255,196,110,.45) 64%, rgba(255,190,110,0) 72%); opacity: 0; animation: gbSun 2.6s .1s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes gbSun { from { opacity: 0; transform: translateY(45%); } to { opacity: 1; transform: none; } }
.gb-city { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; filter: brightness(0); opacity: .16; }
.gb-head { position: relative; z-index: 1; text-align: center; opacity: 0; animation: gaFade 1s .5s forwards; }
.gb-title { font: 700 min(30px, 8vw)/1 'Josefin Sans', 'Futura', Arial, sans-serif; letter-spacing: .14em; color: #8A3220; padding-top: .15em; text-shadow: 0 1px 0 rgba(255,255,255,.55); }
.gb-sub { margin-top: 6px; font-size: min(13px, 3.4vw); font-weight: 600; color: #7A4A22; }
.gb-table { position: relative; z-index: 1; flex: none; width: min(94vw, 54vh, 520px); aspect-ratio: 1; }
.gb-cloth { position: absolute; inset: 3%; border-radius: 50%; opacity: 0; animation: ggIn 1s .3s cubic-bezier(.2,.8,.2,1) forwards;
  background: radial-gradient(circle, #F6E7C8 0 31%, #E3B867 31.3% 32.6%, #F6E7C8 32.8% 34%, transparent 34.2%),
    radial-gradient(circle, transparent 0 60%, #E3B867 60.2% 61.4%, transparent 61.6%),
    repeating-conic-gradient(#A82E3E 0 6deg, #C1414F 6deg 12deg);
  box-shadow: 0 14px 34px rgba(110,45,20,.32), inset 0 0 0 7px #2B3F7E, inset 0 0 0 10px #E3B867, inset 0 0 0 16px #2B3F7E; }
.gb-it { position: absolute; z-index: 2; width: 19%; aspect-ratio: 1; padding: 0; border: 0; background: none; cursor: pointer; translate: -50% -50%;
  opacity: 0; animation: gbDrop .6s calc(.9s + var(--k) * .17s) cubic-bezier(.2,.9,.3,1.35) forwards; -webkit-tap-highlight-color: transparent; }
.gb-it.gb-non { width: 33%; }
.gb-it img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 6px rgba(70,30,10,.35)); transition: transform .2s; }
.gb-it:active img { transform: scale(.94); }
.gb-it b { position: absolute; left: 50%; top: 92%; translate: -50% 0; white-space: nowrap; font: 700 min(10.5px, 2.8vw)/1 'Josefin Sans', Arial, sans-serif; letter-spacing: .04em;
  color: #4A2A12; background: rgba(255,247,230,.92); border-radius: 999px; padding: 3px 7px 2px; box-shadow: 0 1px 3px rgba(70,30,10,.2); }
.gb-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; padding: 22%; text-align: center; color: #2B57A6;
  font: 700 min(10px, 2.6vw)/1.1 'Josefin Sans', Arial, sans-serif; background: radial-gradient(circle, #FFFDF6 0 54%, #2B57A6 55% 60%, #FFFDF6 61% 66%, #2B57A6 67% 70%, transparent 71%); }
@keyframes gbDrop { from { opacity: 0; transform: translateY(-26px) scale(.7); } to { opacity: 1; transform: none; } }
.gb-steam { position: absolute; left: 50%; top: 2%; width: 44%; height: 46%; translate: -50% -55%; pointer-events: none; }
.gb-steam i { position: absolute; bottom: 0; width: 13%; height: 100%; border-radius: 50%; filter: blur(3px); opacity: 0;
  background: linear-gradient(to top, rgba(255,255,255,0), rgba(255,255,255,.85) 45%, rgba(255,255,255,0)); animation: gbSteam 3.4s ease-in-out infinite; }
.gb-steam i:nth-child(1) { left: 18%; animation-delay: 1.8s; } .gb-steam i:nth-child(2) { left: 44%; animation-delay: 2.7s; } .gb-steam i:nth-child(3) { left: 70%; animation-delay: 3.6s; }
@keyframes gbSteam { 0% { opacity: 0; transform: translateY(25%) scaleX(.8); } 35% { opacity: .9; } 100% { opacity: 0; transform: translateY(-45%) scaleX(1.7); } }
.gb-cta { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: .8vh; opacity: 0; transform: translateY(14px); animation: gaCtaIn .8s 3s cubic-bezier(.2,.9,.3,1.2) forwards; }
.gb-eat { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: #2B57A6; color: #fff; font-weight: 800; font-size: 14px; text-decoration: none; box-shadow: 0 4px 12px rgba(43,87,166,.35); }
.gb .ga-start { height: 50px; color: #5A3613; text-shadow: none; }
.gb .ga-start img { width: 42px; height: 42px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
@media (prefers-reduced-motion: reduce) { .gb-it, .gb-cloth, .gb-head, .gb-cta, .gb-sun { animation-duration: .01s !important; animation-delay: 0s !important; } .gb-steam { display: none; } }

/* ---------- audit fixes (owner 2026-10-25): readable grey text, 44 px tap targets, splash start available at once ---------- */
:root { --faint: #6E7582; }   /* was #9AA0AC — contrast 2.6:1 on white, now 4.6:1 */
.tab { color: #5F6675; min-height: 46px; justify-content: flex-end; }
.tab span, .tab-mk > span:last-child { font-size: 12px; }
.round-btn, .sx-fav { width: 44px; height: 44px; }
.video-box { color: var(--dim); }
.gm-dot { width: max(8.5%, 40px); }   /* the drawn dot stays 11 px — only the tap area grows */
.gm-camel { padding: 11px; }
.gm-tiger { padding: 8px; }
.ga-cta, .gg-cta, .gb-cta { animation-delay: .5s; }
.tab-map .mk-spin { animation: none; color: #fff; }
.tab-map .mk-spin svg { width: 26px; height: 26px; }
.sx-sort { margin: 0 2px 8px; font-size: 12.5px; color: var(--dim); }
.near-hint, .app-home .near-hint { color: var(--dim); }
.vi-open { color: #157A39; }   /* was #1E9A4A — 3.6:1, now 5.2:1 */

/* Home order (owner 2026-11-19): ready routes → icons → «Near you» → the 4 photo tiles; every size stays as in the original */
.app-home .home-flip .memo-h { margin-top: 0; }
.app-home .home-flip .icons-row { margin-top: 12px; }
.app-home .home-flip .near-btn { margin-top: 12px; }
.app-home .home-flip .tiles { margin-top: 12px; }
/* the 4 tiles keep their original size; on shorter phones only the route pictures (and, on the smallest, icons) give way */
.app-home .home-flip .tiles { flex: 1 1 auto; min-height: 216px; }
.app-home .home-flip .rt-img { height: clamp(48px, calc(100dvh - 590px), 100px); }
@media (max-height: 620px) {
  .app-home .home-flip .ic-circle, .app-home .home-flip .ic-circle.ic-img { width: 48px; height: 48px; margin-top: 2px; margin-bottom: -4px; }
  .app-home .home-flip .ic-circle.ic-img img { height: 44px; }
  .app-home .home-flip .rt-body b { -webkit-line-clamp: 1; min-height: 1.2em; }
  .app-home .home-flip .near-btn { height: 40px; }
  .app-home .home-flip .tiles { min-height: 200px; }
}
@media (max-height: 620px) { .app-home .home-flip .tiles { min-height: 166px; } .app-home .home-flip .rt-img { height: 42px; } .app-home .home-flip .near-btn { height: 38px; } }


/* partner banners on the «Near you» map (owner 2026-11-19): two cards side by side over the top of the map, more swipe in */
.map-ads { position: absolute; top: 10px; left: 0; right: 0; z-index: 500; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 28px) / 2); gap: 8px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 10px 6px; scroll-padding: 0 10px; scrollbar-width: none; }
.map-ads::-webkit-scrollbar { display: none; }
.map-ad { position: relative; scroll-snap-align: start; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 8px 6px 6px; border-radius: 14px; background: rgba(255,255,255,.97); box-shadow: 0 4px 14px rgba(20,24,40,.18); color: var(--text); }
.map-ad img { width: 46px; height: 46px; flex: none; border-radius: 10px; object-fit: cover; }
.map-ad span { min-width: 0; display: flex; flex-direction: column; }
.map-ad b { font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-ad small { font-size: 11.5px; color: var(--ad); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-ad i { position: absolute; right: 7px; top: 4px; font-style: normal; font-size: 8.5px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; }
/* banners moved to the bottom of the map and the photo fills the whole card (owner 2026-11-19); locate button and pin card sit above them */
.map-ads { top: auto; bottom: 10px; padding-bottom: 0; }
.map-ad { height: 92px; padding: 0; overflow: hidden; align-items: flex-end; background: #0B1A2E; }
.map-ad img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }
.map-ad::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.72)); }
.map-ad span { position: relative; z-index: 1; padding: 0 10px 8px; }
.map-ad b { color: #fff; font-size: 14px; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.map-ad small { color: #FFD9A0; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.map-ad i { z-index: 1; right: 6px; top: 6px; padding: 2px 6px; border-radius: 6px; background: rgba(0,0,0,.45); color: #fff; }
.sheet .locate-btn { bottom: 112px; }
.sheet .pin-card { bottom: 112px; }
.sheet .map-box .leaflet-bottom.leaflet-right { top: 0; bottom: auto; }
/* final home order (owner 2026-11-19): icons (quick entry) → ready routes → «Near you» → 4 photo tiles */
.app-home .home-flip .icons-row { margin-top: 0; }
.app-home .home-flip .memo-h { margin-top: 12px; }
/* final-final home order (owner 2026-11-19): ready routes → «Near you» → 4 photo tiles → icons at the very bottom */
.app-home .home-flip .memo-h { margin-top: 0; }
.app-home .home-flip .tiles + .icons-row { margin-top: 12px; }
.app-home .home-flip .tiles + .icons-row { margin-bottom: 22px; }  /* room for the raised map button, so it never covers an icon */
.app-home .home-flip .tiles { min-height: 194px; }
@media (max-height: 620px) { .app-home .home-flip .tiles { min-height: 146px; } }

/* ---------- Bottom menu exactly like the owner's mock-up (2026-11-19) ----------
   A floating dark-blue glass bar with rounded corners, white line icons and labels, the active tab in gold with a short
   gold underline, and the map as a big red disc in a gold ring standing above the bar. Only the menu changes. */
.tabbar { left: 50%; bottom: calc(6px + var(--safe-b)); width: calc(100% - 16px); max-width: 504px; border-radius: 26px; border: 1px solid rgba(255,255,255,.16); padding: 8px 4px 10px;
  background: linear-gradient(180deg, rgba(28,66,128,.96) 0%, rgba(12,38,86,.98) 100%); box-shadow: 0 10px 28px rgba(5,20,50,.35), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tab { color: #fff; min-height: 50px; }
.tab span, .tab-mk > span:last-child { font-size: 12.5px; font-weight: 600; }
.tab.on { color: #F2C14E; position: relative; }
.tab.on::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 30px; height: 3px; border-radius: 2px; transform: translateX(-50%); background: #F2C14E; }
.tab-mk, .tab-map { color: #fff; margin-top: -34px; }
.tab-map > span:last-child { color: #fff; font-weight: 800; font-size: 13px; }
.tab-map .mk-btn { width: 66px; height: 66px; }
.mk-btn::before { border: 4px solid #E9B949 !important; background: radial-gradient(circle at 35% 30%, #E4574B 0%, #C3332C 55%, #9E211D 100%) !important;
  box-shadow: 0 0 0 3px rgba(12,38,86,.95), 0 8px 18px rgba(158,33,29,.45) !important; }
.tab-map .mk-spin { color: #fff !important; }
.tab-map .mk-spin svg { width: 30px; height: 30px; }
/* the home screen keeps its one-screen layout: its menu sits in the flow, with the same floating look */
.app-home .tabbar { left: auto; bottom: auto; transform: none; width: auto; margin: 0 8px calc(6px + var(--safe-b)); }
/* room for the raised map disc: the floating «Карта» pill on lists sits above it; on home the icons keep clear of it */
.map-fab { bottom: calc(132px + var(--safe-b)); }
.app-home .home-flip .tiles + .icons-row { margin-bottom: 36px; }
.app-home .home-flip .tiles { min-height: 180px; }
@media (max-height: 620px) { .app-home .home-flip .tiles { min-height: 132px; } }
.tab span, .tab-mk > span:last-child { font-size: clamp(10px, 3.05vw, 12.5px); white-space: nowrap; }

/* bottom menu in the corporate blue of the header (owner 2026-11-20) */
.tabbar, .app-home .tabbar { background: linear-gradient(180deg, #1478BA 0%, var(--brand) 55%, var(--brand-d) 100%); border-color: rgba(255,255,255,.22); box-shadow: 0 10px 26px rgba(10,85,134,.35), inset 0 1px 0 rgba(255,255,255,.18); }
.mk-btn::before { box-shadow: 0 0 0 3px var(--brand), 0 8px 18px rgba(158,33,29,.4) !important; }
/* home order (owner 2026-11-20): ready routes → «Near you» → icons → 4 photo tiles; the tiles keep clear of the raised map disc */
.app-home .home-flip .near-btn + .icons-row { margin-top: 12px; margin-bottom: 0; }
.app-home .home-flip .icons-row + .tiles { margin-top: 12px; margin-bottom: 30px; }

/* Header (owner 2026-11-20): the splash logo (TASHKENT + GO disc) in Telegram's top row, a bigger «Ask GO» in the centre,
   the city skyline at its normal size on the right */
.bt-logo { display: inline-flex; align-items: center; gap: 9px; }
.bt-logo span { font: 600 17px/1 'Josefin Sans', 'Futura', 'Century Gothic', Arial, sans-serif; letter-spacing: .34em; margin-right: -.34em; padding-top: .16em; color: #fff; }
.bt-logo img { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.app-home .band, html.tg-fs .app-home .band { background: var(--brand) url(/brand/skyline-band.png) right 6px bottom / auto 68px no-repeat; }
.app-home .band-slogan.band-slogan-ask, .tg-android .app-home .band-slogan.band-slogan-ask { display: flex; justify-content: center; padding: 0 0 0 52px; overflow: visible; }
.app-home .band-ask { height: 44px; min-width: min(62vw, 260px); justify-content: center; padding: 0 22px; font-size: 16px; font-weight: 600; letter-spacing: .02em; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.5); box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.app-home .band-ask svg { width: 19px; height: 19px; }
.app-home .band .lang { position: relative; z-index: 1; }
/* lower header row: RU on the left, «Ask GO» in the true centre, the skyline on the right */
.app-home .band .lang { order: -1; }
.app-home .band-slogan.band-slogan-ask, .tg-android .app-home .band-slogan.band-slogan-ask { padding: 0 52px 0 0; }
.app-home .band-ask { min-width: 0; width: min(50vw, 240px); }
.app-home .band, html.tg-fs .app-home .band { background-position: right 8px bottom; background-size: auto 62px; }
@media (max-width: 360px) { .app-home .band, html.tg-fs .app-home .band { background-size: auto 54px; } .app-home .band-ask { width: 48vw; font-size: 15px; } }
/* Telegram full screen: the header is taller (logo row), so route pictures and icons give way and all 4 tiles stay visible */
html.tg-fs .app-home .home-flip .rt-img { height: clamp(42px, calc(100dvh - 700px), 100px); }
html.tg-fs .app-home .home-flip .rt-body b { -webkit-line-clamp: 1; min-height: 1.2em; }
html.tg-fs .app-home .home-flip .ic-circle, html.tg-fs .app-home .home-flip .ic-circle.ic-img { width: clamp(44px, 6.6dvh, 66px); height: clamp(44px, 6.6dvh, 66px); margin-top: 2px; margin-bottom: -4px; }
html.tg-fs .app-home .home-flip .ic-circle.ic-img img { height: clamp(40px, 6dvh, 60px); }
html.tg-fs .app-home .home-flip .near-btn { height: 42px; margin-top: 10px; }
html.tg-fs .app-home .home-flip .near-btn + .icons-row, html.tg-fs .app-home .home-flip .icons-row + .tiles { margin-top: 10px; }
html.tg-fs .app-home .home-flip .memo-h { margin-bottom: 8px; }
html.tg-fs .app-home .home-flip .tiles { min-height: 150px; }
@media (max-height: 700px) { html.tg-fs .app-home .home-flip .tiles { min-height: 128px; } html.tg-fs .app-home .home-flip .rt-img { height: 40px; } html.tg-fs .app-home .home-flip .ic-circle, html.tg-fs .app-home .home-flip .ic-circle.ic-img { width: 44px; height: 44px; } html.tg-fs .app-home .home-flip .ic-circle.ic-img img { height: 40px; } }

/* ---------- Home proportions (owner 2026-11-20) ----------
   No empty band above the menu: the 4 tiles take all the room that is left (down to the map disc); route names on two lines. */
.app-home .home-flip::before, .app-home .home-flip::after { display: none; }
.app-home .home-flip { padding-top: 14px; padding-bottom: 0; }
.app-home .home-flip .tiles, html.tg-fs .app-home .home-flip .tiles { flex: 1 1 0; min-height: 140px; max-height: none; margin-bottom: 30px; }
.app-home .home-flip .rt-body b, html.tg-fs .app-home .home-flip .rt-body b { -webkit-line-clamp: 2; display: -webkit-box; white-space: normal; min-height: 2.4em; }
html.tg-fs .app-home .home-flip .rt-img { height: clamp(52px, calc(100dvh - 740px), 96px); }
@media (max-height: 700px) { .app-home .home-flip .rt-body b, html.tg-fs .app-home .home-flip .rt-body b { -webkit-line-clamp: 1; min-height: 1.2em; } }
@media (max-height: 700px) { html.tg-fs .app-home .home-flip .tiles { min-height: 120px; } }

/* home order (owner 2026-11-20): 4 photo tiles on top → ready routes → «Near you» → icons; the icons keep clear of the map disc */
.app-home .home-flip > .tiles, html.tg-fs .app-home .home-flip > .tiles { margin-top: 0; margin-bottom: 0; }
.app-home .home-flip > .tiles + .memo-h { margin-top: 16px; }
.app-home .home-flip > .near-btn + .icons-row { margin-top: 12px; margin-bottom: 34px; }
/* centre disc = Market (owner 2026-11-20); Map is a regular tab at the right */
.tab-market { color: #fff; margin-top: -34px; }
.tab-market .mk-btn { width: 66px; height: 66px; }
.tab-market .mk-spin { color: #fff !important; }
.tab-market > span:last-child { color: #fff; font-weight: 800; font-size: 13px; }
.tab-market.on > span:last-child { color: #F2C14E; }
.tab-mapbtn { background: none; border: 0; font: inherit; cursor: pointer; }

/* Home is a fixed, static screen (owner 2026-11-20): it never scrolls, bounces or shifts — the layout is locked as approved */
html:has(.app-home), html:has(.app-home) body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html:has(.app-home) body { position: fixed; inset: 0; touch-action: pan-x; }
.app-home .home { overflow: hidden; }
.app-home .rt-row, .app-home .icons-row { touch-action: pan-x; overscroll-behavior-x: contain; }

/* Same look on every opening (owner 2026-11-20): tiles keep one fixed 3:2 shape from the screen width, whatever the phone's
   height or Telegram's system bar; any spare height is shared evenly between the blocks instead of stretching the tiles. */
.app-home .home-flip { justify-content: space-between; }
.app-home .home-flip > .tiles, html.tg-fs .app-home .home-flip > .tiles { flex: 0 1 auto; min-height: 120px; max-height: none;
  height: calc((min(100vw, 520px) - 40px) * 2 / 3 + 8px); grid-template-rows: 1fr 1fr; }
.app-home .home-flip > .tiles + .memo-h, html.tg-fs .app-home .home-flip > .tiles + .memo-h { margin-top: 14px; }
/* the tiles never shrink; on shorter screens the route pictures give way instead */
.app-home .home-flip > .tiles, html.tg-fs .app-home .home-flip > .tiles { flex-shrink: 0; }
.app-home .home-flip > .rt-row { flex: 0 1 auto; min-height: 64px; align-items: stretch; }
.app-home .home-flip .rt-card { height: auto; }
.app-home .home-flip .rt-img, html.tg-fs .app-home .home-flip .rt-img { flex: 1 1 100px; height: auto !important; min-height: 0; max-height: 100px; }
@media (max-height: 700px) { .app-home .home-flip > .tiles, html.tg-fs .app-home .home-flip > .tiles { flex-shrink: 1; min-height: 110px; } }
@media (max-height: 700px) { .app-home .home-flip > .tiles, html.tg-fs .app-home .home-flip > .tiles { min-height: 150px; } .app-home .home-flip .rt-img, html.tg-fs .app-home .home-flip .rt-img { flex-basis: 40px; max-height: 40px; } .app-home .home-flip > .rt-row { min-height: 0; } .app-home .home-flip .rt-body b, html.tg-fs .app-home .home-flip .rt-body b { -webkit-line-clamp: 1; min-height: 1.2em; } .app-home .home-flip .ic-circle, .app-home .home-flip .ic-circle.ic-img { width: 44px; height: 44px; } .app-home .home-flip .ic-circle.ic-img img { height: 40px; } }
/* the home is laid out once for the phone's full height and then stays put; Android's own buttons just slide over it */
html:has(.app-home) body { bottom: auto; height: var(--app-h, 100dvh); }
.app-home { height: var(--app-h, 100dvh) !important; min-height: 0; }

/* ---------- Home built after MedKomfort's layout (owner 2026-11-20), TashkentGO content and blue brand ----------
   2×2 photo tiles → 4 big 3D icons (no scroll) → split pill «Рядом с вами | Экстренные 24/7» → «Готовые маршруты ›» cards;
   white bottom bar with a raised centre disc. Sizes at 390 px width as measured on medkomfort.uz. */
.app-home .home-mk { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 14px 16px 0; overflow: hidden; }
.home-mk .tiles { flex: 1 1 auto; min-height: 0; max-height: 360px; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 14px; margin: 0; }
.home-mk .tile { aspect-ratio: auto; height: auto; border-radius: 16px; box-shadow: none; }
.home-mk .tile-label { left: 12px; top: 12px; right: 12px; font-size: 13px; font-weight: 700; line-height: 1.2; }
.home-mk .tile-go { left: 12px; bottom: 12px; }
.mk-icons { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 14px; }
.mk-icons .ic-btn { gap: 6px; }
.mk-icons .ic-circle, .mk-icons .ic-circle.ic-img { width: clamp(56px, 9dvh, 76px); height: clamp(56px, 9dvh, 76px); background: none; box-shadow: none; }
.mk-icons .ic-circle.ic-img img { height: 100%; width: auto; }
.mk-icons .ic-label { font-size: 11.5px; font-weight: 500; color: var(--text); white-space: nowrap; }
.mk-split { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 14px; height: 54px; border-radius: 16px; overflow: hidden; }
.mk-half { display: flex; align-items: center; gap: 10px; padding: 0 14px; background: #F1F2F5; color: var(--text); text-align: left; border: 0; font: inherit; cursor: pointer; }
.mk-half .ic { color: var(--brand); }
.mk-half span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mk-half b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-half small { font-size: 11.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: #D8342C; box-shadow: 0 0 0 4px rgba(216,52,44,.18); animation: mkPulse 1.6s ease-in-out infinite; }
@keyframes mkPulse { 50% { box-shadow: 0 0 0 7px rgba(216,52,44,.06); } }
.mk-h { flex: none; display: inline-flex; align-items: center; gap: 4px; margin: 16px 0 10px; font-size: 15px; font-weight: 800; color: var(--brand-d); }
.mk-cards { flex: none; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 14px; scrollbar-width: none; }
.mk-cards::-webkit-scrollbar { display: none; }
.mk-card { flex: none; width: 228px; height: 104px; scroll-snap-align: start; display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(20,24,40,.05), 0 4px 14px rgba(20,24,40,.05); }
.mk-card-img { flex: none; width: 96px; height: 86px; border-radius: 14px; background: #E4E6EB center / cover no-repeat; }
.mk-card-t { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mk-card-t b { font-size: 14px; font-weight: 800; line-height: 1.2; color: var(--brand-d); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-card-t small { font-size: 11.5px; color: var(--brand); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-height: 700px) { .mk-card { height: 84px; } .mk-card-img { height: 68px; width: 76px; } .mk-h { margin: 10px 0 8px; } .mk-split { height: 48px; margin-top: 10px; } .mk-icons { margin-top: 10px; } }

/* bottom bar like MedKomfort: white, thin top line, line icons, active in brand colour, centre raised red disc */
.tabbar, .app-home .tabbar { left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 520px; margin: 0; border-radius: 0; border: 0; border-top: 1px solid #E4E2EE;
  background: #fff; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 6px 4px calc(6px + var(--safe-b)); }
.app-home .tabbar { position: relative; left: auto; transform: none; }
.tab { color: #5B5A6E; min-height: 48px; }
.tab span { font-size: 11px; font-weight: 500; }
.tab.on { color: var(--brand); }
.tab.on::after { display: none; }
.tab-market { margin-top: -26px; color: var(--brand); }
.tab-market .mk-btn { width: 52px; height: 52px; }
.tab-market > span:last-child { color: var(--brand); font-size: 11px; font-weight: 600; }
.mk-btn::before { border: 3px solid #fff !important; background: linear-gradient(140deg, #D2676A, #A9403F) !important; box-shadow: 0 4px 12px rgba(169,64,63,.35) !important; }
.tab-market .mk-spin svg { width: 24px; height: 24px; }
.mk-half { padding: 0 12px; gap: 8px; } .mk-half b { font-size: 13.5px; } .mk-dot { width: 12px; height: 12px; margin-right: 4px; }

/* ---------- Inner pages after MedKomfort's templates (owner 2026-11-20), TashkentGO content ----------
   tokens from medkomfort.uz: surface-2 #F6F5FB, border #E4E2EE, text #17162B / #5B5A6E / #9494A6, card shadow, radius 16 */
:root { --mk-s2: #F6F5FB; --mk-border: #E4E2EE; --mk-text: #17162B; --mk-dim: #5B5A6E; --mk-faint: #9494A6;
  --mk-shadow: 0 1px 3px rgba(23,22,43,.06), 0 4px 14px rgba(23,22,43,.05); --mk-tint: var(--brand-tint); }
/* T3.5 top bar: 34 px grey round back button, title 15.5/800 next to it */
.topbar, .sx-head { background: #fff; border-bottom: 0; box-shadow: none; padding-top: calc(14px + var(--safe-t)); padding-bottom: 8px; min-height: 56px; }
.topbar .round-btn, .sx-head .round-btn { width: 34px; height: 34px; background: var(--mk-s2); box-shadow: none; color: var(--mk-text); }
.topbar h1, .sx-title h1 { font-size: 15.5px; font-weight: 800; color: var(--mk-text); letter-spacing: 0; }
.sx-title small { display: none; }
/* search 42 px, r14, grey */
.sx-search label { height: 42px; border-radius: 14px; background: var(--mk-s2); box-shadow: none; border: 0; color: var(--mk-faint); }
.sx-search input { font-size: 14px; }
/* category icon carousel: 88 px items, 3D icon, label 11, active label brand 800 underlined */
.mk-cat .sb-cats a { width: 88px; font-size: 11px; font-weight: 400; color: var(--mk-text); }
.mk-cat .sb-cats a.on { color: var(--brand); font-weight: 800; }
.mk-cat .sb-cats a.on::after { content: ''; display: block; width: 16px; height: 2px; margin: 3px auto 0; border-radius: 2px; background: var(--brand); }
.mk-cat .sb-ring.sb-all { background: conic-gradient(#D8342C 0 25%, #0E6BA8 0 50%, #E9B949 0 75%, #1F9D55 0); color: #fff; border-radius: 18px; }
.mk-cat .sb-cats small { display: none; }
/* list heading + cards (clinic card): white r16 shadow, photo 68 r14, title 14/700, subtitle 12 faint, chevron */
.mk-h2 { margin: 14px 0 10px; font-size: 15.5px; font-weight: 800; color: var(--mk-text); }
.mk-h2 small { font-size: 13px; font-weight: 600; color: var(--mk-faint); margin-left: 4px; }
.mk-list { display: grid; gap: 10px; }
.mk-row, .card, .sx-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: #fff; box-shadow: var(--mk-shadow); border: 0; color: var(--mk-text); }
.mk-row-img, .card .thumb, .sx-card .sx-pic { flex: none; width: 68px; height: 68px; border-radius: 14px; object-fit: cover; overflow: hidden; background: var(--mk-tint); }
.sx-card .sx-pic img { width: 100%; height: 100%; object-fit: cover; }
.mk-row-noimg { display: grid; place-items: center; font-size: 28px; }
.mk-row-noimg img { width: 52px; height: 52px; object-fit: contain; }
.mk-row-t, .card .card-body, .sx-card .sd-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mk-row-t b, .card .card-title, .card .card-body b, .sx-card .sx-row b { font-size: 14px; font-weight: 700; color: var(--mk-text); line-height: 1.25; }
.mk-row-t small, .card .card-body small, .sx-card .sx-meta, .sx-card .sx-ab { font-size: 12px; color: var(--mk-faint); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-row > .ic, .card .card-chev { flex: none; color: var(--mk-faint); }
.mk-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.mk-pill { font-style: normal; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 10px; background: var(--mk-tint); color: var(--brand); }
.sx-card .sx-tag { border-radius: 10px; font-size: 11px; font-weight: 700; background: var(--mk-tint); color: var(--brand); }
.mk-cat .big-btn-soft { margin-top: 14px; }
/* T4 detail: full-bleed hero 300 px with dark bottom gradient, pill, name 28/900 white, rows with icons */
.mk-detail { padding-top: 0; }
.place-top.v-top { position: relative; }
.place-top .v-hero { height: 310px; border-radius: 0; }
.place-top .v-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,0) 35%, rgba(10,12,20,.78) 100%); pointer-events: none; }
.place-top .hero-back, .place-top .hero-fav { width: 38px; height: 38px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.mk-hero-txt { position: relative; z-index: 2; margin: -150px 16px 0; min-height: 150px; padding-bottom: 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; color: #fff; pointer-events: none; }
.mk-hero-txt h1 { margin: 0; font-size: 28px; font-weight: 900; line-height: 1.1; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.mk-hero-pill { align-self: flex-start; font-size: 11px; padding: 3px 9px; border-radius: 10px; background: rgba(255,255,255,.2); backdrop-filter: blur(4px); }
.mk-hero-row { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: .95; }
.mk-pill-w { background: rgba(255,255,255,.22); color: #fff; }
.place-top .v-count { bottom: 165px; }
.mk-detail .v-card { padding-top: 14px; }
.mk-detail .v-card > .chips, .mk-detail .v-name, .mk-detail .v-addr { display: none; }
.mk-detail .v-info { gap: 8px; }
.mk-detail .v-info > * { background: var(--mk-s2); border-radius: 12px; }
.mk-detail .v-sec h2 { font-size: 16px; font-weight: 800; color: var(--mk-text); }
/* sticky CTA: one full-width brand button 44 px r13 */
.v-bar { gap: 0; padding: 10px 16px; background: #fff; }
.v-bar .start-btn { width: 100%; height: 44px; border-radius: 13px; font-size: 14px; font-weight: 800; }
/* T8 grid: 2 columns, white r20 cards with a centred 3D picture */
.mk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.mk-gcard { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 12px 10px 14px; border-radius: 20px; background: #fff; border: 1px solid #ECEDF1; color: var(--brand-d); }
.mk-gpic { width: 100%; height: 86px; display: grid; place-items: center; }
.mk-gpic img { max-width: 100%; max-height: 86px; object-fit: contain; }
.mk-gpic .mk-gphoto { width: 100%; height: 86px; object-fit: cover; border-radius: 14px; }
.mk-gcard b { font-size: 13px; font-weight: 800; line-height: 1.2; }
.mk-gcard small { font-size: 11px; font-weight: 600; color: var(--brand); opacity: .8; }
/* T10 tab pages: h1 18/800 + faint subtitle, rows white r16 shadow with brand line icon */
.mk-tab { padding-top: calc(18px + var(--safe-t)); }
.mk-h1 { margin: 0; font-size: 18px; font-weight: 800; color: var(--mk-text); }
.mk-sub { margin: 4px 0 14px; font-size: 12px; color: var(--mk-faint); }
.mk-li { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; border-radius: 16px; background: #fff; box-shadow: var(--mk-shadow); color: var(--mk-text); font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.mk-li > .ic:first-child { color: var(--brand); }
.mk-li span { flex: 1; }
.mk-li > .ic:last-child { color: var(--mk-faint); }
.mk-tab .call-card { padding: 12px 14px; }
.mk-tab .call-btn { border-radius: 12px; }
.mk-list { min-width: 0; } .mk-row { min-width: 0; max-width: 100%; } .mk-row-t { overflow: hidden; } .mk-row-t b { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
