/* Справка кабинета гостя (views/help.js): поиск, карточки тем, частые вопросы, контакты, страница статьи.
   Сама статья (.help-article, .help-steps, .help-related) и знакомство (.onboarding, .onb-*) оформлены в app.css.
   Цвета — только токены: тёмная тема и цвет отеля работают сами. */

/* ---------- Поиск ---------- */
.help-search { position: relative; }
.help-search input {
  min-height: 52px; padding: 12px 52px 12px 46px; border-radius: var(--radius-xs);
  background: var(--surface); box-shadow: none;
}
.help-search input::-webkit-search-cancel-button,
.help-search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.help-search-icon {
  position: absolute; left: 15px; top: 50%; margin-top: -10px; display: grid; color: var(--muted); pointer-events: none;
  transition: color .15s;
}
.help-search:focus-within .help-search-icon { color: var(--accent-text); }
.help-search-clear { position: absolute; right: 4px; top: 50%; margin-top: -22px; color: var(--muted); }
.help-search-clear:hover { color: var(--text); }

/* ---------- Результаты поиска ---------- */
.help-results { margin-top: 16px; }
.help-count { margin: 0 0 8px; color: var(--muted); font-size: .875rem; }
.help-results-card { padding: 4px 16px; }
.help-results-card .li-sub {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; margin-top: 2px;
}
.help-mark { background: var(--accent-soft); color: var(--accent-text); border-radius: 1px; padding: 0 1px; }
.help-empty { padding: 28px 8px 12px; }
.help-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.help-try { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.help-try .field-label { width: 100%; }
.help-try .chip { min-height: var(--tap); cursor: pointer; }

/* ---------- Первый экран: обзор, частые вопросы, темы ---------- */
a.card.help-intro {
  display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 16px;
  background: var(--surface); border-color: var(--line-strong); box-shadow: none;
}
a.card.help-intro:hover { border-color: var(--text); box-shadow: none; }
.help-intro-icon {
  width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--accent); color: var(--accent-text);
}
.help-intro-body { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.help-intro-body strong { color: var(--text); font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; line-height: 1.25; }
.help-intro-body span { color: var(--text-2); font-size: .875rem; line-height: 1.4; }
.help-chev { flex: none; color: var(--muted); transition: transform .15s var(--ease), color .15s; }
a.card:hover .help-chev { color: var(--accent-text); transform: translateX(2px); }

.help-faq { padding: 0 16px; }
.help-faq summary { min-height: var(--tap); }
.help-faq-answer p { margin: 0 0 4px; }
.help-more { display: inline-flex; align-items: center; gap: 2px; min-height: var(--tap); font-weight: 500; }

.help-topics { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
a.card.help-topic { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 14px 12px 14px 16px; }
.help-topic-icon {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--accent-text);
}
.help-topic-body { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.help-topic-title { color: var(--text); font-weight: 500; line-height: 1.3; transition: color .15s; }
a.card.help-topic:hover .help-topic-title { color: var(--accent-text); }
.help-topic-sub {
  color: var(--muted); font-size: .8125rem; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- Связаться с отелем ---------- */
.help-contacts { padding: 4px 16px; }
.help-contacts .li-end { font-size: .875rem; font-weight: 500; color: var(--accent-text); }
.help-phone { font-variant-numeric: tabular-nums; }

/* ---------- Страница статьи ---------- */
.help-notice { margin: -4px 0 16px; }
.help-crumbs {
  display: flex; align-items: center; flex-wrap: wrap; gap: 2px; margin: -12px 0 0;
  color: var(--muted); font-size: .875rem;
}
.help-crumbs a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 500; }
.help-crumbs .icon { color: var(--line-strong); }
.help-head h1 { margin-top: -4px; }

.help-goto { margin-top: 20px; }
@media (max-width: 480px) { .help-goto { display: flex; width: 100%; } }

.help-ask { display: flex; align-items: flex-start; gap: 14px; margin-top: 24px; padding: 18px; }
.help-ask-icon {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--accent); color: var(--accent-text);
}
.help-ask-body { flex: 1 1 auto; min-width: 0; }
.help-ask-body h2 { margin: 0 0 2px; }
.help-ask-body p { margin: 0 0 12px; }
.help-ask-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 480px) {
  .help-ask { flex-direction: column; gap: 10px; }
  .help-ask-actions > .btn { flex: 1 1 auto; }
}
.help-back { display: flex; justify-content: center; margin: 16px 0 0; }
