/* 0700.benhome.app - по дизайн системата Vercel Geist: шрифт Geist, тънки 1px линии, деликатни
   радиуси, неутрална скала и един акцент. Мобилно първо, максимум полезна площ на телефона. */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/geist-cyr.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/geist-lat.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url(fonts/geist-mono-lat.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --bg: #fafafa; --bg-2: #ffffff; --bg-3: #f2f2f2;
  --ink: #171717; --ink-2: #4d4d4d; --muted: #6f6f6f;
  --line: #ebebeb; --line-2: #d9d9d9;
  --accent: #0068d6;
  --ok: #107a3c; --ok-bg: #e9f8ee; --warn: #8a5300; --err: #c3102b; --err-bg: #fdecee;
  --r: 8px; --r-lg: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 2px 8px rgba(0, 0, 0, .04);
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --gutter: 12px;
  --st: env(safe-area-inset-top, 0px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a; --bg-2: #111111; --bg-3: #1a1a1a;
    --ink: #ededed; --ink-2: #b4b4b4; --muted: #8f8f8f;
    --line: #242424; --line-2: #333333;
    --accent: #3b9eff;
    --ok: #3fcf73; --ok-bg: #0d2a18; --warn: #f1a33b; --err: #ff6166; --err-bg: #3a0d12;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  font: 15px/1.5 "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased; text-wrap: pretty; overflow-wrap: break-word;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -.02em; margin: 0; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Бутони */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); border-radius: var(--r);
  background: var(--ink); color: var(--bg-2); font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1;
  cursor: pointer; white-space: nowrap; text-decoration: none !important;
}
.btn:active { transform: translateY(1px); }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn.ghost { background: var(--bg-2); color: var(--ink); border-color: var(--line-2); }
.btn.wide { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  border: 0; border-radius: var(--r); background: transparent; color: var(--ink-2); cursor: pointer;
}
.icon-btn:hover { background: var(--bg-3); }

/* Подкана за инсталиране: винаги най-горе */
.install {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: calc(8px + var(--st)) var(--gutter) 8px;
  background: var(--bg-2); border-bottom: 1px solid var(--line);
}
.install img { border-radius: 9px; flex: none; }
.install-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.install-txt strong { font-size: 14px; }
.install-txt span { font-size: 12.5px; color: var(--muted); }
.install .icon-btn { width: 32px; height: 32px; margin-right: -6px; }
.install .btn .ic { width: 16px; height: 16px; }
body.has-install .top, body.has-install .bar { top: var(--ih, 0px); }

/* --- Публичната страница --- */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(8px + var(--st)) var(--gutter) 8px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(10px); backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--line);
}
body.has-install .bar { padding-top: 8px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.brand img { border-radius: 7px; }
.brand:hover { text-decoration: none; }
.landing { flex: 1; width: 100%; max-width: 960px; margin: 0 auto; padding: 0 var(--gutter); }
.hero { padding: 36px 0 28px; }
.eyebrow { margin: 0 0 10px; font: 500 13px/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.hero h1 { font-size: clamp(28px, 7vw, 48px); line-height: 1.08; letter-spacing: -.035em; max-width: 18ch; }
.lead { margin: 14px 0 0; font-size: 16.5px; color: var(--ink-2); max-width: 60ch; }
.demo { margin-top: 24px; max-width: 460px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-2); box-shadow: var(--shadow); overflow: hidden; }
.demo-q { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-family: var(--mono); }
.demo-q span { color: var(--ink); }
.demo-r { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; }
.demo-r b { display: block; }
.demo-r small { color: var(--muted); font-family: var(--mono); font-size: 12.5px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-weight: 600; font-size: 13px; white-space: nowrap; }
.pill .ic { width: 15px; height: 15px; }

.feats { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-2); overflow: hidden; }
.feat { padding: 18px; border-top: 1px solid var(--line); }
.feat:first-child { border-top: 0; }
.feat .ic { width: 20px; height: 20px; color: var(--accent); }
.feat h2 { margin: 10px 0 4px; font-size: 16px; }
.feat p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
@media (min-width: 720px) {
  .feats { grid-template-columns: 1fr 1fr; }
  .feat:nth-child(2) { border-top: 0; }
  .feat:nth-child(even) { border-left: 1px solid var(--line); }
}

.access { padding: 28px 0 8px; }
.auth-card { max-width: 440px; margin: 0 auto; padding: 22px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-2); box-shadow: var(--shadow); }
.auth-card h2 { font-size: 20px; }
.auth-card > .muted { margin: 6px 0 16px; font-size: 14px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 14px; background: var(--bg-3); border-radius: var(--r); }
.tab { min-height: 38px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.tab.on { background: var(--bg-2); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2); }
.pane { display: none; flex-direction: column; gap: 12px; }
.pane.on { display: flex; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
input[type=email], input[type=password], input[type=text] {
  width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--bg-2); color: var(--ink); font-family: inherit; font-size: 16px;
}
input:focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
/* Око за паролата */
.pw { position: relative; display: block; }
.pw input { padding-right: 46px; }
.pw-eye {
  position: absolute; top: 50%; right: 4px; transform: translateY(-50%);
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer;
}
.pw-eye:hover { color: var(--ink); background: var(--bg-3); }
.pw-eye[aria-pressed="true"] { color: var(--ink); }
.notice { margin-bottom: 12px; padding: 10px 12px; border-radius: var(--r); font-size: 14px; }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.notice.err { background: var(--err-bg); color: var(--err); }

.cats-pub, .faq { padding: 28px 0 0; }
.cats-pub h2, .faq h2 { font-size: 20px; margin-bottom: 12px; }
.cats-pub ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cats-pub li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); font-size: 14px; color: var(--ink-2); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { padding: 14px 28px 14px 0; font-weight: 600; cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 400 20px/1 var(--mono); color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin: 0 0 14px; color: var(--ink-2); }

.foot { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; margin-top: 32px; padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* --- Справочникът (след вход) --- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(10px); backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; gap: 6px; padding: calc(8px + var(--st)) 6px 6px var(--gutter); }
body.has-install .top-row { padding-top: 8px; }
.logo img { display: block; border-radius: 7px; }
.search {
  flex: 1; min-width: 0; position: relative; flex-direction: row; align-items: center; gap: 0;
  height: 44px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg-2);
}
.search:focus-within { border-color: var(--ink-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.search > .ic { margin: 0 2px 0 11px; color: var(--muted); }
.search input {
  flex: 1; min-width: 0; height: 100%; padding: 0 6px 0 8px; border: 0; background: transparent; color: var(--ink);
  font-family: inherit; font-size: 16px; outline: none;
}
.search input::-webkit-search-cancel-button { display: none; }
.search .icon-btn { width: 36px; height: 36px; margin-right: 3px; }
.logout { margin: 0; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px var(--gutter) 8px; scrollbar-width: none; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-2); color: var(--ink-2);
  font-family: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; white-space: nowrap; scroll-snap-align: start;
}
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg-2); }
.chip .k { font: 500 11.5px/1 var(--mono); opacity: .65; }
.chip.sep { margin-left: 4px; }

.dir { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 8px 8px 0; }
.count { padding: 2px 4px 8px; color: var(--muted); font-size: 12.5px; font-family: var(--mono); }
.list { display: flex; flex-direction: column; gap: 8px; }
.card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-2); overflow: hidden; }
.card-h { padding: 11px 12px 8px; }
.card-cat { font: 500 11.5px/1.2 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.card h2 { margin-top: 4px; font-size: 16px; line-height: 1.3; letter-spacing: -.01em; }
.card mark { background: color-mix(in srgb, var(--accent) 20%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.desc { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.desc.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }

.nums { border-top: 1px solid var(--line); }
.num { border-top: 1px solid var(--line); }
.num:first-child { border-top: 0; }
.num-row { display: flex; align-items: stretch; }
.dial { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: var(--ink); min-height: 56px; }
.dial:hover { text-decoration: none; background: var(--bg-3); }
.dial .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dial .n { font: 600 18px/1.2 var(--mono); letter-spacing: -.01em; white-space: nowrap; }
.dial .t { font-size: 12.5px; color: var(--muted); }
.dial .t.free { color: var(--ok); font-weight: 600; }
.dial .t.paid { color: var(--warn); }
.dial .note { font-size: 12.5px; color: var(--muted); }
.call { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--ink); color: var(--bg-2); }
.call .ic { width: 18px; height: 18px; }
.copy { flex: none; width: 48px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.copy:hover { background: var(--bg-3); color: var(--ink); }
.copy .ic { width: 17px; height: 17px; }

/* Аналог: обикновен номер вместо 0700, избира се с едно натискане */
.alt { display: flex; align-items: center; gap: 10px; margin: 0 8px 8px; padding: 8px 8px 8px 12px; border-radius: var(--r); background: var(--ok-bg); color: var(--ok); min-height: 54px; }
.alt:hover { text-decoration: none; filter: brightness(.98); }
.alt .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.alt .lbl { font-size: 12px; font-weight: 600; }
.alt .n { font: 600 16.5px/1.25 var(--mono); color: var(--ink); white-space: nowrap; }
.alt .call { background: var(--ok); color: #fff; width: 38px; height: 38px; }
.alt .go { font-weight: 600; font-size: 13.5px; white-space: nowrap; }

.card-f { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px 12px 10px; border-top: 1px solid var(--line); font-size: 13px; }
.card-f a, .card-f button { display: inline-flex; align-items: center; min-height: 28px; }
.card-f button { border: 0; padding: 0; background: none; color: var(--accent); font: inherit; cursor: pointer; }
.verified { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-weight: 500; }
.verified .ic { width: 15px; height: 15px; }

.alt-hit { margin: 0 0 10px; padding: 12px; border: 1px solid color-mix(in srgb, var(--ok) 40%, var(--line)); border-radius: var(--r-lg); background: var(--ok-bg); }
.alt-hit .h { font-size: 13px; color: var(--ok); font-weight: 600; margin-bottom: 8px; }
.alt-hit .alt { margin: 0; background: var(--bg-2); }
.alt-hit .alt + .alt { margin-top: 6px; }

.empty { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; padding: 40px 16px; color: var(--muted); }
.empty b { color: var(--ink); }
.skel { height: 132px; border-radius: var(--r-lg); background: linear-gradient(90deg, var(--bg-3), var(--bg-2), var(--bg-3)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 50; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: var(--r); background: var(--ink); color: var(--bg-2); font-size: 14px; box-shadow: 0 4px 16px rgba(0, 0, 0, .18); }

@media (min-width: 720px) {
  :root { --gutter: 20px; }
  .top-row { max-width: 760px; margin: 0 auto; padding-left: 8px; padding-right: 8px; }
  .chips { max-width: 760px; margin: 0 auto; padding-left: 8px; padding-right: 8px; flex-wrap: wrap; overflow: visible; }
  .install { justify-content: center; }
  .install-txt { flex: 0 1 auto; }
  .hero { padding: 64px 0 40px; }
  .dir { padding-top: 14px; }
}
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }

/* Страница за одобрение с едно натискане (линк от писмото до админа) */
.ap-card { text-align: center; margin-top: 12vh; }
.ap-card h2 { margin-top: 12px; }
.ap-card .muted { margin: 8px 0 18px; }
.ap-icon { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font: 700 26px/1 var(--mono); }
.ap-ok { background: var(--ok-bg); color: var(--ok); }
.ap-wait { background: var(--bg-3); color: var(--muted); }
.ap-err { background: var(--err-bg); color: var(--err); }
.ap-links { margin: 16px 0 0; font-size: 14px; }

/* „Няма в избраните филтри“: показваме резултатите от всички, с бутон за изчистване */
.filter-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--bg-2); font-size: 13.5px; color: var(--ink-2); }
.filter-note .btn { flex: none; }

/* Филтри: „Вид номер“ (лента с превключватели) + „Категория“ (падащо меню). По един избор във всяка част. */
.chips { display: flex; flex-direction: column; gap: 8px; overflow: visible; padding: 2px var(--gutter) 10px; }
.seg { display: flex; padding: 3px; gap: 2px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; }
.seg-b { flex: 1 1 0; min-width: 0; height: 34px; padding: 0 6px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-2);
  font-family: inherit; font-size: 13.5px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.seg-b:hover { color: var(--ink); }
.seg-b.on { background: var(--bg-2); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--line-2), 0 1px 2px rgba(0,0,0,.06); }
.cat-sel { position: relative; display: block; }
.cat-sel::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.cat-sel select { width: 100%; height: 40px; padding: 0 36px 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); color: var(--ink);
  font-family: inherit; font-size: 15px; -webkit-appearance: none; appearance: none; cursor: pointer; }
.cat-sel.on select { border-color: var(--ink); font-weight: 600; }
.cat-sel select:focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 720px) {
  .chips { flex-direction: row; flex-wrap: nowrap; align-items: center; max-width: 760px; margin: 0 auto; padding-left: 8px; padding-right: 8px; }
  .seg { flex: 0 0 auto; }
  .seg-b { flex: 0 0 auto; padding: 0 14px; }
  .cat-sel { flex: 1; }
}
