@font-face {
  font-family: "Onest Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/onest-cyrillic.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Onest Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/onest-latin.woff2") format("woff2-variations");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
}

:root {
  --bg: #f4f2fb;
  --section: #ffffff;
  --section-muted: #f0edfa;
  --text: #17142b;
  --hint: #6a6680;
  --separator: #e6e2f3;
  --accent: #6e4bf6;
  --accent-soft: #eee9ff;
  --accent-text: #ffffff;
  --ink: #1d1748;
  --ink-deep: #120e2c;
  --ink-text: #ffffff;
  --ink-hint: #b3acdf;
  --lavender: #e7e1ff;
  --success: #1e7d4f;
  --success-soft: #e2f5eb;
  --warning: #8a5606;
  --warning-soft: #fcf0d9;
  --danger: #c93a40;
  --danger-soft: #fce6e7;
  --motion-100: 100ms;
  --motion-150: 150ms;
  --motion-200: 200ms;
  --motion-300: 300ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0c17;
    --section: #1a1726;
    --section-muted: #24203a;
    --text: #f1effa;
    --hint: #a19cbb;
    --separator: #2b2741;
    --accent: #a08bff;
    --accent-soft: #2a2450;
    --accent-text: #140f2e;
    --ink: #1f1a3d;
    --lavender: #2b2552;
    --success: #4cc98a;
    --success-soft: #15301f;
    --warning: #f0b445;
    --warning-soft: #33280f;
    --danger: #ff6b70;
    --danger-soft: #3a191b;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Onest Variable",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.on-ink :focus-visible,
.ink :focus-visible {
  outline-color: #ffffff;
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 30;
  padding: 12px 16px;
  border-radius: 16px;
  background: #ffffff;
  color: #1d1748;
  text-decoration: none;
  font-weight: 500;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--separator);
}

.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.header.on-ink {
  position: absolute;
  inset: 0 0 auto;
  background: transparent;
  border-bottom: 0;
  color: #ffffff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: inherit;
  font-weight: 600;
  font-size: 20px;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav {
  display: none;
  gap: 4px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 16px;
  color: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover {
  background: rgb(255 255 255 / 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 16px;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--motion-100) var(--ease-out),
    filter var(--motion-100) var(--ease-out);
}

.btn:hover {
  filter: brightness(1.08);
}

.btn:active {
  transform: scale(0.97);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn-light {
  background: #ffffff;
  color: #1d1748;
}

.btn-line {
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 1.5px currentcolor;
}

.btn-sm {
  min-height: 44px;
  padding: 0 16px;
  font-size: 15px;
}

.header .btn {
  display: none;
}

.hdr-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header .hdr-articles {
  display: inline-flex;
}

.footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--separator);
  color: var(--hint);
  font-size: 14px;
}

.footer .wrap {
  display: grid;
  gap: 16px;
}

.footer p + p {
  margin-top: 8px;
}

.footer a {
  color: var(--text);
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.doc {
  padding: 32px 0 48px;
}

.doc .wrap {
  max-width: 760px;
}

.doc h1 {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.doc h2 {
  margin-top: 32px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
}

.doc p,
.doc li {
  margin-top: 12px;
}

.doc ul {
  padding-left: 24px;
  list-style: disc;
}

.doc ol {
  padding-left: 24px;
  list-style: decimal;
}

.doc ol li::marker {
  font-weight: 600;
}

.doc h3 {
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 600;
}

.doc a {
  color: var(--accent);
}

.doc .lead {
  margin-top: 16px;
  font-size: 18px;
}

.crumbs {
  margin-bottom: 16px;
  color: var(--hint);
  font-size: 14px;
}

.doc .crumbs a {
  color: inherit;
}

.cta {
  margin-top: 40px;
  padding: 24px;
  border-radius: 22px;
  background: var(--section);
}

.doc .cta-title {
  margin-top: 0;
  font-size: 20px;
  font-weight: 600;
}

.doc .cta .btn {
  margin-top: 16px;
  color: var(--accent-text);
}

.table-scroll {
  margin-top: 16px;
  overflow-x: auto;
}

.table-scroll table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
}

.table-scroll th,
.table-scroll td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--separator);
  text-align: left;
  vertical-align: top;
}

.table-scroll th {
  color: var(--hint);
  font-weight: 500;
}

.art-list {
  margin-top: 24px;
}

.doc .art-list {
  padding: 0;
  list-style: none;
}

.art-list li {
  margin-top: 12px;
  padding: 20px 24px;
  border-radius: 22px;
  background: var(--section);
}

.art-list a {
  font-size: 19px;
  font-weight: 600;
  text-decoration: none;
}

.art-list p {
  margin-top: 6px;
  color: var(--hint);
  font-size: 15px;
}

.doc li::marker {
  color: var(--accent);
}

.doc strong {
  font-weight: 600;
}

.updated {
  margin-top: 8px;
  color: var(--hint);
  font-size: 14px;
}

.ph {
  padding: 0 4px;
  border-radius: 6px;
  background: var(--warning-soft);
  color: var(--warning);
  font-weight: 500;
}

.table {
  margin-top: 16px;
}

.table table,
.table thead,
.table tbody,
.table tr,
.table td {
  display: block;
}

.table thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.table tr {
  margin-top: 8px;
  padding: 12px 16px;
  border: 1px solid var(--separator);
  border-radius: 16px;
  background: var(--section);
}

.table td {
  padding: 4px 0;
  font-size: 15px;
}

.table td::before {
  content: attr(data-label);
  display: block;
  color: var(--hint);
  font-size: 13px;
}

@media (min-width: 720px) {
  .nav {
    display: flex;
  }

  .header.on-ink .hdr-articles {
    display: none;
  }

  .header .btn {
    display: inline-flex;
  }

  .footer .wrap {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .table table {
    display: table;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--separator);
    border-radius: 16px;
    background: var(--section);
  }

  .table thead {
    display: table-header-group;
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }

  .table tbody {
    display: table-row-group;
  }

  .table tr {
    display: table-row;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
  }

  .table th,
  .table td {
    display: table-cell;
    padding: 12px 16px;
    border-bottom: 1px solid var(--separator);
    font-size: 15px;
    text-align: left;
    vertical-align: top;
  }

  .table th {
    color: var(--hint);
    font-size: 14px;
    font-weight: 500;
  }

  .table td::before {
    content: none;
  }

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

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation: none !important;
  }
}
