.api-page {
  background:
    radial-gradient(1200px 480px at 10% -10%, rgba(30, 144, 255, 0.16), transparent 60%),
    radial-gradient(900px 420px at 110% 8%, rgba(255, 122, 24, 0.12), transparent 55%),
    var(--dark-color-40);
}

.api-header {
  padding-top: 28px;
}

.api-header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.api-header__logo img {
  width: 100%;
  max-width: 220px;
  display: block;
}

.api-header__home {
  font-family: var(--second-family);
  font-weight: 600;
  font-size: 14px;
  color: var(--blue-color-10);
  padding: 10px 18px;
  border-radius: 11px;
  background: #fff;
  box-shadow: var(--cards-shadow);
  transition: opacity 0.2s ease;
}

.api-header__home:hover {
  opacity: 0.72;
}

.api-hero {
  position: relative;
  padding: 42px 0 28px;
  overflow: hidden;
}

.api-hero::before {
  content: "";
  position: absolute;
  inset: 18px 0 auto;
  height: 220px;
  background:
    linear-gradient(90deg, transparent 0, rgba(30, 144, 255, 0.18) 50%, transparent 100%),
    repeating-linear-gradient(
      90deg,
      transparent 0 46px,
      rgba(30, 144, 255, 0.08) 46px 48px
    );
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}

.api-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--third-family);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--blue-color-10);
  border-radius: 40px;
  padding: 8px 16px;
  margin-bottom: 16px;
}

.api-hero__kicker span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff7a18;
  box-shadow: 0 0 0 4px rgba(255, 122, 24, 0.25);
}

.api-hero h1 {
  max-width: 760px;
  margin-bottom: 14px;
}

.api-hero p {
  max-width: 680px;
  font-family: var(--third-family);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark-color-30);
}

.api-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding-bottom: 72px;
}

.api-nav {
  position: sticky;
  top: 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--cards-shadow);
  padding: 18px 16px;
}

.api-nav__title {
  font-family: var(--second-family);
  font-weight: 700;
  font-size: 13px;
  color: var(--dark-color-60);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.api-nav__group {
  margin-bottom: 14px;
}

.api-nav__group-title {
  font-family: var(--second-family);
  font-weight: 600;
  font-size: 14px;
  color: var(--dark-color-10);
  margin-bottom: 8px;
}

.api-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--third-family);
  font-weight: 500;
  font-size: 13px;
  color: #5c7184;
  padding: 7px 8px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.api-nav a:hover,
.api-nav a.is-active {
  background: rgba(30, 144, 255, 0.1);
  color: var(--blue-color-10);
}

.api-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.api-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--cards-shadow);
  padding: 24px;
}

.api-rules {
  display: grid;
  gap: 10px;
}

.api-rules li {
  position: relative;
  padding-left: 28px;
  font-family: var(--third-family);
  font-size: 15px;
  line-height: 1.55;
  color: var(--dark-color-10);
}

.api-rules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--blue-color-10);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px #ff7a18;
}

.api-group-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 4px 0;
}

.api-group-head h2 {
  margin: 0;
}

.api-group-head p {
  font-family: var(--third-family);
  font-size: 14px;
  color: var(--dark-color-60);
  max-width: 420px;
}

.api-method__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.api-badge {
  font-family: var(--second-family);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--blue-color-10);
  border-radius: 8px;
  padding: 6px 10px;
}

.api-path {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--dark-color-10);
  background: var(--dark-color-40);
  border-radius: 8px;
  padding: 8px 12px;
  overflow-wrap: anywhere;
}

.api-auth {
  margin-left: auto;
  font-family: var(--second-family);
  font-weight: 600;
  font-size: 12px;
  color: #ff7a18;
  background: rgba(255, 122, 24, 0.12);
  border-radius: 8px;
  padding: 6px 10px;
}

.api-method h3 {
  font-family: var(--second-family);
  font-weight: 700;
  font-size: 24px;
  color: var(--dark-color-10);
  margin-bottom: 8px;
}

.api-method p {
  font-family: var(--third-family);
  font-size: 15px;
  line-height: 1.65;
  color: var(--dark-color-30);
  margin-bottom: 10px;
}

.api-table-wrap {
  overflow-x: auto;
  margin: 16px 0 8px;
}

.api-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.api-table th,
.api-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  font-size: 13px;
  vertical-align: top;
}

.api-table th {
  font-family: var(--second-family);
  font-weight: 600;
  color: var(--dark-color-60);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.api-table td {
  font-family: var(--third-family);
  color: var(--dark-color-10);
}

.api-table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  background: rgba(30, 144, 255, 0.08);
  color: #0d5cab;
  padding: 2px 6px;
  border-radius: 5px;
}

.api-req {
  display: inline-block;
  font-family: var(--second-family);
  font-weight: 700;
  font-size: 11px;
  color: #fff;
  background: #ff7a18;
  border-radius: 999px;
  padding: 2px 7px;
}

.api-opt {
  display: inline-block;
  font-family: var(--second-family);
  font-weight: 700;
  font-size: 11px;
  color: #5c7184;
  background: #eef2f6;
  border-radius: 999px;
  padding: 2px 7px;
}

.api-code {
  position: relative;
  margin-top: 14px;
  background: var(--dark-color-20);
  color: #e8f4ff;
  border-radius: 12px;
  overflow: hidden;
}

.api-code__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #101010;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--second-family);
  font-size: 12px;
}

.api-code__copy {
  border: 0;
  background: var(--blue-color-10);
  color: #fff;
  font-family: var(--second-family);
  font-weight: 600;
  font-size: 12px;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}

.api-code pre {
  margin: 0;
  padding: 16px 18px 18px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre;
}

.api-errors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.api-errors span {
  font-family: var(--third-family);
  font-size: 12px;
  color: #8a3b12;
  background: #fff3ea;
  border-radius: 8px;
  padding: 6px 10px;
}

.api-footer-note {
  font-family: var(--third-family);
  font-size: 13px;
  color: var(--dark-color-60);
  text-align: center;
  padding: 8px 0 24px;
}

@media (max-width: 900px) {
  .api-layout {
    grid-template-columns: 1fr;
  }

  .api-nav {
    position: static;
  }

  .api-group-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .api-auth {
    margin-left: 0;
  }
}

@media (max-width: 576px) {
  .api-header {
    padding-top: 18px;
  }

  .api-hero {
    padding-top: 24px;
  }

  .api-card {
    padding: 16px;
  }
}
