@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/manrope-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/manrope-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/manrope-latin.woff2) format('woff2'); 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; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 600 800; font-display: swap; src: url(../fonts/unbounded-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 600 800; font-display: swap; src: url(../fonts/unbounded-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 600 800; font-display: swap; src: url(../fonts/unbounded-latin.woff2) format('woff2'); 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 {
  --ink: #121417;
  --text: #2A2D30;
  --muted: #6B7075;
  --line: #E6EBE9;
  --teal: #0E7C6B;
  --teal-dark: #0A5F52;
  --mint: #E2F5EF;
  --mint-2: #F1FAF7;
  --lemon: #FFE24A;
  --paper: #F6F8F7;
  --display: 'Unbounded', 'Arial Black', sans-serif;
  --body: 'Manrope', 'Segoe UI', Arial, sans-serif;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);
  --radius: 22px;
}

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

html { scroll-behavior: smooth; overflow-x: clip; }

h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 12px 18px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--lemon);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 4px 4px 0 var(--ink);
}

.skip-link:focus,
.skip-link:focus-visible { top: 12px; }

body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { border: 0; background: none; cursor: pointer; font: inherit; color: inherit; }

.wrap { width: 1200px; max-width: 100%; margin: 0 auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: auto;
  padding: 14px 26px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  opacity: 1;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn:hover { opacity: 1; }

.btn--primary,
.btn--accent {
  background: var(--teal);
  color: #fff;
  box-shadow: 4px 4px 0 var(--ink);
}

.btn--dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 4px 4px 0 var(--teal);
}

.btn--lemon {
  background: var(--lemon);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn--primary:hover,
.btn--accent:hover,
.btn--lemon:hover,
.btn--dark:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn--dark:hover { box-shadow: 2px 2px 0 var(--teal); }

.btn--primary:active,
.btn--accent:active,
.btn--lemon:active,
.btn--dark:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--ink);
}

.btn--white,
.btn--contour,
.btn--line {
  background: #fff;
  color: var(--ink);
}

.btn--white:hover,
.btn--contour:hover,
.btn--line:hover { background: var(--mint-2); }

.btn--link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0;
  border: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 4px;
  box-shadow: none;
}

.btn--full { width: 100%; }
.btn--large { padding: 18px 30px; font-size: 18px; border-radius: 16px; }
.btn--sm { padding: 10px 18px; font-size: 15px; }

.btn__short { display: none; }

.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--lemon);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--ink);
}

.note-row { padding-top: 12px; border-top: 1px solid rgba(18, 20, 23, .2); font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--ink); }

.page {
  display: block;
  padding-top: 0;
}

.header {
  background: #fff;
  display: block;
  padding: 0;
}

.header__content {
  width: 1200px;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  padding: 20px 0 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border-radius: 0;
  box-shadow: none;
}

.header__logo img { width: auto; height: 44px; }

.header__buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.header__buttons .btn { padding: 11px 20px; font-size: 15px; }

.guide-nav {
  position: sticky;
  top: 10px;
  z-index: 500;
  display: block;
  padding: 0;
  margin-bottom: 8px;
}

.guide-nav__inner {
  width: 1200px;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 8px;
  display: flex;
  gap: 4px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  box-shadow: 5px 5px 0 var(--ink);
}

.guide-nav__inner::-webkit-scrollbar { display: none; }

.guide-nav__link {
  flex-shrink: 0;
  padding: 9px 11px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
}

.guide-nav__link:hover { background: var(--mint-2); color: var(--teal); }

.guide-nav__link--accent {
  background: var(--mint);
  color: var(--teal);
  font-weight: 700;
}

.guide-nav__link--accent:hover { background: #CDEEE4; color: var(--teal-dark); }

.guide-nav__link--current,
.guide-nav__link--current:hover,
.guide-nav__link--active,
.guide-nav__link--active:hover {
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.guide-nav__sep {
  flex: 0 0 2px;
  width: 2px;
  height: 22px;
  margin: 0 4px;
  background: var(--line);
}

.footer {
  background: var(--paper);
  border-top: 2px solid var(--ink);
  padding: 56px 0 28px;
  margin-top: 0;
}

.footer__content {
  width: 1200px;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  padding: 0;
  background: none;
}

.footer__top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.footer__col,
.footer__col:first-child,
.footer__col:not(:first-child) {
  display: flex;
  flex-direction: column;
  grid-column: auto;
  gap: 12px;
  align-items: flex-start;
  padding-top: 0;
}

.footer__title {
  margin-bottom: 4px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  color: var(--teal);
}

.footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  transition: color .15s;
}

.footer__link:hover { color: var(--teal); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  padding-top: 22px;
  font-size: 14px;
  color: var(--muted);
}

.footer__bottom span { font-size: 14px; color: var(--muted); }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(18, 20, 23, .55);
  color: inherit;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-overlay[open],
.modal-overlay--open { display: flex; }

.modal-overlay::backdrop { background: transparent; }

body:has(dialog.modal-overlay[open]) { overflow: hidden; }

.modal {
  position: relative;
  width: 640px;
  max-width: 100%;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 32px;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: #fff;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
}

.modal__close:hover { background: var(--lemon); }

.modal__title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 18px;
}

.modal__table { width: 100%; border-collapse: collapse; }
.modal__table tr { border-bottom: 1px solid var(--line); }
.modal__table tr:last-child { border-bottom: 0; }

.modal__table td {
  padding: 10px 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  vertical-align: top;
}

.modal__table td:first-child {
  width: 40%;
  padding-right: 16px;
  color: var(--muted);
}

.js .rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

.js .rv.in { opacity: 1; transform: none; }
.js .rv-d1 { transition-delay: .08s; }
.js .rv-d2 { transition-delay: .16s; }
.js .rv-d3 { transition-delay: .24s; }

@media (max-width: 900px) {
  .guide-nav__inner {
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 36px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 36px), transparent 100%);
  }
}

@media (max-width: 768px) {
  .header__content { padding: 14px 0 10px; gap: 10px; }
  .header__logo { flex-shrink: 0; }
  .header__logo img { height: 34px; }
  .header__buttons { gap: 6px; }
  .header__buttons .btn--white { display: none; }
  .header__buttons .btn { padding: 9px 11px; font-size: 13px; }
  .guide-nav__inner { border-radius: 14px; padding: 6px; box-shadow: 3px 3px 0 var(--ink); }
  .footer { padding: 40px 0 24px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  .modal { padding: 26px 20px; box-shadow: var(--shadow); }
}

@media (max-width: 480px) {
  .header__cta .btn__long { display: none; }
  .header__cta .btn__short { display: inline; }
}

@media (max-width: 349px) {
  .header__cta { display: none; }
}

@media (max-width: 360px) {
  .h2, .api__text .h2 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
