/* Відкрий Україну — mobile prototype. Light look: cool paper ground, photo heroes with dark scrims, sunflower + cobalt accents. */
:root {
  --bg: #F4F5F8;
  --stage: #E6E9EF;
  --s1: #FFFFFF;
  --s2: #EEF0F4;
  --line: #E1E5EC;
  --line2: #C3CAD6;
  --fg: #10141C;
  --mut: #5B6372;
  --mut2: #D9DEE7;
  --ink: #10141C;
  --sun: #FFD23F;
  --sun-soft: #FFF4C7;
  --sun-ink: #7A5A00;
  --blue: #2F5BEA;
  --blue-soft: #E6ECFD;
  --blue-ink: #2F5BEA;
  --hi: #2F5BEA;
  --red: #D9481F;
  --green: #4ADE80;
  --ok: #1E8A50;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Golos Text", "Segoe UI", system-ui, sans-serif;
  --top: 54px;
  color-scheme: light;
}

html, body, #root { height: 100%; }
body { margin: 0; background: var(--stage); color: var(--fg); font-family: var(--body); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }
img { display: block; max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- stage: phone frame on desktop, full screen on a phone ---------- */
.stage {
  min-height: 100%; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; gap: 64px;
  padding-block: 24px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  background: radial-gradient(1200px 600px at 70% 20%, #FFFFFF 0%, var(--stage) 60%);
}
.intro { max-width: 340px; display: flex; flex-direction: column; gap: 18px; }
.intro .logo { align-self: flex-start; }
.intro h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.05; text-transform: uppercase; text-wrap: balance; }
.intro p { margin: 0; color: var(--mut); font-size: 15px; line-height: 1.55; }
.intro nav { display: flex; flex-direction: column; gap: 4px; }
.intro nav button { display: flex; justify-content: space-between; align-items: center; text-align: left; min-height: 40px; padding: 0 12px; border: 1px solid transparent; border-radius: 12px; background: none; color: var(--mut); font-size: 14px; font-weight: 600; }
.intro nav button:hover { background: var(--s1); }
.intro nav button.on { background: var(--s1); border-color: var(--line); color: var(--fg); }
.intro nav button span { color: var(--mut); font-size: 12px; font-weight: 500; }
.intro .hint { font-size: 13px; color: var(--mut); border-top: 1px solid var(--line); padding-top: 14px; }

.device {
  position: relative; flex: none;
  width: 390px; height: min(844px, calc(100dvh - 48px)); min-height: 600px;
  border-radius: 58px; padding: 12px; background: #1B1F27;
  box-shadow: 0 0 0 2px #2C323D, 0 40px 120px rgba(0,0,0,0.6), inset 0 0 0 2px #0A0C10;
}
.island { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); width: 120px; height: 34px; border-radius: 20px; background: #000; z-index: 40; }
.app { position: relative; width: 100%; height: 100%; border-radius: 46px; overflow: hidden; background: var(--bg); }

@media (max-width: 560px) {
  :root { --top: 16px; }
  .stage { padding: 0; display: block; height: 100%; background: var(--bg); }
  .intro, .island { display: none; }
  .device { width: 100%; height: 100%; min-height: 0; border-radius: 0; padding: 0; background: none; box-shadow: none; }
  .app { border-radius: 0; }
}
@media (max-width: 900px) and (min-width: 561px) { .intro { display: none; } }

/* ---------- screen scaffolding ---------- */
.screen { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; padding-bottom: 112px; display: flex; flex-direction: column; gap: 16px; scrollbar-width: none; }
.screen::-webkit-scrollbar { display: none; }
.screen > *, .screen > .in > *, .list > * { flex-shrink: 0; }  /* scroll rows (carousel, chips) must not collapse in the column */
.screen.pad { padding-top: var(--top); padding-left: 20px; padding-right: 20px; }
.in { padding-inline: 20px; }
.enter-active { animation: slide .28s cubic-bezier(.2,.7,.2,1); }
@keyframes slide { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .enter-active { animation: none; } }

.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hi); }
.hero .eyebrow, .photo .eyebrow, .poster .eyebrow { color: var(--sun); }
.h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 31px; line-height: 1.02; text-transform: uppercase; text-wrap: balance; }
.h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 17px; text-transform: uppercase; }
.muted { color: var(--mut); }
.lead { margin: 0; font-size: 15px; line-height: 1.45; color: var(--mut); }
.row { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }

.logo { display: inline-flex; border-radius: 8px; overflow: hidden; font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: 0.02em; }
.logo span { padding: 7px 8px; color: var(--ink); }
.intro .logo span:first-child { background: var(--ink); color: #fff; }
.logo span:first-child { background: #fff; }
.logo span:last-child { background: var(--sun); }

/* hero photo */
.hero { position: relative; flex: none; height: 330px; border-radius: 0 0 30px 30px; overflow: hidden; color: #fff; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,22,.45) 0%, rgba(10,14,22,0) 28%, rgba(10,14,22,.1) 50%, rgba(10,14,22,.78) 100%); }
.hero .top { position: absolute; z-index: 2; top: var(--top); left: 20px; right: 20px; display: flex; align-items: center; gap: 10px; }
.hero .bottom { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 24px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.glass { background: rgba(255,255,255,.16); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 0; color: #fff; }
.pill { border-radius: 999px; padding: 9px 12px; font-size: 12px; font-weight: 700; }
.round { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.round.solid { background: var(--s1); border: 1px solid var(--line); }
.ml { margin-left: auto; }

/* surfaces */
.card { background: var(--s1); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 1px 2px rgba(16,20,28,.04); }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.item { display: flex; align-items: center; gap: 12px; padding: 10px; text-align: left; width: 100%; box-sizing: border-box; }
.thumb { width: 64px; height: 64px; flex: none; border-radius: 14px; overflow: hidden; background: var(--s2); display: grid; place-items: center; position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .num { position: absolute; left: 5px; bottom: 5px; font-family: var(--display); font-weight: 800; font-size: 12px; color: var(--ink); background: var(--sun); border-radius: 6px; padding: 3px 5px; }
.item .txt { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.item .t { font-size: 15px; font-weight: 700; line-height: 1.25; }
.item .s { font-size: 13px; color: var(--mut); }
.heart { width: 44px; height: 44px; flex: none; border-radius: 14px; border: 1px solid var(--line); background: var(--s2); display: grid; place-items: center; }
.heart.on { background: var(--sun-soft); border-color: #F3D46A; }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-inline: 20px; scroll-padding-inline: 20px; }
.chips.flush { margin-inline: -20px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--s1); font-size: 15px; font-weight: 600; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--s1); border: 1px solid var(--line); border-radius: 16px; padding: 4px; }
.seg button { min-height: 44px; border: 0; border-radius: 12px; background: none; color: var(--mut); font-size: 15px; font-weight: 700; }
.seg button.on { background: var(--sun); color: var(--ink); }

.btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 16px; font-size: 15px; font-weight: 800; border: 0; padding: 0 18px; }
.btn.sun { background: var(--sun); color: var(--ink); }
.btn.light { background: var(--ink); color: #fff; }
.btn.line { background: none; border: 1px solid var(--line2); color: var(--fg); font-weight: 700; }
.btn.blue { background: var(--blue); color: #fff; }

.tag { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 5px 9px; }
.tag.b { background: var(--blue-soft); color: var(--hi); }
.tag.y { background: var(--sun-soft); color: var(--sun-ink); }
.badge-top { font-family: var(--display); font-size: 12px; font-weight: 800; background: var(--sun); color: var(--ink); border-radius: 999px; padding: 6px 11px; }

.note { display: flex; gap: 12px; align-items: flex-start; border-radius: 16px; padding: 12px 14px; font-size: 14px; line-height: 1.4; background: var(--sun-soft); border: 1px solid #F3D46A; color: #5C4400; }

/* home */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 104px; padding: 14px 10px 12px 12px; box-sizing: border-box; text-align: left; font-size: 13px; font-weight: 700; }
.ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.ico.b { background: var(--blue-soft); color: var(--blue-ink); }
.ico.y { background: var(--sun-soft); color: var(--sun-ink); }
.carousel { display: flex; gap: 12px; overflow-x: auto; padding: 0 20px 4px; scroll-padding-inline: 20px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel::after { content: ""; flex: none; width: 8px; }  /* keeps the right gutter when scrolled to the end */
.carousel::-webkit-scrollbar { display: none; }
.poster { flex: none; width: 250px; height: 320px; border-radius: 20px; overflow: hidden; position: relative; scroll-snap-align: start; border: 0; padding: 0; text-align: left; background: var(--s2); }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,22,0) 40%, rgba(10,14,22,.88) 100%); }
.poster .badge-top { position: absolute; top: 14px; left: 14px; z-index: 2; }
.poster .cap { color: #fff; position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.poster .cap b { font-family: var(--display); font-size: 19px; line-height: 1.1; text-transform: uppercase; }
.poster .cap span { font-size: 13px; color: #D9DEE7; }
.status { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-align: left; width: 100%; box-sizing: border-box; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(74,222,128,.18); flex: none; margin-left: 4px; }
.search { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 56px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--fg); font: inherit; font-size: 16px; }
.search input::placeholder { color: var(--mut); }

/* photo cards */
.photo { position: relative; border-radius: 24px; overflow: hidden; display: block; border: 0; padding: 0; width: 100%; text-align: left; background: var(--s2); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,22,0) 30%, rgba(10,14,22,.85) 100%); }
.photo .cap { color: #fff; position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 14px; display: flex; flex-direction: column; gap: 4px; }
.photo .cap b { font-family: var(--display); font-size: 18px; text-transform: uppercase; line-height: 1.1; }
.play { position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -70%); width: 66px; height: 66px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.vr { height: 124px; border-radius: 20px; padding: 12px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; text-align: left; border: 0; font-family: var(--display); font-size: 13px; font-weight: 700; }
.vr small { font-family: var(--body); font-size: 11px; font-weight: 800; }

/* map */
.map { position: relative; padding: 14px 14px 34px; }
.map svg { width: 100%; height: auto; display: block; }
.map .src { position: absolute; left: 14px; bottom: 12px; font-size: 12px; font-weight: 600; color: var(--mut); }

/* timeline */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
.steps .rail { display: flex; flex-direction: column; align-items: center; }
.steps .node { width: 16px; height: 16px; border-radius: 50%; box-sizing: border-box; margin-top: 3px; background: var(--s1); border: 3px solid var(--hi); flex: none; }
.steps .node.end { background: var(--hi); }
.steps .bar { flex: 1; width: 2px; background: var(--line2); }
.steps li:last-child .bar { background: none; }
.steps .what { display: flex; flex-direction: column; gap: 2px; padding-bottom: 16px; }

/* services */
.svc { display: flex; align-items: center; gap: 14px; padding: 14px; }
.mono { width: 52px; height: 52px; flex: none; border-radius: 16px; display: grid; place-items: center; font-family: var(--display); font-size: 18px; font-weight: 800; }
.open { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--hi); }

/* plans */
.plan { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 12px 14px; border-radius: 20px; text-align: left; border: 1px solid var(--line); background: var(--s1); width: 100%; }
.plan.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.plan .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--blue-soft); color: var(--blue-ink); }
.plan.on .ico { background: rgba(255,255,255,.18); color: #fff; }
.radio { width: 22px; height: 22px; flex: none; border-radius: 50%; box-sizing: border-box; border: 2px solid var(--line2); }
.plan.on .radio { border: 7px solid var(--sun); background: #fff; }
.step-btn { width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line2); background: var(--s2); font-size: 22px; font-weight: 700; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.35; }

/* SOS */
.alarm { background: var(--red); color: #fff; border-radius: 24px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.num { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 18px; text-align: left; }
.num b { font-family: var(--display); font-size: 22px; font-weight: 800; }
.num span { font-size: 12px; color: var(--mut); }
.n112 { grid-column: span 3; display: flex; align-items: center; justify-content: space-between; background: var(--sun); color: var(--ink); border-radius: 20px; padding: 14px 18px; }
.n112 b { font-family: var(--display); font-size: 32px; font-weight: 800; }
.copyable { user-select: all; }

/* tab bar + toast */
.tabbar { position: absolute; z-index: 30; left: 12px; right: 12px; bottom: 18px; height: 70px; box-sizing: border-box; padding: 6px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-radius: 24px; background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--line); box-shadow: 0 8px 30px rgba(16,20,28,.12); }
.tabbar button { white-space: nowrap; letter-spacing: -.01em; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; border-radius: 18px; background: none; color: var(--mut); font-size: 11px; font-weight: 700; }
.tabbar button.on { background: var(--sun); color: var(--ink); }
.tabbar .ava { position: relative; width: 24px; height: 24px; border-radius: 50%; box-sizing: border-box; display: grid; place-items: center; background: var(--s2, #E9ECF2); color: var(--ink); border: 1.5px solid currentColor; font-size: 12px; font-weight: 800; line-height: 1; }
.tabbar .ava.prem { background: var(--ink); color: var(--sun); border-color: var(--sun); }
.tabbar button.on .ava.prem { border-color: var(--ink); }
.tabbar .ava small { position: absolute; top: -7px; right: -16px; padding: 1px 3px; border-radius: 5px; background: var(--sun); color: var(--ink); font-size: 7px; font-weight: 800; letter-spacing: .02em; }
.tabbar .count { position: absolute; top: 6px; right: calc(50% - 22px); min-width: 18px; height: 18px; border-radius: 9px; background: var(--blue); color: #fff; font-size: 10px; display: grid; place-items: center; }
@media (max-width: 560px) { .tabbar { bottom: calc(10px + env(safe-area-inset-bottom, 0px)); } }
.toast { position: absolute; z-index: 35; left: 20px; right: 20px; bottom: 100px; background: var(--ink); color: #fff; border-radius: 16px; padding: 14px 16px; font-size: 14px; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.fade-enter-active, .fade-leave-active { transition: opacity .2s, transform .2s; }
.fade-enter-from, .fade-leave-to { opacity: 0; transform: translateY(8px); }

/* lists inside the gutter: .list resets padding, so put the 20px gutter back */
.list.in { padding-inline: 20px; }
.tap { cursor: pointer; transition: transform .12s; }
.tap:active { transform: scale(.98); }
.hero-fill { position: absolute; inset: 0; background: radial-gradient(120% 90% at 80% 10%, #4C74F0 0%, #2F5BEA 35%, #1B2A6B 100%); }

/* museum map */
.mmap { position: relative; background: #F7F9FE; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.mmap svg { display: block; width: 100%; aspect-ratio: 1025 / 700; touch-action: none; cursor: grab; user-select: none; }
.mmap svg:active { cursor: grabbing; }
.mpin { cursor: pointer; }
.mctl { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--s1); border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(16,20,28,.08); }
.mctl button { width: 40px; height: 40px; border: 0; background: none; font-size: 22px; font-weight: 700; }
.mctl button + button { border-top: 1px solid var(--line); }
.mmap .src { position: absolute; left: 10px; top: 10px; font-size: 12px; font-weight: 600; color: var(--mut); background: rgba(255,255,255,.85); border-radius: 8px; padding: 3px 7px; }

/* place card */
.fact { padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.fact b { font-size: 14px; line-height: 1.3; }
.tile.sel { border-color: var(--sun); box-shadow: 0 0 0 2px var(--sun) inset; }
.aplay { width: 52px; height: 52px; flex: none; border-radius: 50%; border: 0; background: var(--sun); display: grid; place-items: center; }
.abar { display: block; height: 6px; border-radius: 3px; background: var(--s2); overflow: hidden; }
.abar > span { display: block; height: 100%; background: var(--blue); border-radius: 3px; transition: width .2s linear; }
.tracks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.tracks button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; border: 0; border-radius: 12px; background: none; text-align: left; font-size: 14px; font-weight: 600; padding: 0 8px; }
.tracks button.on { background: var(--blue-soft); color: var(--hi); }
.tn { width: 24px; height: 24px; border-radius: 8px; background: var(--s2); display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.pano { position: relative; height: 210px; border-radius: 16px; background-size: auto 100%; background-repeat: repeat-x; touch-action: pan-y; cursor: grab; }
.btn:disabled { opacity: .55; }
.pick { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; border: 0; background: none; border-radius: 12px; padding: 0 10px; font-size: 14px; font-weight: 600; text-align: left; }
.pick:hover { background: var(--s2); }
.box { width: 24px; height: 24px; flex: none; border-radius: 8px; border: 2px solid var(--line2); box-sizing: border-box; display: grid; place-items: center; font-weight: 800; color: var(--hi); }
.box.on { background: var(--blue); border-color: var(--blue); color: #fff; }

/* my collections */
.col { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.citem { display: flex; align-items: center; gap: 8px; }
.citem-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: var(--s2); border-radius: 14px; padding: 6px; text-align: left; }
.xbtn { border: 1px solid var(--line); background: var(--s1); border-radius: 10px; min-height: 36px; padding: 0 10px; font-size: 13px; font-weight: 700; color: var(--red); flex: none; }
.round-x { width: 36px; padding: 0; color: var(--mut); }

/* TurBot */
.bot { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.botava { width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--blue); color: var(--sun); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 14px; }
.bub { align-self: flex-start; max-width: 85%; background: var(--s2); border-radius: 16px 16px 16px 4px; padding: 10px 13px; font-size: 14px; line-height: 1.4; font-weight: 600; }
.bub.me { align-self: flex-end; background: var(--blue); color: #fff; border-radius: 16px 16px 4px 16px; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opts .chip { min-height: 40px; padding: 0 14px; font-size: 14px; }
.think { display: flex; align-items: center; gap: 4px; color: var(--mut); }
.think span { width: 6px; height: 6px; border-radius: 50%; background: var(--mut); animation: blink 1s infinite; }
.think span:nth-child(2) { animation-delay: .15s; } .think span:nth-child(3) { animation-delay: .3s; margin-right: 6px; }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.citem-main .txt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.citem-main .t { font-weight: 700; line-height: 1.25; }
.citem-main .s { color: var(--mut); }

/* language sheet */
.langbtn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; font-size: 14px; }
.langbtn span { font-size: 10px; opacity: .8; }
.sheet-bg { position: absolute; inset: 0; z-index: 50; background: rgba(10,14,22,.45); display: flex; align-items: flex-end; }
.sheet { width: 100%; box-sizing: border-box; background: var(--s1); border-radius: 26px 26px 0 0; padding: 10px 16px 28px; display: flex; flex-direction: column; gap: 6px; animation: up .22s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.grab { align-self: center; width: 40px; height: 5px; border-radius: 3px; background: var(--line2); margin-bottom: 8px; }
.lang { display: flex; align-items: center; gap: 12px; min-height: 52px; border: 1px solid transparent; border-radius: 14px; background: none; padding: 0 12px; font-size: 16px; font-weight: 600; text-align: left; }
.lang.on { background: var(--blue-soft); border-color: #C9D6FB; }
.lcode { width: 36px; height: 28px; border-radius: 8px; background: var(--s2); display: grid; place-items: center; font-size: 12px; font-weight: 800; }

/* account & paywall */
.pro-dot { position: absolute; transform: translate(14px, -16px); background: var(--sun); color: var(--ink); font-size: 8px; font-weight: 800; border-radius: 6px; padding: 2px 4px; }
.paywall { padding: 20px 18px; display: flex; flex-direction: column; align-items: center; gap: 12px; border: 2px solid var(--sun); }
.lock { width: 56px; height: 56px; border-radius: 18px; background: var(--sun-soft); color: var(--sun-ink); display: grid; place-items: center; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; width: 100%; font-size: 13px; font-weight: 600; }
.perks li { display: flex; gap: 6px; align-items: flex-start; }
.perks svg { color: var(--ok); flex: none; margin-top: 1px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--mut); }
.field input { height: 48px; border: 1px solid var(--line2); border-radius: 12px; padding: 0 14px; font: inherit; font-size: 16px; font-weight: 500; color: var(--fg); background: var(--s1); }
.field input:focus { outline: 2px solid var(--blue); border-color: transparent; }
.avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.pro { padding: 18px; display: flex; flex-direction: column; gap: 8px; background: var(--ink); color: #fff; border-color: var(--ink); }

/* downloads */
.dlb { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border-radius: 16px; border: 1px dashed var(--line2); background: var(--s1); box-sizing: border-box; }
.dlgo { flex: 1; display: flex; align-items: center; gap: 10px; border: 0; background: none; min-height: 50px; padding: 0; font-size: 14px; font-weight: 700; }
.okc { width: 24px; height: 24px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; flex: none; }

/* 360 viewer */
.v360 { position: absolute; inset: 0; z-index: 60; background: #000; }
.v360-box { position: absolute; inset: 0; }
.v360-top { position: absolute; z-index: 2; top: var(--top); left: 16px; right: 16px; display: flex; align-items: center; gap: 10px; }
.v360-hint { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 110px; text-align: center; color: #fff; font-size: 13px; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.v360 .pnlm-load-button { border-radius: 16px; }

/* guides */
.gcard { flex: none; width: 230px; padding: 14px; display: flex; flex-direction: column; gap: 10px; text-align: left; scroll-snap-align: start; }
.gava { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 800; font-size: 15px; text-shadow: 0 1px 3px rgba(0,0,0,.35); }

/* parallax hero */
.hero > img, .hero > .hero-fill { will-change: transform; transform-origin: 50% 100%; }
.hero > .bottom { will-change: transform, opacity; }
.brand { height: 30px; width: auto; filter: drop-shadow(0 1px 6px rgba(0,0,0,.35)); }
.intro .brand { filter: none; }

/* route: stops joined by a dashed line with numbered dots */
.stepper { position: relative; }
.stepper::before { content: ''; position: absolute; left: 40px; right: 40px; top: 50%; border-top: 3px dashed var(--blue); z-index: 0; }
.stepper > * { position: relative; z-index: 1; }
.tl { position: relative; }
.tl::before { content: ''; position: absolute; left: 33px; top: 30px; bottom: 30px; border-left: 3px dashed var(--blue); }
.tl > li { position: relative; margin-left: 34px; width: auto; }
.tl > li::before { position: absolute; left: -38px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; box-sizing: border-box; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.tl > li[data-n]::before { content: attr(data-n); background: var(--sun); color: var(--ink); border: 3px solid var(--bg, #fff); }
.tl > li.leg::before { content: ''; width: 16px; height: 16px; left: -33px; background: var(--blue); border: 3px solid var(--bg, #fff); }

/* discover.ua API bits: search results, route text, gallery, guide photos */
.srch-res { display: flex; flex-direction: column; padding: 6px; gap: 2px; margin-top: -4px; }
.srch-res .pick { gap: 10px; }
.rtext { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; white-space: pre-line; }
.rtext.open { display: block; }
.ptext { white-space: pre-line; }
.gal img { flex: none; width: 220px; height: 150px; object-fit: cover; border-radius: 16px; scroll-snap-align: start; }
.gava { overflow: hidden; }
.gava img { width: 100%; height: 100%; object-fit: cover; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box; }
