@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/portal/assets/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("/portal/assets/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+2074, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Layer scale: content 0, sticky navigation 2, notifications 4, skip link 5.
   Shape scale: controls 8px, product panels 16px, access surfaces 20px. */
:root {
  color-scheme: light;
  --paper: #f5f7f3;
  --surface: #fcfdfb;
  --soft: #eaf0e7;
  --ink: #1c2d24;
  --muted: #5c6c61;
  --line: #d7e0d3;
  --accent: #2d6347;
  --on-accent: #f7faf5;
  --tint: #e0ecd9;
  --code: #f1f5ee;
  --danger: #9e3731;
  --danger-bg: #fae9e5;
  --shadow: 0 22px 70px -30px #31482f38;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #141e19;
  --surface: #1a2820;
  --soft: #202f25;
  --ink: #e8f0e3;
  --muted: #acbca8;
  --line: #344737;
  --accent: #b5d99c;
  --on-accent: #172317;
  --tint: #2b402b;
  --code: #1a2920;
  --danger: #f6ada0;
  --danger-bg: #3b2824;
  --shadow: 0 22px 70px -30px #09120c88;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.6 Manrope,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
body,
button,
input,
select {
  font-feature-settings: "ss01" on;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
select {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.48;
}
a,
button,
input,
select {
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
button:active,
.button:active {
  transform: translateY(1px);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
input,
select,
button {
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
code,
pre {
  font-family: var(--mono);
}
p code {
  font-size: 0.85em;
  background: var(--soft);
  padding: 2px 5px;
  border-radius: 4px;
}
button {
  border: 0;
  background: none;
}
.container {
  width: min(1248px, calc(100% - 96px));
  margin-inline: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: 14px;
  left: 16px;
  z-index: 5;
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 8px;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 750;
  font-size: 22px;
  letter-spacing: -0.8px;
  flex-shrink: 0;
}
.brand img {
  object-fit: contain;
  flex: none;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-left: auto;
}
.main-nav a {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 0;
}
.main-nav a:hover,
.main-nav a[aria-current="location"] {
  color: var(--ink);
}
.main-nav a[aria-current="location"] {
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.theme-control {
  position: relative;
}
.theme-control::after {
  content: "⌄";
  position: absolute;
  right: 3px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--muted);
  font-size: 14px;
}
.theme-control select {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  padding: 8px 20px 8px 3px;
  max-width: 100px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 20px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.button:hover {
  border-color: var(--accent);
  background: var(--soft);
}
.button span[aria-hidden] {
  font-size: 18px;
  font-weight: 500;
}
.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.button-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.button-small {
  min-height: 38px;
  padding: 7px 14px;
  font-size: 12px;
  gap: 15px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 650;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.menu-toggle {
  display: none;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: 68px;
  align-items: center;
  padding-top: 66px;
  padding-bottom: 72px;
}
.hero-copy {
  padding-bottom: 12px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--muted);
}
h1 {
  font-size: clamp(42px, 4.7vw, 64px);
  font-weight: 650;
  letter-spacing: -3px;
  line-height: 1.1;
  margin-bottom: 26px;
}
h1 span {
  color: var(--accent);
}
.hero-description {
  font-size: 16px;
  line-height: 1.85;
  max-width: 400px;
  color: var(--muted);
  margin-bottom: 31px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 27px;
  flex-wrap: wrap;
}
.request-stage {
  padding: 14px;
  position: relative;
  min-width: 0;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.request-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-width: 0;
}
.request-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px 12px;
}
.request-title {
  font-size: 12px;
  font-weight: 750;
}
.protocol {
  font: 10px var(--mono);
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 4px 6px;
  border-radius: 4px;
}
.model-picker {
  margin: 0 22px 18px;
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--code);
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 7px;
}
.model-picker > span {
  color: var(--muted);
  font-size: 11px;
}
.model-picker select {
  background: transparent;
  border: 0;
  min-width: 0;
  flex: 1;
  padding: 3px 0;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
}
.model-picker select:focus-visible {
  outline-offset: 1px;
}
.code-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px;
  border-block: 1px solid var(--line);
}
.code-tabs {
  display: flex;
  gap: 19px;
}
.code-tabs button {
  font-size: 11px;
  color: var(--muted);
  padding: 12px 0;
  position: relative;
}
.code-tabs button[aria-selected="true"] {
  color: var(--ink);
  font-weight: 750;
}
.code-tabs button[aria-selected="true"]:after {
  position: absolute;
  content: "";
  height: 2px;
  bottom: -1px;
  inset-inline: 0;
  background: var(--accent);
}
.copy-code {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
  padding: 6px 0;
}
.copy-code:hover {
  color: var(--accent);
}
#examplePanel {
  background: var(--code);
  min-width: 0;
  overflow-x: auto;
}
pre {
  font-size: 12.5px;
  line-height: 1.95;
  min-height: 306px;
  margin: 0;
  padding: 20px 22px 22px;
  tab-size: 4;
  white-space: pre;
  overflow-wrap: normal;
}
pre code {
  font: inherit;
}
.syntax-keyword {
  color: var(--accent);
  font-weight: 700;
}
.syntax-string {
  color: var(--muted);
}
.request-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 13px 20px;
  font-size: 10px;
  color: var(--muted);
}
.request-foot code {
  font-size: 10px;
}
.request-foot a:hover {
  color: var(--accent);
}
.promise-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-block: 1px solid var(--line);
  padding: 23px 0;
  color: var(--muted);
  font-size: 12px;
}
.promise-strip p {
  margin: 0;
  text-align: center;
  border-right: 1px solid var(--line);
}
.promise-strip p:first-child {
  text-align: left;
}
.promise-strip p:last-child {
  border: 0;
  text-align: right;
}
.section {
  padding-top: 94px;
  padding-bottom: 94px;
}
.section-heading {
  margin-bottom: 35px;
}
.section-heading h2,
.connection h2 {
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.2;
  letter-spacing: -1.6px;
  font-weight: 600;
  margin-bottom: 17px;
}
.section-heading p {
  font-size: 14px;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.85;
  margin-bottom: 0;
}
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.filter-group button {
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  padding: 9px 16px;
  border-radius: 7px;
  border: 1px solid transparent;
  min-height: 40px;
}
.filter-group button[aria-pressed="true"] {
  background: var(--tint);
  color: var(--ink);
  border-color: var(--line);
}
.filter-group button:hover {
  background: var(--soft);
}
.catalog-search {
  width: 310px;
}
.catalog-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  font-size: 12px;
  padding: 11px 14px;
  min-height: 42px;
}
.catalog-search input::placeholder {
  color: var(--muted);
  opacity: 1;
}
.model-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
}
.model-table th {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}
.model-table th:first-child {
  width: 36%;
  padding-left: 0;
}
.model-table th:nth-child(2) {
  width: 13%;
}
.model-table th:nth-child(3) {
  width: 12%;
}
.model-table th:nth-child(4) {
  width: 27%;
}
.model-table th:last-child {
  width: 12%;
  text-align: right;
  padding-right: 0;
}
.model-table td {
  padding: 22px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  overflow-wrap: anywhere;
}
.model-table td:first-child {
  padding-left: 0;
}
.model-table td:last-child {
  padding-right: 0;
  text-align: right;
}
.model-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.25px;
  display: block;
}
.model-family {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
  display: block;
}
.model-description {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 7px 0 0;
  max-width: 41ch;
}
.tier-tag {
  display: inline-flex;
  font-size: 10px;
  font-weight: 650;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 8px;
}
.tier-tag.paid {
  background: var(--tint);
}
.rate {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 6px;
}
.model-context {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.model-id {
  font: 11px/1.8 var(--mono);
  user-select: all;
  color: var(--muted);
}
.model-action {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  background: var(--surface);
  margin: 2px 0;
}
.model-action:hover {
  background: var(--tint);
  border-color: var(--accent);
}
.catalog-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font-size: 11px;
  color: var(--muted);
}
.pagination {
  display: flex;
  gap: 8px;
}
.pagination button {
  border: 1px solid var(--line);
  border-radius: 7px;
  width: 36px;
  height: 32px;
  background: var(--surface);
  font-size: 17px;
  line-height: 1;
}
.pagination button:hover {
  border-color: var(--accent);
}
.catalog-note {
  max-width: 720px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.85;
  margin: 12px 0 0;
}
.catalog-loading {
  display: grid;
  gap: 15px;
  padding: 22px 0;
}
.catalog-loading div {
  height: 68px;
  background: var(--soft);
  border-radius: 8px;
  animation: loading 1.8s ease-in-out infinite;
}
.catalog-loading div:nth-child(2) {
  animation-delay: 0.15s;
}
.catalog-loading div:nth-child(3) {
  animation-delay: 0.3s;
}
.inline-error {
  padding: 24px;
  border: 1px solid var(--danger);
  background: var(--danger-bg);
  color: var(--danger);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  font-size: 13px;
}
.inline-error p {
  margin: 5px 0 0;
}
.empty-state {
  padding: 46px 24px;
  text-align: center;
  border-block: 1px solid var(--line);
}
.empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.empty-state p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
.connection {
  background: var(--soft);
  border-block: 1px solid var(--line);
}
.connection-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: 100px;
  row-gap: 28px;
}
.connection-note {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.preview-notice {
  margin-top: 18px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}
.connection-intro > p {
  color: var(--muted);
  max-width: 350px;
  font-size: 14px;
  line-height: 1.85;
  margin-top: 22px;
}
.endpoint-block {
  margin-top: 35px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: grid;
  gap: 9px;
}
.endpoint-block > span {
  font-size: 11px;
  color: var(--muted);
}
.endpoint-block code {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.endpoint-block button {
  width: fit-content;
  font-size: 11px;
  padding: 8px 0;
  margin-top: 4px;
  font-weight: 650;
}
.endpoint-block button:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.connection-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 30px;
}
.connection-steps li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 18px;
  padding-bottom: 29px;
  border-bottom: 1px solid var(--line);
}
.connection-steps li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.step-number {
  font: 12px var(--mono);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
}
.connection-steps h3 {
  font-size: 17px;
  letter-spacing: -0.35px;
  font-weight: 700;
  margin-bottom: 10px;
}
.connection-steps p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
  margin-bottom: 12px;
  max-width: 450px;
}
.connection-steps p a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.access-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 22px;
}
.access-grid article {
  padding: 35px;
  border-radius: 20px;
}
.access-main {
  background: var(--tint);
  border: 1px solid var(--tint);
}
.access-bot {
  border: 1px solid var(--line);
  background: var(--surface);
}
.balance-types {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
}
.balance-types span {
  font: 11px var(--mono);
  border: 1px solid var(--accent);
  border-radius: 5px;
  padding: 5px 10px;
  color: var(--accent);
}
.balance-types span:last-child {
  background: var(--accent);
  color: var(--on-accent);
}
.access-grid h3 {
  font-size: 30px;
  line-height: 1.22;
  letter-spacing: -1px;
  font-weight: 600;
  margin-bottom: 20px;
}
.access-grid article > p:not(.bot-label) {
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 360px;
  margin-bottom: 25px;
}
.bot-label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 36px;
}
.questions {
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 65px;
  row-gap: 28px;
}
.questions article {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.questions h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}
.questions p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 490px;
  margin-bottom: 0;
}
.closing {
  border-top: 1px solid var(--line);
  padding-top: 60px;
  padding-bottom: 66px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.closing h2 {
  font-size: clamp(32px, 3.4vw, 46px);
  font-weight: 550;
  letter-spacing: -1.8px;
  line-height: 1.2;
  margin-bottom: 26px;
}
.closing h2 span {
  color: var(--accent);
}
.closing > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 8px;
}
.site-footer {
  padding-block: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}
.site-footer .brand {
  font-size: 17px;
  letter-spacing: -0.5px;
}
.site-footer p {
  font-size: 11px;
  color: var(--muted);
  margin: 0 auto 0 0;
}
.site-footer > div {
  display: flex;
  gap: 22px;
  font-size: 11px;
  color: var(--muted);
}
.site-footer a:hover {
  color: var(--accent);
}
.snack {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  border-radius: 9px;
  max-width: calc(100% - 32px);
  font-size: 12px;
  box-shadow: var(--shadow);
}
@keyframes loading {
  50% {
    opacity: 0.45;
  }
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: enter 0.55s both;
  }
  .request-stage {
    animation: enter 0.65s 0.08s both;
  }
}
@media (min-width: 1600px) {
  .hero {
    padding-top: 82px;
    padding-bottom: 90px;
    gap: 90px;
  }
}
@media (max-width: 1100px) {
  .container {
    width: calc(100% - 64px);
  }
  .header-inner {
    gap: 20px;
    height: 72px;
  }
  .main-nav {
    gap: 17px;
  }
  .main-nav a {
    font-size: 11px;
  }
  .header-actions {
    gap: 12px;
  }
  .hero {
    gap: 35px;
    padding-top: 58px;
    padding-bottom: 58px;
  }
  h1 {
    font-size: 48px;
    letter-spacing: -2px;
  }
  .hero-description {
    font-size: 14px;
  }
  .hero-actions {
    gap: 20px;
  }
  .hero-actions .text-link {
    font-size: 12px;
  }
  .hero-actions .button {
    font-size: 12px;
    padding-inline: 16px;
  }
  .request-foot {
    font-size: 10px;
  }
  .request-foot code {
    font-size: 10px;
  }
  .connection-grid {
    gap: 60px;
  }
  .model-table th:first-child {
    width: 32%;
  }
  .model-table th:nth-child(4) {
    width: 28%;
  }
  .model-table th:last-child {
    width: 15%;
  }
  .model-table th:nth-child(3) {
    width: 12%;
  }
  .model-table td {
    padding-inline: 10px;
  }
  .model-name {
    font-size: 13px;
  }
  .model-id {
    font-size: 12px;
  }
  .access-grid article {
    padding: 29px;
  }
  .site-footer p {
    display: none;
  }
}
@media (max-width: 800px) {
  .container {
    width: calc(100% - 40px);
  }
  .header-inner {
    height: 68px;
    gap: 12px;
    position: relative;
  }
  .brand {
    font-size: 19px;
    gap: 7px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .header-actions {
    margin-left: auto;
    gap: 9px;
  }
  .header-actions .button {
    font-size: 11px;
    gap: 10px;
    padding-inline: 12px;
  }
  .theme-control select {
    font-size: 10px;
    max-width: 82px;
  }
  .menu-toggle {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 8px 0;
    order: 3;
    margin-left: 5px;
  }
  .menu-toggle span {
    font-size: 19px;
  }
  .main-nav {
    display: none;
    position: absolute;
    left: -20px;
    right: -20px;
    top: 68px;
    background: var(--surface);
    padding: 18px 24px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    margin: 0;
  }
  .main-nav[data-open="true"] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .main-nav a {
    font-size: 13px;
  }
  pre {
    font-size: 12px;
    line-height: 1.85;
    min-height: 306px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-top: 44px;
    padding-bottom: 42px;
  }
  .hero-copy {
    max-width: 560px;
  }
  .eyebrow {
    margin-bottom: 18px;
    font-size: 10px;
  }
  .hero-description {
    max-width: 440px;
    font-size: 14px;
    margin-bottom: 24px;
  }
  h1 {
    font-size: clamp(40px, 7.6vw, 58px);
    letter-spacing: -2px;
    margin-bottom: 22px;
  }
  .hero-actions {
    gap: 25px;
  }
  .request-stage {
    width: 100%;
    max-width: 620px;
    justify-self: center;
  }
  .request-foot {
    font-size: 10px;
  }
  .request-foot code {
    font-size: 10px;
  }
  .promise-strip {
    padding-block: 18px;
    font-size: 10px;
    gap: 12px;
  }
  .promise-strip p {
    padding-right: 12px;
  }
  .section {
    padding-block: 62px;
  }
  .section-heading {
    margin-bottom: 27px;
  }
  .section-heading h2,
  .connection h2 {
    font-size: 32px;
    letter-spacing: -1.3px;
  }
  .section-heading p {
    font-size: 13px;
  }
  .catalog-toolbar {
    align-items: flex-start;
    gap: 16px;
    flex-direction: column;
  }
  .catalog-search {
    width: 100%;
  }
  .filter-group {
    gap: 7px;
  }
  .filter-group button {
    padding: 8px 14px;
    font-size: 11px;
  }
  .model-table,
  .model-table tbody {
    display: block;
  }
  .model-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
  }
  .model-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    row-gap: 14px;
    border-bottom: 1px solid var(--line);
    padding-block: 23px;
  }
  .model-table td {
    border: 0;
    padding: 0 !important;
    display: block;
  }
  .model-table td:first-child {
    grid-column: 1/-1;
  }
  .model-name {
    font-size: 16px;
  }
  .model-description {
    max-width: 100%;
    font-size: 12px;
  }
  .model-family {
    font-size: 11px;
  }
  .model-table td:nth-child(3) {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 11px;
  }
  .model-table td:nth-child(3):before {
    content: "Контекст";
    font-size: 10px;
    color: var(--muted);
    margin-bottom: 4px;
  }
  .model-table td:nth-child(4) {
    grid-column: 1/-1;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .model-table td:nth-child(4):before {
    content: "ID для API";
    font-size: 10px;
    color: var(--muted);
  }
  .model-table td:last-child {
    grid-column: 1/-1;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
  }
  .model-id {
    font-size: 12px;
  }
  .model-action {
    min-height: 38px;
    padding: 8px 13px;
    font-size: 11px;
  }
  .rate {
    display: inline;
    margin-left: 9px;
  }
  .connection-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .connection-intro > p {
    max-width: 480px;
  }
  .endpoint-block {
    margin-top: 25px;
  }
  .connection-steps {
    gap: 24px;
  }
  .connection-steps li {
    gap: 12px;
    grid-template-columns: 32px minmax(0, 1fr);
    padding-bottom: 23px;
  }
  .connection-steps h3 {
    font-size: 16px;
  }
  .access-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .access-grid article {
    padding: 28px;
  }
  .access-grid h3 {
    font-size: 29px;
  }
  .balance-types {
    margin-bottom: 26px;
  }
  .access-grid article > p:not(.bot-label) {
    max-width: 500px;
  }
  .bot-label {
    margin-bottom: 25px;
  }
  .questions {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 38px;
  }
  .questions p {
    max-width: 100%;
  }
  .closing {
    padding-block: 42px;
    align-items: flex-start;
    flex-direction: column;
    gap: 23px;
  }
  .closing h2 {
    font-size: 36px;
    letter-spacing: -1.4px;
  }
  .closing > p {
    font-size: 12px;
  }
  .site-footer {
    flex-wrap: wrap;
    gap: 23px;
    padding-block: 25px;
  }
  .site-footer > div {
    gap: 23px;
    font-size: 12px;
  }
}
@media (max-width: 420px) {
  .header-actions .button {
    padding: 6px 10px;
    font-size: 10px;
    gap: 5px;
    min-height: 40px;
  }
  .brand {
    font-size: 17px;
    letter-spacing: -0.6px;
  }
  .brand img {
    width: 25px;
    height: 25px;
  }
  .theme-control select {
    max-width: 80px;
    font-size: 11px;
    min-height: 40px;
    padding-left: 0;
  }
  .menu-toggle {
    font-size: 11px;
    gap: 4px;
    margin-left: 1px;
  }
  .header-inner {
    gap: 6px;
  }
  .header-actions {
    gap: 5px;
  }
  .hero-actions {
    gap: 20px;
  }
  .hero-actions .button {
    font-size: 11px;
  }
  .hero-actions .text-link {
    font-size: 11px;
  }
  .request-stage {
    padding: 9px;
    border-radius: 16px;
  }
  .request-heading {
    padding: 16px 15px 12px;
  }
  .model-picker {
    margin-inline: 15px;
    gap: 10px;
    padding-inline: 9px;
  }
  .code-toolbar {
    padding-inline: 15px;
    gap: 8px;
  }
  .code-tabs {
    gap: 15px;
  }
  .code-tabs button {
    font-size: 10px;
  }
  .copy-code {
    font-size: 9px;
  }
  pre {
    font-size: 11px;
    line-height: 1.9;
    padding: 18px 15px;
    min-height: 284px;
  }
  .request-foot {
    padding: 12px 15px;
    font-size: 10px;
  }
  .request-foot code {
    font-size: 10px;
  }
  .promise-strip {
    font-size: 9px;
    gap: 8px;
  }
  .promise-strip p {
    padding-right: 8px;
  }
  .catalog-note {
    font-size: 11px;
  }
  .section-heading h2,
  .connection h2 {
    font-size: 29px;
  }
  .closing h2 {
    font-size: 32px;
  }
  .inline-error {
    padding: 20px;
    align-items: flex-start;
    flex-direction: column;
  }
  .site-footer > div {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 360px) {
  .header-actions .button {
    display: none;
  }
  .brand {
    font-size: 18px;
  }
  .header-actions {
    margin-left: auto;
  }
  .theme-control select {
    font-size: 11px;
    max-width: 80px;
  }
}
@media (min-width: 801px) and (max-height: 800px) {
  .hero {
    padding-top: 36px;
    padding-bottom: 42px;
  }
  .hero pre {
    font-size: 11.5px;
    line-height: 1.85;
    min-height: 280px;
  }
}
