:root {
  --ea-blue: #007bff;
  --ea-blue-dark: #001f3f;
  --ea-gold: #f6be00;
  --ea-cream: #f4f6f9;
  --ea-paper: #ffffff;
  --ea-ink: #1f2d3d;
  --ea-muted: #6c757d;
  --ea-line: #dbe3ec;
  --ea-soft-blue: rgba(0, 123, 255, 0.08);
  --ea-soft-gold: rgba(246, 190, 0, 0.16);
  --ea-shadow: 0 16px 40px rgba(31, 45, 61, 0.08);
  --ea-radius: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(0, 123, 255, 0.10), transparent 22%),
    radial-gradient(circle at top left, rgba(246, 190, 0, 0.18), transparent 28%),
    linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
  color: var(--ea-ink);
  font-family: "Source Sans Pro", sans-serif;
}

.docs-page {
  min-height: 100vh;
}

.docs-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(219, 227, 236, 0.9);
}

.docs-topbar .inner {
  width: min(1380px, calc(100% - 24px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ea-blue) 0%, #3399ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 22px rgba(0, 123, 255, 0.22);
}

.brand-mark img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.brand-copy strong {
  display: block;
  font-size: 19px;
  line-height: 1;
  font-weight: 900;
}

.brand-copy span {
  display: block;
  margin-top: 3px;
  color: var(--ea-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.docs-container {
  width: min(1380px, calc(100% - 24px));
  margin: 0 auto;
  padding: 24px 0 52px;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 32px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 20%, rgba(246, 190, 0, 0.24), transparent 20%),
    radial-gradient(circle at 88% 20%, rgba(255, 255, 255, 0.12), transparent 18%),
    linear-gradient(135deg, #001f3f 0%, #0053b8 42%, #3399ff 100%);
  box-shadow: 0 24px 50px rgba(0, 31, 63, 0.22);
}

.hero::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(246, 190, 0, 0.18);
  filter: blur(10px);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 1fr);
  gap: 28px;
  align-items: stretch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.hero p {
  margin: 16px 0 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-actions .btn {
  border-radius: 12px;
  font-weight: 800;
  padding: 10px 18px;
}

.hero-actions .btn-warning {
  color: #1f2d3d;
}

.hero-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.glass-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 28px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.glass-card h3 {
  margin: 0 0 20px;
  font-size: 30px;
  font-weight: 800;
}

.glass-card p,
.glass-card li {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.55;
}

.glass-list {
  display: grid;
  flex: 1;
  gap: 18px;
  align-content: space-between;
  padding: 0;
  margin: 0;
  list-style: none;
}

.glass-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 4px 0;
}

.glass-list li i {
  margin-top: 4px;
}

.glass-list li span {
  display: block;
}

.hero-url {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
  color: #fff;
  word-break: break-all;
}

.hero-note {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.74);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 16px;
  margin-top: 20px;
}

.kpi-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--ea-radius);
  background: var(--ea-paper);
  border: 1px solid rgba(219, 227, 236, 0.9);
  box-shadow: var(--ea-shadow);
  padding: 20px;
  min-height: 0;
  height: 100%;
}

.kpi-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 18px;
  background: var(--ea-soft-blue);
  color: var(--ea-blue);
}

.kpi-card.kpi-gold .icon {
  background: var(--ea-soft-gold);
  color: #946200;
}

.kpi-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ea-muted);
}

.kpi-card strong {
  display: block;
  margin-top: 6px;
  font-size: 23px;
  line-height: 1.15;
  font-weight: 900;
  min-height: 54px;
}

.kpi-card p {
  margin: auto 0 0;
  color: var(--ea-muted);
  font-size: 14px;
  line-height: 1.5;
}

.docs-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  margin-top: 24px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 16px;
}

.sidebar-card {
  background: var(--ea-paper);
  border: 1px solid rgba(219, 227, 236, 0.9);
  border-radius: var(--ea-radius);
  box-shadow: var(--ea-shadow);
  padding: 18px;
}

.sidebar-card h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sidebar-nav,
.sidebar-links {
  display: grid;
  gap: 8px;
}

.sidebar-nav a,
.sidebar-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  color: var(--ea-ink);
  text-decoration: none;
  font-weight: 700;
  background: transparent;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.sidebar-nav a:hover,
.sidebar-links a:hover {
  background: var(--ea-soft-blue);
  transform: translateX(3px);
}

.sidebar-tip {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ea-muted);
}

.main-docs {
  display: grid;
  gap: 18px;
}

.doc-card {
  background: var(--ea-paper);
  border: 1px solid rgba(219, 227, 236, 0.9);
  border-radius: 22px;
  box-shadow: var(--ea-shadow);
  overflow: hidden;
}

.doc-card .card-head {
  padding: 20px 22px 14px;
  border-bottom: 1px solid rgba(219, 227, 236, 0.7);
  background: linear-gradient(180deg, rgba(0, 123, 255, 0.05), rgba(0, 123, 255, 0));
}

.doc-card .card-head h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.doc-card .card-head p {
  margin: 8px 0 0;
  color: var(--ea-muted);
  font-size: 16px;
  line-height: 1.45;
}

.doc-card .card-body {
  padding: 22px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--ea-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  border: 1px solid var(--ea-line);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(0, 123, 255, 0.03), rgba(255, 255, 255, 0));
}

.feature-card h4 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 800;
}

.feature-card p,
.feature-card li {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ea-ink);
}

.feature-card ul,
.feature-card ol {
  margin: 0;
  padding-left: 18px;
}

.callout-doc {
  border-left: 5px solid var(--ea-blue);
  border-radius: 16px;
  padding: 16px 18px;
  background: rgba(0, 123, 255, 0.06);
  margin-bottom: 18px;
}

.callout-doc.warning {
  border-left-color: var(--ea-gold);
  background: rgba(246, 190, 0, 0.12);
}

.callout-doc.danger {
  border-left-color: #dc3545;
  background: rgba(220, 53, 69, 0.08);
}

.callout-doc h4 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 900;
}

.callout-doc p,
.callout-doc li {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.callout-doc ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.endpoint-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--ea-line);
  border-radius: 16px;
  background: #0a2540;
  color: #fff;
}

.endpoint-box .method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #28a745;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.endpoint-box code {
  background: transparent;
  color: #fff;
  padding: 0;
  font-size: 15px;
  font-family: Consolas, "Courier New", monospace;
  word-break: break-all;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--ea-soft-blue);
  color: var(--ea-blue);
  font-size: 13px;
  font-weight: 800;
}

.code-card {
  position: relative;
  margin-top: 16px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 16px 30px rgba(0, 31, 63, 0.14);
}

.code-card pre {
  margin: 0;
  padding: 18px 18px 18px;
  overflow: auto;
  background: linear-gradient(180deg, #07203b 0%, #06172a 100%);
  color: #e8f2ff;
  font-size: 14px;
  line-height: 1.55;
  font-family: Consolas, "Courier New", monospace;
}

.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  border-radius: 10px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.20);
}

.builder {
  display: grid;
  gap: 14px;
}

.builder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.builder label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ea-muted);
}

.builder .form-control {
  height: 46px;
  border-radius: 12px;
  border-color: var(--ea-line);
  box-shadow: none;
  font-size: 15px;
  font-weight: 700;
}

.builder .form-control:focus {
  border-color: rgba(0, 123, 255, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.12);
}

.builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.result-box {
  border-radius: 16px;
  border: 1px dashed rgba(0, 123, 255, 0.28);
  background: rgba(0, 123, 255, 0.04);
  padding: 14px;
}

.result-box small {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ea-muted);
}

.result-box code {
  padding: 0;
  background: transparent;
  color: var(--ea-blue-dark);
  font-size: 14px;
  font-family: Consolas, "Courier New", monospace;
  word-break: break-all;
}

.docs-table-wrap {
  border: 1px solid var(--ea-line);
  border-radius: 18px;
  overflow: hidden;
  margin-top: 14px;
  background: #fff;
}

.docs-table {
  margin: 0;
  width: 100%;
}

.docs-table thead th {
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(0, 123, 255, 0.08), rgba(0, 123, 255, 0.03));
  color: var(--ea-blue-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.docs-table td,
.docs-table th {
  padding: 12px 14px;
  vertical-align: top;
  border-top: 1px solid rgba(219, 227, 236, 0.7);
  font-size: 14px;
  line-height: 1.45;
}

.docs-table tbody tr:nth-child(even) {
  background: rgba(244, 246, 249, 0.6);
}

.table-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 123, 255, 0.1);
  color: var(--ea-blue);
  font-size: 12px;
  font-weight: 900;
}

.note-list {
  display: grid;
  gap: 12px;
}

.note-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--ea-line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(246, 190, 0, 0.08), rgba(255, 255, 255, 0));
}

.note-item .fas {
  margin-top: 3px;
  color: #946200;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.status-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  border-radius: 16px;
  border: 1px solid var(--ea-line);
  padding: 16px 16px 14px;
  background: #fff;
}

.status-card .status-code {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 6px;
}

.status-card.success .status-code {
  background: rgba(40, 167, 69, 0.12);
  color: #218838;
}

.status-card.warning .status-code {
  background: rgba(246, 190, 0, 0.18);
  color: #946200;
}

.status-card.danger .status-code {
  background: rgba(220, 53, 69, 0.10);
  color: #c82333;
}

.status-card.info .status-code {
  background: rgba(0, 123, 255, 0.10);
  color: var(--ea-blue);
}

.status-card h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.status-card p,
.status-card code {
  font-size: 13px;
  line-height: 1.4;
}

.status-card p {
  margin: 0;
  color: var(--ea-muted);
}

.status-card code {
  display: block;
  margin-top: auto;
  width: 100%;
  padding: 9px 10px;
  border-radius: 12px;
  background: #f4f6f9;
  color: var(--ea-blue-dark);
  word-break: break-word;
}

.files-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.file-link {
  display: block;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--ea-line);
  background: linear-gradient(180deg, rgba(0, 123, 255, 0.04), rgba(255, 255, 255, 0));
  color: var(--ea-ink);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.file-link:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 123, 255, 0.26);
  box-shadow: 0 14px 24px rgba(31, 45, 61, 0.08);
  color: inherit;
  text-decoration: none;
}

.file-link i {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--ea-soft-blue);
  color: var(--ea-blue);
  font-size: 18px;
  margin-bottom: 12px;
}

.file-link strong {
  display: block;
  font-size: 16px;
  font-weight: 900;
}

.file-link span {
  display: block;
  margin-top: 6px;
  color: var(--ea-muted);
  font-size: 14px;
  line-height: 1.4;
}

.swagger-shell {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--ea-line);
  background: #fff;
  box-shadow: var(--ea-shadow);
}

.swagger-shell .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--ea-line);
  background: linear-gradient(90deg, rgba(0, 123, 255, 0.06), rgba(246, 190, 0, 0.10));
}

.swagger-shell .head h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.swagger-shell .head p {
  margin: 6px 0 0;
  color: var(--ea-muted);
  font-size: 14px;
}

#swagger-ui {
  min-height: 900px;
}

#swagger-fallback {
  display: none;
  padding: 18px 22px;
  border-top: 1px solid var(--ea-line);
  background: rgba(246, 190, 0, 0.10);
  color: #5b4b00;
  font-size: 14px;
  line-height: 1.55;
}

#swagger-fallback.show {
  display: block;
}

.swagger-ui .topbar {
  display: none;
}

.swagger-ui .information-container,
.swagger-ui .scheme-container,
.swagger-ui .filter-container,
.swagger-ui section.models {
  display: none;
}

.swagger-ui .wrapper {
  padding: 0 22px 22px;
}

.swagger-ui .opblock-tag {
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

.swagger-ui .opblock-tag-section {
  margin: 0;
}

.footer-note {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--ea-line);
  color: var(--ea-muted);
  font-size: 14px;
  line-height: 1.55;
  box-shadow: var(--ea-shadow);
}

code.inline {
  background: rgba(0, 31, 63, 0.06);
  color: var(--ea-blue-dark);
  border-radius: 7px;
  padding: 2px 6px;
}

@media (max-width: 1200px) {
  .hero-grid,
  .docs-grid,
  .kpi-grid,
  .status-grid,
  .files-grid {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
  }
}

@media (max-width: 992px) {
  .mini-grid,
  .builder-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .docs-topbar .inner,
  .docs-container {
    width: min(100% - 16px, 1380px);
  }

  .hero {
    padding: 24px 18px;
  }

  .doc-card .card-head,
  .doc-card .card-body,
  .sidebar-card,
  .swagger-shell .head {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    font-size: 16px;
  }

  .glass-card {
    padding: 22px 18px;
  }

  .glass-card h3 {
    font-size: 24px;
  }

  .glass-card p,
  .glass-card li {
    font-size: 16px;
  }

  .kpi-card strong {
    min-height: 0;
  }

  .endpoint-box {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}
