/* ---- Reset ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ---- Theme tokens (same as main app) ---- */
:root,
[data-theme="light"] {
  --bg: #f8f9fa;
  --surface: #fff;
  --text: #495057;
  --text-muted: #868e96;
  --text-accent: #1971c2;
  --border: #dee2e6;
  --accent: #6965db;
}

[data-theme="dark"] {
  --bg: #1e1e1e;
  --surface: #2a2a2a;
  --text: #ced4da;
  --text-muted: #868e96;
  --text-accent: #74b6ff;
  --border: #444;
  --accent: #7d79e6;
}

body {
  background: var(--bg);
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px;
}

.top-nav {
  margin-bottom: 16px;
}

.back-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  font-family: system-ui, -apple-system, sans-serif;
  text-decoration: none;
  display: inline-block;
}
.back-btn:hover {
  color: var(--text);
  text-decoration: underline;
}

.title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 4px;
}

.subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.section {
  margin-bottom: 32px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text);
}

.text {
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 8px;
  color: var(--text-muted);
}
.text strong { color: var(--text); font-weight: 600; }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 4px 0 0;
}
.contact-lead {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 12px;
}
.contact-row {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.contact-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  transition: border-color .15s, color .15s;
}
.contact-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.contact-btn[aria-disabled="true"] {
  opacity: 0.6; cursor: not-allowed; pointer-events: none;
}
.contact-btn svg { flex: 0 0 auto; color: var(--text-muted); }
.contact-badge {
  font-size: 11px;
  color: var(--text-muted);
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.list {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 8px;
  padding-left: 20px;
}

.link {
  color: var(--text-accent);
  text-decoration: none;
}
.link:hover {
  text-decoration: underline;
}

/* ---- SEO section (extended below the user-facing card) ---- */

.seo-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 12px 0 32px;
}

.seo-section {
  /* Same .section spacing — но визуально отделён через .seo-divider выше */
}
.seo-section .text em {
  color: var(--text);
  font-style: normal;
  font-weight: 500;
}

/* HowTo list */
.howto-list {
  list-style: decimal;
  padding-left: 22px;
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}
.howto-list li {
  margin-bottom: 8px;
}
.howto-list li strong {
  color: var(--text);
  font-weight: 600;
}

/* FAQ accordion (semantic <details>, no JS) */
.faq {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  margin-bottom: 8px;
  overflow: hidden;
}
.faq summary {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  list-style: none;
  position: relative;
  user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 400;
  transition: transform .15s;
}
.faq[open] summary::after {
  content: "−";
}
.faq summary:hover {
  color: var(--accent);
}
.faq[open] summary {
  border-bottom: 1px solid var(--border);
}
.faq .text {
  padding: 12px 16px 14px;
  margin: 0;
}
.faq code {
  background: var(--bg);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--text);
}

/* Comparison table */
.compare-wrap {
  overflow-x: auto;
  margin: 4px 0 0;
}
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 480px;
}
.compare th,
.compare td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.compare thead th {
  font-weight: 600;
  color: var(--text);
  font-size: 13px;
  background: var(--surface);
}
.compare tbody th {
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.compare tbody td {
  color: var(--text-muted);
}
.compare td.ok    { color: #2f9e44; }
.compare td.meh   { color: #f08c00; }
.compare td.no    { color: #c92a2a; }

[data-theme="dark"] .compare td.ok    { color: #69db7c; }
[data-theme="dark"] .compare td.meh   { color: #ffd43b; }
[data-theme="dark"] .compare td.no    { color: #ff8787; }

.seo-note {
  margin-top: 12px;
  font-style: italic;
}

.seo-updated {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin: 32px 0 16px;
}
