@import url("./fonts.css");

:root {
  --accent: #1B75BB;
  --accent-strong: #0E5A93;
  --accent-dark: #0A416C;
  --accent-soft: #7FE7D0;
  --bg: #faf7f3;
  --panel: #ffffff;
  --panel-muted: #f3eee6;
  --line: #ece6dd;
  --text: #1a1814;
  --muted: #6b665e;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.shell-header {
  border-bottom: 1px solid var(--line);
  background: rgba(250, 247, 243, 0.92);
  backdrop-filter: blur(12px);
}

.shell-container {
  width: min(100% - 48px, 1120px);
  margin: 0 auto;
}

body[data-page="openapi"] .shell-container {
  width: min(100% - 32px, 1680px);
}

.shell-header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 8px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shell-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.shell-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}

.shell-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 16px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--white) !important;
  text-decoration: none;
  font-weight: 800;
}

.shell-main {
  padding: clamp(46px, 7vw, 82px) 0;
}

.shell-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.shell-title {
  max-width: 780px;
  margin: 0;
  font-family: Unbounded, Manrope, sans-serif;
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 650;
  line-height: 1.04;
}

.shell-lead {
  max-width: 780px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}

.shell-card {
  margin-top: 34px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(26, 24, 20, 0.08);
}

.shell-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shell-list li {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.shell-list li:last-child {
  border-bottom: 0;
}

.shell-list strong {
  font-size: 17px;
}

.shell-list span {
  color: var(--muted);
  line-height: 1.45;
}

.shell-link {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.legal-content {
  max-width: 860px;
}

.legal-content h2 {
  margin: 34px 0 12px;
  font-size: 24px;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.legal-content ul {
  padding-left: 22px;
}

.redoc-wrap {
  margin-top: 34px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

#redoc-container {
  min-height: 720px;
}

.shell-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 760px) {
  body[data-page="openapi"] .shell-container {
    width: min(100% - 20px, 1680px);
  }

  .shell-header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .shell-nav {
    flex-wrap: wrap;
    margin-left: 0;
  }

  .shell-list li {
    grid-template-columns: 1fr;
  }
}

.seo-page {
  padding-top: 22px;
}

.seo-nav {
  justify-content: flex-end;
  margin: 0 0 36px;
}

.seo-detail-section {
  box-shadow: none;
}

.seo-section-head h2,
.seo-detail-section h2 {
  margin: 0 0 18px;
  font-size: 26px;
  line-height: 1.22;
}

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

.seo-detail-card {
  min-height: 188px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-muted);
}

.seo-detail-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.3;
}

.seo-detail-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.seo-step-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: seo-steps;
}

.seo-step-list li {
  position: relative;
  min-height: 78px;
  padding: 18px 18px 18px 76px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-muted);
  counter-increment: seo-steps;
}

.seo-step-list li::before {
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  content: counter(seo-steps);
  font-weight: 800;
}

.seo-step-list strong,
.seo-step-list span {
  display: block;
}

.seo-step-list strong {
  margin-bottom: 6px;
  font-size: 17px;
}

.seo-step-list span {
  color: var(--muted);
  line-height: 1.55;
}

.seo-check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.seo-check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.seo-check-list li::before {
  position: absolute;
  left: 0;
  color: var(--accent);
  content: "✓";
  font-weight: 900;
}

.seo-table-wrap {
  overflow-x: auto;
}

.seo-comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.seo-comparison-table th,
.seo-comparison-table td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.seo-comparison-table th {
  width: 240px;
  color: var(--text);
  font-size: 16px;
}

.seo-comparison-table td {
  color: var(--muted);
  line-height: 1.6;
}

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

.seo-resource-link {
  display: block;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-muted);
  color: var(--text);
  text-decoration: none;
}

.seo-resource-link:hover {
  border-color: rgba(27, 117, 187, 0.45);
}

.seo-resource-link strong,
.seo-resource-link span {
  display: block;
}

.seo-resource-link strong {
  margin-bottom: 8px;
  line-height: 1.35;
}

.seo-resource-link span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .seo-detail-grid,
  .seo-resource-grid {
    grid-template-columns: 1fr;
  }

  .seo-detail-card,
  .seo-resource-link {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .seo-nav {
    justify-content: flex-start;
  }

  .seo-step-list li {
    padding-left: 18px;
    padding-top: 70px;
  }
}
