/* ZE-037 · Панель ZE-ассистента (решения Павла 13.11):
   панель справа поверх сайта, на телефоне — на весь экран; старт — вопрос + быстрые кнопки;
   подборка — карточки в чате; цены — после входа (e-mail-код или Telegram), лимит 20 объектов в сутки. */
.zc { position: fixed; inset: 0; z-index: 100; display: none; }
.zc:target { display: block; }
.zc:target ~ .zai-fab { display: none; }
.zc-back { position: absolute; inset: 0; background: rgba(23,43,66,.38); }
.zc-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; display: flex; flex-direction: column;
  box-shadow: -12px 0 40px rgba(23,43,66,.2); font: 400 15px/1.45 var(--font-body); color: #172B42; animation: zc-in .22s ease-out; }
@keyframes zc-in { from { transform: translateX(24px); opacity: .4; } }

.zc-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #E3E9EE; }
.zc-head b { display: block; font-size: 16px; }
.zc-head small { display: block; color: #526579; font-size: 12.5px; }
.zc-head .zai-ava { flex: none; }
.zc-hbtns { margin-left: auto; display: flex; gap: 6px; }
.zc-hbtns a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; color: #526579; text-decoration: none; }
.zc-hbtns a:hover { background: #F3F6F8; color: #172B42; }
.zc-hbtns svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.zc-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #FAFBFC; }
.zc-sys { align-self: center; font-size: 12px; color: #6B7C8D; text-align: center; max-width: 320px; }
.zc-m { max-width: 86%; padding: 10px 13px; border-radius: 14px; }
.zc-b { align-self: flex-start; background: #fff; border: 1px solid #E3E9EE; border-top-left-radius: 4px; }
.zc-u { align-self: flex-end; background: #087F77; color: #fff; border-top-right-radius: 4px; }
.zc-m p { margin: 0; }
.zc-m p + p { margin-top: 6px; }

.zc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.zc-chips a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1.5px solid #BFD9D6; border-radius: 999px; background: #fff;
  color: #076B65; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.zc-chips a:hover { background: #EAF5F4; }
.zc-chips a[aria-current] { background: #EAF5F4; border-color: #087F77; }

.zc-cards { display: flex; flex-direction: column; gap: 10px; align-self: stretch; }
.zc-card { display: grid; grid-template-columns: 104px 1fr; gap: 12px; padding: 10px; background: #fff; border: 1px solid #E3E9EE; border-radius: 12px; }
.zc-card img { width: 104px; height: 100%; min-height: 96px; object-fit: cover; border-radius: 8px; }
.zc-card h4 { margin: 0 0 2px; font: 700 15px/1.3 var(--font-body); }
.zc-meta { font-size: 13px; color: #526579; }
.zc-st { display: inline-block; margin: 6px 0; font: 600 12px/1 var(--font-body); padding: 5px 8px; border-radius: 6px; }
.zc-st.ok { background: #087F77; color: #fff; }
.zc-st.chk { background: #EAF0F4; color: #33506B; }
.zc-st.warn { background: #FFF1DC; color: #8A4B0F; }
.zc-price { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: #172B42; font-weight: 600; }
.zc-price svg { width: 15px; height: 15px; fill: none; stroke: #087F77; stroke-width: 2; }
.zc-acts { display: flex; gap: 14px; margin-top: 6px; font-size: 13px; }
.zc-acts a { color: #087F77; font-weight: 600; text-decoration: none; }

.zc-login { align-self: stretch; padding: 14px; background: #fff; border: 1.5px solid #087F77; border-radius: 14px; }
.zc-login b { display: block; font-size: 15.5px; margin-bottom: 4px; }
.zc-login p { margin: 0 0 12px; font-size: 13.5px; color: #526579; }
.zc-tg { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 10px; background: #087F77; color: #fff; font-weight: 600; text-decoration: none; }
.zc-tg svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.zc-or { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-size: 12.5px; color: #6B7C8D; }
.zc-or::before, .zc-or::after { content: ""; flex: 1; height: 1px; background: #E3E9EE; }
.zc-mail { display: flex; gap: 8px; }
.zc-mail input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 1.5px solid #C9D3DD; border-radius: 10px; font: inherit; }
.zc-mail button { flex: none; height: 44px; padding: 0 14px; border: 1.5px solid #087F77; border-radius: 10px; background: #fff; color: #076B65; font: 600 14px var(--font-body); cursor: pointer; }
.zc-consent { margin: 10px 0 0 !important; font-size: 12px !important; }
.zc-consent a { color: #087F77; }

.zc-human { align-self: center; font-size: 13px; color: #526579; }
.zc-human a { color: #087F77; font-weight: 600; }

.zc-foot { border-top: 1px solid #E3E9EE; padding: 10px 12px 12px; background: #fff; }
.zc-input { display: flex; align-items: center; gap: 8px; }
.zc-input input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1.5px solid #C9D3DD; border-radius: 12px; font: inherit; }
.zc-send { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 12px; background: #087F77; color: #fff; cursor: pointer; }
.zc-send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.zc-disc { margin: 8px 2px 0; font-size: 11.5px; color: #6B7C8D; }

@media (max-width: 600px) {
  .zc-back { display: none; }
  .zc-panel { width: 100%; box-shadow: none; }
  .zc-m { max-width: 92%; }
  .zc-brand { display: none; }
}

/* Состояние после входа (#ze-chat-in) */
.zc-pr { margin-top: 2px; font: 700 16px/1.3 var(--font-body); color: #172B42; }
.zc-pr small, .zc-inc small { font-weight: 400; font-size: 12.5px; color: #526579; }
.zc-inc { font-size: 13px; color: #33506B; margin-top: 2px; }
.zc-inc b { color: #076B65; }
.zc-acts a.on { color: #526579; }
.zc-saved { align-self: stretch; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: #EAF5F4; font-size: 13.5px; }
.zc-saved svg { width: 18px; height: 18px; flex: none; fill: none; stroke: #087F77; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.zc-saved a { color: #076B65; font-weight: 600; }
.zc-limit { align-self: center; margin: 0; font-size: 12px; color: #6B7C8D; }

/* «Позвать специалиста» (#ze-human) */
.zc-backlink { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; color: #172B42; flex: none; }
.zc-backlink:hover { background: #F3F6F8; }
.zc-backlink svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.zh-time { display: flex; gap: 10px; padding: 12px; border-radius: 12px; background: #FFF7EA; border: 1px solid #F3DDB8; font-size: 13.5px; }
.zh-time svg { width: 22px; height: 22px; flex: none; fill: none; stroke: #8A4B0F; stroke-width: 1.8; stroke-linecap: round; }
.zh-time b { display: block; color: #8A4B0F; }
.zh-time span { color: #5B4A33; }
.zh-form { display: flex; flex-direction: column; gap: 14px; }
.zh-form fieldset { border: 0; margin: 0; padding: 0; }
.zh-form legend { padding: 0; margin-bottom: 8px; font-weight: 700; font-size: 14.5px; }
.zh-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border: 1.5px solid #E3E9EE; border-radius: 10px; margin-bottom: 6px; cursor: pointer; }
.zh-opt:has(input:checked) { border-color: #087F77; background: #F2FAF9; }
.zh-opt input { accent-color: #087F77; width: 18px; height: 18px; margin: 0; }
.zh-opt b { display: block; font-size: 14.5px; }
.zh-opt small { display: block; font-size: 12.5px; color: #526579; }
.zh-form textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1.5px solid #C9D3DD; border-radius: 10px; font: inherit; font-size: 14px; resize: vertical; }
.zh-hint { display: block; margin-top: 6px; font-size: 12px; color: #6B7C8D; }
.zh-send { height: 48px; border: 0; border-radius: 10px; background: #087F77; color: #fff; font: 600 16px var(--font-body); cursor: pointer; }
.zh-done { margin-top: 6px; }
