/* ==========================================================================
   Reviorum — pages/help.css  (help.html / page-help.php)
   ========================================================================== */

/* ---------- Hero ---------- */
.rv-help-hero { position: relative; overflow: hidden; background: var(--rv-hue-apps); }
.rv-help-hero__art { position: absolute; top: 0; right: 40px; pointer-events: none; }
.rv-help-hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 44px;
}
.rv-help-hero .rv-breadcrumbs { padding-bottom: var(--rv-s-2); }
.rv-help-hero__title { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.875rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }

.rv-help-search {
  display: flex;
  align-items: center;
  gap: var(--rv-s-2);
  max-width: 680px;
  padding: 6px 6px 6px 0;
  border-radius: 14px;
  background: var(--rv-surface);
  box-shadow: 0 10px 30px -18px rgba(13, 148, 136, 0.6);
}
.rv-help-search__field.rv-search__field {
  flex: 1;
  height: 46px;
  padding: 0 14px;
  border: 0;
  background: transparent;
}
.rv-help-search__field .rv-search__input { font-size: var(--rv-fs-base); }
.rv-help-search:focus-within { box-shadow: 0 0 0 2px var(--rv-accent), 0 10px 30px -18px rgba(13, 148, 136, 0.6); }

.rv-help-switch { align-self: flex-start; }
.rv-help-switch .rv-tabs__list { border-color: transparent; background: rgba(255, 255, 255, 0.7); }
.rv-help-switch .rv-tabs__tab { min-height: 38px; padding: 0 18px; }

/* ---------- Main ---------- */
.rv-help-main {
  display: flex;
  flex-direction: column;
  gap: var(--rv-s-12);
  padding-block: 36px var(--rv-s-section);
}

/* Topic card */
.rv-help-topic { display: flex; gap: var(--rv-s-4); padding: 22px; }
.rv-help-topic__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 13px;
  background: var(--rv-cat-tint, #f1f3f7);
  color: var(--rv-cat-strong, var(--rv-ink));
}
.rv-help-topic__icon--hosting { --rv-cat-tint: var(--rv-hue-hosting); --rv-cat-strong: var(--rv-hue-hosting-strong); }
.rv-help-topic__icon--ai { --rv-cat-tint: var(--rv-hue-ai); --rv-cat-strong: var(--rv-hue-ai-strong); }
.rv-help-topic__icon--casino { --rv-cat-tint: var(--rv-hue-casino); --rv-cat-strong: var(--rv-hue-casino-strong); }
.rv-help-topic__icon--shop { --rv-cat-tint: var(--rv-warm); --rv-cat-strong: var(--rv-hue-shop-strong); }
.rv-help-topic__icon--apps { --rv-cat-tint: var(--rv-hue-apps); --rv-cat-strong: var(--rv-hue-apps-strong); }
.rv-help-topic__icon--night { --rv-cat-tint: var(--rv-night); --rv-cat-strong: var(--rv-sun); }
.rv-help-topic__body { min-width: 0; }
.rv-help-topic__title { margin-bottom: 4px; font-size: var(--rv-fs-base); font-weight: 700; }
.rv-help-topic__desc { color: var(--rv-muted); font-size: var(--rv-fs-md); line-height: 1.5; }
.rv-help-topic__count { margin-top: 6px; color: var(--rv-muted); font-size: var(--rv-fs-xs); }

/* FAQ + contact */
.rv-help-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: var(--rv-s-8);
  align-items: start;
}
.rv-help-faq .rv-section__title { margin-bottom: 6px; }
.rv-help-faq__title { margin: var(--rv-s-4) 0 0; font-size: var(--rv-fs-base); font-weight: 700; }
.rv-js .rv-help-faq__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rv-no-js [data-rv-help-for][hidden] { display: block; }
.rv-no-js span[data-rv-help-for][hidden] { display: inline; }

.rv-help-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: var(--rv-s-6);
  scroll-margin-top: calc(var(--rv-header-h) + var(--rv-top-offset) + 16px);
}
.rv-help-contact__title { font-size: var(--rv-fs-lg); font-weight: 700; }
.rv-help-contact__lead { font-size: var(--rv-fs-md); }
.rv-help-form { display: flex; flex-direction: column; gap: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .rv-help-hero__art { right: -120px; opacity: 0.6; }
  .rv-help-bottom { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .rv-help-hero__art { top: -60px; right: -190px; opacity: 0.45; }
  .rv-help-hero__inner { gap: 14px; padding-bottom: var(--rv-s-6); }
  .rv-help-search { flex-wrap: wrap; padding: 6px; }
  .rv-help-search__field.rv-search__field { flex-basis: 100%; padding: 0 8px; }
  .rv-help-search__btn { width: 100%; }
  .rv-help-switch,
  .rv-help-switch .rv-tabs__list { align-self: stretch; display: flex; }
  .rv-help-switch .rv-tabs__list { flex: 1; }
  .rv-help-switch .rv-tabs__tab { flex: 1; padding: 0 8px; }
  .rv-help-main { gap: var(--rv-s-8); padding-top: var(--rv-s-6); }
  .rv-help-topic { padding: var(--rv-s-4); gap: 14px; }
  .rv-help-topic__icon { width: 42px; height: 42px; border-radius: 12px; }
  .rv-help-contact { padding: var(--rv-s-5); }
}
