/* Rebazar «свежий» — макет 10.11.2026. Шкала шрифта: 12 / 14 / 16 / 20 / 28. Синий — только главное действие и выбранное. */
:root {
  --ink: #141414; --ink-2: #5F5F5C; --ink-3: #9B9A96; --line: #ECEBE8; --surface: #F4F4F1; --bg: #fff;
  --blue: #004BFF; --blue-soft: #EAF0FF; --green: #12813F; --amber: #A85A00;
  --f12: 12px; --f14: 14px; --f16: 16px; --f20: 20px; --f28: 28px;
  --sheet-top: 76px; --tabbar: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  font-family: 'Golos Text', system-ui, sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; overflow: hidden; background: var(--bg); }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; -webkit-tap-highlight-color: transparent; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
.tap { transition: transform .12s var(--ease), background-color .15s; }
.tap:active { transform: scale(.97); }

/* ── шапка ── */
.top { position: fixed; z-index: 5; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: 12px 12px 0; pointer-events: none; }
.top > * { pointer-events: auto; }
.brand, .tabs-pc, .add-pc { display: none; }
.search { flex: 1; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; background: #fff; border-radius: 24px; box-shadow: 0 2px 12px rgba(0,0,0,.10); }
.search svg { color: var(--ink-2); width: 20px; height: 20px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: var(--f16); }
.search input::placeholder { color: var(--ink-3); }
.lang { width: 48px; height: 48px; border-radius: 50%; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.10); font-size: var(--f14); font-weight: 600; }

/* ── карта ── */
#map { position: fixed; inset: 0; }
.maplibregl-ctrl-attrib { font-size: 10px; opacity: .7; }
.locate { position: fixed; z-index: 3; right: 12px; bottom: calc(var(--peek, 300px) + 12px); width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.12); display: grid; place-items: center; transition: bottom .35s var(--ease); }
.locate svg { width: 20px; height: 20px; }

/* метки */
.mk { position: relative; display: flex; align-items: center; cursor: pointer; }
.mk .dot { width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid #fff; background: #fff center/cover; box-shadow: 0 1px 6px rgba(0,0,0,.22); transition: transform .2s var(--ease), box-shadow .2s; display: grid; place-items: center; color: var(--ink); }
.mk.market .dot { width: 34px; height: 34px; margin: 3px; }
.mk.market .dot svg { width: 18px; height: 18px; }
.mk .lbl { position: absolute; left: 46px; white-space: nowrap; font-size: var(--f12); font-weight: 600; line-height: 1.2; text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff, 0 0 4px #fff; transition: opacity .15s; }
.mk .lbl small { display: block; font-weight: 500; color: var(--green); }
.mk .lbl small.off { color: var(--ink-3); }
.mk.hide .lbl { opacity: 0; }
.mk.sel { z-index: 2; }
.mk.sel .dot { transform: scale(1.3); box-shadow: 0 0 0 3px var(--blue), 0 4px 14px rgba(0,0,0,.25); }
.mk.sel .lbl { left: 54px; font-size: var(--f14); }

/* ── шторка (телефон) ── */
.sheet { position: fixed; z-index: 4; left: 0; right: 0; top: var(--sheet-top); bottom: 0; background: #fff; border-radius: 20px 20px 0 0; box-shadow: 0 -2px 18px rgba(0,0,0,.10); display: flex; flex-direction: column; transform: translateY(var(--y, 45vh)); transition: transform .38s var(--ease); touch-action: none; }
.sheet.drag { transition: none; }
.grip { flex: none; height: 22px; display: grid; place-items: center; cursor: grab; }
.grip::before { content: ''; width: 36px; height: 4px; border-radius: 2px; background: #D9D8D4; }
.scroller { flex: 1; overflow: hidden; padding-bottom: calc(var(--tabbar) + 24px + env(safe-area-inset-bottom)); }
.sheet[data-snap="full"] .scroller { overflow-y: auto; touch-action: pan-y; overscroll-behavior: contain; }

/* онлайн-витрины как сторис */
.stories { display: flex; gap: 14px; overflow-x: auto; padding: 4px 16px 14px; scrollbar-width: none; touch-action: pan-x; }
.stories::-webkit-scrollbar { display: none; }
.story { flex: none; width: 66px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: var(--f12); color: var(--ink-2); }
.story .ring { width: 62px; height: 62px; border-radius: 50%; padding: 2.5px; border: 2px solid var(--blue); }
.story .ring.seen { border-color: var(--line); }
.story img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--surface); display: block; }
.story span { max-width: 66px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 6px; scrollbar-width: none; touch-action: pan-x; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 36px; padding: 0 14px; border-radius: 18px; background: var(--surface); font-size: var(--f14); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.chip i { font-style: normal; color: var(--ink-3); }
.chip.on { background: var(--blue-soft); color: var(--blue); }
.chip.on i { color: var(--blue); opacity: .7; }

.h { display: flex; align-items: baseline; justify-content: space-between; padding: 20px 16px 4px; font-size: var(--f20); font-weight: 700; letter-spacing: -.01em; }
.h span { font-size: var(--f14); font-weight: 400; color: var(--ink-3); }

/* карточка места в списке */
.card { display: block; width: 100%; text-align: left; padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
.card:last-child { border-bottom: 0; }
.row { display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.ava { width: 44px; height: 44px; border-radius: 50%; flex: none; object-fit: cover; background: var(--surface); display: grid; place-items: center; color: var(--ink-2); border: 1px solid var(--line); }
.ava svg { width: 22px; height: 22px; }
.who { flex: 1; min-width: 0; }
.name { font-size: var(--f16); font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta { font-size: var(--f14); color: var(--ink-2); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rate { flex: none; font-size: var(--f14); font-weight: 600; display: flex; align-items: center; gap: 3px; }
.rate b { color: #F2A100; font-weight: 400; }
.strip { display: flex; gap: 6px; overflow-x: auto; padding: 12px 16px 0; scrollbar-width: none; touch-action: pan-x; }
.strip::-webkit-scrollbar { display: none; }
.ph { flex: none; width: 132px; aspect-ratio: 4/5; border-radius: 12px; background: var(--surface); overflow: hidden; position: relative; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .3s; }
.ph img.ok { opacity: 1; }
.ph::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.6) 50%, transparent 70%) -150% 0/200% 100% no-repeat; animation: shim 1.2s infinite; }
.ph:has(img.ok)::before { display: none; }
@keyframes shim { to { background-position: 250% 0; } }
.st { padding: 10px 16px 0 72px; font-size: var(--f14); color: var(--ink-3); }
.st b { font-weight: 500; color: var(--green); }
.st b.soon { color: var(--amber); }
.st b.off { color: var(--ink-2); }

/* экран места */
.place { padding-bottom: 8px; }
.ptop { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 4px; }
.ibtn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); }
.ibtn svg { width: 20px; height: 20px; }
.phead { display: flex; gap: 14px; align-items: center; padding: 4px 16px 0; }
.phead .ava { width: 64px; height: 64px; }
.phead h1 { font-size: var(--f28); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.pinfo { padding: 12px 16px 0; font-size: var(--f14); color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.pinfo .rate { color: var(--ink); }
.acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 18px 16px 4px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: var(--f12); font-weight: 500; color: var(--ink-2); }
.act span { width: 52px; height: 52px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; color: var(--ink); }
.act.main span { background: var(--blue); color: #fff; }
.act.main { color: var(--blue); }
.gal { display: flex; gap: 6px; overflow-x: auto; padding: 16px 16px 0; scrollbar-width: none; touch-action: pan-x; }
.gal::-webkit-scrollbar { display: none; }
.gal .ph { width: 200px; aspect-ratio: 3/4; }
.sec { padding: 22px 16px 0; }
.sec h2 { font-size: var(--f16); font-weight: 600; margin-bottom: 8px; }
.addr { display: flex; justify-content: space-between; gap: 12px; width: 100%; text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--f16); }
.addr:last-child { border-bottom: 0; }
.addr small { display: block; font-size: var(--f14); color: var(--ink-3); margin-top: 2px; }
.addr.cur { color: var(--blue); }
.week { width: 100%; border-collapse: collapse; font-size: var(--f14); color: var(--ink-2); }
.week td { padding: 5px 0; }
.week td:last-child { text-align: right; }
.week tr.today { color: var(--ink); font-weight: 600; }
.src { padding: 18px 16px 0; font-size: var(--f12); color: var(--ink-3); }

/* онлайн */
.oshop { padding: 14px 0 16px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; display: block; }
.ogrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 12px 16px 0; }
.ogrid .ph { width: auto; aspect-ratio: 1; border-radius: 0; }
.ogrid .ph:first-child { border-radius: 10px 0 0 10px; }
.ogrid .ph:last-child { border-radius: 0 10px 10px 0; }
.about { padding: 12px 16px 0; font-size: var(--f14); color: var(--ink-2); line-height: 1.45; white-space: pre-line; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 14px; background: var(--blue); color: #fff; font-size: var(--f16); font-weight: 600; margin: 18px 16px 0; text-decoration: none; }
.btn svg { width: 20px; height: 20px; }

/* таббар */
.tabbar { position: fixed; z-index: 6; left: 0; right: 0; bottom: 0; height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); }
.tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 500; color: var(--ink-3); }
.tabbar button svg { width: 24px; height: 24px; }
.tabbar button.on { color: var(--ink); }
.tabbar .plus span { width: 40px; height: 30px; border-radius: 15px; background: var(--blue); color: #fff; display: grid; place-items: center; margin-bottom: -1px; }
.tabbar .plus span svg { width: 20px; height: 20px; stroke-width: 2.2; }

.toast { position: fixed; z-index: 9; left: 50%; bottom: calc(var(--tabbar) + 16px); transform: translate(-50%, 12px); background: var(--ink); color: #fff; font-size: var(--f14); padding: 10px 16px; border-radius: 12px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease); white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.mock-badge { position: fixed; z-index: 7; left: 12px; top: 68px; font-size: 11px; font-weight: 600; color: var(--ink-2); background: rgba(255,255,255,.92); padding: 4px 8px; border-radius: 8px; text-decoration: none; box-shadow: 0 1px 4px rgba(0,0,0,.08); }

/* ── компьютер ── */
@media (min-width: 960px) {
  :root { --panel: 420px; }
  .top { position: fixed; height: 64px; padding: 0 20px; gap: 16px; background: #fff; border-bottom: 1px solid var(--line); pointer-events: auto; }
  .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: var(--f20); font-weight: 700; letter-spacing: -.02em; width: calc(var(--panel) - 40px - 16px - 220px); min-width: 140px; }
  .tabs-pc { display: flex; gap: 4px; margin-right: auto; }
  .tabs-pc button { height: 40px; padding: 0 14px; border-radius: 12px; font-size: var(--f16); font-weight: 500; color: var(--ink-2); }
  .tabs-pc button:hover { background: var(--surface); }
  .tabs-pc button.on { color: var(--ink); background: var(--surface); }
  .search { flex: 0 1 360px; height: 40px; box-shadow: none; background: var(--surface); border-radius: 12px; }
  .search input { font-size: var(--f14); }
  .lang { width: 40px; height: 40px; box-shadow: none; background: var(--surface); }
  .add-pc { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px 0 12px; border-radius: 12px; background: var(--blue); color: #fff; font-size: var(--f14); font-weight: 600; }
  .add-pc svg { width: 20px; height: 20px; }
  #map { left: var(--panel); top: 64px; }
  .sheet { top: 64px; width: var(--panel); right: auto; border-radius: 0; box-shadow: none; border-right: 1px solid var(--line); transform: none !important; touch-action: auto; }
  .grip { display: none; }
  .scroller { overflow-y: auto !important; padding-bottom: 24px; padding-top: 12px; }
  .tabbar { display: none; }
  .locate { bottom: 24px !important; right: 20px; }
  .toast { bottom: 24px; }
  .mock-badge { top: 76px; left: calc(var(--panel) + 12px); }
  .card:hover, .oshop:hover { background: #FAFAF8; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before { transition: none !important; animation: none !important; }
}
.act { text-decoration: none; }
.sheet:not([data-snap="full"]) .scroller { touch-action: none; }
@media (min-width: 960px) { .sheet .scroller { touch-action: auto !important; } }
@media (max-width: 959px) { body:has(.sheet[data-snap="full"]) .mock-badge { display: none; } }
