:root {
  color-scheme: light;
  --page: #f4f5f7;
  --paper: #ffffff;
  --ink: #171927;
  --muted: #686c7b;
  --line: #e2e4e9;
  --line-strong: #d4d7df;
  --violet: #6254d8;
  --violet-soft: #f2f0ff;
  --teal: #147d77;
  --teal-soft: #edf8f7;
  --warning: #8a6419;
  --warning-soft: #fbf6e9;
  --navy: #15182b;
  --content: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #5145c4;
  text-decoration-color: rgba(81, 69, 196, 0.3);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #3f35a5;
  text-decoration-color: currentColor;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(98, 84, 216, 0.25);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 9px 14px;
  border-radius: 6px;
  color: #fff;
  background: var(--navy);
  transform: translateY(-160%);
  transition: transform 140ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 228, 233, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  width: min(calc(100% - 40px), var(--content));
  min-height: 72px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-logo {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.header-actions,
.language-switcher {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 12px;
}

.document-link {
  color: #505463;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.document-link:hover {
  color: var(--violet);
}

.language-switcher {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--paper);
}

.language-button {
  min-width: 44px;
  min-height: 34px;
  padding: 5px 10px;
  border: 0;
  border-right: 1px solid var(--line-strong);
  color: #737786;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.05em;
}

.language-button:last-child {
  border-right: 0;
}

.language-button:hover {
  color: var(--ink);
  background: #f7f7f9;
}

.language-button[aria-pressed="true"] {
  color: #fff;
  background: var(--navy);
}

.page-shell {
  width: min(calc(100% - 40px), var(--content));
  margin: 38px auto 76px;
}

.hero {
  position: relative;
  padding: clamp(34px, 6vw, 68px) clamp(28px, 7vw, 76px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px 12px 0 0;
  color: var(--ink);
  background: var(--paper);
}

.hero::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--violet);
  content: "";
}

.eyebrow {
  display: block;
  margin-bottom: 18px;
  color: var(--violet);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 790px;
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(38px, 5.5vw, 62px);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.hero-intro {
  max-width: 730px;
  margin: 0;
  color: #565a69;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.68;
}

.hero-meta {
  display: flex;
  margin-top: 28px;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.hero-meta span {
  position: relative;
  color: #777b88;
  font-size: 12px;
  font-weight: 560;
}

.hero-meta span + span::before {
  position: absolute;
  left: -13px;
  color: #c0c3ca;
  content: "·";
}

.content-grid {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  align-items: start;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: var(--paper);
}

.toc {
  position: sticky;
  top: 96px;
  padding: 34px 25px;
}

.toc-label {
  margin: 0 0 14px;
  color: #8a8e9a;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc li + li {
  margin-top: 2px;
}

.toc a {
  display: block;
  padding: 5px 0;
  color: #696d7b;
  font-size: 12px;
  font-weight: 520;
  line-height: 1.4;
  text-decoration: none;
}

.toc a:hover {
  color: var(--violet);
}

.document {
  min-width: 0;
  border-left: 1px solid var(--line);
}

.section-card {
  padding: clamp(30px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.section-card:last-child {
  border-bottom: 0;
  border-radius: 0 0 11px 0;
}

.section-index {
  display: block;
  margin-bottom: 13px;
  color: var(--violet);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.section-card h2 {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: clamp(25px, 3vw, 32px);
  font-weight: 680;
  letter-spacing: -0.032em;
  line-height: 1.18;
}

.section-card h3 {
  margin: 30px 0 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 680;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.section-card p {
  margin: 0 0 17px;
  color: #454957;
}

.section-card p:last-child {
  margin-bottom: 0;
}

.section-card ul,
.section-card ol {
  margin: 13px 0 20px;
  padding-left: 23px;
  color: #454957;
}

.section-card li {
  padding-left: 4px;
}

.section-card li + li {
  margin-top: 9px;
}

.section-card strong {
  color: var(--ink);
  font-weight: 680;
}

.notice {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 3px solid var(--violet);
  color: #3f4250;
  background: var(--violet-soft);
}

.notice.success {
  border-left-color: var(--teal);
  background: var(--teal-soft);
}

.notice.warning {
  border-left-color: var(--warning);
  background: var(--warning-soft);
}

.notice strong {
  display: block;
  margin-bottom: 4px;
}

.table-wrap {
  margin: 25px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--paper);
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.55;
}

th,
td {
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

th {
  color: #4d5160;
  background: #f7f7f8;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.badge {
  display: inline-block;
  margin-bottom: 2px;
  padding: 2px 7px;
  border-radius: 3px;
  color: #286b5a;
  background: #edf7f3;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge.network {
  color: #5147a0;
  background: #f0effa;
}

.service-list {
  margin: 23px 0;
  border-top: 1px solid var(--line);
}

.service {
  display: grid;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(140px, 0.32fr) minmax(0, 0.68fr);
  gap: 18px;
}

.service strong,
.service span {
  display: block;
}

.service span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.contact-panel {
  color: #fff;
  background: var(--navy);
}

.contact-panel .section-index {
  color: #9e96ed;
}

.contact-panel h2,
.contact-panel strong {
  color: #fff;
}

.contact-panel p {
  color: #c7c9d3;
}

.contact-panel a {
  color: #bbb5ff;
  text-decoration-color: rgba(187, 181, 255, 0.35);
}

.contact-details {
  display: grid;
  margin-top: 25px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  border-left: 1px solid rgba(255, 255, 255, 0.13);
}

.contact-item {
  padding: 15px 17px;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.contact-item span {
  display: block;
  margin-bottom: 4px;
  color: #898d9f;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.contact-item address {
  color: #d8dae2;
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
}

.site-footer {
  display: flex;
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #7b7f8c;
  font-size: 11px;
}

.site-footer p {
  margin: 0;
}

.back-to-top {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

@media (max-width: 880px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    padding: 26px 28px;
    border-bottom: 1px solid var(--line);
  }

  .toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px 22px;
  }

  .document {
    border-left: 0;
  }

  .section-card:last-child {
    border-radius: 0 0 11px 11px;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .page-shell,
  .site-footer {
    width: min(calc(100% - 24px), var(--content));
  }

  .header-inner {
    min-height: 64px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .brand > span,
  .document-link {
    display: none;
  }

  .page-shell {
    margin-top: 18px;
  }

  .hero {
    padding: 34px 25px 32px;
  }

  .hero h1 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .hero-meta {
    display: grid;
    gap: 4px;
  }

  .hero-meta span + span::before {
    display: none;
  }

  .toc ol,
  .contact-details {
    grid-template-columns: 1fr;
  }

  .service {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .section-card {
    padding: 32px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #101116;
    --paper: #191a21;
    --ink: #f0f1f5;
    --muted: #a6a9b3;
    --line: #30323a;
    --line-strong: #3a3c46;
    --violet-soft: #29263e;
    --teal-soft: #1d302f;
    --warning-soft: #332d20;
    --navy: #12131b;
  }

  .site-header {
    background: rgba(25, 26, 33, 0.94);
  }

  .document-link,
  .toc a,
  .hero-intro,
  .hero-meta span,
  .section-card p,
  .section-card ul,
  .section-card ol {
    color: #b8bbc5;
  }

  .language-button:hover,
  th {
    background: #22242c;
  }

  .language-button[aria-pressed="true"] {
    color: #14151c;
    background: #f1f2f5;
  }

  .notice {
    color: #d7d8df;
  }

  .badge {
    color: #8bcab9;
    background: #203a33;
  }

  .badge.network {
    color: #b6afea;
    background: #302c4d;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  body {
    color: #111;
    background: #fff;
    font-size: 10.5pt;
  }

  .site-header,
  .toc,
  .site-footer {
    display: none !important;
  }

  .page-shell {
    width: 100%;
    margin: 0;
  }

  .hero,
  .content-grid {
    border: 0;
    border-radius: 0;
  }

  .hero {
    padding: 25px 0 30px;
  }

  .hero::before {
    display: none;
  }

  .hero h1 {
    color: #111;
    font-size: 32pt;
  }

  .hero-intro,
  .hero-meta span,
  .section-card p,
  .section-card ul,
  .section-card ol,
  .service span {
    color: #222;
  }

  .content-grid {
    display: block;
  }

  .document {
    border: 0;
  }

  .section-card,
  .contact-panel {
    padding: 23px 0;
    color: #111;
    background: #fff;
    break-inside: avoid;
  }

  .contact-panel h2,
  .contact-panel strong,
  .contact-panel p,
  .contact-panel a,
  .contact-item address {
    color: #111;
  }

  .contact-details,
  .contact-item {
    border-color: #bbb;
  }

  a {
    color: #111;
    text-decoration: none;
  }
}
