/* Запис: mobile-first, світла й темна теми, без зовнішніх шрифтів */
:root {
  --bg: #faf6f3; --surface: #fff; --ink: #2a2024; --muted: #766a70; --line: #eadfe0;
  --accent: #b83b6b; --accent-ink: #fff; --accent-soft: #f8e6ee;
  --ok: #26704f; --ok-soft: #e2f3ea; --warn: #8f5d12; --warn-soft: #fbf0d9; --bad: #b3261e; --bad-soft: #fbe5e3;
  --radius: 16px; --shadow: 0 1px 2px rgba(60, 30, 40, .06), 0 6px 20px rgba(60, 30, 40, .05);
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161113; --surface: #201a1d; --ink: #f4ebef; --muted: #a99ca2; --line: #36292f;
    --accent: #e4769f; --accent-ink: #1d0f15; --accent-soft: #3a2230;
    --ok: #6fd1a0; --ok-soft: #1c3329; --warn: #f0c36e; --warn-soft: #3a2f17; --bad: #ff8d84; --bad-soft: #3d1f1d;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); min-height: 100vh;
  display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; font-weight: 650; }
h1 { font-family: var(--serif); font-size: clamp(1.6rem, 5vw, 2.2rem); letter-spacing: -.01em; }
h2 { font-size: 1.15rem; margin-top: 1.6rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .75rem; }
code { font: .9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--accent-soft); padding: .1em .4em; border-radius: 6px; word-break: break-all; }
pre { white-space: pre-wrap; font: inherit; }
small, .small { font-size: .85rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.grow { flex: 1 1 auto; min-width: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* каркас */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.bar { max-width: 1000px; margin: 0 auto; padding: .6rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; line-height: 0; }
.brand img { height: 28px; width: auto; display: block; }
.brand:hover { text-decoration: none; }
.who { display: flex; align-items: center; gap: .9rem; font-size: .95rem; }
.who a { color: var(--ink); } .who a.btn.primary { color: var(--accent-ink); }
form.inline { display: inline; margin: 0; }
button.link { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; }
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 1.25rem 1rem 3rem; flex: 1; }
.wrap.narrow { max-width: 560px; }
.wrap.wide { max-width: 980px; }
.foot { text-align: center; padding: 1.5rem 1rem 2rem; font-size: .9rem; color: var(--muted); }

/* картки й списки */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.1rem; box-shadow: var(--shadow); margin: 0 0 1rem; }
.card.center { padding: 1.6rem 1.2rem; }
.grid2 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.hero { padding: 1.2rem 0 1.4rem; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 40rem; }
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin: 0 0 1rem; }
.row { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; color: var(--ink); min-height: 56px; }
.row + .row { border-top: 1px solid var(--line); }
a.row:hover { background: var(--accent-soft); text-decoration: none; }
.row b { display: block; }
.row small { display: block; }
.row.stack { align-items: flex-start; flex-wrap: wrap; }
.row.stack .grow { display: flex; flex-direction: column; gap: .15rem; flex-basis: 14rem; }
.price { font-weight: 600; white-space: nowrap; }
.chev { color: var(--muted); font-size: 1.4rem; }
.acts { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.client { font-weight: 600; } .tel { margin-left: .5rem; }
.stats { color: var(--muted); font-size: .85rem; }
.day { margin: 1.1rem 0 .4rem; color: var(--muted); font-size: .95rem; }
.count { background: var(--accent); color: var(--accent-ink); border-radius: 99px; padding: .05rem .55rem; font-size: .8rem; vertical-align: middle; }
.back { display: inline-block; margin-bottom: .6rem; color: var(--muted); }
.pager { display: flex; gap: .6rem; justify-content: space-between; margin-top: 1rem; }

/* профіль майстра */
.profile { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.avatar { width: 4rem; height: 4rem; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 45%, #f6b26b)); color: var(--accent-ink);
  font: 700 1.7rem var(--serif); }
.profile h1 { margin: 0; }

/* кроки запису */
.steps { list-style: none; display: flex; gap: .35rem; padding: 0; margin: .4rem 0 1.1rem; font-size: .8rem; color: var(--muted); }
.steps li { flex: 1; text-align: center; padding: .3rem 0; border-bottom: 3px solid var(--line); }
.steps li.done { border-color: var(--accent-soft); color: var(--ink); }
.steps li.on { border-color: var(--accent); color: var(--ink); font-weight: 650; }

/* вибір дня і часу */
.chips { display: grid; gap: .6rem; }
.chips.days { grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr)); }
.chips.times { grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr)); }
.chip { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; padding: .5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); box-shadow: var(--shadow); }
.chip:hover { border-color: var(--accent); text-decoration: none; background: var(--accent-soft); }
.chip small { color: var(--muted); line-height: 1; margin-bottom: .15rem; }
.chip b { font-size: 1.05rem; }

/* форми */
.form { display: flex; flex-direction: column; gap: .9rem; }
.row-form { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; font-weight: 600; }
.field .muted, .field small { font-weight: 400; }
.field.grow { flex: 1 1 12rem; } .field.narrow-f { flex: 0 1 7rem; }
input, textarea, select { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: .7rem .8rem; min-height: 48px; width: 100%; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.svc { flex-wrap: wrap; align-items: flex-end; }
.day-f { display: grid; grid-template-columns: 8rem 1fr; align-items: center; column-gap: .8rem; }
.day-f small { grid-column: 2; }
@media (max-width: 480px) { .day-f { grid-template-columns: 1fr; } .day-f small { grid-column: 1; } }
.bad-t { color: var(--bad); }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 48px; padding: 0 1.2rem;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 1rem var(--sans); cursor: pointer; }
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); background: var(--ok-soft); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); background: transparent; }
.btn.ghost { background: transparent; }
.btn.sm { min-height: 40px; padding: 0 .9rem; font-size: .92rem; }
.btn.block { width: 100%; }
.card .btn + .btn { margin-left: .4rem; }

/* повідомлення, мітки */
.flash, .err, .banner { border-radius: 12px; padding: .75rem 1rem; margin: 0 0 1rem; }
.flash { background: var(--ok-soft); color: var(--ok); }
.err { background: var(--bad-soft); color: var(--bad); }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner.bad { background: var(--bad-soft); color: var(--bad); }
.banner a { color: inherit; text-decoration: underline; }
.tag { display: inline-block; align-self: flex-start; font-size: .78rem; font-weight: 650; padding: .1rem .55rem; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent); }
.tag.ok { background: var(--ok-soft); color: var(--ok); } .tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }

/* підсумок запису */
.summary { display: grid; gap: .6rem; margin: .8rem 0 1rem; }
.summary > div { display: flex; flex-direction: column; }
.summary small { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.card.summary { gap: .7rem; }
.done-card h1 { margin-top: .6rem; }

/* кабінет */
.pills { display: flex; gap: .4rem; overflow-x: auto; padding: .1rem 0 .8rem; margin: 0 -1rem 0; padding-left: 1rem; padding-right: 1rem;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pills::-webkit-scrollbar { display: none; }
.pill { flex: none; padding: .5rem 1rem; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: .95rem; }
.pill:hover { text-decoration: none; border-color: var(--accent); }
.pill.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (min-width: 760px) { .pills { margin: 0; padding-left: 0; padding-right: 0; } }
.plans { border-collapse: collapse; margin: 0 0 .8rem; min-width: 14rem; }
.plans td { padding: .3rem 1.4rem .3rem 0; border-bottom: 1px solid var(--line); }
.pay { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; margin: 0 0 .9rem; }
.widget { display: flex; justify-content: center; min-height: 52px; margin: 1.2rem 0 .6rem; }
.copy { user-select: all; }
@media (prefers-reduced-motion: no-preference) { .chip, .btn, .pill { transition: background .15s, border-color .15s; } }

/* --- потік запису: темна шапка, календар, слоти --- */
.flowbar { position: sticky; top: 0; z-index: 10; background: #161113; color: #f4ebef; padding-top: env(safe-area-inset-top); }
.flowbar .bar { gap: .8rem; justify-content: flex-start; }
.fb-back { color: #f4ebef; font-size: 2rem; line-height: 1; padding: 0 .4rem 0 0; min-width: 28px; }
.fb-back:hover { text-decoration: none; }
.fb-name { color: #f4ebef; font-weight: 650; font-size: 1.1rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-name:hover { text-decoration: none; }
.fb-link { color: #e9b4c9; font-size: .92rem; white-space: nowrap; }
.avatar.sm { width: 2.4rem; height: 2.4rem; font-size: 1.1rem; flex: none; }
.flowpage { padding-top: 0; }
.bio { margin: 1rem 0 0; }
.part { font-size: .95rem; color: var(--muted); font-weight: 600; margin: 1.3rem 0 .6rem; }
.part.first { margin-top: 1.2rem; }
.svc-line { margin: 1rem 0 .4rem; }
.cal { background: color-mix(in srgb, var(--surface) 70%, var(--bg)); border-radius: var(--radius); padding: .6rem .6rem 1rem; margin: 0 -.4rem; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: .3rem .2rem .6rem; }
.cal-head h1 { margin: 0; font-family: var(--sans); font-weight: 450; font-size: 1.35rem; }
.nav { width: 44px; height: 44px; display: grid; place-items: center; font-size: 1.8rem; color: var(--muted); border-radius: 50%; }
.nav:hover { text-decoration: none; background: var(--accent-soft); }
.nav.off { opacity: .25; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: .15rem; text-align: center; }
.cal-grid.wd { color: var(--muted); font-size: .8rem; padding-bottom: .4rem; margin-bottom: .3rem; border-bottom: 1px solid var(--line); }
.cell { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto; border-radius: 50%; font-size: 1.1rem; }
.cell.off { color: color-mix(in srgb, var(--muted) 55%, transparent); }
.cell.free { color: var(--ink); font-weight: 550; }
.cell.free:hover { text-decoration: none; background: var(--accent-soft); }
.cell.sel, .cell.sel:hover { background: var(--ink); color: var(--bg); }
.cell.today { text-decoration: underline; text-underline-offset: 4px; }
.slots { padding-top: .4rem; scroll-margin-top: 4.5rem; }
.pills-t { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.4rem, 1fr)); gap: .55rem; }
.tpill { display: grid; place-items: center; min-height: 46px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface);
  color: var(--ink); font-size: 1rem; }
.tpill:hover { text-decoration: none; border-color: var(--accent); background: var(--accent-soft); }

/* картки однакової висоти, кнопки притиснуті до низу */
.card.tall { display: flex; flex-direction: column; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: auto; padding-top: 1rem; }
.actions .btn { margin: 0; }
.grid2 { align-items: stretch; }
@media (max-width: 699px) { .actions .btn { flex: 1 1 100%; } }
.card.tall h2 { margin-top: 0; }

/* мобільний: компактний календар, щоб дата й усі групи слотів вміщались без прокрутки */
@media (max-width: 520px) {
  .flowbar .bar { min-height: 48px; padding-top: .2rem; padding-bottom: .2rem; }
  .flowbar .avatar.sm { width: 2rem; height: 2rem; font-size: .95rem; }
  .fb-name { font-size: 1rem; }
  .svc-line { margin: .45rem 0 .25rem; font-size: .86rem; }
  .cal { padding: .15rem .3rem .3rem; }
  .cal-head { padding: 0 .1rem .1rem; }
  .cal-head h1 { font-size: 1.05rem; }
  .nav { width: 32px; height: 32px; font-size: 1.35rem; }
  .cal-grid { row-gap: 0; }
  .cal-grid.wd { font-size: .68rem; padding-bottom: .15rem; margin-bottom: .1rem; }
  .cell { width: 32px; height: 32px; font-size: .88rem; }
  .slots { padding-top: 0; }
  .slots .small { margin: .3rem 0 0; font-size: .8rem; }
  .part { margin: .45rem 0 .25rem; font-size: .8rem; }
  .part.first { margin-top: .45rem; }
  .pills-t { grid-template-columns: repeat(6, 1fr); gap: .3rem; }
  .tpill { min-height: 32px; font-size: .8rem; }
}

/* кнопки дій стовпчиком, однакової ширини */
.btn-col { display: flex; flex-direction: column; gap: .6rem; margin-top: 1rem; }
.btn-col form { margin: 0; }
.btn-col .btn { width: 100%; margin: 0; }

/* вибір робочих днів */
.pills-t.days { grid-template-columns: repeat(7, 1fr); gap: .3rem; }
.daypick { position: relative; cursor: pointer; min-height: 44px; }
.daypick input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; cursor: pointer; }
.daypick:has(input:checked) { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 650; }
.daypick:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 520px) { .daypick { min-height: 40px; font-size: .9rem; } }

/* реєстрація: послуга = назва на всю ширину, нижче хвилини й ціна поруч */
.reg-svc { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.reg-svc:last-of-type { border-bottom: 0; padding-bottom: 0; }
.reg-svc .name { grid-column: 1 / -1; }
.card .actions .btn + .btn { margin-left: 0; }
.time2 { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }

/* каталог */
.finder { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 .8rem; }
.finder input[type=search] { flex: 1 1 12rem; width: auto; }
.finder select { flex: 0 1 12rem; width: auto; min-height: 48px; }
.mgrid { display: grid; gap: .8rem; grid-template-columns: 1fr; margin-top: .4rem; }
@media (min-width: 640px) { .mgrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .mgrid { grid-template-columns: repeat(3, 1fr); } }
.mcard { display: flex; flex-direction: column; gap: .5rem; margin: 0; color: var(--ink); }
.mcard:hover { text-decoration: none; border-color: var(--accent); }
.mhead { display: flex; align-items: center; gap: .7rem; }
.mhead .grow { display: flex; flex-direction: column; min-width: 0; }
.mname { font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.mbio { margin: 0; color: var(--muted); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.msoon { margin-top: auto; padding-top: .2rem; }
.card.cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-top: 1.6rem; }
.card.cta h2 { margin-top: 0; }
.card.cta p { margin: .3rem 0 0; }
.card.cta .actions { margin-top: 0; padding-top: 0; }
@media (max-width: 520px) { .finder select, .finder .btn { flex: 1 1 100%; } }
.mhead .avatar { width: 2.8rem; height: 2.8rem; font-size: 1.2rem; }
.cats { grid-template-columns: repeat(auto-fill, minmax(7.2rem, 1fr)); }
.cats .daypick { padding: 0 .4rem; text-align: center; }
.check { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.check input { width: 22px; height: 22px; min-height: 0; flex: none; }
@media (min-width: 760px) { .pills { flex-wrap: wrap; overflow: visible; } }

/* --- картка майстра --- */
.wrap.profilepage { max-width: 720px; }
.gal { position: relative; margin: .6rem -1rem 0; }
@media (min-width: 760px) { .gal { margin: .6rem 0 0; } }
.gal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: .5rem; padding: 0 1rem; -webkit-overflow-scrolling: touch; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-track img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); scroll-snap-align: center; background: var(--line); }
@media (min-width: 760px) { .gal-track { padding: 0; } .gal-track img { aspect-ratio: 16 / 10; } }
.gal-count { position: absolute; right: 1.6rem; bottom: .7rem; background: rgb(0 0 0 / .55); color: #fff; font-size: .8rem; padding: .15rem .6rem; border-radius: 99px; }
.cover-empty { height: 9rem; margin-top: .8rem; border-radius: var(--radius); display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #f6b26b)); color: var(--accent-ink); }
.cover-empty span { font: 700 3.6rem var(--serif); opacity: .9; }
.mtitle { margin: 1.1rem 0 .6rem; }
.mtitle h1 { margin: 0 0 .5rem; font-size: 1.7rem; line-height: 1.2; }
.mtitle .tag { text-decoration: none; }
.info { list-style: none; margin: .2rem 0 1rem; padding: 0; display: flex; flex-direction: column; gap: .15rem; }
.info li { display: flex; align-items: flex-start; gap: .8rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.info li:last-child { border-bottom: 0; }
.info svg { width: 22px; height: 22px; flex: none; margin-top: .1rem; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.info summary { cursor: pointer; list-style: none; }
.info summary::-webkit-details-marker { display: none; }
.info details { flex: 1; min-width: 0; }
.info .reveal summary u { margin-left: .4rem; color: var(--accent); }
.info .reveal[open] summary { display: none; }
.info .reveal a { font-weight: 650; }
.hours summary::after { content: "▾"; margin-left: .5rem; color: var(--muted); }
.hours[open] summary::after { content: "▴"; }
.hours table { margin-top: .4rem; border-collapse: collapse; width: 100%; font-size: .95rem; }
.hours td { padding: .25rem 0; }
.hours td:last-child { text-align: right; }
.hours tr.today { font-weight: 650; }
.mcta { display: flex; gap: .6rem; margin: .4rem 0 1.4rem; }
.mcta .btn.grow { flex: 1; }
.mcta #share { padding: 0; width: 52px; flex: none; }
.mcta #share svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mcta #share.done { border-color: var(--ok); color: var(--ok); }
h2.sec { margin: 1.6rem 0 .7rem; font-size: 1.25rem; scroll-margin-top: 4.5rem; }
.about { white-space: pre-line; margin: 0; }
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.works a { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--line); }
.works img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.works a:hover img { transform: scale(1.04); }
.lb { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lb::backdrop { background: rgb(0 0 0 / .85); }
.lb img { max-width: 96vw; max-height: 92vh; border-radius: 12px; display: block; }
.lb-x { position: absolute; top: .4rem; right: .4rem; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgb(0 0 0 / .6); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.more { margin-top: 1.6rem; }
.fab { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 20; box-shadow: 0 8px 24px rgb(0 0 0 / .35); border-radius: 99px; padding: 0 1.4rem; transition: opacity .2s, transform .2s; }
.fab.hide { opacity: 0; transform: translateY(12px); pointer-events: none; }
@media (min-width: 760px) { .fab { display: none; } }
/* каталог: обкладинка в картці */
.mcard { overflow: hidden; }
.mcover { display: block; width: calc(100% + 2.2rem); max-width: none; aspect-ratio: 16 / 10; object-fit: cover; margin: -1.1rem -1.1rem .3rem; background: var(--line); }
/* кабінет: фото */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .8rem; margin-top: 1rem; }
.pitem { margin: 0; position: relative; display: flex; flex-direction: column; gap: .4rem; }
.pitem img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--line); }
.pcover { position: absolute; top: .4rem; left: .4rem; }
.pacts { display: flex; flex-direction: column; gap: .3rem; }
.pacts form { margin: 0; } .pacts .btn { width: 100%; }

/* вибір населеного пункту */
.cbox{position:relative}
.cbox-list{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:30;margin:0;padding:4px;list-style:none;background:var(--surface);
  border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.14);max-height:min(320px,50vh);overflow:auto}
.cbox-list li{display:flex;flex-direction:column;gap:1px;padding:9px 10px;border-radius:8px;cursor:pointer}
.cbox-list li.on,.cbox-list li:hover{background:var(--accent-soft)}
.cbox-list .cn{font-weight:600}
.cbox-list .cn b{color:var(--accent)}
.cbox-list .cs{font-weight:400;font-size:.8rem;color:var(--muted)}
.cbox-list li.cbox-empty{cursor:default;color:var(--muted);font-size:.9rem}
.cbox-list li.cbox-empty:hover{background:none}

/* адмінка */
.astats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.7rem;margin:.6rem 0 1rem}
.stat{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:.8rem 1rem;display:flex;flex-direction:column;gap:.1rem;box-shadow:var(--shadow)}
.stat b{font-family:var(--serif);font-size:1.7rem;line-height:1.1}
.stat span{color:var(--ink)} .stat small{color:var(--muted)}
.alist{padding:0;overflow:hidden}
.arow{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;column-gap:.8rem;row-gap:.4rem;padding:.8rem 1rem;border-bottom:1px solid var(--line);color:inherit}
.arow:last-child{border-bottom:0}
a.arow,a.arow:hover{text-decoration:none}
a.arow:hover{background:var(--accent-soft)}
.arow .ainfo{min-width:0;overflow-wrap:anywhere;line-height:1.35}
.arow .ainfo .muted.small{display:block;margin-top:.15rem}
.arow .nowrap{white-space:nowrap;align-self:center}
.arow .actions{display:flex;flex-wrap:nowrap;gap:.5rem;width:100%}
.arow .actions .btn{flex:1 1 0;justify-content:center;text-align:center}
@media (min-width:640px){.arow .actions{width:auto}.arow .actions .btn{flex:none}}
.arow .tag{white-space:nowrap;align-self:start;margin-top:.1rem}
.arow .actions{margin:0;grid-column:1 / -1;justify-self:start}
@media (min-width:640px){.arow .actions{grid-column:auto}}
.who a,.who button{white-space:nowrap}
@media (max-width:520px){.who{gap:.7rem;font-size:.9rem}.bar{gap:.6rem}}
.kv{display:grid;grid-template-columns:max-content 1fr;gap:.45rem 1.2rem;margin:0}
.kv dt{color:var(--muted)} .kv dd{margin:0;overflow-wrap:anywhere}

/* SEO-блоки: хлібні крихти, текст, FAQ, перелінкування */
.crumbs{display:flex;flex-wrap:wrap;gap:.3rem .5rem;align-items:center;font-size:.85rem;color:var(--muted);margin:.2rem 0 .6rem}
.crumbs a{color:var(--muted)} .crumbs a:hover{color:var(--accent)}
.seo-text{margin:1.6rem 0}
.seo-text h2{font-size:1.15rem}
.seo-text p{color:var(--ink);line-height:1.55;margin:.3rem 0}
.faq details{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:.7rem 1rem;margin:.5rem 0}
.faq summary{cursor:pointer;font-weight:650}
.seo-links{margin:1.6rem 0}
.seo-links h2{font-size:1rem;color:var(--muted);font-weight:650;margin:.8rem 0 .3rem}
.seo-links p{display:flex;flex-wrap:wrap;gap:.4rem .5rem;margin:0}
.seo-links a{padding:.25rem .7rem;border:1px solid var(--line);border-radius:99px;color:var(--ink);font-size:.9rem;background:var(--surface)}
.seo-links a:hover{border-color:var(--accent);color:var(--accent);text-decoration:none}

/* просування */
.copyrow{display:flex;gap:.5rem;flex-wrap:wrap;margin:.6rem 0 1rem}
.copyrow input{flex:1 1 14rem;width:auto}
.qrbox{display:flex;gap:1rem;align-items:center;flex-wrap:wrap}
.qrbox img{background:#fff;border-radius:12px;padding:6px;border:1px solid var(--line)}
.qrbox>div{flex:1 1 14rem}
.promo .field textarea{font:inherit}
.checklist{list-style:none;padding:0;margin:.4rem 0 0;display:grid;gap:.45rem}
.checklist li{display:flex;gap:.6rem;align-items:baseline}
.checklist li.ok{color:var(--muted)} .checklist li.ok span{color:var(--ok)}
