:root {
  color-scheme: light;
  --page: #f7f8fc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #526079;
  --border: #e4e7f0;
  --accent: #6c4dff;
  --accent-soft: #f0edff;
  --shadow: 0 18px 50px rgba(37, 30, 82, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
a { color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid rgba(108, 77, 255, 0.34); outline-offset: 4px; border-radius: 4px; }
.skip-link { position: absolute; left: 16px; top: 12px; z-index: 10; padding: 10px 14px; background: var(--text); color: white; border-radius: 12px; transform: translateY(-220%); }
.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--border); background: rgba(247, 248, 252, 0.94); }
.site-header__inner, .page { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.site-header__inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { color: var(--text); font-size: 18px; font-weight: 750; text-decoration: none; letter-spacing: -0.02em; }
.header-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; font-size: 15px; }
.header-nav a { color: var(--muted); font-weight: 600; text-decoration: none; }
.header-nav a[aria-current="page"] { color: var(--accent); }
.page { padding-block: 48px 80px; }
.hero { max-width: 850px; margin-bottom: 28px; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 14px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.025em; scroll-margin-top: 24px; }
h1 { margin: 0 0 16px; font-size: clamp(34px, 5vw, 54px); }
h2 { margin: 0 0 16px; font-size: clamp(25px, 3vw, 32px); }
h3 { margin: 26px 0 8px; font-size: 21px; }
.lead { margin: 0; max-width: 780px; color: var(--muted); font-size: clamp(18px, 2vw, 21px); }
.meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 22px; color: var(--muted); font-size: 15px; }
.layout { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); align-items: start; gap: 28px; }
.toc, .document { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.toc { position: sticky; top: 20px; padding: 24px; border-radius: 20px; }
.toc h2 { font-size: 17px; margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li + li { margin-top: 8px; }
.toc a { color: var(--muted); font-size: 15px; text-decoration: none; }
.toc a:hover { color: var(--accent); }
.document { min-width: 0; padding: clamp(24px, 5vw, 56px); border-radius: 24px; }
.document section + section { margin-top: 48px; padding-top: 44px; border-top: 1px solid var(--border); }
.document p { margin: 0 0 14px; }
.document ul, .document ol { margin: 12px 0 16px; padding-left: 24px; }
.document li + li { margin-top: 8px; }
.note { margin: 22px 0; padding: 18px 20px; background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 0 16px 16px 0; }
.table-wrap { margin: 20px 0; overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; }
table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
th, td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
th { background: #f4f3ff; font-weight: 700; }
tr:last-child td { border-bottom: 0; }
address { font-style: normal; }
.document-footer { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border); }
.document-footer a { font-weight: 650; }
.support-layout { width: 100%; }
.support-layout .document { width: 100%; }

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.contact-card {
  display: flex;
  min-width: 0;
  min-height: 156px;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px;
  color: var(--text);
  text-decoration: none;
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.contact-card:hover {
  border-color: rgba(108, 77, 255, 0.38);
  box-shadow: 0 12px 30px rgba(37, 30, 82, 0.08);
  transform: translateY(-2px);
}
.contact-card strong { font-size: 18px; overflow-wrap: anywhere; }
.contact-card > span:last-child { color: var(--muted); font-size: 15px; }
.contact-card__tag {
  display: inline-flex;
  padding: 5px 9px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
}
.support-form {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  padding: clamp(20px, 4vw, 30px);
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: 20px;
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 8px; color: var(--text); font-size: 15px; font-weight: 700; }
.field small { color: var(--muted); font-size: 13px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid #cfd5e2;
  border-radius: 12px;
  font: inherit;
  font-weight: 450;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid rgba(108, 77, 255, 0.18);
  border-color: var(--accent);
}
.consent { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.consent input { width: 19px; height: 19px; flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--accent); }
.primary-action {
  min-height: 50px;
  padding: 12px 20px;
  color: white;
  background: var(--accent);
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.primary-action:hover { background: #5a3fe0; }
.primary-action:focus-visible { outline: 3px solid rgba(108, 77, 255, 0.34); outline-offset: 3px; }
.form-note, .form-status { margin: 0 !important; color: var(--muted); font-size: 14px; }
.form-status { min-height: 1.5em; color: var(--accent); font-weight: 650; }
.faq-list { display: grid; gap: 12px; margin-top: 20px; }
.faq-list details { padding: 0 18px; background: var(--page); border: 1px solid var(--border); border-radius: 16px; }
.faq-list summary { padding: 17px 28px 17px 0; font-weight: 700; cursor: pointer; }
.faq-list details p { padding: 0 0 18px; color: var(--muted); }

@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; }
  .toc { position: static; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  h1 { font-size: 30px; line-height: 1.15; }
  .site-header__inner, .page { width: min(100% - 28px, 1120px); }
  .site-header__inner { align-items: flex-start; flex-direction: column; padding-block: 15px; }
  .header-nav { justify-content: flex-start; }
  .page { padding-block: 32px 52px; }
  .document, .toc { border-radius: 18px; }
  .document { padding: 22px 18px; }
  .document section + section { margin-top: 36px; padding-top: 32px; }
  .support-grid, .form-row { grid-template-columns: 1fr; }
  .contact-card { min-height: 0; }
  .support-form { padding: 18px 14px; }
}

@media (max-width: 340px) {
  h1 { font-size: 27px; }
}

@media print {
  @page { margin: 18mm; }
  body { min-width: 0; background: white; color: black; font-size: 11pt; }
  .site-header, .toc, .skip-link, .document-footer { display: none; }
  .page { width: 100%; padding: 0; }
  .hero { margin-bottom: 18pt; }
  .document { padding: 0; border: 0; box-shadow: none; }
  .document section + section { break-before: auto; margin-top: 22pt; padding-top: 18pt; }
  h1, h2, h3 { break-after: avoid; }
  table, .note { break-inside: avoid; }
  a { color: black; text-decoration: none; }
  a[href^="http"]::after, a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
