/* Окошко — приложение клиента. Цвета, шрифты и тёмная тема — только из /shared/tokens.css.
   Мобильный в первую очередь (390 px); с 900 px — шапка сверху и центрированная раскладка. */

:root { --on-free: #fff; --star: #f0a21a; --badge: #d92d20; --hdr: 0px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --on-free: #0b1f17; --star: #f5b53d; } }
:root[data-theme="dark"] { --on-free: #0b1f17; --star: #f5b53d; }
@media (min-width: 900px) { :root { --hdr: 64px; } }

html { scroll-padding-top: calc(var(--hdr) + 64px); }
html.no-scroll { overflow: hidden; }
body { min-height: 100dvh; overflow-x: hidden; }
#app { min-height: 100dvh; }

/* ───────── типографика и утилиты ───────── */
.h1 { font-size: 30px; letter-spacing: -.02em; }
.h2 { font-size: 24px; letter-spacing: -.015em; }
.h3 { font-size: 19px; }
.h4 { font-size: 16px; }
.muted { color: var(--muted); }
.sm { font-size: var(--fs-sm); }
.block { display: block; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grow { flex: 1 1 auto; }
.min0 { min-width: 0; }
.row { display: flex; align-items: center; }
.gap8 { gap: 8px; } .gap12 { gap: 12px; }
.center { text-align: center; justify-content: center; }
.center-col { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.stack { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.ok-t { color: var(--free-ink); }
.danger-t { color: var(--danger); }
.err { color: var(--danger); font-size: 14px; }
.link { color: var(--primary); background: none; border: 0; padding: 0; font-weight: 600; cursor: pointer; min-height: 32px; }
.link:disabled { color: var(--muted); cursor: default; }
.dot { color: var(--faint); }
.hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.d-only, .d-inline { display: none !important; }
.m-only { display: flex; }
@media (min-width: 900px) { .d-only { display: inline-flex !important; } .d-inline { display: inline !important; } .m-only { display: none !important; } }

.skip { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--surface); padding: 10px 14px; border-radius: 10px; box-shadow: var(--sh-2); }
.skip:focus { left: 12px; }

/* ───────── раскладка ───────── */
.main { padding-bottom: calc(78px + env(safe-area-inset-bottom)); outline: none; }
.app.bare .main, .app.widget .main { padding-bottom: 0; }
.pad { padding-inline: 16px; max-width: 1200px; margin-inline: auto; }
.narrow { max-width: 720px; }
@media (min-width: 900px) {
  .pad { padding-inline: 32px; }
  .main { padding-bottom: 56px; }
  .narrow { max-width: 760px; }
}
.route { animation: page-in .26s var(--ease) both; }
/* появление (кривые и кадры Brain Motion) */
.in-up { animation: bm-fade-up var(--bm-slow, .42s) var(--bm-ease-out, var(--ease)) var(--d, 0ms) both; }
.in-pop { animation: bm-pop .6s var(--bm-ease, var(--ease)) var(--d, 0ms) both; }
@keyframes page-in { from { opacity: 0; } }

/* шапка ПК */
.hdr { display: none; }
@media (min-width: 900px) {
  .hdr { display: block; position: sticky; top: 0; z-index: 50; height: 64px; background: color-mix(in oklab, var(--bg) 86%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
  .hdr-in { max-width: 1200px; margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 28px; padding: 0 32px; }
  .hdr-nav { display: flex; gap: 2px; }
  .hdr-a { padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; text-decoration: none !important; }
  .hdr-a:hover { background: var(--surface-2); }
  .hdr-a.on { color: var(--ink); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--brand); }
  .hdr-r { margin-left: auto; display: flex; align-items: center; gap: 4px; }
  .hdr-biz { color: var(--muted); font-weight: 600; margin-right: 10px; font-size: 14px; }
  .hdr-me { border-radius: 50%; margin-left: 6px; display: block; }
}
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 800; font-size: 19px; letter-spacing: -.02em; text-decoration: none !important; }
.logo-ink { fill: var(--ink); }

/* нижнее меню телефона */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 4px 4px env(safe-area-inset-bottom); background: color-mix(in oklab, var(--surface) 92%, transparent);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; color: var(--muted); font-size: 11px; font-weight: 600; text-decoration: none !important; border-radius: 14px; }
.tab-ic { position: relative; display: grid; place-items: center; width: 52px; height: 30px; border-radius: 15px; transition: background var(--t) var(--ease); }
.tab.on { color: var(--primary); }
.tab.on .tab-ic { background: var(--primary-soft); }
.tab:active .tab-ic { transform: scale(.92); }
@media (min-width: 900px) { .tabbar { display: none; } }

/* заголовок страницы */
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 4px; min-height: 56px;
  padding: calc(4px + env(safe-area-inset-top)) 8px 4px; background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.tb-title { flex: 1; min-width: 0; padding-inline: 4px; }
.tb-title h1 { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-title p { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-gap { width: 8px; flex: none; }
.tb-gap + .tb-title h1 { font-size: 26px; letter-spacing: -.02em; }
.tb-act { display: flex; gap: 2px; }
@media (min-width: 900px) {
  .topbar { position: static; max-width: 1200px; margin: 0 auto; padding: 22px 24px 6px; background: none; backdrop-filter: none; }
  .page:has(.narrow) > .topbar { max-width: 776px; }
  .tb-title h1 { font-size: 28px; letter-spacing: -.02em; }
  .tb-gap + .tb-title h1 { font-size: 30px; }
}

.offline { position: sticky; top: 0; z-index: 60; display: flex; gap: 8px; align-items: center; justify-content: center; padding: 6px 12px; background: var(--ink); color: var(--bg); font-size: 13px; }

/* ───────── кнопки ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 14px;
  border: 1px solid transparent; font-weight: 650; font-size: 15px; line-height: 1.1; text-decoration: none !important; white-space: nowrap;
  cursor: pointer; transition: background var(--t) var(--ease), box-shadow var(--t) var(--ease), transform var(--t-fast) var(--ease); }
.btn > span { overflow: hidden; text-overflow: ellipsis; }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 8px 18px -10px color-mix(in oklab, var(--primary) 80%, transparent); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-soft { background: var(--primary-soft); color: var(--primary-soft-ink); }
.btn-soft:hover { background: color-mix(in oklab, var(--primary-soft) 80%, var(--brand) 12%); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-outline { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { background: var(--surface-2); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-ghost-danger { background: transparent; color: var(--danger); border-color: var(--line); }
.btn-ghost-danger:hover { background: var(--danger-soft); }
.btn-sm { min-height: 38px; padding: 0 13px; font-size: 14px; border-radius: 11px; }
.btn-lg { min-height: 54px; padding: 0 22px; font-size: 16px; border-radius: 16px; }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn.is-loading > span:not(.spin) { opacity: .8; }
.spin { display: inline-block; width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ok-spin .7s linear infinite; flex: none; }
@keyframes ok-spin { to { transform: rotate(360deg); } }
.row-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }

.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-2); flex: none; text-decoration: none !important; transition: background var(--t) var(--ease); }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn.glass { background: rgba(255,255,255,.9); color: #1c1917; backdrop-filter: blur(8px); box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.badge { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--badge); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.badge.dot { min-width: 0; width: 10px; height: 10px; padding: 0; top: 1px; right: 10px; border: 2px solid var(--surface); }
.badge.in { position: static; margin-right: 4px; }

/* ───────── скелетоны и картинки ───────── */
.sk { display: block; border-radius: 10px; background: linear-gradient(100deg, var(--surface-2) 40%, var(--surface-3) 50%, var(--surface-2) 60%) 0 0 / 200% 100%; animation: ok-shimmer 1.3s linear infinite; }
@keyframes ok-shimmer { to { background-position: -200% 0; } }
.img { position: relative; overflow: hidden; background: hsl(var(--h, 25) 45% 90%); }
.img img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s var(--ease); }
.img.ok img { opacity: 1; }
.img.ph { display: grid; place-items: center; background: linear-gradient(135deg, hsl(var(--h) 55% 86%), hsl(calc(var(--h) + 30) 50% 78%)); }
.ph-mark { width: 30%; max-width: 64px; opacity: .55; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .img { background: hsl(var(--h, 25) 18% 18%); } :root:not([data-theme="light"]) .img.ph { background: linear-gradient(135deg, hsl(var(--h) 25% 20%), hsl(calc(var(--h) + 30) 25% 14%)); } }
:root[data-theme="dark"] .img { background: hsl(var(--h, 25) 18% 18%); }
:root[data-theme="dark"] .img.ph { background: linear-gradient(135deg, hsl(var(--h) 25% 20%), hsl(calc(var(--h) + 30) 25% 14%)); }

.ava { border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); }
.ava-ph { display: inline-grid; place-items: center; font-weight: 700; color: hsl(var(--h) 45% 30%); background: hsl(var(--h) 60% 90%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ava-ph { color: hsl(var(--h) 60% 80%); background: hsl(var(--h) 30% 22%); } }
:root[data-theme="dark"] .ava-ph { color: hsl(var(--h) 60% 80%); background: hsl(var(--h) 30% 22%); }

/* ───────── рейтинг ───────── */
.rating { display: inline-flex; align-items: center; gap: 3px; font-size: 14px; color: var(--ink); white-space: nowrap; }
.rating.sm { font-size: 13px; }
.rating-star, .star-c { color: var(--star); }
.rating-n { color: var(--muted); font-weight: 400; }
.rating-new { font-size: 12px; font-weight: 650; color: var(--info); background: var(--info-soft); padding: 2px 8px; border-radius: 999px; }
.stars { position: relative; display: inline-block; font-size: var(--s); line-height: 1; letter-spacing: 1px; white-space: nowrap; }
.stars-bg { color: var(--surface-3); }
.stars-fg { position: absolute; inset: 0; width: var(--v); overflow: hidden; color: var(--star); }
.star-input { display: flex; gap: 2px; }
.star-btn { border: 0; background: none; color: var(--surface-3); line-height: 1; padding: 2px; min-width: 48px; min-height: 48px; transition: transform var(--t-fast) var(--ease), color var(--t-fast); }
.star-btn.on { color: var(--star); }
.star-btn:active { transform: scale(.88); }

/* ───────── чипы и «окошки» ───────── */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); font-size: 14px; font-weight: 550; color: var(--ink-2); white-space: nowrap; flex: none; text-decoration: none !important; }
.chip:hover { border-color: var(--faint); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip-reset { color: var(--danger); border-style: dashed; }

/* фирменный элемент: свободное время — зелёное «окошко» с арочным верхом */
.slot { position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center; min-width: 58px; height: 38px; padding: 0 11px;
  border-radius: 15px 15px 7px 7px; background: var(--free-soft); color: var(--free-ink); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums;
  border: 1px solid color-mix(in oklab, var(--free) 30%, transparent); text-decoration: none !important; cursor: pointer; transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast); }
.slot:hover { background: color-mix(in oklab, var(--free) 24%, var(--surface)); }
.slot.on { background: var(--free); color: var(--on-free); border-color: var(--free); box-shadow: 0 6px 16px -8px var(--free); }
.slot.big { height: 48px; font-size: 16px; border-radius: 18px 18px 9px 9px; }
.slotrow { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.slotrow-day { font-size: 12px; font-weight: 700; color: var(--free-ink); }
.slotrow-list { display: flex; gap: 6px; flex-wrap: wrap; }
.slotrow.none { flex-direction: row; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }

.tag { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.tag.ok { background: var(--ok-soft); color: var(--free-ink); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.danger { background: var(--danger-soft); color: var(--danger); }
.tag.info { background: var(--info-soft); color: var(--info); }

/* ───────── формы ───────── */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.field-l { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.field-h { font-size: 12px; color: var(--muted); }
.field-err { font-size: 13px; color: var(--danger); }
.input { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 16px; color: var(--ink); transition: border-color var(--t), box-shadow var(--t); }
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
textarea.input { resize: vertical; min-height: 72px; line-height: 1.4; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.has-err .input { border-color: var(--danger); }
.checkline { display: flex; gap: 10px; align-items: center; font-size: 14px; min-height: 44px; cursor: pointer; }
.checkline input { width: 20px; height: 20px; accent-color: var(--primary); margin: 0; flex: none; }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; transition: border var(--t-fast); }
.radio.on { border: 6px solid var(--primary); }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 13px; padding: 3px; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg-i { min-height: 38px; padding: 0 14px; border: 0; background: transparent; border-radius: 10px; font-weight: 650; color: var(--muted); white-space: nowrap; font-size: 14px; }
.seg-i.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.seg-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-size: 11px; margin-left: 4px; }
.switch { position: relative; width: 52px; height: 32px; border-radius: 999px; border: 0; background: var(--surface-3); flex: none; transition: background var(--t); }
.switch i { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform var(--t) var(--ease); }
.switch.on { background: var(--free); }
.switch.on i { transform: translateX(20px); }
.switch:disabled { opacity: .5; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--info-soft); color: var(--ink); font-size: 14px; margin: 10px 0; }
.notice > .ic { margin-top: 1px; }
.notice.warn { background: var(--warn-soft); }
.notice.err { background: var(--danger-soft); }

/* ───────── листы ───────── */
.sheet-wrap { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(24, 16, 10, .48); animation: ok-fade .2s var(--ease); }
.sheet { position: relative; width: 100%; max-height: 92dvh; background: var(--surface); border-radius: 24px 24px 0 0; display: flex; flex-direction: column;
  box-shadow: var(--sh-3); animation: ok-up .34s var(--bm-ease-out, var(--ease)); padding-bottom: env(safe-area-inset-bottom); outline: none; }
.sheet-grip { width: 40px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: 8px auto 0; flex: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 2px 20px; }
.sheet-head h2 { font-size: 19px; }
.sheet-x { position: absolute; top: 8px; right: 8px; z-index: 2; }
.sheet-body { padding: 8px 20px 20px; overflow: auto; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.sheet-foot { padding: 12px 20px; border-top: 1px solid var(--line); }
@keyframes ok-fade { from { opacity: 0; } }
@keyframes ok-up { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 700px) {
  .sheet-wrap { align-items: center; padding: 24px; }
  .sheet { max-width: 480px; border-radius: 24px; max-height: 86vh; animation-name: ok-pop; }
  .sheet.wide { max-width: 880px; }
  .sheet-grip { display: none; }
  .sheet-head { padding-top: 14px; }
}
@keyframes ok-pop { from { transform: scale(.96) translateY(8px); opacity: 0; } }

.list { display: flex; flex-direction: column; }
.row-i { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 4px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; width: 100%; color: var(--ink); text-decoration: none !important; font-size: 15px; }
.row-i:last-child { border-bottom: 0; }
.row-i.on { color: var(--primary); font-weight: 650; }
.ok-ic { color: var(--primary); }

/* ───────── карточка места ───────── */
.pcard { position: relative; background: var(--surface); border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-1); min-width: 0; }
.pcard-v .pcard-cover { position: relative; aspect-ratio: 16 / 10; }
.pcard-cover .img { position: absolute; inset: 0; }
.pcard-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pcard-name { font-size: 17px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.pcard-name a { color: var(--ink); text-decoration: none !important; }
.pcard-name a:focus-visible { box-shadow: none; }
.pcard:has(.stretch:focus-visible) { box-shadow: var(--ring); }
a.stretch::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.pcard-meta { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); min-width: 0; }
.pcard-meta > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pcard-open { font-size: 13px; display: flex; align-items: center; gap: 5px; }
.pcard-open .od { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.pcard-open.is-open { color: var(--free-ink); }
.pcard-open.is-open .od { background: var(--free); box-shadow: 0 0 0 3px var(--free-soft); }
.pcard-open.is-closed { color: var(--muted); }
.pcard.mini .pcard-body { gap: 3px; }
.fav { position: absolute; z-index: 2; top: 10px; right: 10px; width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(0,0,0,.12); color: #1c1917; }
.fav svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; transition: transform var(--t) var(--bm-back, var(--ease)); }
.fav.on svg { fill: #e8552b; stroke: #e8552b; transform: scale(1.08); }
.fav-inline { position: relative; top: auto; right: auto; width: 40px; height: 40px; background: var(--surface-2); box-shadow: none; color: var(--ink-2); flex: none; margin: -6px -6px 0 0; }
.promo { position: absolute; z-index: 2; left: 10px; bottom: 10px; max-width: calc(100% - 20px); display: inline-flex; align-items: center; gap: 4px;
  background: var(--primary); color: var(--on-primary); font-size: 12px; font-weight: 700; padding: 4px 10px 4px 7px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo-dot { position: absolute; left: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; }
.pcard-h { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 12px; }
.pcard-h .pcard-cover { position: relative; border-radius: 14px; overflow: hidden; height: 104px; }
.pcard-h .pcard-body { padding: 0; }
.pcard-top { display: flex; align-items: flex-start; gap: 6px; }
.pcard-top .pcard-name { flex: 1; min-width: 0; }
.pcard-h .slotrow { margin-top: 4px; }
.pcard-h .slot { min-width: 0; padding: 0 9px; height: 34px; font-size: 13.5px; border-radius: 13px 13px 6px 6px; }
.pcard-h .slotrow-list { flex-wrap: nowrap; overflow: hidden; }
.pcard-v .slot { min-width: 0; padding: 0 9px; height: 34px; font-size: 13.5px; border-radius: 13px 13px 6px 6px; }
.pcard-v .slotrow-list { flex-wrap: nowrap; overflow: hidden; }
.sk-card { pointer-events: none; }
.sk-card .pcard-body { gap: 8px; }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(80%, 300px); gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin-inline: -16px; padding: 4px 16px 14px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.cgrid, .results { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 620px) { .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .rail { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0 0 4px; gap: 18px; }
  .rail > :nth-child(n+7) { display: none; }
  .cgrid, .results { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}
@media (min-width: 1180px) {
  .rail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rail > :nth-child(n+7) { display: block; }
  .rail > :nth-child(n+9) { display: none; }
  .cgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ───────── главная ───────── */
.home-hero { position: relative; overflow: hidden; padding-top: env(safe-area-inset-top); }
.hero-bg { position: absolute; inset: 0; background:
  radial-gradient(110% 80% at 100% -20%, color-mix(in oklab, var(--brand) 30%, transparent), transparent 62%),
  radial-gradient(70% 60% at -10% -10%, color-mix(in oklab, #ffb45c 26%, transparent), transparent 60%), var(--bg); }
.hero-in { position: relative; padding-top: 10px; padding-bottom: 14px; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; }
.hero-icons { gap: 2px; }
.hero-h { font-size: 29px; letter-spacing: -.025em; line-height: 1.1; margin-top: 10px; max-width: 640px; }
.hl { color: var(--primary); position: relative; white-space: nowrap; }
.hl::after { content: ''; position: absolute; left: 0; right: 0; bottom: .02em; height: .18em; border-radius: 4px; background: color-mix(in oklab, var(--free) 35%, transparent); z-index: -1; }
.hero-sub { color: var(--ink-2); margin: 8px 0 16px; max-width: 520px; font-size: 15px; }
.hero-ex { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 12px -16px 0; padding: 0 16px 2px; }
.ex { flex: none; font-size: 13px; padding: 7px 12px; border-radius: 999px; background: color-mix(in oklab, var(--surface) 70%, transparent); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none !important; min-height: 34px; display: inline-flex; align-items: center; }
.ex::before { content: '«'; color: var(--faint); } .ex::after { content: '»'; color: var(--faint); }
.hero-art { display: none; }
@media (min-width: 900px) {
  .hero-in { padding-top: 40px; padding-bottom: 44px; min-height: 380px; }
  .hero-top { position: absolute; top: 18px; left: 32px; }
  .hero-h { font-size: 48px; margin-top: 30px; max-width: 620px; }
  .hero-sub { font-size: 17px; margin: 12px 0 22px; }
  .home-hero .smart { max-width: 620px; }
  .hero-ex { margin: 14px 0 0; padding: 0; flex-wrap: wrap; max-width: 620px; }
  .hero-art { display: block; position: absolute; right: max(32px, calc((100vw - 1200px) / 2 + 40px)); top: 36px; width: 300px; height: 330px; }
}
.hero-art svg { width: 100%; height: 100%; overflow: visible; }
.hero-art .pane { fill: color-mix(in oklab, var(--ink) 9%, transparent); }
.hero-art .pane-on { fill: var(--brand); filter: drop-shadow(0 18px 40px color-mix(in oklab, var(--brand) 55%, transparent)); }
.hero-art .slot { position: absolute; box-shadow: var(--sh-2); background: var(--surface); }
.hero-art .s1 { left: -34px; top: 186px; } .hero-art .s2 { right: -20px; top: 84px; } .hero-art .s3 { left: 120px; bottom: -6px; }
.hero-art .s1, .hero-art .s2, .hero-art .s3 { animation: bm-float 4s var(--bm-ease-in-out, ease-in-out) infinite; }
.hero-art .s2 { animation-delay: -1.3s; } .hero-art .s3 { animation-delay: -2.6s; }

.smart { position: relative; display: flex; align-items: center; gap: 4px; height: 54px; padding: 0 5px 0 14px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 10px 30px -18px rgba(60, 30, 10, .45); transition: box-shadow var(--t), border-color var(--t); }
.smart:focus-within { border-color: var(--brand); box-shadow: var(--ring), 0 10px 30px -18px rgba(60, 30, 10, .45); }
.smart.big { height: 58px; }
.smart-ic { color: var(--muted); }
.smart-in { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: 16px; outline: none; padding: 0 6px; }
.smart-in::placeholder { color: var(--faint); }
.smart-in::-webkit-search-cancel-button { display: none; }
.smart-x { width: 40px; height: 40px; border: 0; background: none; color: var(--muted); border-radius: 50%; display: grid; place-items: center; }
.smart-go { width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; flex: none; }
.smart-go:hover { background: var(--primary-hover); }

.city-btn { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line);
  background: color-mix(in oklab, var(--surface) 80%, transparent); font-weight: 650; font-size: 14px; color: var(--ink); }
.city-btn.sm { min-height: 34px; font-size: 13px; padding: 0 10px; }
.city-list .row-i { padding-inline: 8px; }

.cats { display: grid; grid-auto-flow: column; grid-auto-columns: 74px; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 4px -16px 0; padding: 6px 16px 4px; }
.cats::-webkit-scrollbar { display: none; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none !important; color: var(--ink-2); padding: 4px 0; min-width: 0; }
.cat-ic { width: 58px; height: 58px; border-radius: 19px; display: grid; place-items: center; background: hsl(var(--ch, 25) 75% 94%); color: hsl(var(--ch, 25) 55% 30%); transition: transform var(--t) var(--bm-back, var(--ease)); }
.cat:hover .cat-ic { transform: translateY(-2px) rotate(-3deg); }
.cat-t { font-size: 12px; font-weight: 600; text-align: center; line-height: 1.15; overflow-wrap: anywhere; hyphens: manual; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 900px) {
  .cats { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); overflow: visible; margin: 18px 0 0; padding: 0; gap: 6px; }
  .cat { padding: 12px 6px; border-radius: 18px; }
  .cat:hover { background: var(--surface); }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cat-ic { background: hsl(var(--ch, 25) 30% 17%); color: hsl(var(--ch, 25) 70% 78%); } }
:root[data-theme="dark"] .cat-ic { background: hsl(var(--ch, 25) 30% 17%); color: hsl(var(--ch, 25) 70% 78%); }
.c-barber { --ch: 25; } .c-hair { --ch: 345; } .c-nails { --ch: 310; } .c-brows { --ch: 32; } .c-cosmetology { --ch: 160; } .c-massage { --ch: 15; }
.c-spa { --ch: 180; } .c-makeup { --ch: 330; } .c-epilation { --ch: 45; } .c-tattoo { --ch: 0; } .c-fitness { --ch: 212; } .c-dance { --ch: 270; }
.c-medicine { --ch: 195; } .c-dental { --ch: 205; } .c-vet { --ch: 120; } .c-grooming { --ch: 38; } .c-auto { --ch: 225; } .c-education { --ch: 250; }
.c-photo { --ch: 285; } .c-sauna { --ch: 12; } .c-services { --ch: 190; } .c-other { --ch: 30; }

.sec { margin-top: 28px; }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sec-h h2 { font-size: 21px; letter-spacing: -.015em; }
.sec-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.sec-more { display: inline-flex; align-items: center; gap: 2px; min-height: 40px; font-weight: 650; font-size: 14px; white-space: nowrap; }
.pad-y { padding: 8px 0; }
@media (min-width: 900px) { .sec { margin-top: 44px; } .sec-h h2 { font-size: 26px; } }

.near-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px dashed var(--line-strong); margin-top: 24px; }
.near-cta .grow { flex: 1 1 180px; }
.near-art { width: 48px; height: 48px; border-radius: 14px; background: var(--info-soft); color: var(--info); display: grid; place-items: center; flex: none; }
.promo-card { position: relative; display: block; height: 156px; border-radius: 20px; overflow: hidden; color: #fff; text-decoration: none !important; }
.promo-card .img { position: absolute; inset: 0; }
.promo-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 15%, rgba(20,10,5,.78)); }
.promo-card-in { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; display: flex; flex-direction: column; gap: 3px; }
.promo-card-t { align-self: flex-start; background: var(--primary); color: var(--on-primary); padding: 3px 10px 3px 7px; border-radius: 999px; font-size: 12px; font-weight: 700; display: inline-flex; gap: 4px; align-items: center; margin-bottom: 4px; }
.vcard { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.vcard-f { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.biz-banner { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 36px 0 10px; padding: 20px; border-radius: 22px;
  background: radial-gradient(120% 140% at 100% 0%, #6b2a12, #1f1712 60%); color: #fff6ef; text-decoration: none !important; }
.biz-banner p { color: #e9d9cc; margin-top: 4px; max-width: 520px; }
.biz-banner .btn-soft { background: #fff2ec; color: #a31c00; }

/* умный поиск */
.understood { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--primary-soft); color: var(--primary-soft-ink); margin: 6px 0 14px; font-size: 15px; }
.understood b { color: var(--ink); }
.alist { display: grid; gap: 12px; }
@media (min-width: 900px) { .alist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.aitem { display: flex; gap: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; min-width: 0; }
.aitem-img { width: 88px; height: 88px; border-radius: 14px; overflow: hidden; flex: none; display: block; }
.aitem-img .img { width: 100%; height: 100%; }
.aitem-name { font-size: 16px; } .aitem-name a { color: var(--ink); }
.aitem-svc { font-size: 14px; margin: 4px 0 6px; }
.aitem .slot { min-width: 0; padding: 0 9px; height: 34px; font-size: 13.5px; border-radius: 13px 13px 6px 6px; }

/* ───────── каталог ───────── */
.search-head { position: sticky; top: var(--hdr); z-index: 30; background: color-mix(in oklab, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: calc(10px + env(safe-area-inset-top)); margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.search-sub { margin: 8px 0 2px; flex-wrap: wrap; }
.sfield { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 6px 0 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--muted); }
.sfield:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.sfield input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 16px; color: var(--ink); }
.sfield input::-webkit-search-cancel-button { display: none; }
.sfield.sm { height: 44px; margin-bottom: 10px; }
.sfield-x { width: 36px; height: 36px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; border-radius: 50%; }
.map-toggle { min-height: 48px; padding: 0 14px; }
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 8px 16px 12px; margin: 0 -16px; }
.filters::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .filters { flex-wrap: wrap; margin: 0; padding: 8px 0 14px; } .search-head { padding-top: 16px; } }
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cat-opt { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-align: left; font-size: 14px; font-weight: 600; color: var(--ink); min-height: 56px; }
.cat-opt .cat-ic { width: 40px; height: 40px; border-radius: 12px; flex: none; }
.cat-opt.on { border-color: var(--primary); background: var(--primary-soft); }
.more-anchor { height: 1px; }

/* ───────── карта ───────── */
.mappage { position: fixed; inset: var(--hdr) 0 0 0; z-index: 10; }
.map-box { position: absolute; inset: 0; background: var(--surface-2); }
.map-top { position: absolute; top: 0; left: 0; right: 0; z-index: 500; padding: calc(10px + env(safe-area-inset-top)) 12px 0; background: linear-gradient(var(--bg) 55%, transparent); pointer-events: none; }
.map-top > * { pointer-events: auto; }
.map-top .filters { margin: 0 -12px; padding: 8px 12px 12px; }
.map-q { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 14px; background: var(--surface); box-shadow: var(--sh-2); color: var(--muted); text-decoration: none !important; min-width: 0; }
.fab-sm { background: var(--surface); box-shadow: var(--sh-2); }
.fab-list { flex: none; min-height: 46px; box-shadow: var(--sh-2); background: var(--surface); color: var(--ink); }
.map-here { position: absolute; top: calc(124px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 500; display: inline-flex; gap: 6px; align-items: center;
  min-height: 42px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--ink); color: var(--bg); font-weight: 650; font-size: 14px; box-shadow: var(--sh-3); animation: ok-up .25s var(--ease); }
.map-locate { position: absolute; right: 12px; bottom: calc(118px + env(safe-area-inset-bottom)); z-index: 500; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--surface); color: var(--info); box-shadow: var(--sh-2); display: grid; place-items: center; }
.map-loading { position: absolute; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 500; display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--surface); box-shadow: var(--sh-2); font-size: 13px; color: var(--ink-2); }
.map-card { position: absolute; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 1100; max-width: 520px; margin: 0 auto; animation: ok-up .3s var(--bm-ease-out, var(--ease)); }
.map-card .pcard { box-shadow: var(--sh-3); }
.map-card-x { position: absolute; top: -14px; right: -6px; z-index: 3; background: var(--surface); box-shadow: var(--sh-2); width: 36px; height: 36px; }
.leaflet-container { font-family: var(--font); background: var(--surface-2); }
@media (pointer: coarse) { .mappage .leaflet-control-zoom { display: none; } }
.mappage.has-card .map-locate { bottom: calc(196px + env(safe-area-inset-bottom)); }
.mappage.has-card .leaflet-bottom { display: none; }
.leaflet-bottom.leaflet-right { margin-bottom: env(safe-area-inset-bottom); }
.leaflet-control-zoom a { width: 40px !important; height: 40px !important; line-height: 38px !important; color: var(--ink) !important; background: var(--surface) !important; border-color: var(--line) !important; }
.leaflet-control-attribution { font-size: 10px; background: color-mix(in oklab, var(--surface) 80%, transparent) !important; color: var(--muted); }
.leaflet-control-attribution a { color: var(--ink-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.86) saturate(.55); } }
:root[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.86) saturate(.55); }
.mk-wrap { background: none; border: 0; }
.mk { position: absolute; left: 50%; bottom: 7px; transform: translateX(-50%); display: flex; align-items: center; gap: 5px; padding: 5px 9px 5px 6px; background: var(--surface); color: var(--ink);
  border-radius: 14px 14px 10px 10px; box-shadow: 0 6px 16px rgba(0,0,0,.26); font: 750 13px/1 var(--font); white-space: nowrap; transition: transform .15s var(--ease); cursor: pointer; }
.mk::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.mk-w { width: 14px; height: 17px; border-radius: 7px 7px 3px 3px; background: var(--brand); flex: none; }
.mk.free .mk-w { background: var(--free); }
.mk i { font-style: normal; font-size: 11px; color: var(--free-ink); background: var(--free-soft); border-radius: 6px; padding: 2px 4px; }
.mk.on { background: var(--ink); color: var(--bg); transform: translateX(-50%) scale(1.14); z-index: 2; }
.mk.solo { padding: 6px; } .mk.solo .mk-w { width: 18px; height: 22px; border-radius: 9px 9px 4px 4px; }

/* ───────── страница места ───────── */
.place { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.gal { position: relative; height: 300px; background: var(--surface-2); }
.gal-strip { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gal-strip::-webkit-scrollbar { display: none; }
.gal-item { flex: 0 0 100%; height: 100%; scroll-snap-align: start; }
.gal-item .img { width: 100%; height: 100%; }
.gal-shade { position: absolute; inset: 0 0 auto 0; height: 96px; background: linear-gradient(rgba(0,0,0,.3), transparent); pointer-events: none; }
.gal-top { position: absolute; top: calc(10px + env(safe-area-inset-top)); left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; z-index: 3; }
.gal-top .fav { position: static; }
.gal-count { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
@media (min-width: 900px) {
  .place { padding-bottom: 40px; }
  .gal { max-width: 1136px; margin: 22px auto 0; height: 400px; border-radius: 26px; overflow: hidden; }
  .gal-item { flex-basis: 66%; padding-right: 6px; }
  .gal-item:only-child { flex-basis: 100%; padding: 0; }
  .gal-shade { display: none; }
  .gal-top .icon-btn:first-child { visibility: hidden; }
}
@media (min-width: 900px) and (max-width: 1200px) { .gal { margin-inline: 32px; } }
.place-grid { display: block; }
@media (min-width: 900px) { .place-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; } }
.phead { padding-top: 16px; }
.phead-top { display: flex; gap: 12px; align-items: center; }
.phead-logo { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; border: 1px solid var(--line); flex: none; }
.phead-cat { color: var(--primary); font-size: 13px; font-weight: 700; }
.phead-name { font-size: 27px; letter-spacing: -.025em; }
.phead-desc { color: var(--ink-2); margin-top: 8px; }
.phead-rows { margin-top: 10px; }
.prow { display: flex; align-items: center; gap: 10px; min-height: 50px; width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; color: var(--ink); padding: 8px 0; text-decoration: none !important; font-size: 15px; }
.prow-go { color: var(--faint); margin-left: auto; }
.hours { width: 100%; font-size: 14px; margin: 4px 0 10px; border-collapse: collapse; }
.hours th { text-align: left; font-weight: 400; color: var(--muted); padding: 5px 0; }
.hours th::first-letter { text-transform: uppercase; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.today th, .hours tr.today td { font-weight: 700; color: var(--ink); }
.qacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 16px 0 6px; }
.qact { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; color: var(--ink-2); background: transparent; border: 0; padding: 4px 0; text-decoration: none !important; min-height: 72px; }
.qact-ic { width: 46px; height: 46px; border-radius: 15px; background: var(--primary-soft); color: var(--primary-soft-ink); display: grid; place-items: center; transition: transform var(--t-fast) var(--ease); }
.qact:active .qact-ic { transform: scale(.92); }
.ppromos { margin-top: 12px; grid-auto-columns: min(84%, 340px); }
.ppromo { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 18px; background: linear-gradient(120deg, var(--primary-soft), var(--surface)); border: 1px solid color-mix(in oklab, var(--brand) 25%, var(--line)); }
.ppromo-v { flex: none; width: 58px; height: 58px; border-radius: 16px; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-weight: 800; font-size: 16px; }
@media (min-width: 900px) { .ppromos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ptabs { position: sticky; top: var(--hdr); z-index: 20; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; background: color-mix(in oklab, var(--bg) 94%, transparent); backdrop-filter: blur(12px); margin: 16px -16px 0; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.ptabs::-webkit-scrollbar { display: none; }
.ptab { padding: 0 14px; border-radius: 999px; font-weight: 650; font-size: 14px; color: var(--muted); white-space: nowrap; text-decoration: none !important; min-height: 38px; display: inline-flex; align-items: center; }
.ptab.on { background: var(--ink); color: var(--bg); }
@media (min-width: 900px) { .ptabs { margin-inline: 0; padding-inline: 0; } }
.psec { padding-top: 26px; scroll-margin-top: calc(var(--hdr) + 60px); }
.psec-h h2 { font-size: 21px; margin-bottom: 12px; letter-spacing: -.015em; }
.scat { border-bottom: 1px solid var(--line); }
.scat-h { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 52px; border: 0; background: transparent; font-weight: 700; font-size: 16px; text-align: left; color: var(--ink); padding: 0; }
.scat-h span:first-child { flex: 1; }
.slist { display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; }
.svc { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; min-height: 64px; }
.svc:hover { border-color: var(--line-strong); }
.svc-n { display: block; font-size: 15px; }
.svc-d { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc-m { font-size: 13px; color: var(--muted); }
.svc-r { display: flex; align-items: center; gap: 10px; flex: none; }
.svc-p { white-space: nowrap; font-size: 15px; }
.svc-add { width: 34px; height: 34px; border-radius: 11px; background: var(--primary-soft); color: var(--primary-soft-ink); display: grid; place-items: center; }
.svc-img { width: 56px; height: 56px; border-radius: 12px; flex: none; }
.staff-rail { grid-auto-columns: 152px; }
@media (min-width: 900px) { .staff-rail { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } .staff-rail > * { display: flex !important; } }
.mcard { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; text-align: center; min-width: 0; }
.mcard-a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--ink); text-decoration: none !important; width: 100%; min-width: 0; }
.mcard-n { margin-top: 6px; font-size: 15px; line-height: 1.2; }
.sm-slot { height: 32px; font-size: 13px; min-width: 0; padding: 0 10px; }
.glist { display: flex; flex-direction: column; gap: 8px; }
.gev { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.gev-d { width: 64px; flex: none; display: flex; flex-direction: column; align-items: center; padding: 6px 0; border-radius: 12px; background: var(--surface-2); }
.gev-d b { font-size: 17px; }
.gev .sm { display: block; }
.rsum { display: flex; gap: 20px; align-items: center; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 6px; }
.rsum-big { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: none; }
.rsum-big b { font-size: 42px; line-height: 1; letter-spacing: -.03em; }
.rsum-bars { flex: 1; display: flex; flex-direction: column; gap: 5px; font-size: 12px; min-width: 0; }
.rbar { display: grid; grid-template-columns: 10px 1fr 26px; gap: 8px; align-items: center; }
.rbar i { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; display: block; }
.rbar i b { display: block; height: 100%; background: var(--star); border-radius: 3px; }
.review { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.review-h { display: flex; gap: 10px; align-items: center; }
.review-t { white-space: pre-line; }
.review-reply { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin-top: 4px; }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pgrid-i { aspect-ratio: 1; border: 0; padding: 0; border-radius: 14px; overflow: hidden; background: none; }
.pgrid-i .img { width: 100%; height: 100%; }
.lightbox .img { aspect-ratio: 3 / 2; border-radius: 16px; }
.cert { position: relative; overflow: hidden; min-height: 176px; border-radius: 22px; padding: 16px; color: #fff; display: flex; flex-direction: column; gap: 3px;
  background: linear-gradient(140deg, hsl(var(--h, 20) 62% 44%), hsl(calc(var(--h, 20) + 35) 55% 26%)); }
.cert::after { content: ''; position: absolute; right: -30px; top: -20px; width: 130px; height: 160px; border-radius: 65px 65px 0 0; border: 14px solid rgba(255,255,255,.12); }
.cert.abo { --h: 160; }
.cert-k { font-size: 12px; font-weight: 700; opacity: .9; }
.cert-v { font-size: 30px; letter-spacing: -.02em; }
.cert-f { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; position: relative; z-index: 1; }
.cert .btn-soft { background: rgba(255,255,255,.95); color: #1c1917; }
.cert-code { font: 700 22px/1.2 ui-monospace, 'SFMono-Regular', Consolas, monospace; letter-spacing: .08em; padding: 10px 16px; border-radius: 12px; background: var(--surface-2); }
.qr { width: 220px; max-width: 70vw; background: #fff; padding: 8px; border-radius: 16px; }
.qr svg { width: 100%; height: auto; }
.buy-sum { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.ok-badge { width: 64px; height: 64px; border-radius: 22px; background: var(--free-soft); color: var(--free-ink); display: grid; place-items: center; }
.about-d { white-space: pre-line; color: var(--ink-2); }
.amen { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.amen-i { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; padding: 7px 11px; border-radius: 11px; background: var(--surface-2); }
.minimap { display: block; width: 100%; border: 0; padding: 0; border-radius: 18px; overflow: hidden; margin: 12px 0; background: var(--surface-2); cursor: pointer; }
.minimap-in { width: 100%; height: 100%; pointer-events: none; }
.about-list .row-i { padding-inline: 0; }
.soc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chain { margin-top: 18px; }
.about-biz { margin-top: 24px; }
.cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; gap: 12px; align-items: center; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in oklab, var(--surface) 94%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.cta-bar .btn { flex: none; min-width: 168px; }
.cta-hint { flex: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.bookcard { position: sticky; top: calc(var(--hdr) + 24px); margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--sh-2); }
.bookcard-i { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.bookcard-i .ic { margin-top: 2px; color: var(--muted); }
.staff-hero { padding: 16px 0 8px; gap: 8px; }
.staff-bio { color: var(--ink-2); max-width: 520px; white-space: pre-line; }

/* ───────── запись ───────── */
.book .pad { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
.bhead { position: sticky; top: var(--hdr); z-index: 40; background: color-mix(in oklab, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); padding: calc(6px + env(safe-area-inset-top)) 8px 10px; }
.app.widget .bhead { top: 0; }
.bhead-row { display: flex; align-items: center; gap: 4px; max-width: 1200px; margin: 0 auto; min-height: 48px; }
.bhead-t { flex: 1; }
.steps { display: flex; gap: 6px; list-style: none; padding: 0 8px; margin: 6px auto 0; max-width: 1200px; }
.steps li { flex: 1; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; color: var(--muted); position: relative; padding-bottom: 6px; }
.steps li::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--surface-3); }
.steps li.on::after, .steps li.done::after { background: var(--primary); }
.steps li.done::after { background: var(--free); }
.steps li span { width: 20px; height: 20px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 11px; flex: none; }
.steps li.on { color: var(--ink); } .steps li.on span { background: var(--primary); color: var(--on-primary); }
.steps li.done span { background: var(--free-soft); color: var(--free-ink); }
@media (min-width: 900px) { .bhead { padding-inline: 32px; } .bhead-row, .steps { max-width: 1136px; } }
.book-grid { display: block; }
@media (min-width: 900px) { .book-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; } .book-aside .bookcard { top: calc(var(--hdr) + 120px); } .book .pad { padding-bottom: 48px; } }
.book-main { min-width: 0; padding-top: 12px; }
.book-main > .seg { margin-bottom: 4px; }
.whead { display: flex; gap: 10px; align-items: center; flex: 1; min-width: 0; color: var(--ink); text-decoration: none !important; padding: 2px 8px; }
.whead-logo { border-radius: 12px; object-fit: cover; flex: none; }
.bcat-h { font-size: 14px; font-weight: 700; margin: 20px 2px 8px; color: var(--muted); }
.bsvc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 8px; overflow: hidden; transition: border-color var(--t), box-shadow var(--t); }
.bsvc.on { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.bsvc-main { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 14px; border: 0; background: transparent; text-align: left; min-height: 64px; color: var(--ink); }
.bsvc-n { font-size: 15px; display: block; }
.bsvc-d { margin-top: 2px; display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bsvc-p { white-space: nowrap; font-size: 15px; }
.check { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line-strong); flex: none; display: grid; place-items: center; margin-top: 1px; transition: background var(--t-fast), border-color var(--t-fast); }
.bsvc.on .check { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.bsvc-staff { display: flex; gap: 8px; align-items: center; width: 100%; padding: 10px 14px; border: 0; border-top: 1px dashed color-mix(in oklab, var(--primary) 30%, var(--line)); background: var(--primary-soft); color: var(--primary-soft-ink); font-size: 14px; text-align: left; min-height: 44px; }
.bsvc-staff b { color: var(--ink); }
.fstaff { display: flex; gap: 10px; align-items: center; padding: 10px 12px; margin: 12px 0 4px; border-radius: 14px; background: var(--primary-soft); font-size: 14px; }
.chain-note { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
.mlist { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.mrow { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-align: left; width: 100%; color: var(--ink); min-height: 64px; }
.mrow.on { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.sw-any { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-2); flex: none; }
.sw-any.big { width: 52px; height: 52px; }
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; gap: 12px; align-items: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in oklab, var(--surface) 94%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(0,0,0,.3); }
.cartbar.empty { justify-content: center; font-size: 14px; min-height: 56px; padding-block: 10px calc(10px + env(safe-area-inset-bottom)); }
.cartbar .btn { flex: none; }
.cart-l { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cart-l li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.cart-t { display: flex; justify-content: space-between; padding-top: 10px; border-top: 1px dashed var(--line); }
.selsum { display: flex; gap: 12px; align-items: center; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-align: left; color: var(--ink); margin-top: 4px; }
.selsum.static { cursor: default; margin: 12px 0 6px; }
.selsum-i { display: block; font-size: 14px; }
.sswitch { margin-top: 12px; grid-auto-columns: 96px; padding-bottom: 6px; }
@media (min-width: 900px) { .sswitch { display: flex; flex-wrap: wrap; } .sswitch > * { display: flex !important; } }
.sw { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 96px; padding: 10px 6px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); min-width: 0; }
.sw > b { font-size: 14px; max-width: 100%; }
.sw > .sm { max-width: 100%; }
.sw.on { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); background: var(--primary-soft); }
.tpick { margin-top: 4px; }
.nearest { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 18px; border: 1px solid color-mix(in oklab, var(--free) 38%, transparent); background: var(--free-soft); color: var(--free-ink); text-align: left; margin: 12px 0; min-height: 66px; }
.nearest b { display: block; font-size: 17px; color: var(--ink); }
.nearest .sm { display: block; font-weight: 650; }
.nearest-ic { width: 42px; height: 42px; border-radius: 13px; background: var(--free); color: var(--on-free); display: grid; place-items: center; flex: none; }
.nearest-go { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; }
.nearest.none { color: var(--muted); background: var(--surface-2); border-color: var(--line); }
.days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 16px 12px; margin: 0 -16px; }
.days::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .days { margin: 0; padding-inline: 0; flex-wrap: wrap; } }
.day { flex: 0 0 56px; height: 74px; border-radius: 17px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: var(--ink); padding: 0; }
.day-w { font-size: 12px; color: var(--muted); font-weight: 600; }
.day-n { font-size: 20px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.day-dot { width: 6px; height: 6px; border-radius: 50%; background: transparent; margin-top: 2px; }
.day.free .day-dot { background: var(--free); }
.day.busy { color: var(--faint); background: transparent; }
.day.busy .day-w { color: var(--faint); }
.day.off { background: transparent; border-style: dashed; }
.day.we:not(.on) .day-w { color: var(--primary); }
.day.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.day.on .day-w { color: inherit; opacity: .75; }
.day.on.free .day-dot { background: var(--free); box-shadow: 0 0 0 2px var(--ink); }
.days-m { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; font-weight: 700; color: var(--muted); align-self: center; flex: none; text-transform: lowercase; }
.times { min-height: 160px; }
.tgroup-h { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 650; color: var(--ink-2); margin: 14px 0 8px; }
.tgroup-h .muted { margin-left: 2px; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; }
.noslots { padding: 22px 16px; text-align: center; border-radius: 18px; background: var(--surface-2); display: flex; flex-direction: column; gap: 6px; align-items: center; margin-top: 8px; }
.wl-link { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 18px; padding: 14px; border-radius: 16px; border: 1px dashed var(--line-strong); background: transparent; text-align: left; color: var(--ink); }
.wl-link > .ic:first-child { color: var(--primary); }

.contacts { display: flex; flex-direction: column; gap: 14px; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 12px; margin: 8px 0 0; }
.summary-when { display: flex; gap: 12px; align-items: center; }
.summary-cal { width: 54px; height: 58px; border-radius: 15px; background: var(--primary-soft); color: var(--primary-soft-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.summary-cal b { font-size: 23px; line-height: 1; }
.summary-cal span { font-size: 12px; font-weight: 650; }
.summary-t { font-size: 17px; display: block; }
.summary-l { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.summary-l li { display: flex; gap: 10px; align-items: center; }
.summary-t-row { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--line); padding-top: 12px; font-size: 16px; }
.summary-t-row b { font-size: 19px; }
.me-line { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; background: var(--surface-2); }
.promo-open { display: inline-flex; gap: 6px; align-items: center; align-self: flex-start; }
.submit-bar { position: sticky; bottom: 0; z-index: 5; padding: 18px 0 calc(10px + env(safe-area-inset-bottom)); margin-top: -4px; background: linear-gradient(transparent, var(--bg) 22%); }
.consent { font-size: 12px; color: var(--muted); text-align: center; margin-top: 10px; line-height: 1.4; }
.democode { display: flex; gap: 6px; align-items: center; background: var(--warn-soft); color: var(--ink); padding: 8px 12px; border-radius: 12px; font-size: 13px; }
.powered { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--muted); padding: 18px 0 calc(90px + env(safe-area-inset-bottom)); text-decoration: none !important; }
.done .powered, .app.widget .page:not(.book) .powered { padding-bottom: 18px; }

.done-hero { text-align: center; padding: 30px 0 10px; }
.done-win { color: var(--ink); width: 84px; height: 84px; margin: 0 auto 14px; }
.done-pane { fill: var(--free); }
.done-tick { stroke-dasharray: 26; stroke-dashoffset: 26; animation: ok-draw .55s .35s var(--ease) forwards; }
@keyframes ok-draw { to { stroke-dashoffset: 0; } }
.done-hero .muted { margin-top: 6px; }
.done-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0 6px; }
.dact { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 650; color: var(--ink); text-decoration: none !important; text-align: center; }
.paybox { padding: 16px; border-radius: 18px; background: var(--warn-soft); display: flex; flex-direction: column; gap: 12px; margin: 14px 0; color: var(--ink); }
.login-card { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 18px; background: var(--info-soft); color: var(--ink); text-decoration: none !important; margin: 12px 0; }
.login-card-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--surface); color: var(--info); display: grid; place-items: center; flex: none; }
.resch { display: flex; flex-direction: column; gap: 10px; }
.resch-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.offer { text-align: center; padding: 26px 18px; background: var(--surface); border-radius: 26px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; align-items: center; margin-top: 12px; }
.offer-badge { display: inline-flex; gap: 6px; align-items: center; background: var(--free-soft); color: var(--free-ink); padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.offer-when { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0; }

/* ───────── мои записи и визит ───────── */
.visits-top { margin: 4px 0 6px; justify-content: space-between; }
.vlist { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.vitem { display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; color: var(--ink); text-decoration: none !important; }
.vitem:hover { border-color: var(--line-strong); }
.vitem.cancelled { opacity: .62; }
.vdate { width: 62px; height: 74px; border-radius: 16px; background: var(--primary-soft); color: var(--primary-soft-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; line-height: 1.1; }
.vdate b { font-size: 23px; }
.vdate span { font-size: 12px; font-weight: 650; }
.vdate i { font-style: normal; font-size: 12px; font-weight: 800; margin-top: 3px; color: var(--ink); }
.vdate.past { background: var(--surface-2); color: var(--muted); }
.vitem-r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.cal-opt { display: flex; gap: 12px; align-items: flex-start; }
.cal-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--primary-soft); color: var(--primary-soft-ink); display: grid; place-items: center; flex: none; }
.copyline { display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 12px; border-radius: 12px; background: var(--surface-2); min-width: 0; }
.copyline code { flex: 1; font-size: 12px; min-width: 0; }
.vhero { position: relative; border-radius: 24px; overflow: hidden; min-height: 196px; display: flex; align-items: flex-end; margin-top: 6px; color: #fff; }
.vhero-img { position: absolute; inset: 0; }
.vhero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,10,5,.05) 10%, rgba(20,10,5,.78)); }
.vhero-in { position: relative; z-index: 1; padding: 16px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.vhero-when { font-size: 25px; letter-spacing: -.02em; line-height: 1.15; }
.vhero-name { color: #fff; font-weight: 650; display: inline-flex; align-items: center; gap: 2px; }
.vhero .tag { background: rgba(255,255,255,.92); }
.vhero.st-cancelled .vhero-when { text-decoration: line-through; text-decoration-thickness: 2px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px; margin: 12px 0; display: flex; flex-direction: column; gap: 12px; }
.vcomment { display: flex; gap: 6px; align-items: flex-start; color: var(--ink-2); }
.vacts { margin-top: 4px; }
.vplace .minimap { margin: 0; }
.tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tip { padding: 12px 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; align-items: center; color: var(--ink); }
.tip.on { border-color: var(--primary); background: var(--primary-soft); }

/* ───────── профиль, кошелёк, уведомления, чаты ───────── */
.me-card { display: flex; gap: 14px; align-items: center; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; margin-top: 4px; }
.me-ava { position: relative; border: 0; padding: 0; background: none; border-radius: 50%; flex: none; }
.me-ava-ed { position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; border: 2px solid var(--surface); }
.me-name { font-size: 19px; display: block; }
.me-card .muted { white-space: nowrap; }
.login-box { padding: 20px; }
.menu { background: var(--surface); border-radius: 20px; border: 1px solid var(--line); overflow: hidden; margin-top: 10px; }
.menu-i { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 16px; border: 0; border-bottom: 1px solid var(--line); background: transparent; width: 100%; text-align: left; color: var(--ink); text-decoration: none !important; font-size: 15px; }
.menu-i.wrap { flex-wrap: wrap; }
.menu-i.wrap > .btn { margin-left: 48px; }
.menu-i:last-child { border-bottom: 0; }
button.menu-i:hover, a.menu-i:hover { background: color-mix(in oklab, var(--surface-2) 60%, transparent); }
.menu-i.static { cursor: default; }
.menu-i > .ic:last-child { color: var(--faint); }
.menu-ic { width: 36px; height: 36px; border-radius: 11px; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-2); flex: none; }
.menu-ic.brand { background: var(--primary-soft); color: var(--primary-soft-ink); }
.menu-i .grow { min-width: 0; flex: 1 1 0; }
.menu-h { font-size: 13px; color: var(--muted); margin: 24px 6px 0; font-weight: 700; }
.foot-note { margin: 28px 0 8px; }
.bonus-list { display: flex; flex-direction: column; gap: 8px; }
.bonus { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; }
.bonus-v { font-size: 22px; letter-spacing: -.02em; color: var(--primary); white-space: nowrap; }
.wcards { display: grid; gap: 12px; }
@media (min-width: 620px) { .wcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wcert { position: relative; overflow: hidden; border-radius: 22px; padding: 16px; color: #fff; display: flex; flex-direction: column; gap: 2px; min-height: 180px;
  background: linear-gradient(140deg, hsl(var(--h) 60% 42%), hsl(calc(var(--h) + 40) 55% 24%)); }
.wcert::after { content: ''; position: absolute; right: -26px; top: -18px; width: 120px; height: 150px; border-radius: 60px 60px 0 0; border: 12px solid rgba(255,255,255,.12); }
.wcert .cert-k { font-size: 13px; }
.wcert-f { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; position: relative; z-index: 1; }
.wcert-code { font: 700 15px ui-monospace, Consolas, monospace; letter-spacing: .08em; background: rgba(0,0,0,.25); padding: 5px 10px; border-radius: 9px; }
.wcert .btn-soft { background: rgba(255,255,255,.95); color: #1c1917; }
.wcert.dim, .abo-i.dim { opacity: .55; }
.abo-i { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; margin-bottom: 8px; }
.meter { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 4px; background: var(--free); }
.qr.big { width: 240px; }
.notifs { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.notif { display: flex; gap: 12px; align-items: flex-start; padding: 14px 12px; border-radius: 16px; color: var(--ink); text-decoration: none !important; }
.notif:hover { background: var(--surface); }
.notif.unread { background: var(--surface); box-shadow: inset 3px 0 0 var(--primary); }
.notif-ic { width: 40px; height: 40px; border-radius: 13px; background: var(--primary-soft); color: var(--primary-soft-ink); display: grid; place-items: center; flex: none; }
.notif-b { color: var(--ink-2); margin: 2px 0; }
.unread-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); flex: none; margin-top: 6px; }
.chat-list { display: flex; flex-direction: column; }
.chat-i { display: flex; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none !important; }
.chat { display: flex; flex-direction: column; height: calc(100dvh - var(--hdr)); }
.chat .topbar { flex: none; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .chat .topbar { max-width: none; width: 100%; padding: 12px max(24px, calc((100% - 720px) / 2)); } }
.msgs { flex: 1; overflow-y: auto; padding: 12px 16px; overscroll-behavior: contain; }
.msgs-in { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 6px; }
.msgs-empty { text-align: center; color: var(--muted); padding: 60px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.msg { max-width: 82%; padding: 8px 12px 6px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); align-self: flex-start; overflow-wrap: anywhere; }
.msg p { white-space: pre-wrap; }
.msg.out { align-self: flex-end; background: var(--primary); color: var(--on-primary); border-color: transparent; border-bottom-right-radius: 6px; }
.msg.in { border-bottom-left-radius: 6px; }
.msg.pending { opacity: .7; }
.msg-a { display: block; font-size: 12px; font-weight: 700; color: var(--primary); }
.msg-t { display: block; font-size: 11px; opacity: .72; text-align: right; margin-top: 2px; }
.msg-day { align-self: center; font-size: 12px; color: var(--muted); background: var(--surface-2); padding: 2px 10px; border-radius: 999px; margin: 8px 0; }
.composer { display: flex; gap: 8px; align-items: flex-end; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.composer .input { min-height: 46px; max-height: 140px; resize: none; border-radius: 23px; padding: 12px 16px; }
@media (min-width: 900px) { .composer { padding-inline: max(12px, calc((100% - 720px) / 2)); } }
.send { width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: var(--on-primary); border: 0; display: grid; place-items: center; flex: none; }
.send:disabled { opacity: .4; }

/* ───────── вход ───────── */
.login-in { padding-bottom: 40px; max-width: 460px; }
.login-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 8px 0 24px; }
.code-in { font-size: 28px; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; padding-left: calc(14px + .5em); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ───────── пусто и ошибки ───────── */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 44px 16px; }
.empty-ic { width: 76px; height: 76px; border-radius: 26px 26px 14px 14px; background: var(--primary-soft); color: var(--primary-soft-ink); display: grid; place-items: center; margin-bottom: 6px; }
.empty h3 { font-size: 19px; }
.empty p { color: var(--muted); max-width: 360px; }
.empty-act { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.nf-mark { animation: bm-float 4s ease-in-out infinite; }

/* ───────── виджет ───────── */
.app.widget { background: var(--bg); }
.app.widget .bhead { padding-top: 6px; }

/* ───────── тосты Brain Motion — в стиле Окошка ───────── */
.bm-toasts { bottom: calc(92px + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100vw - 32px); }
.bm-toast { font: 600 14px/1.35 var(--font); background: var(--ink); color: var(--bg); border-radius: 14px; text-align: center; }
@media (min-width: 900px) { .bm-toasts { bottom: 28px; } }
/* виджет в окне на чужом сайте: справа сверху — кнопка закрытия окна */
.app.embed .bhead-row, .app.embed .topbar { padding-right: 48px; }
.app.embed .gal-top { right: 60px; }

/* вход только через O. Message */
.login-why { list-style: none; margin: 4px 0 0; padding: 14px 16px; display: grid; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.login-why li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.login-why .ic { color: var(--free); margin-top: 1px; }
.btn .omsg-mark, .omsg-offer-ic img { display: inline-block; vertical-align: middle; }
.btn .omsg-mark { background: #fff; border-radius: 6px; padding: 2px; margin-right: 8px; flex: none; }
.omsg-offer { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--info-soft); border: 1px solid color-mix(in oklab, var(--info) 25%, transparent); }
.omsg-offer-ic { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: grid; place-items: center; flex: none; }
