:root {
  --bg: #f6f8fb;
  --ink: #14202b;
  --muted: #5d6b7b;
  --line: #dbe3ec;
  --card: rgba(255,255,255,.88);
  --card-strong: #fff;
  --accent: #0b6efd;
  --accent-2: #0aa48b;
  --shadow: 0 12px 34px rgba(19,34,56,.08);
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
.bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(800px 400px at 10% -10%, rgba(11,110,253,.16), transparent 70%),
    radial-gradient(700px 380px at 90% 0%, rgba(10,164,139,.14), transparent 70%),
    linear-gradient(180deg, #f8fbff 0%, #f4f7fb 40%, #f7f8fb 100%);
}
.shell { max-width: 980px; margin: 0 auto; padding: 16px 14px 28px; }
.topbar { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.topbar > div { flex: 1; min-width: 0; }
.eyebrow { margin: 0 0 4px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
#pageTitle { margin: 0; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; }
.ghost-btn {
  border: 1px solid var(--line); background: rgba(255,255,255,.8); color: var(--ink);
  padding: 9px 12px; border-radius: 12px; cursor: pointer; box-shadow: var(--shadow);
}
.panel {
  background: var(--card); border: 1px solid rgba(219,227,236,.8); box-shadow: var(--shadow);
  backdrop-filter: blur(10px); border-radius: var(--radius); padding: 14px;
}
.footer {
  margin-top: 12px; padding: 12px 4px 0; display: grid; gap: 8px;
}
.footer-links {
  display: flex; flex-wrap: wrap; gap: 10px 14px; color: var(--muted); font-size: 13px;
}
.footer-links a {
  color: var(--muted); text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; }
.footer-links a[aria-disabled="true"] { opacity: .8; pointer-events: none; }
.search-wrap { margin-bottom: 12px; }
.search {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  font-size: 15px; background: rgba(255,255,255,.92);
}
.search:focus { outline: 2px solid rgba(11,110,253,.15); border-color: #bdd0ea; }
.list { display: grid; gap: 10px; }
.row-link {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 10px;
  width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 14px;
  background: var(--card-strong); color: inherit; padding: 10px; cursor: pointer;
}
.row-link:hover { border-color: #c7d4e6; box-shadow: 0 6px 18px rgba(19,34,56,.05); }
.thumb, .cover {
  background: #eef3f8; border: 1px solid #e1e8f0; overflow: hidden; border-radius: 12px;
}
.thumb { width: 56px; height: 56px; }
.thumb img, .cover img, .form-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.row-title { margin: 0; font-weight: 700; font-size: 15px; }
.row-sub { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.row-meta { color: var(--muted); font-size: 12px; white-space: nowrap; }
.empty, .error, .loading { padding: 18px; border-radius: 12px; border: 1px dashed var(--line); color: var(--muted); background: rgba(255,255,255,.55); }
.error { color: #a22; border-color: #e4bbbb; background: #fff5f5; }
.org-hero { display: grid; gap: 12px; }
.cover { width: 100%; height: clamp(160px, 28vw, 260px); }
.org-title { margin: 0; font-size: 22px; }
.org-desc { margin: 6px 0 0; color: var(--muted); line-height: 1.45; }
.section-title { margin: 0 0 10px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.spacer { height: 12px; }
.crumbs { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.chip { border: 1px solid var(--line); background: rgba(255,255,255,.86); border-radius: 999px; padding: 5px 9px; font-size: 12px; color: var(--muted); }
.form-page { display: grid; gap: 12px; }
.form-visual {
  width: 100%; height: clamp(180px, 34vw, 320px);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #eef3f8;
}
.field-grid { display: grid; gap: 10px; }
.field-card {
  border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.92); padding: 10px;
}
.static-page, .faq-page { display: grid; gap: 10px; }
.faq-list { display: grid; gap: 10px; }
.faq-item {
  border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.92); padding: 8px 10px;
}
.faq-item > summary {
  cursor: pointer; font-weight: 700; list-style: none;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-answer { margin-top: 10px; color: var(--ink); line-height: 1.45; }
.faq-form { display: grid; gap: 8px; }
.faq-textarea { min-height: 110px; resize: vertical; font: inherit; }
.md-p { margin: 0 0 8px; }
.md-list { margin: 0 0 8px 18px; padding: 0; }
.md-list li { margin: 0 0 4px; }
.faq-answer h1, .faq-answer h2, .faq-answer h3, .faq-answer h4, .faq-answer h5, .faq-answer h6 { margin: 10px 0 6px; }
.faq-answer code { background: #eef3f8; padding: 2px 5px; border-radius: 6px; }
.faq-answer a { color: var(--accent); }
.md-img { max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.md-table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 13px; }
.md-table th, .md-table td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.md-table th { background: #f3f7fc; }
.field-label { margin: 0 0 6px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.field-value { margin: 0; white-space: pre-wrap; line-height: 1.4; }
.contacts-grid { display: grid; gap: 8px; grid-template-columns: 1fr; }
.contact-card {
  border: 1px solid var(--line); border-radius: 12px; background: #f8fbff; padding: 10px;
}
.contact-name { margin: 0 0 8px; text-align: center; font-weight: 700; }
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 10px; padding: 9px 10px; cursor: pointer;
  font-weight: 600; text-decoration: none; font-size: 14px;
}
.btn.primary { background: var(--accent); color: white; }
.btn.secondary { background: var(--accent-2); color: white; }
.btn.disabled { background: #d9e1ea; color: #6d7b8a; pointer-events: none; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
@media (min-width: 760px) {
  .contacts-grid { grid-template-columns: 1fr 1fr; }
}
`;
