/* /tools/mx-router/ + /api — so3 */

.so-mx__hero {
  padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 56px);
  background: var(--so3-bg);
  color: var(--so3-white);
}

.so-mx__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.62);
}

.so-mx__crumbs a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.so-mx__crumbs a:hover,
.so-mx__crumbs a:focus-visible {
  color: var(--so3-white);
  outline: none;
}

.so-mx__hero .so3-kicker {
  margin: 0 0 12px;
  color: var(--so3-pink);
}

.so-mx__title {
  margin: 0 0 16px;
  max-width: 18ch;
  font-family: var(--so3-display);
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--so3-white);
}

.so-mx__lead {
  margin: 0 0 24px;
  max-width: 52ch;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

.so-mx__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
}

.so-mx__hero .so3-btn--line {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--so3-white);
  background: transparent;
}

.so-mx__hero .so3-btn--line:hover {
  border-color: var(--so3-white);
  background: rgba(255, 255, 255, 0.08);
}

.so-mx__section {
  padding: clamp(40px, 6vw, 72px) 0;
  background: var(--so3-white);
}

.so-mx__section--soft {
  background: var(--so3-soft);
}

.so-mx__heading {
  margin: 0 0 20px;
  font-family: var(--so3-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--so3-text);
}

.so-mx__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.so-mx__card {
  padding: clamp(20px, 2.5vw, 28px);
  border: 1px solid var(--so3-border);
  border-radius: var(--so3-r-card);
  background: var(--so3-white);
  box-shadow: var(--so3-shadow-soft);
}

.so-mx__card h3 {
  margin: 0 0 10px;
  font-family: var(--so3-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  color: var(--so3-text);
}

.so-mx__card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--so3-muted);
}

.so-mx__steps {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  counter-reset: mx-step;
  display: grid;
  gap: 16px;
  max-width: 52rem;
}

.so-mx__steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  align-items: start;
  counter-increment: mx-step;
}

.so-mx__steps li::before {
  content: counter(mx-step);
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--so3-grad);
  color: var(--so3-white);
  font-family: var(--so3-display);
  font-size: 14px;
  font-weight: 700;
}

.so-mx__steps strong {
  font-size: 17px;
  color: var(--so3-text);
}

.so-mx__steps span {
  font-size: 15px;
  line-height: 1.4;
  color: var(--so3-muted);
}

.so-mx__list {
  margin: 0;
  padding: 0 0 0 1.2em;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.45;
  color: var(--so3-muted);
}

.so-mx__list li {
  margin-bottom: 8px;
}

.so-mx__split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}

.so-mx__cta-panel {
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--so3-r-panel);
  background: var(--so3-bg);
  color: var(--so3-white);
  box-shadow: var(--so3-shadow-panel);
}

.so-mx__cta-panel h3 {
  margin: 0 0 10px;
  font-family: var(--so3-display);
  font-size: 22px;
}

.so-mx__cta-panel p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

.so-mx__hint {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--so3-text);
}

.so-mx__hero .so-mx__hint,
.so-mx-api__meta {
  color: rgba(255, 255, 255, 0.78);
}

.so-mx__mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.so-mx__curl {
  margin: 1.25rem 0 0;
  padding: 1rem 1.1rem;
  max-width: 48rem;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.45;
  color: var(--so3-text);
  background: var(--so3-soft);
  border: 1px solid var(--so3-border);
  border-radius: 12px;
}

.so-mx__hero .so-mx__curl {
  color: #111;
  background: rgba(255, 255, 255, 0.96);
  border-color: transparent;
}

.so-mx__curl code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre;
}

.so-mx__textlink {
  font-size: 16px;
  font-weight: 600;
  color: var(--so3-purple);
  text-decoration: none;
}

.so-mx__hero .so-mx__textlink {
  color: rgba(255, 255, 255, 0.9);
}

.so-mx__textlink:hover,
.so-mx__textlink:focus-visible {
  color: #6a3fe0;
  outline: none;
}

.so-mx__hero .so-mx__textlink:hover,
.so-mx__hero .so-mx__textlink:focus-visible {
  color: var(--so3-white);
}

.so-mx-form-band {
  padding-bottom: clamp(64px, 8vw, 96px);
}

.so-mx-form-aside {
  padding: clamp(20px, 2.5vw, 28px);
  border-radius: var(--so3-r-card);
  background: var(--so3-white);
  border: 1px solid var(--so3-border);
}

.so-mx-form-aside h3 {
  margin: 0 0 12px;
  font-family: var(--so3-display);
  font-size: 20px;
}

.so-mx-form-aside ol {
  margin: 0 0 16px;
  padding-left: 1.2em;
  color: var(--so3-muted);
  font-size: 15px;
  line-height: 1.45;
}

.so-mx-form-aside li {
  margin-bottom: 8px;
}

.so-mx-form-aside p {
  margin: 0;
  font-size: 14px;
  color: var(--so3-text);
}

.so-mx-api__swagger-wrap {
  padding: 0 0 clamp(24px, 4vw, 40px);
  background: var(--so3-soft);
}

.so-mx-api__swagger-inner {
  max-width: 1120px;
}

.so-mx-api__swagger {
  background: var(--so3-white);
  border-radius: var(--so3-r-card);
  overflow: hidden;
  border: 1px solid var(--so3-border);
}

.so-mx-api__swagger .swagger-ui .topbar {
  display: none;
}

.so-mx-api__swagger .swagger-ui .info {
  margin: 24px 0;
}

.so-mx-api__swagger .swagger-ui .scheme-container {
  background: transparent;
  box-shadow: none;
  padding: 0 0 16px;
}

/* проблема / решение — синхрон с презой tools */
.so-tool__ps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px 24px;
  margin: 22px 0 0;
  max-width: 52rem;
}

@media (min-width: 720px) {
  .so-tool__ps {
    grid-template-columns: 1fr 1fr;
  }
}

.so-tool__ps-label {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--so3-pink, #ff4fa0);
}

.so-tool__ps-text {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 900px) {
  .so-mx__cards,
  .so-mx__split {
    grid-template-columns: 1fr;
  }

  .so-mx__title {
    max-width: none;
  }
}
