:root {
  --bg: #f2f5f9;
  --card: rgba(255, 255, 255, 0.78);
  --ink: #1b245b;
  --muted: #475569;
  --line: #d5ddea;
  --accent: #2e4aa6;
  --shadow: rgba(15, 23, 42, 0.12);
  --icon-highlight-bg: rgba(46, 74, 166, 0.1);
  --icon-highlight-border: rgba(46, 74, 166, 0.24);
  --icon-highlight-filter: brightness(0) saturate(100%) invert(24%) sepia(24%) saturate(1942%) hue-rotate(202deg) brightness(92%) contrast(92%);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 10%, rgba(46, 74, 166, 0.12) 0, rgba(46, 74, 166, 0) 35%),
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, rgba(46, 74, 166, 0.06) 0, rgba(46, 74, 166, 0) 55%),
    var(--bg);
  background-size: auto, 36px 36px, 36px 36px, auto, auto;
  padding: 24px;
}

.help-shell {
  width: min(900px, 100%);
  align-self: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 16px 44px var(--shadow);
  padding: 28px 30px 30px;
}

.help-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.help-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.help-logo {
  width: 158px;
  height: auto;
  display: block;
}

.help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.help-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
}

.help-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.help-hero {
  margin-bottom: 24px;
}

.help-hero h1 {
  margin: 0 0 10px;
  font-size: 36px;
  line-height: 1.05;
}

.help-hero p,
.help-section p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.help-section {
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.help-section h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.2;
}

.help-section p + p {
  margin-top: 10px;
}

.page-footer {
  align-self: end;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.page-footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.page-footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #fff;
  transition: background 120ms ease, border-color 120ms ease;
}

.page-footer-social img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}
.page-footer-social a:hover {
  background: var(--icon-highlight-bg);
  border-color: var(--icon-highlight-border);
}
.page-footer-social a:hover img {
  filter: var(--icon-highlight-filter);
}

.page-footer-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.page-footer-links span,
.page-footer-links a {
  font-size: 12px;
  line-height: 1;
  color: var(--muted);
  text-decoration: none;
}

.page-footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 720px) {
  body {
    padding: 16px;
  }

  .help-shell {
    padding: 22px 20px 24px;
  }

  .page-footer {
    margin-top: 16px;
  }

  .help-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .help-logo {
    width: 136px;
  }

  .help-hero h1 {
    font-size: 30px;
  }

  .help-hero p,
  .help-section p {
    font-size: 15px;
  }
}

html[data-theme="dark"] body {
  --bg: #0f172a;
  --card: rgba(27, 39, 65, 0.88);
  --ink: #dbe6ff;
  --muted: #b7c5e7;
  --line: #5e719b;
  --accent: #8fb1ff;
  --shadow: rgba(2, 6, 23, 0.42);
  background:
    radial-gradient(circle at 18% 10%, rgba(143, 177, 255, 0.14) 0, rgba(143, 177, 255, 0) 35%),
    linear-gradient(rgba(143, 177, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 177, 255, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, rgba(143, 177, 255, 0.08) 0, rgba(143, 177, 255, 0) 55%),
    var(--bg);
  background-size: auto, 36px 36px, 36px 36px, auto, auto;
}

html[data-theme="dark"] .help-link {
  background: #1b2741;
  color: var(--ink);
  border-color: var(--line);
}

html[data-theme="dark"] .help-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

html[data-theme="dark"] .page-footer-social a {
  background: transparent;
  border-color: transparent;
}

html[data-theme="dark"] .page-footer-social img {
  filter: brightness(0) invert(1) saturate(0.35) contrast(1.05);
}
html[data-theme="dark"] .page-footer-social a:hover {
  background: #243454;
  border-color: #8fb1ff;
}
html[data-theme="dark"] .page-footer-social a:hover img {
  filter: brightness(0) invert(1) saturate(0.35) contrast(1.05);
}

html[data-theme="dark"] .page-footer-links a {
  color: var(--muted);
}

html[data-theme="dark"] .page-footer-links a:hover {
  color: var(--ink);
}

html[data-theme="dark"] .help-logo {
  filter: brightness(0) invert(1) saturate(0.35) contrast(1.05);
}
