/* Майстер Поруч — браузерна версія. Ті самі токени й пропорції, що в застосунку. */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --brand: #0f172a;
  --brand-dark: #000000;
  --ink: #222222;
  --ink-900: #0f172a;
  --muted: #717171;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --line: #ebebeb;
  --line-2: #e2e8f0;
  --soft: #f7f7f7;
  --soft-2: #f1f5f9;
  --ok: #047857;
  --warn: #b45309;
  --err: #c13515;
  --info: #0b6bcb;
  --r: 16px;
  --r-lg: 24px;
  --sh: 0 6px 20px rgba(0, 0, 0, .10);
  --sh-sm: 0 2px 8px rgba(0, 0, 0, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bnh: 62px;
}

html, body { margin: 0; padding: 0; }
body {
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--bnh) + env(safe-area-inset-bottom));
  overscroll-behavior-y: none;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1 { font-size: 24px; line-height: 1.2; margin: 0 0 4px; letter-spacing: -.5px; font-weight: 800; }
h2 { font-size: 17px; margin: 0 0 10px; letter-spacing: -.2px; font-weight: 700; }
h3 { font-size: 15px; margin: 0 0 8px; font-weight: 700; }
p { margin: 0 0 10px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
button { font: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-top { display: flex; align-items: flex-start; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand { color: var(--brand); }

/* ─────────── верхнє меню (десктоп) ─────────── */
.topbar {
  display: none;
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 22px; height: 68px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 17px; letter-spacing: -.4px; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px; overflow: hidden;
  background: #fff url('/assets/logo.png') center / cover no-repeat;
  display: grid; place-items: center; color: transparent; font-size: 0; font-weight: 800;
}
.nav { display: flex; gap: 4px; }
.nav-link { padding: 9px 14px; border-radius: 999px; font-size: 14px; color: var(--ink); font-weight: 500; }
.nav-link:hover { background: var(--soft); }
.nav-link.on { background: var(--soft); font-weight: 700; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-link {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
}
.icon-link:hover { box-shadow: var(--sh-sm); }
.icon-link.plain { border: 0; background: var(--soft); }

/* ─────────── аватари ─────────── */
.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff;
  font-size: 13px; font-weight: 700; overflow: hidden; flex: none; letter-spacing: .3px;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 36px; height: 36px; font-size: 12px; }
.avatar-md { width: 46px; height: 46px; font-size: 15px; }
.avatar-lg { width: 96px; height: 96px; font-size: 30px; }

/* ─────────── кнопки ─────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; text-align: center;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
  background: #fff; color: var(--ink);
}
.btn:active { transform: scale(.98); }
.btn-pill { border-radius: 999px; }
.btn-brand { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(15, 23, 42, .22); }
.btn-brand:hover { background: var(--brand-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { border-color: var(--line-2); }
.btn-ghost:hover { background: var(--soft); }
.btn-soft { background: var(--soft); }
.btn-sm { height: 34px; padding: 0 13px; font-size: 13px; border-radius: 999px; }
.btn-lg { height: 50px; font-size: 15px; border-radius: 999px; }
.btn-block { width: 100%; }
.btn-round { width: 42px; height: 42px; padding: 0; border-radius: 50%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link { color: var(--brand); font-weight: 600; }
.link-quiet { color: var(--brand); }

/* ─────────── бейджі ─────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.b-ok { background: #e7f6ef; color: var(--ok); }
.b-info { background: #eaf3fc; color: var(--info); }
.b-warn { background: #fdf3e3; color: var(--warn); }
.b-err { background: #fdecea; color: var(--err); }
.b-brand { background: var(--brand); color: #fff; }
.stars { font-size: 12.5px; font-weight: 600; color: var(--ink-900); }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot-online { background: #10b981; }
.dot-accepting { background: #f59e0b; }
.dot-offline { background: #94a3b8; }

.flash {
  margin: 10px 0 0; padding: 12px 16px; border-radius: 14px; font-size: 13.5px; font-weight: 500;
}
.f-ok { background: #e7f6ef; color: var(--ok); }
.f-err { background: #fdecea; color: var(--err); }

/* ─────────── шапка екрана ─────────── */
.screen-head { padding: 18px 0 10px; }
.screen-head h1 { font-size: 26px; }
.screen-head .sub { color: var(--muted); font-size: 13px; margin: 0; }
.head-actions { display: flex; align-items: center; gap: 8px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.back:hover { color: var(--ink); }

/* ─────────── головна: пошук і категорії ─────────── */
.home-head { position: sticky; top: 0; z-index: 40; background: #fff; padding-top: 14px; }
.city-btn {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: none;
  font-size: 15px; font-weight: 700; color: var(--ink-900); padding: 0; cursor: pointer;
}
.city-btn svg:first-child { color: var(--brand); }
.searchbar { position: relative; margin-top: 10px; }
.searchbar input {
  width: 100%; height: 48px; border-radius: 999px; border: 1px solid var(--line-2);
  background: #fff; padding: 0 46px 0 44px; font: inherit; font-size: 14px; font-weight: 500;
  color: var(--ink-900); box-shadow: var(--sh-sm); outline: none;
}
.searchbar input::placeholder { color: var(--slate-400); font-weight: 400; }
.searchbar input:focus { border-color: var(--ink-900); }
.searchbar .s-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--slate-500); pointer-events: none; }
.searchbar .s-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; border: 0; background: none; color: var(--ink-900);
  display: grid; place-items: center; cursor: pointer;
}
.searchbar .s-btn:hover { background: var(--soft); }

.cats { display: flex; gap: 4px; overflow-x: auto; margin-top: 10px; border-bottom: 1px solid var(--soft-2); scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat {
  flex: none; width: 78px; display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 9px 2px 10px; font-size: 11px; font-weight: 500; color: var(--slate-500);
  position: relative; text-align: center;
}
.cat svg { width: 21px; height: 21px; }
.cat span { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat.on { color: var(--ink-900); font-weight: 700; }
.cat.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink-900); border-radius: 2px; }

/* ─────────── герой-блок ─────────── */
.hero {
  margin-top: 14px; padding: 16px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, #f4f4f5 0%, #ffffff 60%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
}
.hero-top { display: flex; align-items: center; gap: 8px; }
.hero-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 5px; border-radius: 999px;
  background: rgba(255, 255, 255, .85); padding: 4px 10px; font-size: 11px; font-weight: 700; color: var(--brand);
}
.hero h1 { font-size: 22px; margin: 10px 0 4px; font-weight: 800; }
.hero p { font-size: 13px; color: #475569; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hero-actions .btn { height: 40px; font-size: 13px; }

/* ─────────── сітка карток ─────────── */
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 0 12px; }
.sec-head h2 { margin: 0; font-size: 15px; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }

.lcard { position: relative; }
.lcard-link { display: block; }
.thumb {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--r); overflow: hidden;
  background: var(--soft-2);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .fav {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(4px); display: grid; place-items: center;
  border: 0; cursor: pointer; color: var(--ink-900);
}
.thumb .fav.on { color: var(--brand); }
.lcard-fav { position: absolute; top: 8px; right: 8px; margin: 0; z-index: 2; }
.lcard-fav button { width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.92); display: grid; place-items: center; color: var(--ink-900); }
.lcard-fav button.on { color: var(--brand); }
.chip-verified {
  position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 3px;
  border-radius: 999px; background: #059669; color: #fff; padding: 2px 6px; font-size: 9px; font-weight: 700;
}
.chip-status {
  position: absolute; left: 8px; bottom: 9px; display: inline-flex; align-items: center; gap: 5px;
  border-radius: 999px; background: rgba(255, 255, 255, .95); padding: 2px 8px; font-size: 10px;
  font-weight: 500; color: #334155; box-shadow: var(--sh-sm);
}
.lcard-title { margin-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-900); }
.lcard-meta { font-size: 12px; color: var(--slate-500); }
.lcard-price { margin-top: 3px; font-size: 13px; font-weight: 600; color: var(--ink-900); }
.lcard-rating { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; color: var(--ink-900); }

.ph {
  width: 100%; height: 100%; display: grid; place-items: center; color: #b9c2cc;
  background: linear-gradient(135deg, #f2f4f7, #e9edf2);
}

/* ─────────── картки-панелі ─────────── */
.card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh); padding: 18px; }
.card-flat { background: #fff; border-radius: var(--r); box-shadow: var(--sh-sm); padding: 14px; }
.card-soft { background: var(--soft); border-radius: var(--r); padding: 16px; }
.page { padding-bottom: 26px; }
.sec { padding: 6px 0 18px; }

/* ─────────── профіль ─────────── */
.stats-card { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.stats-card .left { width: 44%; flex: none; display: flex; flex-direction: column; align-items: center; }
.stats-card .right { flex: 1; display: flex; flex-direction: column; padding-left: 8px; }
.stat-row { display: flex; flex-direction: column; align-items: flex-start; padding: 7px 0; }
.stat-row b { font-size: 19px; line-height: 1.15; color: var(--ink); }
.stat-row span { font-size: 12.5px; color: var(--muted); }
.stat-line { height: 1px; width: 72%; background: var(--line-2); }
.avatar-wrap { position: relative; }
.avatar-wrap .shield {
  position: absolute; right: 0; bottom: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-dark); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff;
}
.avatar-wrap .cam {
  position: absolute; left: -4px; top: -4px; width: 30px; height: 30px; border-radius: 50%;
  background: #fff; color: var(--ink); display: grid; place-items: center; border: 0; cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
}
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.tile { position: relative; background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh); padding: 12px; text-align: center; }
.tile .new { position: absolute; right: 8px; top: 8px; border-radius: 999px; background: #222; color: #fff; padding: 1px 7px; font-size: 9px; font-weight: 700; letter-spacing: .4px; }
.tile-visual { position: relative; width: 96px; height: 96px; margin: 0 auto; }
.tile-circle { width: 96px; height: 96px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; color: var(--slate-400); margin: 0 auto; }
.tile h3 { margin: 10px 0 1px; font-size: 13.5px; }
.tile p { margin: 0; font-size: 12px; color: var(--slate-500); }
.tile-stack { position: absolute; inset: 0; display: grid; place-items: center; }
.tile-stack img { position: absolute; width: 68px; height: 68px; border-radius: 12px; object-fit: cover; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .18); }
.tile-stack img:nth-child(1) { transform: translate(-13px, 8px) rotate(-7deg); }
.tile-stack img:nth-child(2) { transform: translate(0, -2px); }
.tile-stack img:nth-child(3) { transform: translate(13px, 8px) rotate(7deg); }
.tile-heart { position: absolute; right: -2px; top: 2px; width: 26px; height: 26px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 3px 10px rgba(0, 0, 0, .18); color: var(--brand); }

.banner-master {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; margin-top: 14px; padding: 16px; border-radius: var(--r-lg);
  background: var(--brand); color: #fff; box-shadow: var(--sh); border: 0; text-align: left; cursor: pointer;
}
.banner-master b { font-size: 15px; }
.banner-master span { font-size: 12.5px; opacity: .85; display: block; }
.banner-become { display: flex; gap: 12px; align-items: center; width: 100%; margin-top: 14px; padding: 16px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh); border: 0; text-align: left; cursor: pointer; }
.banner-become .ico { width: 72px; height: 72px; border-radius: 14px; background: var(--soft); display: grid; place-items: center; color: var(--ink-900); flex: none; }
.banner-become b { font-size: 15px; color: var(--ink-900); display: block; }
.banner-become span { font-size: 12.5px; color: var(--muted); display: block; margin-top: 2px; }
.banner-become .go { font-size: 13px; font-weight: 700; color: var(--brand); display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; }

.menu { margin-top: 14px; }
.menu-row {
  display: flex; align-items: center; gap: 14px; padding: 13px 6px; border-radius: 12px;
  color: var(--ink); width: 100%; border: 0; background: none; text-align: left; cursor: pointer;
}
.menu-row:hover { background: var(--soft); }
.menu-row svg:first-child { color: var(--ink); flex: none; }
.menu-row .label { flex: 1; font-size: 15px; font-weight: 500; color: var(--ink-900); }
.menu-row .chev { color: var(--slate-400); flex: none; }
.menu-sep { height: 1px; background: var(--line-2); margin: 8px 16px; }
.admin-btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--ink-900); color: #fff; border-radius: 20px; padding: 16px; box-shadow: var(--sh); border: 0; width: 100%; cursor: pointer; margin-top: 14px; }

.guest-note { margin-top: 34px; font-size: 15px; color: var(--muted); font-weight: 500; }

/* ─────────── збережені ─────────── */
.tilecat { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r); overflow: hidden; background: var(--soft-2); box-shadow: var(--sh); display: grid; place-items: center; color: #cbd5e1; }
.tilecat img { width: 100%; height: 100%; object-fit: cover; }
.tilecat .fav { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: var(--brand); }

/* ─────────── список рядків ─────────── */
.list { display: flex; flex-direction: column; gap: 12px; }
.row-card { display: flex; gap: 12px; padding: 12px; background: #fff; border-radius: var(--r); box-shadow: var(--sh-sm); align-items: stretch; }
.row-card:hover { box-shadow: var(--sh); }
.row-photo { width: 84px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--soft-2); flex: none; }
.row-photo img { width: 100%; height: 100%; object-fit: cover; }
.row-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; }

.empty { text-align: center; padding: 40px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.empty h3 { margin-bottom: 4px; }
.empty p { margin: 0 0 12px; }
.empty .ic { width: 64px; height: 64px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; margin: 0 auto 14px; color: var(--slate-400); }

/* ─────────── поля форми ─────────── */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #475569; }
.field > span { font-weight: 600; color: var(--ink-900); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 15px; color: var(--ink); background: #fff;
  border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--ink-900); box-shadow: 0 0 0 3px rgba(15, 23, 42, .05);
}
.field textarea { resize: vertical; min-height: 92px; }
.field input.code { letter-spacing: 10px; font-size: 20px; text-align: center; font-weight: 700; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radios { display: flex; gap: 8px; }
.radios label { flex: 1; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; cursor: pointer; font-size: 14px; color: var(--ink); }
.radios input { width: auto; }

/* ─────────── фото ─────────── */
.gallery { display: grid; grid-template-columns: 1fr; gap: 8px; border-radius: var(--r); overflow: hidden; }
.gallery .g-main { aspect-ratio: 4 / 3; background: var(--soft-2); border-radius: var(--r); overflow: hidden; }
.gallery .g-side { display: none; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.photos > * { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--soft-2); }
.photos img { width: 100%; height: 100%; object-fit: cover; }

/* ─────────── інфо-рядки ─────────── */
.info-list { display: flex; flex-direction: column; gap: 9px; }
.info-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.info-row span:first-child { color: var(--muted); }
.stat { background: var(--soft); border-radius: 14px; padding: 13px; text-align: center; }
.stat b { display: block; font-size: 19px; }
.stat span { font-size: 12px; color: var(--muted); }

/* ─────────── хронологія ─────────── */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 15px 22px; border-left: 2px solid var(--line); margin-left: 5px; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--line-2); }
.timeline li.on::before { border-color: var(--brand); background: var(--brand); }
.timeline b { font-size: 13.5px; display: block; }

/* ─────────── чат ─────────── */
.chat-screen { display: flex; flex-direction: column; min-height: calc(100vh - var(--bnh)); }
.chat-head { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--soft-2); padding: 12px 16px; }
.chat-order { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; background: var(--soft); margin: 12px 0 0; }
.chat-order .row-photo { width: 52px; }
.msgs { display: flex; flex-direction: column; gap: 8px; padding: 14px 0 8px; flex: 1; }
.chat-day { text-align: center; font-size: 11px; color: var(--muted); margin: 10px 0 2px; }
.bubble {
  max-width: 78%; padding: 9px 13px; border-radius: 16px; background: var(--soft-2);
  font-size: 14.5px; align-self: flex-start; word-break: break-word;
}
.bubble.me { align-self: flex-end; background: var(--ink); color: #fff; }
.bubble .time { display: block; font-size: 10.5px; opacity: .6; margin-top: 3px; }
.bubble img { border-radius: 10px; margin-bottom: 6px; max-height: 250px; object-fit: cover; cursor: zoom-in; }
.inputbar { position: sticky; bottom: calc(var(--bnh) + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--soft-2); padding: 10px 0; display: flex; gap: 8px; align-items: flex-end; }
.inputbar textarea {
  flex: 1; min-height: 44px; max-height: 130px; resize: none; border-radius: 22px;
  border: 1px solid var(--line-2); padding: 12px 16px; font: inherit; font-size: 14.5px; outline: none;
}
.inputbar textarea:focus { border-color: var(--ink-900); }
.inputbar .btn-round { width: 44px; height: 44px; flex: none; }

/* ─────────── вхід ─────────── */
.auth-wrap { max-width: 430px; margin: 0 auto; padding: 16px; }
.auth-card { background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--sh-sm); padding: 24px; margin-top: 18px; }
.auth-head { text-align: center; margin-bottom: 18px; }
.auth-head h1 { font-size: 22px; }
.auth-head .logo-mark { margin: 0 auto 10px; }
.auth-head p { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.oauth-stack { display: flex; flex-direction: column; gap: 10px; }
.oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px;
  background: #fff; color: var(--ink-900); font-size: 15px; font-weight: 600;
  transition: background .15s ease, border-color .15s ease;
}
.oauth-btn:hover { background: var(--soft); border-color: var(--slate-400); }
.oauth-btn svg { flex: none; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 12px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }

/* ─────────── інформаційні сторінки ─────────── */
.legal { max-width: 720px; padding: 8px 0 24px; }
.legal h1 { font-size: 26px; }
.legal h2 { margin-top: 22px; }
.legal p, .legal li { color: #475569; font-size: 14.5px; }
.legal ul { padding-left: 20px; }

/* інфо-сторінки: hero, кроки, переваги, сітка категорій */
.info-hero { max-width: 720px; padding: 18px 0 6px; }
.info-hero-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--ink-900); background: var(--soft); margin-bottom: 14px; }
.info-hero h1 { font-size: 26px; margin: 0 0 8px; }
.info-hero p { font-size: 15px; color: var(--muted); max-width: 560px; margin: 0 0 6px; }
.info-steps { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 18px 0 6px; }
.info-step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px 16px 16px 58px; box-shadow: var(--sh-sm); }
.info-step-n { position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; border-radius: 10px; background: var(--ink-900); color: #fff; font-size: 14px; font-weight: 800; display: grid; place-items: center; }
.info-step-ic { position: absolute; left: 19px; top: 50px; color: var(--brand); }
.info-step b { display: block; font-size: 15px; margin-bottom: 3px; }
.info-step p { margin: 0; font-size: 13.5px; color: var(--muted); }
.info-feats { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 18px 0 6px; }
.info-feat { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: var(--sh-sm); }
.info-feat-ic { width: 38px; height: 38px; border-radius: 12px; background: var(--soft); color: var(--ink-900); display: grid; place-items: center; margin-bottom: 10px; }
.info-feat b { display: block; font-size: 14.5px; margin-bottom: 4px; }
.info-feat p { margin: 0; font-size: 13px; color: var(--muted); }
.info-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 16px 0 4px; max-width: 920px; }
.info-cat { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--soft-2); box-shadow: var(--sh-sm); transition: transform .15s ease, box-shadow .15s ease; }
.info-cat:hover { transform: translateY(-2px); box-shadow: var(--sh); }
.info-cat-img, .info-cat-img img, .info-cat-img .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.info-cat-img .ph { display: grid; place-items: center; color: var(--slate-400); }
.info-cat-label { position: absolute; left: 10px; bottom: 10px; padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .94); font-size: 12.5px; font-weight: 700; color: var(--ink-900); box-shadow: 0 2px 8px rgba(0, 0, 0, .14); }
@media (min-width: 640px) {
  .info-steps { grid-template-columns: repeat(2, 1fr); }
  .info-feats { grid-template-columns: repeat(3, 1fr); }
  .info-cats { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 861px) {
  .info-cats { grid-template-columns: repeat(4, 1fr); }
}

/* ─────────── підвал ─────────── */
.footer { display: none; border-top: 1px solid var(--line); margin-top: 30px; padding: 26px 0 22px; background: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: #475569; }
.footer-links a:hover { text-decoration: underline; }

/* ─────────── нижнє меню ─────────── */
.bnav {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 12px; z-index: 60;
  width: min(460px, calc(100% - 24px));
  display: flex; align-items: stretch; justify-content: space-around;
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(12px);
  border: 1px solid var(--soft-2); border-radius: 999px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, .14);
  padding: 6px 8px;
}
.bn-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; color: var(--slate-500); font-size: 10px; font-weight: 500; border-radius: 999px; }
.bn-item svg { width: 22px; height: 22px; }
.bn-item.on { color: var(--brand); font-weight: 700; }
.bn-item.on svg { stroke-width: 2.4; }

/* ─────────── аркуші (модальні) ─────────── */
.sheet { position: fixed; inset: 0; z-index: 80; display: none; }
.sheet.on { display: block; }
.sheet-bg { position: absolute; inset: 0; background: rgba(15, 23, 42, .42); backdrop-filter: blur(3px); }
.sheet-body {
  position: absolute; left: 0; right: 0; bottom: 0; background: #fff;
  border-radius: 24px 24px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  max-height: 88vh; overflow-y: auto;
}
.sheet-body h3 { font-size: 16px; }
.sheet-close { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--soft); display: grid; place-items: center; cursor: pointer; color: var(--slate-500); }

/* ─────────── карта ─────────── */
.map-screen { position: fixed; inset: 0; z-index: 70; background: var(--soft); }
.map-screen #map { position: absolute; inset: 0; }
.map-top { position: absolute; left: 14px; right: 14px; top: 14px; z-index: 500; display: flex; align-items: center; justify-content: space-between; gap: 10px; pointer-events: none; }
.map-top > * { pointer-events: auto; }
.map-pill { display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 9px 14px; font-size: 13.5px; font-weight: 600; box-shadow: 0 4px 14px rgba(0, 0, 0, .14); border: 1px solid rgba(0, 0, 0, .05); cursor: pointer; color: var(--ink-900); transition: box-shadow .15s ease, transform .15s ease; }
.map-pill:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .2); transform: translateY(-1px); }
.map-pill svg { color: var(--brand); flex: none; }
.map-pill.round { width: 42px; height: 42px; padding: 0; justify-content: center; }
.map-pill.round svg { color: var(--ink-900); }
.map-pill-cat { max-width: 46vw; }
.map-pill-cat span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-sheet { position: absolute; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 500; background: #fff; border-radius: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, .16); border: 1px solid rgba(0, 0, 0, .04); padding: 14px 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.map-sheet-ic { width: 42px; height: 42px; border-radius: 14px; background: var(--soft); color: var(--ink-900); display: grid; place-items: center; flex: none; }
.map-sheet b { font-size: 14px; display: block; }
.map-sheet span { font-size: 12px; color: var(--muted); display: block; }
.map-sheet-hint { color: var(--warn) !important; margin-top: 2px; }
.map-rads { display: flex; gap: 4px; background: var(--soft); border-radius: 999px; padding: 4px; flex: none; }
.map-rad { min-width: 34px; text-align: center; padding: 6px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--slate-500); transition: background .15s ease, color .15s ease; }
.map-rad:hover { color: var(--ink-900); }
.map-rad.on { background: #fff; color: var(--brand); box-shadow: var(--sh-sm); }
.mk {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2px 9px; min-width: 58px; background: #fff; border: 1.5px solid var(--brand);
  border-radius: 14px; box-shadow: 0 4px 12px rgba(0, 0, 0, .22); white-space: nowrap;
  font-family: var(--font); cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.mk:hover { transform: scale(1.08); background: var(--brand); box-shadow: 0 6px 18px rgba(15, 23, 42, .4); }
.mk:hover i, .mk:hover b { color: #fff; }
.mk i { font-style: normal; font-size: 9px; font-weight: 600; line-height: 1.1; color: var(--slate-500); max-width: 62px; overflow: hidden; text-overflow: ellipsis; transition: color .15s ease; }
.mk b { font-size: 12px; font-weight: 700; line-height: 1.2; color: var(--ink-900); transition: color .15s ease; }
.leaflet-container { font-family: var(--font); }
.leaflet-popup-content-wrapper { border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.leaflet-popup-content { margin: 13px 16px; line-height: 1.45; }
.leaflet-popup-tip { box-shadow: 0 6px 14px rgba(0, 0, 0, .12); }
.map-pop-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 9px; padding: 7px 12px; border-radius: 999px; background: var(--brand); color: #fff !important; font-weight: 700; font-size: 12.5px; }
.map-pop-link:hover { background: var(--brand-dark); }

/* ─────────── оверлей фото ─────────── */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .94); display: none; align-items: center; justify-content: center; padding: 16px; }
.lightbox.on { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox .close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; border: 0; font-size: 22px; cursor: pointer; }

/* ─────────── десктоп ─────────── */
@media (min-width: 861px) {
  body { padding-bottom: 0; }
  .topbar, .footer { display: block; }
  .bnav { display: none; }
  .inputbar { bottom: 0; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 16px; }
  .gallery { grid-template-columns: 1.6fr 1fr; }
  .gallery .g-side { display: grid; grid-template-rows: 1fr 1fr; gap: 8px; }
  .gallery .g-side > div { border-radius: var(--r); overflow: hidden; background: var(--soft-2); }
  .home-head { position: static; }
  .cat { width: 96px; }
  .hero { padding: 22px; }
  .hero h1 { font-size: 26px; }
  .map-sheet { right: auto; width: 380px; }
  .wrap { padding: 0 24px; }
}

/* ═══════════ оформлення замовлення — паритет із застосунком ═══════════ */
body.of-body { padding-bottom: 0; background: #faf3ea; }
.of { max-width: 480px; margin: 0 auto; min-height: 100vh; background: #faf3ea; }
@media (min-width: 640px) {
  body.of-body { background: #f5efe6; }
  .of { box-shadow: 0 18px 60px rgba(28, 25, 23, .10); }
}

.of-flash {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%);
  z-index: 60; width: calc(100% - 32px); max-width: 440px;
  padding: 11px 16px; border-radius: 14px; font-size: 13px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}
/* ─────────── Мої замовлення ─────────── */

.otabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.otabs::-webkit-scrollbar { display: none; }
.otab {
  flex: none; padding: 7px 14px; border-radius: 999px; background: #eff0f4;
  color: #4b5563; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.otab.on { background: var(--ink-900); color: #fff; }

.olist { display: flex; flex-direction: column; gap: 12px; }
.ocard { background: #fff; border-radius: 20px; padding: 16px; box-shadow: 0 6px 20px rgba(0, 0, 0, .10); }
.ocard-top { display: flex; gap: 12px; align-items: flex-start; }
.ocard-thumb {
  width: 56px; height: 56px; flex: none; border-radius: 12px; overflow: hidden;
  background: #f1f5f9; display: flex; align-items: center; justify-content: center;
}
.ocard-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ocard-main { min-width: 0; flex: 1; }
.ocard-title { font-size: 14px; font-weight: 800; color: var(--ink-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ocard-sub { margin-top: 2px; font-size: 12px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ocard-desc { margin-top: 6px; font-size: 14px; color: #374151; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ocard-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 11px; color: #6b7280; }
.ocard-meta span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.ocard-price { margin-top: 8px; font-size: 14px; font-weight: 800; color: var(--ink-900); }
.ocard-price.warn { color: #b45309; }

.oalert { margin-top: 12px; border-radius: 16px; background: #fffbeb; border: 1px solid #fde68a; padding: 12px; }
.oalert b { display: block; font-size: 13px; color: #78350f; }
.oalert p { margin: 4px 0 0; font-size: 12px; line-height: 1.45; color: #92400e; }

.owork { margin-top: 12px; }
.owork .ttl { margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #9ca3af; }
.owork .row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.owork .row::-webkit-scrollbar { display: none; }
.owork .row img { width: 112px; height: 80px; flex: none; border-radius: 12px; object-fit: cover; cursor: zoom-in; }
.owork .cmt { margin-top: 8px; font-size: 14px; color: #374151; }

.obtn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  margin-top: 12px; padding: 14px; border: 0; border-radius: 16px; cursor: pointer;
  font-size: 15px; font-weight: 800; color: #fff; text-decoration: none;
  background: linear-gradient(90deg, #10b981, #059669);
  box-shadow: 0 8px 20px rgba(16, 185, 129, .28);
}
.obtn.amber { background: #f59e0b; box-shadow: 0 8px 20px rgba(245, 158, 11, .28); }
.obtn.soft {
  background: #f7f7f7; color: #222; border: 1px solid #ebebeb;
  box-shadow: none; font-size: 14px; font-weight: 600; padding: 12px;
}
.orow2 { display: flex; gap: 8px; }
.orow2 > .obtn { flex: 1; }

.ocard-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.ocard-foot .left { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ocard-foot a, .ocard-foot button {
  display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none;
  font-size: 13px; font-weight: 500; color: #9ca3af; text-decoration: none; cursor: pointer;
}
.ocard-foot .go { font-weight: 700; color: var(--ink-900); }

.ofeed { display: flex; flex-direction: column; gap: 10px; }
.ofeed-row {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 20px;
  background: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .10); text-decoration: none; color: inherit;
}
.ofeed-ic { width: 44px; height: 44px; flex: none; border-radius: 12px; overflow: hidden; background: #f1f5f9; display: flex; align-items: center; justify-content: center; }
.ofeed-ic img { width: 100%; height: 100%; object-fit: cover; }
.ofeed-main { min-width: 0; flex: 1; }
.ofeed-title { font-size: 14px; font-weight: 800; color: var(--ink-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ofeed-label { margin-top: 2px; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ofeed-when { margin-top: 2px; font-size: 11px; color: #9ca3af; }
.ofeed-dot { width: 8px; height: 8px; flex: none; border-radius: 999px; background: #10b981; }

.of-step { display: flex; flex-direction: column; min-height: 100vh; }
.of-step[hidden] { display: none !important; }

.of-top {
  display: flex; align-items: center; gap: 10px;
  padding: max(14px, calc(env(safe-area-inset-top) + 6px)) 16px 8px;
  position: sticky; top: 0; z-index: 20; background: #fff;
}
.of-top-split { align-items: flex-start; justify-content: space-between; padding-bottom: 12px; }
.of-head-txt h1 { font-size: 18px; font-weight: 800; margin: 0; letter-spacing: -.2px; color: var(--ink); }
.of-head-txt p { margin: 3px 0 0; font-size: 12px; color: #a3a3a3; }
.of-x {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff;
  display: grid; place-items: center; color: var(--ink); cursor: pointer; flex: none;
}
.of-x:hover { background: var(--soft); }
.of-clear {
  margin-left: auto; border: 0; background: none; font-size: 14px; font-weight: 600;
  color: var(--ink); cursor: pointer; padding: 8px 4px;
}
.of-clear[disabled] { color: var(--slate-400); cursor: default; }

.of-title { padding: 0 20px 12px; }
.of-title h1 { font-size: 22px; font-weight: 800; margin: 0; letter-spacing: -.4px; color: var(--ink); }
.of-title p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.of-title-note { font-size: 12px; color: var(--slate-400); margin-top: 4px; }

.of-week {
  display: grid; grid-template-columns: repeat(7, 1fr);
  padding: 0 12px 8px; text-align: center;
  font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted);
}
.of-week span { padding: 4px 0; }

.of-scroll { flex: 1; overflow-y: auto; padding: 0 12px 148px; }
.of-month + .of-month { margin-top: 32px; }
.of-month h3 { font-size: 16px; font-weight: 700; margin: 0 0 12px; padding: 0 8px; color: var(--ink); }
.of-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; }
.of-day { display: grid; place-items: center; }
.of-day button {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: none;
  font-size: 13px; color: var(--ink); cursor: pointer;
}
.of-day button:hover { background: var(--soft); }
.of-day button.sel { background: var(--ink); color: #fff; font-weight: 600; }
.of-day button.off { color: var(--slate-400); text-decoration: line-through; cursor: default; }
.of-day button.off:hover { background: none; }
.of-day button.is-today { font-weight: 700; }

.of-foot {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 480px;
  z-index: 30; background: #fff; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px max(16px, env(safe-area-inset-bottom));
}
.of-foot-strong { font-size: 15px; font-weight: 700; color: var(--ink); }
.of-foot-strong.small-note { font-size: 13px; }
.of-save {
  border: 0; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 600; padding: 14px 26px; cursor: pointer;
}
.of-save[disabled] { background: #d8d8d8; cursor: default; }

/* час */
.of-flex {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--line); border-radius: 16px; background: #fff;
  padding: 16px; text-align: left; cursor: pointer; margin-bottom: 16px;
}
.of-flex b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.of-flex i { display: block; font-style: normal; font-size: 12px; color: var(--muted); margin-top: 2px; }
.of-flex.on { border-color: var(--ink); background: var(--soft); }

.of-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.of-slot {
  height: 56px; border-radius: 16px; border: 1px solid var(--line); background: #fff;
  font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer;
}
.of-slot:hover { background: var(--soft); }
.of-slot.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.of-slot.off { background: var(--soft); color: #c4c4c4; text-decoration: line-through; border-color: var(--line); cursor: default; }

.of-dot {
  width: 20px; height: 20px; border-radius: 50%; flex: none;
  display: none; place-items: center; background: var(--brand); color: #fff;
}
.on > .of-dot, .of-flex.on .of-dot { display: grid; }

/* підтвердження */
.of-confirm { padding: 0 20px 190px; display: flex; flex-direction: column; gap: 14px; }

.of-summary { background: #f8fafc; border-radius: 16px; padding: 12px; }
.of-summary-row { display: flex; align-items: center; gap: 12px; }
.of-summary-photo { width: 48px; height: 48px; border-radius: 12px; overflow: hidden; background: #e2e8f0; flex: none; }
.of-summary-photo img { width: 100%; height: 100%; object-fit: cover; }
.of-summary-title { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.of-summary-sub { margin: 2px 0 0; font-size: 12px; color: var(--slate-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.of-trust {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid #e2e8f0;
  font-size: 12px; color: var(--slate-500);
}
.of-trust-rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--ink-900); }
.of-trust-rating svg { color: #ffb400; fill: #ffb400; }

.of-row {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  border: 1px solid #f1f5f9; border-radius: 16px; background: #fff; padding: 16px; cursor: pointer;
}
.of-row-ico { width: 36px; height: 36px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; color: var(--ink); flex: none; }
.of-row-txt { flex: 1; min-width: 0; }
.of-row-txt i { display: block; font-style: normal; font-size: 12px; color: var(--slate-400); }
.of-row-txt b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-top: 1px; }
.of-row-edit { font-size: 14px; font-weight: 600; color: var(--brand); flex: none; }

.of-card { border: 1px solid #f1f5f9; border-radius: 16px; padding: 16px; }
.of-grow { flex: 1; min-width: 0; }
.of-card + .of-card { margin-top: 0; }
.of-sec {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--ink-900); margin-bottom: 10px;
}
.of-sec svg { color: var(--brand); flex: none; }
.of-sec em { font-style: normal; font-weight: 400; color: var(--slate-400); }
.of-label { display: block; font-size: 12px; color: var(--slate-500); margin: 10px 0 4px; }
.of-input {
  width: 100%; border: 1px solid var(--line-2); border-radius: 12px; background: #fff;
  padding: 12px 14px; font: inherit; font-size: 14px; color: var(--ink); outline: none;
}
.of-input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(34, 34, 34, .06); }
.of-textarea { resize: vertical; min-height: 76px; }
.of-hint { font-size: 11px; color: var(--slate-400); margin: 6px 0 0; line-height: 1.35; }

.of-map { position: relative; height: 176px; margin-top: 12px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: #eef1f4; }
.of-map #of-map { position: absolute; inset: 0; }
.of-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); pointer-events: none; z-index: 500; }
.of-pin-body {
  display: block; width: 26px; height: 26px; background: var(--ink);
  border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .28);
}
.of-pin-shadow { display: block; width: 10px; height: 4px; margin: 4px auto 0; border-radius: 50%; background: rgba(0, 0, 0, .18); }
.of-locate {
  position: absolute; right: 10px; bottom: 10px; z-index: 500;
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line-2); border-radius: 999px; background: #fff;
  padding: 8px 12px; font-size: 12px; font-weight: 600; color: var(--ink); cursor: pointer;
  box-shadow: var(--sh-sm);
}

.of-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.of-photo { position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: var(--soft-2); }
.of-photo img { width: 100%; height: 100%; object-fit: cover; }
.of-photo button {
  position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, .6); color: #fff; display: grid; place-items: center; cursor: pointer; font-size: 13px; line-height: 1;
}
.of-add {
  aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 2px dashed var(--line-2); border-radius: 12px; background: #fff; color: var(--slate-400);
  cursor: pointer; font-size: 10px; font-weight: 600;
}
.of-add:hover { border-color: var(--brand); color: var(--brand); }

.of-pay {
  display: flex; align-items: center; gap: 12px; width: 100%;
  border: 2px solid var(--line-2); border-radius: 12px; padding: 14px; cursor: pointer;
  background: #fff; position: relative; margin-bottom: 8px;
}
.of-pay:hover { border-color: #cbd5e1; }
.of-pay.on { border-color: var(--brand); background: var(--soft); }
.of-pay input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.of-pay-logo {
  width: 40px; height: 40px; border-radius: 8px; flex: none;
  display: grid; place-items: center; background: #000; color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .2px;
}
.of-pay-logo.soft { background: var(--soft); color: var(--ink); }
.of-pay b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.of-pay i { display: block; font-style: normal; font-size: 12px; color: var(--slate-500); margin-top: 2px; }
.of-pay .of-dot { background: transparent; }
.of-pay.on .of-dot { background: var(--brand); }

.of-pay-brands { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px; }
.of-pay-brands span {
  border: 1px solid var(--line-2); border-radius: 6px; background: #fff;
  padding: 4px 8px; font-size: 11px; font-weight: 600; color: #334155;
}
.of-recommend {
  font-size: 10px; font-weight: 600; color: #047857; text-align: center;
  background: #ecfdf5; border-radius: 999px; padding: 3px 10px;
  width: fit-content; margin: 0 auto 14px;
}

.of-total { background: #f8fafc; border-radius: 16px; padding: 16px; font-size: 14px; }
.of-total-row { display: flex; justify-content: space-between; color: var(--slate-500); padding: 2px 0; }
.of-total-row.sum {
  margin-top: 6px; padding-top: 6px; border-top: 1px solid #e2e8f0;
  font-size: 16px; font-weight: 800; color: var(--ink-900);
}

.of-submitbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 480px;
  z-index: 30; background: #fff; padding: 12px 20px max(16px, env(safe-area-inset-bottom));
  box-shadow: 0 -6px 20px rgba(0, 0, 0, .08);
}
.of-shield {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: #ecfdf5; border-radius: 8px; padding: 8px 12px; margin-bottom: 10px;
  font-size: 11px; font-weight: 600; color: #065f46;
}
.of-shield svg { color: #059669; flex: none; }
.of-err { margin: 0 0 8px; text-align: center; font-size: 12px; font-weight: 600; color: #ef4444; }
.of-send {
  width: 100%; border: 0; border-radius: 16px; background: var(--brand); color: #fff;
  padding: 16px; font-size: 15px; font-weight: 800; cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .3); display: block; text-align: center;
}
.of-send:hover { background: var(--brand-dark); }
.of-send[disabled] { opacity: .6; box-shadow: none; pointer-events: none; }

/* успіх */
.of-done {
  max-width: 480px; margin: 0 auto; min-height: 100vh; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 40px 28px; text-align: center;
}
.of-done-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; color: var(--ink-900); }
.of-done h1 { font-size: 20px; font-weight: 800; margin: 4px 0 0; }
.of-done p { font-size: 14px; color: var(--slate-500); margin: 0; max-width: 300px; }
.of-done .of-send { margin-top: 12px; width: 100%; }
.of-ghost { display: block; padding: 12px; font-size: 14px; font-weight: 600; color: var(--ink); }

/* Збережені майстри */
.saved-page { background: #fff; }
.saved-hero { display: flex; align-items: center; gap: 13px; padding: 18px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--sh-sm); }
.saved-hero-icon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 16px; background: var(--ink-900); color: #fff; }
.saved-hero h1 { margin: 0; font-size: 20px; line-height: 1.25; }
.saved-hero p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.saved-hero > span { margin-left: auto; min-width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--brand); font-size: 13px; font-weight: 800; }
.saved-page .lcard { border: 1px solid #f1f5f9; border-radius: 20px; box-shadow: 0 8px 24px rgba(15, 23, 42, .07); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.saved-page .lcard:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15, 23, 42, .11); }
.saved-page .tilecat { background: var(--soft-2); }

/* Подарункові сертифікати */
.gift-hero { padding: 24px 20px; margin-bottom: 16px; border-radius: 24px; background: linear-gradient(135deg, #f4f4f5, #fafafa); text-align: center; }
.gift-hero > span { width: 58px; height: 58px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 19px; background: #fff; color: var(--ink-900); box-shadow: 0 8px 24px rgba(15, 23, 42, .10); }
.gift-hero h1 { margin: 0; font-size: 23px; }
.gift-hero p { margin: 8px auto 0; max-width: 360px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.gift-form { padding: 20px; border-radius: 22px; }
.gift-success { padding: 24px 20px; margin-bottom: 14px; border: 1px solid #bbf7d0; border-radius: 22px; background: #f0fdf4; text-align: center; }
.gift-success small { display: block; color: #166534; }
.gift-success strong { display: block; margin: 12px 0; color: #14532d; font-size: 30px; letter-spacing: 2px; }
.gift-success p { margin: 0; color: #166534; font-size: 13px; line-height: 1.5; }
/* ── Оформлення замовлення у фірмовому стилі головної (крем + помаранч) ── */
/* Тепла фірмова тема оформлення — в одній системі зі сторінкою пошуку */
body.of-body { background: #faf3ea; }
body.of-body .of-title h1,
body.of-body .of-head-txt h1 { color: #1c1917; }
body.of-body .of-title p, body.of-body .of-head-txt p { color: #a8a29e; }
body.of-body .of-x { background: #fff; box-shadow: 0 2px 10px rgba(28, 25, 23, .08); border: 0; color: #1c1917; }
body.of-body .of-clear { color: #f96302; }
body.of-body .of-row { border: 1px solid #f0e8dd; border-radius: 18px; box-shadow: 0 2px 12px rgba(28, 25, 23, .07); background: #fff; }
body.of-body .of-row-ico { background: #f5efe6; color: #1c1917; }
body.of-body .of-row-edit { color: #f96302; }
body.of-body .of-card { border: 1px solid #f0e8dd; border-radius: 18px; background: #fff; box-shadow: 0 2px 12px rgba(28, 25, 23, .07); }
body.of-body .of-sec { color: #1c1917; }
body.of-body .of-sec svg { color: #f96302; }
body.of-body .of-input { border: 1.5px solid #f0e8dd; border-radius: 14px; background: #fffdf9; }
body.of-body .of-input:focus { border-color: #f96302; box-shadow: 0 0 0 3px rgba(249, 99, 2, .12); }
body.of-body .of-summary { background: #fff; border: 1px solid #f0e8dd; border-radius: 18px; box-shadow: 0 2px 12px rgba(28, 25, 23, .07); }
body.of-body .of-day button.is-today { color: #f96302; }
body.of-body .of-day button.sel { background: #f96302; color: #fff; box-shadow: 0 3px 8px rgba(249, 99, 2, .35); }
body.of-body .of-day button.sel.is-today { color: #fff; }
body.of-body .of-slot.on { background: #f96302; border-color: #f96302; }
body.of-body .of-flex { border: 1.5px solid #f0e8dd; border-radius: 14px; background: #fffdf9; }
body.of-body .of-flex.on { border-color: #f96302; background: #ffead9; }
body.of-body .on > .of-dot, body.of-body .of-flex.on .of-dot { background: #f96302; color: #fff; }
body.of-body .of-foot { background: rgba(250, 243, 234, .94); backdrop-filter: blur(10px); border-top: 0; }
body.of-body .of-save { background: #f96302; box-shadow: 0 6px 18px rgba(249, 99, 2, .28); }
body.of-body .of-save[disabled] { background: #e7ddd2; box-shadow: none; }
body.of-body .of-pay { border: 1.5px solid #f0e8dd; border-radius: 16px; background: #fffdf9; }
body.of-body .of-pay:hover { border-color: #e7ddd2; }
body.of-body .of-pay.on { border-color: #f96302; background: #ffead9; }
body.of-body .of-pay.on .of-dot { background: #f96302; }
body.of-body .of-pay-logo.soft { background: #f5efe6; color: #1c1917; }
body.of-body .of-pay-brands span { border-color: #f0e8dd; background: #fff; color: #57534e; }
body.of-body .of-recommend { background: #f5efe6; color: #1c1917; }
body.of-body .of-total { background: #fff; border: 1px solid #f0e8dd; border-radius: 18px; box-shadow: 0 2px 12px rgba(28, 25, 23, .07); }
body.of-body .of-total-row { color: #78716c; }
body.of-body .of-total-row.sum { border-top-color: #f0e8dd; color: #1c1917; }
body.of-body .of-map { border: 0; border-radius: 16px; }
body.of-body .of-pin-body { background: #f96302; }
body.of-body .of-locate { border: 0; color: #f96302; }
body.of-body .of-submitbar { background: rgba(250, 243, 234, .94); backdrop-filter: blur(10px); box-shadow: 0 -6px 20px rgba(28, 25, 23, .08); }
body.of-body .of-send { background: #f96302; border-radius: 999px; box-shadow: 0 6px 16px rgba(249, 99, 2, .28); }
body.of-body .of-done-ico { background: #ffead9; color: #f96302; }
body.of-body .of-done h1 { color: #1c1917; }
body.of-body .of-done p { color: #78716c; }
body.of-body .of-month h3 { color: #1c1917; }
body.of-body .of-week span { color: #a8a29e; }

/* ── Запасний екран карти, якщо бібліотека карти не завантажилась ── */
.map-fallback {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; height: 100%; min-height: 320px; padding: 24px; text-align: center;
  background: var(--soft); color: var(--muted); font-size: 13.5px; line-height: 1.5;
}
.map-fallback b { color: var(--ink-900); font-size: 15px; }
.map-fallback .btn { margin-top: 8px; width: auto; }

/* Leaflet: карта не перекриває шапку, шити та модалки під час скролу */
.leaflet-pane { z-index: 1 !important; }
.leaflet-top, .leaflet-bottom { z-index: 2 !important; }
