/* ==========================================================================
   TopTaom — дизайн-система
   Цвета: гранат (бренд) + самаркандская бирюза (акцент) на тёплом фоне.
   ========================================================================== */
:root {
  --bg: #F7F4EF;
  --surface: #FFFFFF;
  --surface-2: #F2EDE6;
  --surface-3: #E9E2D8;
  --line: #E6DED3;
  --line-strong: #D6CCBF;
  --ink: #1C1714;
  --ink-2: #4B423B;
  --muted: #877C72;
  --brand: #D9472B;
  --brand-hover: #C23B21;
  --brand-ink: #FFFFFF;
  --brand-soft: #FCECE7;
  --accent: #0E7C7A;
  --accent-soft: #E1F2F1;
  --gold: #E8A317;
  --ok: #188A55;
  --ok-soft: #E3F4EB;
  --warn: #C27A00;
  --warn-soft: #FBF0DC;
  --bad: #C93A3A;
  --bad-soft: #FBE7E5;
  --overlay: rgba(20, 15, 11, .55);
  --shadow-sm: 0 1px 2px rgba(28, 23, 20, .06), 0 1px 3px rgba(28, 23, 20, .05);
  --shadow: 0 6px 24px -6px rgba(28, 23, 20, .12), 0 2px 6px rgba(28, 23, 20, .05);
  --shadow-lg: 0 24px 60px -12px rgba(28, 23, 20, .28);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --header-h: 68px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --pattern-ink: rgba(217, 71, 43, .07);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%23D9472B' stroke-opacity='.13' stroke-width='1.2'%3E%3Cpath d='M42 16l7.5 18.5L68 42l-18.5 7.5L42 68l-7.5-18.5L16 42l18.5-7.5z'/%3E%3Cpath d='M42 27l10.6 4.4L57 42l-4.4 10.6L42 57l-10.6-4.4L27 42l4.4-10.6z'/%3E%3Ccircle cx='0' cy='0' r='11'/%3E%3Ccircle cx='84' cy='0' r='11'/%3E%3Ccircle cx='0' cy='84' r='11'/%3E%3Ccircle cx='84' cy='84' r='11'/%3E%3C/g%3E%3C/svg%3E");
  --pattern-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-opacity='.14' stroke-width='1.2'%3E%3Cpath d='M42 16l7.5 18.5L68 42l-18.5 7.5L42 68l-7.5-18.5L16 42l18.5-7.5z'/%3E%3Cpath d='M42 27l10.6 4.4L57 42l-4.4 10.6L42 57l-10.6-4.4L27 42l4.4-10.6z'/%3E%3Ccircle cx='0' cy='0' r='11'/%3E%3Ccircle cx='84' cy='0' r='11'/%3E%3Ccircle cx='0' cy='84' r='11'/%3E%3Ccircle cx='84' cy='84' r='11'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12100E; --surface: #1B1815; --surface-2: #24201C; --surface-3: #2E2924;
    --line: #322C26; --line-strong: #463E36; --ink: #F4EFE9; --ink-2: #D2C8BE; --muted: #9C9086;
    --brand: #F0694B; --brand-hover: #F4826A; --brand-ink: #1A0E0A; --brand-soft: #3A1E17;
    --accent: #3DB9B4; --accent-soft: #12302F; --gold: #F2B640;
    --ok: #3CC488; --ok-soft: #123024; --warn: #F0A836; --warn-soft: #33260F; --bad: #F06A6A; --bad-soft: #3A1717;
    --overlay: rgba(0, 0, 0, .66);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow: 0 8px 28px -8px rgba(0, 0, 0, .6);
    --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, .7); --pattern-ink: rgba(240, 105, 75, .08);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12100E; --surface: #1B1815; --surface-2: #24201C; --surface-3: #2E2924;
  --line: #322C26; --line-strong: #463E36; --ink: #F4EFE9; --ink-2: #D2C8BE; --muted: #9C9086;
  --brand: #F0694B; --brand-hover: #F4826A; --brand-ink: #1A0E0A; --brand-soft: #3A1E17;
  --accent: #3DB9B4; --accent-soft: #12302F; --gold: #F2B640;
  --ok: #3CC488; --ok-soft: #123024; --warn: #F0A836; --warn-soft: #33260F; --bad: #F06A6A; --bad-soft: #3A1717;
  --overlay: rgba(0, 0, 0, .66);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow: 0 8px 28px -8px rgba(0, 0, 0, .6);
  --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, .7); --pattern-ink: rgba(240, 105, 75, .08);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--brand-soft); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 16px; height: 16px; }
.icon.xs { width: 14px; height: 14px; }
.icon.lg { width: 24px; height: 24px; }
.icon.fill { fill: currentColor; stroke: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 900; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.header.scrolled { border-bottom-color: var(--line); }
.header .container { height: 100%; display: flex; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo-mark { width: 38px; height: 42px; flex: none; display: block; filter: drop-shadow(0 6px 10px rgba(217, 71, 43, .32)); transition: transform .25s var(--ease); }
.logo-mark svg { width: 100%; height: 100%; display: block; }
.logo:hover .logo-mark { transform: translateY(-2px) rotate(-4deg); }
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; white-space: nowrap; }
.logo-text .lt-accent { background: linear-gradient(120deg, #F0703F 0%, #E04A2D 55%, #E8902F 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-text small { display: block; font-family: var(--font); font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-top: 1px; }
.header-search { flex: 1; max-width: 520px; margin: 0 auto; position: relative; }
.header-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; display: inline-grid; place-items: center; position: relative;
  color: var(--ink-2); transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn .badge {
  position: absolute; top: 5px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--brand); color: var(--brand-ink); font-size: 11px; font-weight: 800; display: grid; place-items: center;
  border: 2px solid var(--bg);
}
.lang-switch { display: flex; background: var(--surface-2); border-radius: 12px; padding: 3px; }
.lang-switch button { padding: 7px 10px; border-radius: 9px; font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .02em; }
.lang-switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.region-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 14px; max-width: 220px;
}
.region-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.region-btn:hover { border-color: var(--line-strong); }
@media (max-width: 1023px) { .header-search { display: none; } .region-btn { display: none; } }
@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .lang-switch { display: none; }
  .logo-text .lt-accent { background: linear-gradient(120deg, #F0703F 0%, #E04A2D 55%, #E8902F 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-text small { display: none; }
  .header .hide-sm { display: none; }
}

/* ---------- Search ---------- */
.search { position: relative; }
.search-field {
  display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 8px 0 14px; border-radius: 14px;
  background: var(--surface); border: 1.5px solid var(--line); transition: border-color .15s, box-shadow .15s;
}
.search-field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
.search-field .icon { color: var(--muted); }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px; font-weight: 500; }
.search-field input::placeholder { color: var(--muted); }
.search-field kbd {
  font-family: var(--font); font-size: 11px; font-weight: 700; color: var(--muted); border: 1px solid var(--line);
  border-radius: 6px; padding: 2px 7px; background: var(--surface-2);
}
.search-clear { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.search-clear:hover { background: var(--surface-2); color: var(--ink); }
.search.lg .search-field { height: 60px; border-radius: 18px; padding-left: 20px; box-shadow: var(--shadow); border-color: transparent; }
.search.lg .search-field input { font-size: 17px; }
.search.lg .search-go { height: 46px; padding: 0 22px; }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 50; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 8px; max-height: min(70vh, 520px); overflow: auto;
  animation: pop .18s var(--ease);
}
.suggest-group { padding: 8px 10px 4px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.suggest-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border-radius: 10px; text-align: left; }
.suggest-item:hover, .suggest-item.active { background: var(--surface-2); }
.suggest-item img, .suggest-item .s-ico { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; background: var(--surface-2); display: grid; place-items: center; font-size: 18px; }
.suggest-item b { display: block; font-weight: 700; font-size: 14px; }
.suggest-item small { display: block; color: var(--muted); font-size: 12.5px; }
.suggest-empty { padding: 18px; text-align: center; color: var(--muted); font-size: 14px; }
mark { background: color-mix(in srgb, var(--gold) 35%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px;
  border-radius: 12px; font-weight: 700; font-size: 14.5px; white-space: nowrap; transition: background .15s, color .15s, border-color .15s, transform .1s, box-shadow .15s;
  border: 1.5px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 8px 20px -10px var(--brand); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--line-strong); background: var(--surface-2); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(1.08); }
.btn-sm { height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Chips ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin: 0 -24px; padding-left: 24px; padding-right: 24px; scroll-padding: 24px; }
.chips.scroll::-webkit-scrollbar { display: none; }
@media (max-width: 640px) { .chips.scroll { margin: 0 -16px; padding-left: 16px; padding-right: 16px; } }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; flex: none;
  background: var(--surface); border: 1.5px solid var(--line); font-weight: 650; font-size: 14px; color: var(--ink-2);
  transition: border-color .15s, background .15s, color .15s;
}
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip[aria-pressed="true"], .chip.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip .emoji { font-size: 16px; line-height: 1; }
.chip.sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.chip .count { font-size: 12px; font-weight: 800; opacity: .6; }
.tag {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2); font-size: 12.5px; font-weight: 650; white-space: nowrap;
}
.tag.accent { background: var(--accent-soft); color: var(--accent); }
.tag.brand { background: var(--brand-soft); color: var(--brand); }

/* ---------- Status ---------- */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
.status.open { color: var(--ok); }
.status.soon { color: var(--warn); }
.status.closed { color: var(--bad); }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: #1C1714; font-size: 12px; font-weight: 750; box-shadow: var(--shadow-sm); white-space: nowrap;
}
.status-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #188A55; }
.status-pill.soon::before { background: #D88A00; }
.status-pill.closed::before { background: #C93A3A; }

/* ---------- Rating, price ---------- */
.rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 14px; }
.rating .icon { color: var(--gold); }
.rating small { font-weight: 600; color: var(--muted); font-size: 13px; }
.price-lvl { display: inline-flex; gap: 2px; align-items: center; font-weight: 800; font-size: 13px; letter-spacing: .02em; }
.price-lvl i { font-style: normal; color: var(--line-strong); }
.price-lvl i.on { color: var(--ink-2); }
.dot-sep::before { content: '·'; margin: 0 6px; color: var(--muted); }

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--line); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s;
  min-width: 0;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card.highlight { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, transparent 30%, transparent 65%, rgba(0,0,0,.35) 100%); pointer-events: none; }
.card-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: flex-start; z-index: 2; gap: 8px; }
.card-bottom { position: absolute; left: 12px; bottom: 10px; right: 12px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.card-bottom .tag { background: rgba(20, 15, 11, .62); color: #fff; backdrop-filter: blur(6px); }
.fav-btn {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.94); color: #1C1714;
  box-shadow: var(--shadow-sm); transition: transform .15s;
}
.fav-btn:hover { transform: scale(1.08); }
.fav-btn.on { color: #E0393E; }
.fav-btn.on .icon { fill: currentColor; }
.fav-btn.pop { animation: heart .45s var(--ease); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.card-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; font-weight: 600; row-gap: 2px; }
.card-meta .rating { font-size: 13.5px; color: var(--ink); }
.card-desc { color: var(--ink-2); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.card .fav-btn, .card .card-top button { position: relative; z-index: 3; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; gap: 16px; } }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 300px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; margin: 0 -24px; padding: 6px 24px 18px; scroll-padding: 24px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 640px) { .rail { grid-auto-columns: 78%; margin: 0 -16px; padding: 4px 16px 14px; scroll-padding: 16px; gap: 14px; } }

/* ---------- Sections ---------- */
.section { padding: 28px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.section-head .rail-nav { display: flex; gap: 8px; }
.rail-nav button { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; background: var(--surface); }
.rail-nav button:hover { border-color: var(--line-strong); }
@media (max-width: 640px) { .rail-nav { display: none !important; } }
.link-more { display: inline-flex; align-items: center; gap: 4px; font-weight: 750; color: var(--brand); font-size: 14px; white-space: nowrap; }
.link-more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 48px 0 36px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 1;
  background-image: var(--pattern); background-size: 84px 84px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 0%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 30% 0%, #000 0%, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--ink-2); }
.hero-eyebrow b { background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 2px 8px; font-size: 12px; }
.hero h1 { font-family: var(--font-display); font-size: clamp(32px, 5vw, 58px); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; margin: 18px 0 14px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-sub { font-size: clamp(15px, 1.5vw, 18px); color: var(--ink-2); max-width: 560px; }
.hero .search { margin-top: 26px; max-width: 600px; }
.hero .chips { margin-top: 18px; }
.hero-stats { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.hero-stats span { font-size: 13px; color: var(--muted); font-weight: 600; }
.hero-collage { position: relative; height: 460px; }
.hero-collage figure { position: absolute; margin: 0; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--surface-2); border: 4px solid var(--surface); }
.hero-collage figure img { width: 100%; height: 100%; object-fit: cover; }
.hero-collage figure:nth-child(1) { width: 62%; height: 70%; top: 0; right: 0; transform: rotate(2deg); }
.hero-collage figure:nth-child(2) { width: 52%; height: 52%; bottom: 0; left: 0; transform: rotate(-3deg); }
.hero-collage figure:nth-child(3) { width: 40%; height: 38%; bottom: 6%; right: 6%; transform: rotate(4deg); }
.hero-collage figcaption { position: absolute; left: 10px; bottom: 10px; right: 10px; background: rgba(255,255,255,.94); color: #1C1714; border-radius: 12px; padding: 7px 10px; font-size: 12.5px; font-weight: 750; display: flex; align-items: center; gap: 6px; }
.hero-collage figcaption .icon { color: var(--brand); }
.hero-collage figure:nth-child(1) figcaption { top: 10px; bottom: auto; left: auto; }
@media (max-width: 1023px) { .hero-grid { grid-template-columns: 1fr; } .hero-collage { display: none; } .hero { padding: 28px 0 20px; } }

/* ---------- Region tiles ---------- */
.regions-rail { grid-auto-columns: minmax(200px, 220px); }
.region-tile { position: relative; height: 150px; border-radius: 18px; overflow: hidden; background: var(--surface-2); display: flex; align-items: flex-end; padding: 14px; color: #fff; isolation: isolate; }
.region-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.region-tile::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.72)); }
.region-tile:hover img { transform: scale(1.06); }
.region-tile b { display: block; font-size: 16px; font-weight: 800; line-height: 1.2; }
.region-tile small { font-size: 12.5px; font-weight: 650; opacity: .9; }

/* ---------- CTA / info ---------- */
.cta {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 32px;
  border-radius: 28px; background: linear-gradient(120deg, var(--ink), #3B2A22); color: #fff; overflow: hidden; isolation: isolate;
}
:root[data-theme="dark"] .cta { background: linear-gradient(120deg, #2A211C, #3D2A20); }
.cta::after { content: ''; position: absolute; inset: 0; z-index: -1; background-image: var(--pattern-light); background-size: 84px; opacity: .5; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000); }
.cta h3 { font-family: var(--font-display); font-size: clamp(20px, 2.6vw, 28px); font-weight: 700; }
.cta p { color: rgba(255,255,255,.75); margin-top: 6px; max-width: 560px; }
.cta .btn-primary { background: #fff; color: #1C1714; box-shadow: none; }
.cta .btn-primary:hover { background: #F2EDE6; }
@media (max-width: 640px) { .cta { grid-template-columns: 1fr; padding: 24px; } }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust > div { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; gap: 14px; }
.trust .ti { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.trust b { display: block; font-size: 15px; margin-bottom: 2px; }
.trust p { color: var(--muted); font-size: 13.5px; }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr; } }

/* ---------- Explore ---------- */
.page-head { padding-top: 22px; padding-bottom: 8px; }
.page-head h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.page-head p { color: var(--muted); margin-top: 4px; }
.explore-bar { position: sticky; top: var(--header-h); z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 10px 0; border-bottom: 1px solid var(--line); }
.explore-bar .row { display: flex; align-items: center; gap: 10px; }
.explore-bar .chips.scroll { flex: 1; margin: 0; padding: 0; }
.filter-btn { position: relative; flex: none; }
.filter-btn .badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 5px; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 12px; flex-wrap: wrap; }
.results-head h2 { font-size: 16px; font-weight: 800; }
.results-head .muted { font-weight: 600; color: var(--muted); }
.select {
  height: 40px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); padding: 0 34px 0 12px; font-weight: 650; font-size: 14px;
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23877C72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.select:focus { border-color: var(--brand); outline: 0; }
.seg { display: inline-flex; background: var(--surface-2); padding: 3px; border-radius: 12px; }
.seg button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 9px; font-weight: 700; font-size: 13.5px; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.explore-layout { display: grid; grid-template-columns: 1fr; gap: 24px; padding-bottom: 40px; }
.explore-layout.split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.explore-layout.split .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.map-panel { position: sticky; top: calc(var(--header-h) + 70px); height: calc(100vh - var(--header-h) - 90px); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.explore-layout.map-only { grid-template-columns: 1fr; }
.explore-layout.map-only .map-panel { position: relative; top: 0; height: calc(100vh - var(--header-h) - 150px); min-height: 420px; }
.explore-layout.map-only .results { display: none; }
@media (max-width: 959px) {
  .explore-layout.split { grid-template-columns: 1fr; }
  .explore-layout.split .map-panel { display: none; }
}
@media (max-width: 1023px) {
  .explore-layout.map-only .map-panel { height: calc(100vh - var(--header-h) - 150px); min-height: 380px; border-radius: 16px; }
}
.explore-layout:not(.split):not(.map-only) .map-panel { display: none; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 10px; }
.active-filters .chip { height: 32px; font-size: 13px; background: var(--brand-soft); border-color: transparent; color: var(--brand); }
.active-filters .chip .icon { width: 14px; height: 14px; }
.empty { text-align: center; padding: 64px 20px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.empty .em-ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin: 0 auto 14px; background: var(--surface-2); font-size: 30px; }
.empty h3 { font-size: 19px; font-weight: 800; }
.empty p { color: var(--muted); margin: 6px auto 18px; max-width: 420px; }

/* ---------- Map ---------- */
.leaflet-container { font-family: var(--font) !important; background: var(--surface-2) !important; }
.osm-tiles { filter: saturate(.72) contrast(.96) brightness(1.02); }
:root[data-theme="dark"] .osm-tiles { filter: invert(1) hue-rotate(180deg) brightness(.82) contrast(.92) saturate(.6); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .osm-tiles { filter: invert(1) hue-rotate(180deg) brightness(.82) contrast(.92) saturate(.6); } }
.leaflet-control-attribution { font-size: 10px !important; background: color-mix(in srgb, var(--surface) 80%, transparent) !important; color: var(--muted) !important; }
.leaflet-control-attribution a { color: var(--ink-2) !important; }
.leaflet-bar { border: 0 !important; box-shadow: var(--shadow) !important; border-radius: 12px !important; overflow: hidden; }
.leaflet-bar a { background: var(--surface) !important; color: var(--ink) !important; border-color: var(--line) !important; width: 36px !important; height: 36px !important; line-height: 36px !important; }
.leaflet-popup-content-wrapper { border-radius: 16px !important; padding: 0 !important; overflow: hidden; background: var(--surface) !important; color: var(--ink) !important; box-shadow: var(--shadow-lg) !important; }
.leaflet-popup-content { margin: 0 !important; width: 250px !important; }
.leaflet-popup-tip { background: var(--surface) !important; }
.leaflet-popup-close-button { top: 8px !important; right: 8px !important; width: 28px !important; height: 28px !important; border-radius: 50%; background: rgba(255,255,255,.94) !important; color: #1C1714 !important; font: 18px/26px var(--font) !important; z-index: 5; }
.map-pop img { width: 100%; height: 120px; object-fit: cover; }
.map-pop div { padding: 10px 12px 12px; }
.map-pop b { display: block; font-size: 15px; font-weight: 800; }
.map-pop small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; margin: 2px 0 8px; }
.map-pop a.btn { height: 34px; font-size: 13px; color: var(--brand-ink); }
.pin { position: relative; transform: translate(-50%, -100%); display: inline-flex; align-items: center; gap: 0; padding: 3px; border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 800; font-size: 12.5px; box-shadow: 0 4px 14px rgba(0,0,0,.28); white-space: nowrap; border: 2px solid var(--surface); transition: transform .15s, background .15s; cursor: pointer; }
.pin::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 0 0 3px 0; z-index: -1; }
.pin .pe { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); font-size: 14px; }
.pin .pn { max-width: 0; overflow: hidden; transition: max-width .2s, padding .2s; }
.pin.on, .pin:hover { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); transform: translate(-50%, -100%) scale(1.08); z-index: 1000; }
.pin.on .pn, .pin:hover .pn { max-width: 200px; padding: 0 8px 0 6px; }
.pin.on .pe, .pin:hover .pe { background: rgba(255,255,255,.25); }
.pin.me { background: var(--accent); color: #fff; border-color: #fff; padding: 0; width: 18px; height: 18px; transform: translate(-50%, -50%); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 30%, transparent); }
.pin.me::after { display: none; }
.leaflet-marker-icon.pin-wrap { background: none; border: 0; }

/* ---------- Place page ---------- */
.crumbs { display: flex; align-items: center; gap: 6px; padding: 18px 0 14px; color: var(--muted); font-size: 13.5px; font-weight: 600; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.crumbs .icon { width: 14px; height: 14px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 210px 210px; gap: 8px; border-radius: 24px; overflow: hidden; position: relative; }
.gallery button { position: relative; overflow: hidden; background: var(--surface-2); }
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter .3s; }
.gallery button:hover img { transform: scale(1.03); filter: brightness(.92); }
.gallery button:first-child { grid-row: span 2; }
.gallery.n1 { grid-template-columns: 1fr; grid-template-rows: 380px; }
.gallery.n2 { grid-template-columns: 2fr 1fr; grid-template-rows: 380px; }
.gallery.n2 button:first-child, .gallery.n1 button:first-child { grid-row: auto; }
.gallery.n3 { grid-template-columns: 2fr 1fr; }
.gallery.n4 { grid-template-columns: 2fr 1fr 1fr; }
.gallery.n4 button:nth-child(4) { grid-column: span 2; }
.gallery-more { position: absolute; right: 16px; bottom: 16px; z-index: 3; }
.gallery-more .btn { background: rgba(255,255,255,.95); color: #1C1714; border: 0; box-shadow: var(--shadow); }
.gallery-credit { position: absolute; left: 14px; bottom: 14px; z-index: 3; font-size: 11px; font-weight: 650; color: #fff; background: rgba(0,0,0,.45); padding: 3px 8px; border-radius: 6px; backdrop-filter: blur(4px); }
@media (max-width: 767px) {
  .gallery, .gallery.n1, .gallery.n2, .gallery.n3, .gallery.n4 { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 0; margin: 0 -16px; gap: 0; grid-template-rows: none; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery button { flex: 0 0 100%; height: 280px; scroll-snap-align: center; }
  .gallery-more { right: 12px; bottom: 12px; }
}
.place-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; padding: 24px 0 8px; }
.place-kicker { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 14px; font-weight: 650; }
.place-head h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.03em; margin: 8px 0 4px; }
.place-alt { color: var(--muted); font-weight: 600; font-size: 15px; }
.place-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.place-sub .rating { font-size: 15px; }
.place-actions { display: flex; gap: 8px; flex-wrap: wrap; flex: none; }
@media (max-width: 767px) {
  .place-head { flex-direction: column; gap: 14px; padding-top: 18px; }
  .place-actions { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); }
  .place-actions .btn { flex-direction: column; height: 64px; gap: 4px; font-size: 12px; padding: 0 4px; }
}
.place-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; padding-top: 8px; padding-bottom: 60px; align-items: start; }
.place-side { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 1023px) { .place-layout { grid-template-columns: minmax(0, 1fr); gap: 0; } .place-side { position: static; order: -1; margin-bottom: 8px; } }
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.subnav .tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav .tabs::-webkit-scrollbar { display: none; }
.subnav a { position: relative; padding: 14px 12px; font-weight: 700; font-size: 14.5px; color: var(--muted); white-space: nowrap; }
.subnav a:hover { color: var(--ink); }
.subnav a.on { color: var(--ink); }
.subnav a.on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); }
.block { padding: 26px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 60px); }
.block:last-child { border-bottom: 0; }
.block > h2 { font-size: 22px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.block > h2 small { font-size: 14px; color: var(--muted); font-weight: 650; letter-spacing: 0; }
.lead { font-size: 16.5px; line-height: 1.65; color: var(--ink-2); }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.note .icon { color: var(--muted); margin-top: 1px; }
.note.warn { background: var(--warn-soft); }
.note.warn .icon { color: var(--warn); }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 18px; }
.feature { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 650; }
.feature .fi { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }

/* info card */
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.info-row { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.info-row:last-child { border-bottom: 0; }
.info-row > .icon { color: var(--muted); margin-top: 2px; }
.info-row .grow { flex: 1; min-width: 0; }
.info-row b { display: block; font-size: 14.5px; font-weight: 700; }
.info-row b.status { display: inline-flex; }
.info-row small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; margin-top: 2px; }
.info-row a.lnk { color: var(--accent); font-weight: 700; word-break: break-word; }
.info-row a.lnk:hover { text-decoration: underline; }
.hours-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; gap: 8px; }
.hours-toggle .icon { transition: transform .2s; color: var(--muted); }
.hours-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.hours-table { margin-top: 10px; display: none; }
.hours-table.open { display: block; }
.hours-table div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.hours-table div.today { color: var(--ink); font-weight: 800; }
.hours-table div span:last-child { text-align: right; }
.mini-map { height: 180px; background: var(--surface-2); }
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.social { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; background: var(--surface-2); font-weight: 700; font-size: 13px; }
.social:hover { background: var(--surface-3); }

/* menu */
.menu-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.menu-item { display: flex; gap: 12px; padding: 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); align-items: center; }
.menu-item img, .menu-item .mi-ph { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; flex: none; background: var(--surface-2); display: grid; place-items: center; font-size: 28px; }
.menu-item .grow { flex: 1; min-width: 0; }
.menu-item b { display: block; font-size: 14.5px; font-weight: 750; line-height: 1.3; }
.menu-item small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.menu-item .price { display: block; font-weight: 800; font-size: 15px; margin-top: 4px; }
.stepper { display: inline-flex; align-items: center; gap: 2px; background: var(--surface-2); border-radius: 999px; padding: 3px; flex: none; }
.stepper button { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.stepper button:hover { background: var(--surface); }
.stepper span { min-width: 22px; text-align: center; font-weight: 800; font-size: 14px; }
.add-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); flex: none; transition: background .15s, color .15s; }
.add-btn:hover { background: var(--brand); color: var(--brand-ink); }
.dish-list { display: flex; flex-wrap: wrap; gap: 10px; }
.dish { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 14.5px; }
.dish span { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); display: grid; place-items: center; font-size: 18px; }

/* opinions */
.score-card { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.score-big { text-align: center; padding-right: 24px; border-right: 1px solid var(--line); }
.score-big b { display: block; font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.score-big .stars { display: flex; gap: 2px; justify-content: center; margin: 8px 0 4px; color: var(--gold); }
.score-big small { color: var(--muted); font-size: 12.5px; font-weight: 650; }
.aspects { display: flex; flex-direction: column; gap: 10px; }
.aspect { display: grid; grid-template-columns: 130px 1fr 44px; gap: 12px; align-items: center; font-size: 13.5px; font-weight: 650; }
.aspect .bar { height: 8px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.aspect .bar i { display: block; height: 100%; border-radius: 6px; background: var(--ok); }
.aspect .bar i.mid { background: var(--warn); }
.aspect .bar i.low { background: var(--bad); }
.aspect b { text-align: right; font-weight: 800; }
.aspect small { color: var(--muted); font-weight: 600; font-size: 12px; display: block; }
@media (max-width: 640px) { .score-card { grid-template-columns: 1fr; } .score-big { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 16px; } .aspect { grid-template-columns: 110px 1fr 40px; } }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.pros-cons > div { padding: 14px 16px; border-radius: 16px; }
.pros-cons .pros { background: var(--ok-soft); }
.pros-cons .cons { background: var(--warn-soft); }
.pros-cons h4 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; margin-bottom: 6px; }
.pros-cons .pros h4 { color: var(--ok); }
.pros-cons .cons h4 { color: var(--warn); }
.pros-cons ul { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); }
@media (max-width: 640px) { .pros-cons { grid-template-columns: 1fr; } }
.review { padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.review + .review { margin-top: 10px; }
.review-head { display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; flex: none; }
.review-head b { display: block; font-size: 14px; }
.review-head small { color: var(--muted); font-size: 12.5px; }
.review p { margin-top: 10px; font-size: 14.5px; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
.review .stars { display: flex; gap: 1px; color: var(--gold); }
.review-photos { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.review-photos img { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; }

/* busy chart */
.busy { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.busy-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.busy-head b { font-size: 15px; }
.busy-head small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.busy-days { display: flex; gap: 4px; flex-wrap: wrap; }
.busy-days button { height: 30px; min-width: 38px; padding: 0 8px; border-radius: 8px; font-size: 12.5px; font-weight: 750; color: var(--muted); background: var(--surface-2); }
.busy-days button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.busy-bars { display: flex; align-items: flex-end; gap: 3px; height: 110px; }
.busy-bars i { flex: 1; border-radius: 4px 4px 2px 2px; background: color-mix(in srgb, var(--accent) 55%, var(--surface-3)); min-height: 3px; position: relative; }
.busy-bars i.now { background: var(--brand); }
.busy-bars i.off { background: var(--surface-3); }
.busy-axis { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: 11.5px; font-weight: 650; }

/* ---------- Modal / sheet ---------- */
.modal-root { position: fixed; inset: 0; z-index: 2000; display: none; }
.modal-root.open { display: block; }
.backdrop { position: absolute; inset: 0; background: var(--overlay); animation: fade .2s; backdrop-filter: blur(2px); }
.modal {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  background: var(--surface); border-radius: 24px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
  animation: pop .22s var(--ease);
}
.modal.wide { width: min(760px, calc(100vw - 32px)); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 18px; font-weight: 800; }
.modal-body { padding: 20px; overflow: auto; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface); flex-wrap: wrap; }
@media (max-width: 640px) {
  .modal, .modal.wide { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: 100%; max-height: 92vh; border-radius: 24px 24px 0 0; animation: sheet .28s var(--ease); padding-bottom: env(safe-area-inset-bottom); }
  .modal::before { content: ''; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 8px auto 0; flex: none; }
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > label, .field-label { font-size: 13px; font-weight: 750; color: var(--ink-2); }
.input, .textarea {
  width: 100%; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); padding: 11px 13px; font-size: 15px; outline: 0; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); cursor: pointer; font-weight: 650; font-size: 14px; user-select: none; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.check:has(input:checked) { border-color: var(--ink); background: var(--surface-2); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.toggle-row b { font-size: 15px; }
.toggle-row small { display: block; color: var(--muted); font-size: 13px; }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--surface-3); transition: background .2s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease); }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.star-input { display: flex; gap: 6px; }
.star-input button { color: var(--line-strong); }
.star-input button.on { color: var(--gold); }
.star-input .icon { width: 34px; height: 34px; }
.fieldset-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 6px 0 10px; }
.photo-drop { display: flex; gap: 8px; flex-wrap: wrap; }
.photo-drop .ph { position: relative; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; }
.photo-drop .ph img { width: 100%; height: 100%; object-fit: cover; }
.photo-drop .ph button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; }
.photo-drop label { width: 76px; height: 76px; border-radius: 12px; border: 1.5px dashed var(--line-strong); display: grid; place-items: center; color: var(--muted); cursor: pointer; }
.photo-drop label:hover { border-color: var(--brand); color: var(--brand); }

/* bill */
.bill-bar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 800; animation: rise .3s var(--ease); width: min(520px, calc(100vw - 32px)); }
.bill-bar button { width: 100%; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 10px 0 18px; border-radius: 18px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-lg); font-weight: 750; text-align: left; }
.bill-bar .bb-count { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: 14px; }
.bill-bar .grow { flex: 1; }
.bill-bar .bb-total { padding: 0 14px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.12); display: grid; place-items: center; font-weight: 800; }
:root[data-theme="dark"] .bill-bar .bb-total { background: rgba(0,0,0,.08); }
@media (max-width: 1023px) { .bill-bar { bottom: calc(76px + env(safe-area-inset-bottom)); } }
.bill-line { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bill-line .grow { flex: 1; min-width: 0; }
.bill-line b { display: block; font-size: 14.5px; }
.bill-line small { color: var(--muted); font-size: 13px; font-weight: 600; }
.bill-sum { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; font-weight: 650; color: var(--ink-2); }
.bill-sum div { display: flex; justify-content: space-between; }
.bill-sum .total { font-size: 19px; font-weight: 800; color: var(--ink); padding-top: 8px; border-top: 1px dashed var(--line-strong); margin-top: 4px; }

/* random */
.spin-card { text-align: center; }
.spin-card .sc-img { height: 220px; border-radius: 18px; overflow: hidden; background: var(--surface-2); margin-bottom: 16px; position: relative; }
.spin-card .sc-img img { width: 100%; height: 100%; object-fit: cover; }
.spin-card h4 { font-size: 22px; font-weight: 800; }
.spin-card p { color: var(--muted); font-weight: 600; margin-top: 4px; }
.spin-card.rolling .sc-img img { filter: blur(3px) saturate(.8); }
.spin-card.rolling h4 { opacity: .55; }
.spin-card.done .sc-img { animation: pop .35s var(--ease); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2100; background: rgba(8, 6, 5, .94); display: flex; flex-direction: column; animation: fade .2s; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; color: #fff; font-weight: 700; }
.lb-top .icon-btn { color: #fff; }
.lb-top .icon-btn:hover { background: rgba(255,255,255,.12); }
.lb-stage { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; min-height: 0; padding: 0 64px 20px; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; }
.lb-nav:hover { background: rgba(255,255,255,.22); }
.lb-nav.prev { left: 12px; } .lb-nav.next { right: 12px; }
.lb-credit { text-align: center; color: rgba(255,255,255,.55); font-size: 12px; padding-bottom: 14px; }
@media (max-width: 640px) { .lb-stage { padding: 0 8px 16px; } .lb-nav { width: 40px; height: 40px; background: rgba(0,0,0,.4); } }

/* ---------- Bottom nav ---------- */
.bottom-nav { display: none; }
@media (max-width: 1023px) {
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
    border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; border-radius: 12px; font-size: 11.5px; font-weight: 750; color: var(--muted); position: relative; }
  .bottom-nav a.on { color: var(--brand); }
  .bottom-nav a .badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 17px; height: 17px; border-radius: 9px; background: var(--brand); color: var(--brand-ink); font-size: 10.5px; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 32px; padding: 32px 0 40px; color: var(--muted); font-size: 13.5px; }
.footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer h4 { color: var(--ink); font-size: 14px; font-weight: 800; margin-bottom: 10px; }
.footer a { display: block; padding: 3px 0; font-weight: 600; }
.footer a.logo { display: flex; }
.footer a:hover { color: var(--ink); }
.footer p { max-width: 420px; }
@media (max-width: 767px) { .footer .container { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Toast ---------- */
.toasts { position: fixed; left: 50%; top: calc(var(--header-h) + 12px); transform: translateX(-50%); z-index: 3000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 14px; box-shadow: var(--shadow-lg); animation: drop .3s var(--ease); max-width: calc(100vw - 32px); }
.toast .icon { color: var(--brand); }
.toast.out { animation: fade .25s reverse forwards; }

/* ---------- Region picker ---------- */
.region-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.region-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); text-align: left; font-weight: 700; font-size: 14px; }
.region-opt:hover { border-color: var(--line-strong); }
.region-opt[aria-pressed="true"] { border-color: var(--ink); background: var(--surface-2); }
.region-opt small { color: var(--muted); font-weight: 700; }
.region-opt.disabled { opacity: .45; }
@media (max-width: 480px) { .region-list { grid-template-columns: 1fr; } }

/* ---------- Misc ---------- */
.muted { color: var(--muted); }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.row { display: flex; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; }
.hidden { display: none !important; }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
img.lazy { opacity: 0; transition: opacity .35s; }
img.lazy.loaded { opacity: 1; }
.fade-in { animation: rise .35s var(--ease); }
.about { max-width: 760px; padding-bottom: 60px; }
.about h2 { font-size: 20px; font-weight: 800; margin: 28px 0 10px; }
.about p, .about li { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }
.about ul { padding-left: 20px; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -48%) scale(.97); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.suggest, .spin-card.done .sc-img { animation-name: popin; }
@keyframes popin { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: scale(1); } }
@keyframes sheet { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes rise { from { opacity: 0; transform: translate(var(--tx, 0), 12px); } to { opacity: 1; transform: translate(var(--tx, 0), 0); } }
.bill-bar { --tx: -50%; }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heart { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Responsive helpers & fallbacks ---------- */
.hide-sm-only { display: none; }
.mobile-search { display: none; }
@media (max-width: 1023px) { .hide-md { display: none !important; } .mobile-search { display: block; } }
@media (max-width: 640px) { .hide-sm-only { display: inline-grid; } .hide-sm { display: none !important; } }
.ph-empty { width: 100%; height: 100%; display: grid; place-items: center; font-size: 48px; background: linear-gradient(135deg, var(--surface-2), var(--surface-3)); }
img.broken { opacity: 0 !important; }
.card-media:has(img.broken)::before, .gallery button:has(img.broken)::before { content: '🍽️'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 42px; background: linear-gradient(135deg, var(--surface-2), var(--surface-3)); }
.place-sub a { display: inline-flex; align-items: center; gap: 6px; }
.place-sub a:hover .muted { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Регион, переключатель карты, сетка подборок ---------- */
.only-wide { }
@media (max-width: 959px) { .only-wide { display: none !important; } }
.show-md { display: none; }
@media (max-width: 1023px) { .show-md { display: inline-grid; } }
.icon-btn .dot { position: absolute; top: 9px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); border: 2px solid var(--bg); }
.map-fab-wrap { display: none; }
@media (max-width: 959px) {
  .map-fab-wrap { display: block; position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 700; }
}
.map-fab { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 800; font-size: 15px; box-shadow: var(--shadow-lg); }
.map-fab:active { transform: scale(.97); }
.hero-region { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; color: var(--muted); font-weight: 650; font-size: 14.5px; }
.hero-region > button:not(.hr-reset) { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 10px; background: var(--surface); border: 1.5px solid var(--line); color: var(--ink); font-weight: 800; }
.hero-region > button:not(.hr-reset):hover { border-color: var(--brand); }
.hero-region .hr-reset { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.hero-region .hr-reset:hover { color: var(--ink); }
.h-region { color: var(--brand); font-weight: 800; }
.count-pill { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 9px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: 14px; font-weight: 800; vertical-align: middle; margin-left: 10px; letter-spacing: 0; white-space: nowrap; position: relative; top: -2px; }
.more-row { display: flex; justify-content: center; margin-top: 20px; }
.region-tile.on { outline: 3px solid var(--brand); outline-offset: 3px; }
@media (min-width: 641px) { #grid-open { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); } }
@media (max-width: 640px) { .section-head { flex-wrap: wrap; row-gap: 8px; } .section-head > div:first-child { flex: 1 1 260px; min-width: 0; } }
/* Карта не должна перекрывать липкую шапку и подменю */
.leaflet-container { isolation: isolate; z-index: 0; }
.footer .logo-text { color: var(--ink); }

/* ---------- Вход и профиль ---------- */
.avatar { position: relative; overflow: hidden; }
.avatar > span { position: relative; z-index: 0; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.avatar.xs { width: 24px; height: 24px; font-size: 11px; }
.avatar.sm { width: 34px; height: 34px; font-size: 14px; }
.avatar.lg { width: 92px; height: 92px; font-size: 36px; box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--brand-soft); }
.user-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; }
.user-btn .avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px color-mix(in srgb, var(--brand) 35%, transparent); transition: transform .15s; }
.user-btn:hover .avatar { transform: scale(1.06); }
.login-btn { height: 40px; }
@media (max-width: 640px) { .login-btn { width: 42px; padding: 0; border-color: transparent; background: none; } }
.bottom-nav a .avatar.xs { margin: 0 auto; }
.prov { display: inline-grid; width: 16px; height: 16px; vertical-align: -3px; margin-left: 6px; }
.prov svg { width: 100%; height: 100%; }
.tag .prov { margin: 0 2px 0 0; width: 14px; height: 14px; }
.auth-hero { display: grid; place-items: center; margin: 4px 0 10px; }
.auth-hero .logo-mark { width: 52px; height: 57px; }
.auth-sub { text-align: center; color: var(--ink-2); font-size: 15px; max-width: 420px; margin: 0 auto 18px; }
.auth-buttons { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.auth-slot { width: 100%; max-width: 320px; min-height: 44px; display: flex; justify-content: center; }
.auth-btn { width: 100%; height: 44px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: 14.5px; color: var(--ink); }
.auth-btn svg { width: 20px; height: 20px; }
.auth-btn[disabled] { opacity: .55; cursor: not-allowed; }
.auth-btn[data-loading] { opacity: .7; }
.auth-notes { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.auth-privacy { display: flex; gap: 8px; align-items: flex-start; justify-content: center; color: var(--muted); font-size: 12.5px; margin-top: 16px; text-align: center; }
.auth-privacy .icon { margin-top: 2px; }
.review-as { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); }
.profile { padding-bottom: 48px; max-width: 900px; }
.profile-head { max-width: 900px; }
.profile-section { padding: 22px 0 14px; scroll-margin-top: calc(var(--header-h) + 20px); }
.profile-section > h2 { font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.profile-card { display: flex; align-items: center; gap: 22px; padding: 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); flex-wrap: wrap; }
.profile-card h2 { font-size: 24px; font-weight: 800; }
.profile-card .grow { min-width: 200px; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 8px; }
.profile-stats a { padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .15s; }
.profile-stats a:hover { border-color: var(--line-strong); }
.profile-stats b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.profile-stats span { color: var(--muted); font-size: 13px; font-weight: 650; }
.my-review { display: flex; gap: 14px; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 10px; transition: border-color .15s; }
.my-review:hover { border-color: var(--line-strong); }
.my-review img, .my-review .mi-ph { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex: none; background: var(--surface-2); display: grid; place-items: center; font-size: 26px; }
.my-review .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.my-review b { font-size: 15px; }
.my-review .stars { display: flex; gap: 1px; color: var(--gold); }
.my-review small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.my-review .txt { color: var(--ink-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 640px) { .profile-card { padding: 18px; gap: 16px; } .profile-card .btn { width: 100%; } }
