:root {
  color-scheme: dark;
  --bg: #05070d;
  --surface: rgba(16, 20, 32, 0.84);
  --surface-strong: #111624;
  --surface-soft: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(104, 145, 255, 0.32);
  --text: #f4f7ff;
  --muted: #a6afc3;
  --brand: #6d8cff;
  --brand-strong: #8ba2ff;
  --accent: #7c5cff;
  --success: #54d6ad;
  --warning: #ffcf70;
  --danger: #ff8e9b;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.34);
  --radius-lg: 30px;
  --radius-md: 18px;
  --content: 760px;
}

* { box-sizing: border-box; }

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

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 15% -10%, rgba(76, 112, 255, 0.22), transparent 34rem),
    radial-gradient(circle at 90% 14%, rgba(124, 92, 255, 0.14), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
  content: "";
  pointer-events: none;
}

a { color: var(--brand-strong); text-underline-offset: .2em; }
a:hover { color: #b7c4ff; }

.reading-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 50;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  box-shadow: 0 0 18px rgba(109, 140, 255, .65);
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 8px;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 11px;
  background: linear-gradient(145deg, #7593ff, #6650e8);
  box-shadow: 0 10px 26px rgba(78, 104, 225, .35);
}

.brand-mark svg { width: 19px; height: 19px; }
.brand em { color: var(--brand-strong); font-style: normal; }

.header-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-links a,
.print-button {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  color: var(--muted);
  font: inherit;
  font-size: .875rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
}

.header-links a:hover,
.print-button:hover {
  border-color: var(--line-strong);
  background: rgba(109,140,255,.08);
  color: var(--text);
  transform: translateY(-1px);
}

.hero {
  width: min(1180px, calc(100% - 40px));
  margin: 34px auto 36px;
  padding: 42px 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(25,31,50,.94), rgba(10,13,23,.88));
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero::after {
  position: absolute;
  top: -120px;
  right: -100px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109,140,255,.2), transparent 67%);
  content: "";
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--brand-strong);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(84,214,173,.09);
  content: "";
}

h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -.055em;
}

.hero-summary {
  max-width: 760px;
  margin: 22px 0 0;
  color: #c3cada;
  font-size: 1.08rem;
  line-height: 1.65;
}

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

.meta-pill {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: .82rem;
}

.layout {
  display: grid;
  grid-template-columns: 260px minmax(0, var(--content));
  justify-content: center;
  gap: 44px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 76px;
}

.toc {
  position: sticky;
  top: 24px;
  align-self: start;
  max-height: calc(100vh - 48px);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(10,13,22,.72);
  backdrop-filter: blur(20px);
  overflow: auto;
}

.toc-title {
  margin: 0 0 12px;
  color: #d7dced;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.toc ol { margin: 0; padding: 0; list-style: none; }
.toc li + li { margin-top: 2px; }
.toc a {
  display: block;
  padding: 8px 10px;
  border-radius: 9px;
  color: #8994aa;
  font-size: .82rem;
  line-height: 1.3;
  text-decoration: none;
  transition: color .18s ease, background .18s ease;
}
.toc a:hover,
.toc a.is-active { background: rgba(109,140,255,.1); color: #dfe6ff; }
.toc a.is-active { box-shadow: inset 2px 0 0 var(--brand); }

.document {
  min-width: 0;
  padding: 46px 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.lead {
  margin: 0 0 34px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
  color: #c8cfdf;
  font-size: 1.05rem;
}

.legal-section { scroll-margin-top: 24px; }
.legal-section + .legal-section { margin-top: 44px; }

h2 {
  margin: 0 0 18px;
  color: #f7f8ff;
  font-size: clamp(1.38rem, 2vw, 1.72rem);
  line-height: 1.25;
  letter-spacing: -.028em;
}

h3 { margin: 26px 0 10px; color: #e9edfa; font-size: 1.03rem; line-height: 1.4; }
p { margin: 12px 0; color: #b5bed0; }
strong { color: #eef1fb; }
ul, ol { margin: 14px 0; padding-left: 1.35rem; color: #b5bed0; }
li { padding-left: .25rem; }
li + li { margin-top: 8px; }
li::marker { color: var(--brand); }

.callout {
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(109,140,255,.11), rgba(124,92,255,.055));
}
.callout p { margin: 0; color: #d2d9ea; }
.callout strong { color: #fff; }
.callout--warning { border-color: rgba(255,207,112,.34); background: rgba(255,207,112,.07); }
.callout--danger { border-color: rgba(255,142,155,.32); background: rgba(255,142,155,.07); }

.table-wrap { margin: 20px 0; border: 1px solid var(--line); border-radius: 15px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
tr:last-child td { border-bottom: 0; }
th { background: rgba(255,255,255,.04); color: #e9edfb; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
td { color: #aeb8cc; font-size: .91rem; }

.requisites {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-soft);
}
.requisites-row { display: grid; grid-template-columns: 180px 1fr; gap: 16px; }
.requisites-row span:first-child { color: #7f8aa0; font-size: .84rem; }
.requisites-row span:last-child { color: #e1e6f3; font-weight: 600; }
.placeholder { color: var(--warning) !important; }

.document-footer {
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: #7f899e;
  font-size: .84rem;
}

.page-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 36px;
  color: #737e94;
  font-size: .82rem;
  text-align: center;
}

:focus-visible { outline: 3px solid rgba(109,140,255,.7); outline-offset: 3px; }

@media (max-width: 920px) {
  .layout { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: static; max-height: none; }
  .toc ol { columns: 2; column-gap: 10px; }
  .toc li { break-inside: avoid; }
}

@media (max-width: 640px) {
  .site-header, .hero, .layout, .page-footer { width: min(100% - 24px, 1180px); }
  .site-header { padding-top: 14px; }
  .header-links a { display: none; }
  .hero { margin-top: 20px; padding: 30px 24px; border-radius: 22px; }
  .hero-summary { font-size: 1rem; }
  .toc { padding: 16px; }
  .toc ol { columns: 1; }
  .document { padding: 30px 22px; border-radius: 22px; }
  .legal-section + .legal-section { margin-top: 36px; }
  .requisites-row { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  :root { color-scheme: light; }
  body { background: white; color: #111; font-family: Georgia, "Times New Roman", serif; font-size: 11pt; }
  body::before, .reading-progress, .site-header, .toc, .page-footer { display: none !important; }
  .hero { width: 100%; margin: 0 0 14mm; padding: 0 0 8mm; border: 0; border-bottom: 1px solid #bbb; border-radius: 0; background: none; box-shadow: none; }
  .hero::after, .eyebrow::before { display: none; }
  .eyebrow { color: #333; }
  h1 { color: #000; font-size: 25pt; }
  .hero-summary, .meta-pill, p, li, td { color: #222; }
  .layout { display: block; width: 100%; margin: 0; }
  .document { padding: 0; border: 0; background: none; box-shadow: none; }
  .legal-section { break-inside: avoid-page; }
  h2, h3, strong, th { color: #000; }
  .callout, .requisites, .table-wrap { border-color: #aaa; background: #fafafa; }
  a { color: #111; text-decoration: none; }
}
