
    /* ---------- type: the site's own GT America, served locally ---------- */
    @font-face { font-family: "GT America"; src: url("/assets/P3OjLjGu6v81n98w2gJu394bcVY-efff89eb.woff2") format("woff2"); font-weight: 400; font-display: swap; }
    @font-face { font-family: "GT America"; src: url("/assets/QY4Xq3u8mkj66gnwHTlYuNpS9iE-cd6bf96f.woff2") format("woff2"); font-weight: 500; font-display: swap; }
    @font-face { font-family: "Inter Local"; src: url("/assets/vQyevYAyHtARFwPqUzQGpnDs-4c9aa270.woff2") format("woff2"); font-weight: 400; font-display: swap; }

    :root {
      --ink:        #222221;
      --ink-strong: #1A1816;
      --body:       #292421;
      --muted:      #6B635C;
      --line:       #E3E0D9;
      --surface:    #F7F7F5;
      --surface-2:  #EDECE7;
      --teal:       #46838C;
      --btn:        #160F0C;
      --radius:     16px;
      --nav-h:      72px;
      --font: "GT America", "GT America Regular", "Inter Local", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
      --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }
    body {
      margin: 0; background: #fff; color: var(--body);
      font-family: var(--font); font-size: 16px; line-height: 24px; letter-spacing: -0.01em;
      -webkit-font-smoothing: antialiased;
    }
    a { color: inherit; }
    .wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }

    /* ---------- nav ---------- */
    .nav {
      position: sticky; top: 0; z-index: 40; height: var(--nav-h);
      display: flex; align-items: center;
      background: rgba(255,255,255,.72); backdrop-filter: blur(14px);
      border-bottom: 1px solid transparent; transition: border-color .2s ease, background .2s ease;
    }
    .nav.scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,.9); }
    .nav-inner { display: flex; align-items: center; gap: 28px; }
    .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 20px; color: var(--ink-strong); letter-spacing: -0.02em; }
    .brand-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--teal) center/cover no-repeat; flex: none; }
    .nav-links { display: flex; align-items: center; gap: 26px; margin-left: 14px; }
    .nav-links a { text-decoration: none; color: var(--body); font-size: 16px; letter-spacing: -0.01em; opacity: .9; }
    .nav-links a:hover { opacity: 1; }
    .nav-links a.here { color: var(--ink-strong); font-weight: 500; }
    .nav-cta { margin-left: auto; display: flex; align-items: center; gap: 14px; }
    .nav-x { display: inline-flex; color: var(--body); opacity: .75; }
    .nav-x:hover { opacity: 1; }
    .btn {
      display: inline-flex; align-items: center; gap: 8px;
      background: var(--btn); color: #fff; text-decoration: none;
      border-radius: 999px; padding: 11px 20px; font-size: 16px; letter-spacing: -0.01em;
      transition: transform .15s ease, opacity .15s ease;
    }
    .btn:hover { transform: translateY(-1px); opacity: .92; }
    .btn .arrow { transition: transform .2s ease; }
    .btn:hover .arrow { transform: translateX(3px); }

    /* ---------- hero ---------- */
    .hero { position: relative; overflow: hidden; background: #F3E2D0; }
    .hero-media { position: absolute; inset: 0; background: url("/assets/docs-sky.jpg") center 38%/cover no-repeat; }
    .hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.55) 62%, #fff 100%); }
    .hero-inner { position: relative; padding: 96px 0 84px; }
    .eyebrow {
      display: inline-flex; align-items: center; height: 34px; padding: 0 14px;
      border-radius: 999px; background: rgba(22,15,12,.08); color: var(--ink-strong);
      font-size: 14px; letter-spacing: -0.01em; backdrop-filter: blur(4px);
    }
    h1 { margin: 20px 0 0; font-size: 72px; line-height: 1.02em; letter-spacing: -0.045em; font-weight: 400; color: var(--ink); }
    .lede { margin: 20px 0 0; max-width: 620px; font-size: 20px; line-height: 30px; letter-spacing: -0.02em; color: var(--body); }


    /* The same slow push-in the home page hero has, so the two read as one
       site. Long enough that it never looks like an animation in motion. */
    .hero { isolation: isolate; }
    .hero-media { will-change: transform; transform-origin: 58% 62%; animation: heroDrift 54s cubic-bezier(.45,0,.55,1) infinite alternate; }
    @keyframes heroDrift { from { transform: scale(1.015); } to { transform: scale(1.075) translate3d(-1.1%, -0.9%, 0); } }
    .hero::after { content: ""; position: absolute; inset: -10% -25% 30% -25%; pointer-events: none; z-index: 1;
      background: radial-gradient(58% 44% at 22% 46%, rgba(255,255,255,.30), rgba(255,255,255,0) 70%),
                  radial-gradient(46% 38% at 68% 34%, rgba(255,255,255,.22), rgba(255,255,255,0) 72%);
      mix-blend-mode: soft-light; animation: heroHaze 78s linear infinite; }
    @keyframes heroHaze { from { transform: translate3d(-6%,0,0); } to { transform: translate3d(6%,0,0); } }
    @media (prefers-reduced-motion: reduce) { .hero-media, .hero::after { animation: none !important; } }

    /* ---------- layout ---------- */
    .docs { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 56px; padding: 56px 0 96px; align-items: start; }
    .side { position: sticky; top: calc(var(--nav-h) + 28px); }
    .side h5 { margin: 0 0 14px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
    .side a {
      display: block; padding: 7px 12px; margin-left: -12px; border-radius: 10px;
      text-decoration: none; color: var(--muted); font-size: 15px; line-height: 21px; letter-spacing: -0.01em;
      transition: color .15s ease, background .15s ease;
    }
    .side a:hover { color: var(--ink-strong); background: var(--surface); }
    .side a.active { color: var(--ink-strong); background: var(--surface-2); }

    article { max-width: 760px; min-width: 0; }
    article h2 {
      margin: 64px 0 18px; font-size: 44px; line-height: 1.1em; letter-spacing: -0.05em;
      font-weight: 400; color: var(--ink);
    }
    article h2:first-of-type { margin-top: 8px; }
    article h3 { margin: 36px 0 10px; font-size: 20px; line-height: 28px; letter-spacing: -0.02em; font-weight: 500; color: var(--ink-strong); }
    article p { margin: 0 0 18px; font-size: 17px; line-height: 28px; letter-spacing: -0.01em; color: var(--body); }
    article ul { margin: 0 0 18px; padding: 0; list-style: none; }
    article ul li { position: relative; padding-left: 22px; margin-bottom: 12px; font-size: 17px; line-height: 28px; color: var(--body); }
    article ul li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
    article a { color: var(--teal); text-decoration: none; border-bottom: 1px solid rgba(70,131,140,.35); }
    article a:hover { border-bottom-color: var(--teal); }

    code { font-family: var(--mono); font-size: .92em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; color: var(--ink-strong); overflow-wrap: anywhere; }
    pre {
      margin: 0 0 22px; padding: 20px 22px; overflow-x: auto;
      background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    }
    pre code { background: none; padding: 0; font-size: 14px; line-height: 23px; }

    /* ---------- callout ---------- */
    .notice {
      display: flex; gap: 14px; align-items: flex-start;
      margin: 28px 0 8px; padding: 20px 22px;
      background: var(--surface-2); border-radius: var(--radius);
      font-size: 16px; line-height: 26px; color: var(--body);
    }
    .notice svg { flex: none; width: 22px; height: 22px; color: var(--teal); margin-top: 2px; }
    .notice b { font-weight: 500; color: var(--ink-strong); }

    /* ---------- tables ---------- */
    .table-wrap { margin: 0 0 22px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
    .table-scroll { overflow-x: auto; }
    table { width: 100%; border-collapse: collapse; font-size: 16px; }
    thead th {
      text-align: left; padding: 14px 20px; background: var(--surface-2);
      font-weight: 500; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; color: var(--muted);
      white-space: nowrap;
    }
    tbody td { padding: 16px 20px; border-top: 1px solid var(--line); vertical-align: top; line-height: 26px; color: var(--body); }
    tbody tr:nth-child(even) { background: #FCFCFB; }
    td.mono { font-family: var(--mono); font-size: 13.5px; word-break: break-all; }

    .copy {
      appearance: none; border: 1px solid var(--line); background: #fff; cursor: pointer;
      border-radius: 8px; padding: 3px 9px; margin-left: 8px;
      font-family: var(--font); font-size: 12px; color: var(--muted); vertical-align: middle;
    }
    .copy:hover { color: var(--ink-strong); border-color: var(--muted); }

    /* ---------- CTA band ---------- */
    .cta { margin: 0 0 0; padding: 72px 0; background: var(--surface); border-top: 1px solid var(--line); }
    .cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
    .cta h3 { margin: 0 0 8px; font-size: 40px; line-height: 1.1em; letter-spacing: -0.045em; font-weight: 400; color: var(--ink); }
    .cta p { margin: 0; color: var(--muted); font-size: 17px; }

    /* ---------- footer ---------- */
    .footer { background: var(--teal); color: #fff; padding: 72px 0 34px; }
    .foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px; }
    .foot-cols h6 { margin: 0 0 14px; font-size: 20px; line-height: 28px; letter-spacing: -0.02em; font-weight: 400; color: #fff; }
    .foot-cols a { display: block; margin-bottom: 10px; text-decoration: none; color: rgba(255,255,255,.82); font-size: 16px; letter-spacing: -0.01em; }
    .foot-cols a:hover { color: #fff; }
    .foot-bottom {
      display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
      margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.22);
      font-size: 16px; letter-spacing: -0.01em; color: rgba(255,255,255,.6);
    }
    .foot-bottom .ca { font-family: var(--mono); font-size: 13.5px; color: rgba(255,255,255,.75); }

    /* ---------- responsive ---------- */
    @media (max-width: 1040px) {
      .docs { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 40px; }
      .side {
        position: static; border: 1px solid var(--line); border-radius: var(--radius);
        padding: 18px 20px; background: var(--surface);
      }
      .side a { margin-left: 0; padding: 6px 10px; }
      /* Семь пунктов в хеддере: на узком экране не прячем меню, а даём
         прокрутку — иначе на планшете навигации нет вообще. */
      .nav-links { gap: 18px; margin-left: 8px; min-width: 0; overflow-x: auto;
        scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; }
      .nav-links::-webkit-scrollbar { display: none; }
      .nav-links a { font-size: 15px; white-space: nowrap; }
    }
    @media (max-width: 720px) {
      .wrap { padding: 0 20px; }
      h1 { font-size: 46px; letter-spacing: -0.035em; }
      .hero-inner { padding: 64px 0 56px; }
      .lede { font-size: 18px; line-height: 28px; }
      article h2 { font-size: 32px; margin-top: 48px; letter-spacing: -0.035em; }
      article p, article ul li { font-size: 16px; line-height: 26px; }
      .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .cta h3 { font-size: 30px; }
      .topbar { font-size: 13px; }
    }
    @media (max-width: 560px) {
      .nav-links a { font-size: 14px; }
      .nav-cta { gap: 10px; }
      .nav-cta .btn { padding: 9px 14px; font-size: 14px; }
    }
    @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
  
    /* ---------- дополнения для страниц второго уровня ---------- */
    .prose { max-width: 760px; }
    .prose h2 { margin: 56px 0 16px; font-size: 44px; line-height: 1.1em; letter-spacing: -0.05em; font-weight: 400; color: var(--ink); }
    .prose h2:first-of-type { margin-top: 8px; }
    .prose h3 { margin: 34px 0 10px; font-size: 20px; line-height: 28px; letter-spacing: -0.02em; font-weight: 500; color: var(--ink-strong); }
    .prose p, .prose li { font-size: 17px; line-height: 28px; letter-spacing: -0.01em; color: var(--body); }
    .prose p { margin: 0 0 16px; }
    .prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
    .prose li { margin: 0 0 8px; }
    .page { padding: 56px 0 96px; }
    .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; margin: 8px 0 24px; }
    .cards .c { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--surface); min-width: 0; }
    .cards .c h4 { margin: 0 0 8px; font-size: 17px; line-height: 24px; letter-spacing: -0.02em; font-weight: 500; color: var(--ink-strong); }
    .cards .c p { margin: 0; font-size: 15px; line-height: 23px; color: var(--muted); }
    .log { border-top: 1px solid var(--line); margin: 8px 0 0; }
    .log .row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
    .log .when { font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: 0; }
    .log .what { font-size: 16px; line-height: 25px; color: var(--body); }
    .log .what b { font-weight: 500; color: var(--ink-strong); }
    @media (max-width: 720px) { .prose h2 { font-size: 32px; } .log .row { grid-template-columns: 1fr; gap: 6px; } }
