:root {
  --ds-color-bg: #f5f2ec;
  --ds-color-surface: #fffdf9;
  --ds-color-surface-alt: #ece8df;
  --ds-color-ink: #22272b;
  --ds-color-ink-soft: #4c545b;
  --ds-color-ink-muted: #6b747c;
  --ds-color-line: #dcd6c9;
  --ds-color-line-strong: #c3bbab;
  --ds-color-accent: #d18a2a;
  --ds-color-accent-strong: #a86a15;
  --ds-color-accent-soft: #f6e7cf;
  --ds-color-teal: #1f8a88;
  --ds-color-teal-strong: #166664;
  --ds-color-teal-soft: #dcefee;
  --ds-color-success: #2f7d4f;
  --ds-color-warning: #b7791f;
  --ds-color-danger: #b2402f;
  --ds-color-focus: #1f8a88;

  --ds-font-sans: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --ds-font-mono: "Cascadia Mono", "Consolas", "Courier New", monospace;

  --ds-text-xs: 0.75rem;
  --ds-text-sm: 0.875rem;
  --ds-text-base: 1rem;
  --ds-text-lg: 1.125rem;
  --ds-text-xl: 1.375rem;
  --ds-text-2xl: 1.75rem;
  --ds-text-3xl: 2.25rem;
  --ds-text-4xl: clamp(2.1rem, 1.4rem + 3vw, 3.4rem);

  --ds-space-1: 0.25rem;
  --ds-space-2: 0.5rem;
  --ds-space-3: 0.75rem;
  --ds-space-4: 1rem;
  --ds-space-5: 1.5rem;
  --ds-space-6: 2rem;
  --ds-space-7: 3rem;
  --ds-space-8: 4rem;

  --ds-radius-sm: 4px;
  --ds-radius-md: 8px;
  --ds-radius-lg: 14px;
  --ds-radius-pill: 999px;

  --ds-shadow-sm: 0 1px 2px rgba(34, 39, 43, 0.06);
  --ds-shadow-md: 0 6px 18px rgba(34, 39, 43, 0.08);
  --ds-shadow-lg: 0 18px 44px rgba(34, 39, 43, 0.14);

  --ds-container: 1180px;
  --ds-container-narrow: 760px;
  --ds-header-height: 72px;
  --ds-transition: 180ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--ds-color-bg);
  color: var(--ds-color-ink);
  font-family: var(--ds-font-sans);
  font-size: var(--ds-text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.ds-has-open-menu {
  overflow: hidden;
}

html.ds-has-modal {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ds-color-teal-strong);
  text-decoration-color: rgba(31, 138, 136, 0.4);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ds-color-accent-strong);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--ds-space-4);
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--ds-text-4xl);
}

h2 {
  font-size: var(--ds-text-3xl);
}

h3 {
  font-size: var(--ds-text-2xl);
}

h4 {
  font-size: var(--ds-text-xl);
}

h5,
h6 {
  font-size: var(--ds-text-lg);
}

p {
  margin: 0 0 var(--ds-space-4);
}

ul,
ol {
  margin: 0 0 var(--ds-space-4);
  padding-left: var(--ds-space-5);
}

hr {
  border: 0;
  border-top: 1px solid var(--ds-color-line);
  margin: var(--ds-space-6) 0;
}

code,
pre,
kbd {
  font-family: var(--ds-font-mono);
  font-size: 0.9em;
}

code {
  background: var(--ds-color-surface-alt);
  border: 1px solid var(--ds-color-line);
  border-radius: var(--ds-radius-sm);
  padding: 0.1em 0.35em;
}

pre {
  margin: 0 0 var(--ds-space-5);
  padding: var(--ds-space-4);
  background: #1e2327;
  color: #e7ecef;
  border-radius: var(--ds-radius-md);
  overflow-x: auto;
  font-size: var(--ds-text-sm);
  line-height: 1.55;
}

pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: var(--ds-space-3) var(--ds-space-4);
  border-bottom: 1px solid var(--ds-color-line);
  vertical-align: top;
}

th {
  color: var(--ds-color-ink-soft);
  font-size: var(--ds-text-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

:focus-visible {
  outline: 3px solid var(--ds-color-focus);
  outline-offset: 2px;
  border-radius: var(--ds-radius-sm);
}

.ds-skip-link {
  position: absolute;
  left: var(--ds-space-4);
  top: -100px;
  z-index: 100;
  padding: var(--ds-space-3) var(--ds-space-4);
  background: var(--ds-color-ink);
  color: #fff;
  border-radius: var(--ds-radius-md);
  transition: top var(--ds-transition);
}

.ds-skip-link:focus {
  top: var(--ds-space-4);
  color: #fff;
}

.ds-container {
  width: 100%;
  max-width: var(--ds-container);
  margin: 0 auto;
  padding: 0 var(--ds-space-5);
}

.ds-container--narrow {
  max-width: var(--ds-container-narrow);
}

.ds-section {
  padding: var(--ds-space-8) 0;
}

.ds-section--tight {
  padding: var(--ds-space-6) 0;
}

.ds-section--alt {
  background: var(--ds-color-surface-alt);
}

.ds-section__head {
  max-width: 760px;
  margin-bottom: var(--ds-space-6);
}

.ds-section__index {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-2);
  margin-bottom: var(--ds-space-3);
  color: var(--ds-color-accent-strong);
  font-family: var(--ds-font-mono);
  font-size: var(--ds-text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ds-section__index::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--ds-color-accent);
}

.ds-section__title {
  margin-bottom: var(--ds-space-3);
}

.ds-section__lead {
  color: var(--ds-color-ink-soft);
  font-size: var(--ds-text-lg);
  margin-bottom: 0;
}

.ds-eyebrow {
  display: block;
  margin-bottom: var(--ds-space-2);
  color: var(--ds-color-teal-strong);
  font-family: var(--ds-font-mono);
  font-size: var(--ds-text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ds-lead {
  color: var(--ds-color-ink-soft);
  font-size: var(--ds-text-lg);
}

.ds-grid {
  display: grid;
  gap: var(--ds-space-5);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.ds-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.ds-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.ds-grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.ds-stack > * + * {
  margin-top: var(--ds-space-4);
}

.ds-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-3);
  align-items: center;
}

.ds-cluster--center {
  justify-content: center;
}

.ds-section--intro {
  padding-top: var(--ds-space-7);
}

.ds-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 249, 0.94);
  border-bottom: 1px solid var(--ds-color-line);
  backdrop-filter: blur(8px);
}

.ds-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-4);
  min-height: var(--ds-header-height);
}

.ds-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-3);
  color: var(--ds-color-ink);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.ds-brand:hover {
  color: var(--ds-color-ink);
}

.ds-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--ds-radius-md);
  background: linear-gradient(135deg, var(--ds-color-teal) 0%, var(--ds-color-teal-strong) 100%);
  color: #fff;
  flex: 0 0 auto;
}

.ds-brand__mark svg {
  width: 22px;
  height: 22px;
}

.ds-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.ds-brand__name {
  font-size: var(--ds-text-lg);
}

.ds-brand__tagline {
  color: var(--ds-color-ink-muted);
  font-size: var(--ds-text-xs);
  font-weight: 400;
}

.ds-nav-toggle {
  display: none;
  align-items: center;
  gap: var(--ds-space-2);
  padding: var(--ds-space-2) var(--ds-space-3);
  border: 1px solid var(--ds-color-line-strong);
  border-radius: var(--ds-radius-md);
  background: var(--ds-color-surface);
  color: var(--ds-color-ink);
  font: inherit;
  font-size: var(--ds-text-sm);
  cursor: pointer;
}

.ds-nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.ds-nav-toggle__bars::before,
.ds-nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.ds-nav-toggle__bars::before {
  top: -6px;
}

.ds-nav-toggle__bars::after {
  top: 6px;
}

.ds-nav {
  display: flex;
  align-items: center;
  gap: var(--ds-space-5);
}

.ds-nav__list {
  display: flex;
  align-items: center;
  gap: var(--ds-space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ds-nav__link {
  position: relative;
  color: var(--ds-color-ink-soft);
  font-size: var(--ds-text-sm);
  font-weight: 500;
  text-decoration: none;
  padding: var(--ds-space-2) 0;
}

.ds-nav__link:hover {
  color: var(--ds-color-ink);
}

.ds-nav__link.ds-is-current {
  color: var(--ds-color-ink);
}

.ds-nav__link.ds-is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--ds-color-accent);
}

.ds-nav__actions {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
}

.ds-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-2);
  padding: var(--ds-space-3) var(--ds-space-5);
  border: 1px solid transparent;
  border-radius: var(--ds-radius-md);
  background: var(--ds-color-ink);
  color: #fff;
  font: inherit;
  font-size: var(--ds-text-sm);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--ds-transition), border-color var(--ds-transition),
    color var(--ds-transition), transform var(--ds-transition);
}

.ds-button:hover {
  background: #12171a;
  color: #fff;
}

.ds-button:active {
  transform: translateY(1px);
}

.ds-button:disabled,
.ds-button[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

.ds-button--accent {
  background: var(--ds-color-accent);
}

.ds-button--accent:hover {
  background: var(--ds-color-accent-strong);
}

.ds-button--teal {
  background: var(--ds-color-teal);
}

.ds-button--teal:hover {
  background: var(--ds-color-teal-strong);
}

.ds-button--ghost {
  background: transparent;
  border-color: var(--ds-color-line-strong);
  color: var(--ds-color-ink);
}

.ds-button--ghost:hover {
  background: var(--ds-color-surface-alt);
  border-color: var(--ds-color-ink-muted);
  color: var(--ds-color-ink);
}

.ds-button--sm {
  padding: var(--ds-space-2) var(--ds-space-3);
  font-size: var(--ds-text-xs);
}

.ds-button--lg {
  padding: var(--ds-space-4) var(--ds-space-6);
  font-size: var(--ds-text-base);
}

.ds-button--block {
  width: 100%;
}

.ds-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-2);
  padding: 0.2em 0.7em;
  border: 1px solid var(--ds-color-line);
  border-radius: var(--ds-radius-pill);
  background: var(--ds-color-surface-alt);
  color: var(--ds-color-ink-soft);
  font-size: var(--ds-text-xs);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.ds-badge--teal {
  background: var(--ds-color-teal-soft);
  border-color: rgba(31, 138, 136, 0.28);
  color: var(--ds-color-teal-strong);
}

.ds-badge--accent {
  background: var(--ds-color-accent-soft);
  border-color: rgba(209, 138, 42, 0.32);
  color: var(--ds-color-accent-strong);
}

.ds-badge--success {
  background: #e2f0e6;
  border-color: rgba(47, 125, 79, 0.28);
  color: var(--ds-color-success);
}

.ds-badge--warning {
  background: #f8eddc;
  border-color: rgba(183, 121, 31, 0.3);
  color: var(--ds-color-warning);
}

.ds-badge--danger {
  background: #f7e4df;
  border-color: rgba(178, 64, 47, 0.28);
  color: var(--ds-color-danger);
}

.ds-note {
  display: flex;
  gap: var(--ds-space-3);
  padding: var(--ds-space-4);
  border: 1px solid var(--ds-color-line);
  border-left: 3px solid var(--ds-color-accent);
  border-radius: var(--ds-radius-md);
  background: var(--ds-color-surface);
  color: var(--ds-color-ink-soft);
  font-size: var(--ds-text-sm);
}

.ds-note--teal {
  border-left-color: var(--ds-color-teal);
}

.ds-note__title {
  color: var(--ds-color-ink);
  font-weight: 650;
}

.ds-card {
  display: flex;
  flex-direction: column;
  padding: var(--ds-space-5);
  border: 1px solid var(--ds-color-line);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-color-surface);
  box-shadow: var(--ds-shadow-sm);
  transition: border-color var(--ds-transition), box-shadow var(--ds-transition),
    transform var(--ds-transition);
}

.ds-card:hover {
  border-color: var(--ds-color-line-strong);
  box-shadow: var(--ds-shadow-md);
}

.ds-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--ds-space-3);
  margin-bottom: var(--ds-space-3);
}

.ds-card__title {
  margin: 0;
  font-size: var(--ds-text-lg);
}

.ds-card__body {
  color: var(--ds-color-ink-soft);
  font-size: var(--ds-text-sm);
  flex: 1 1 auto;
}

.ds-card__body > *:last-child {
  margin-bottom: 0;
}

.ds-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-2) var(--ds-space-4);
  margin-top: var(--ds-space-4);
  padding-top: var(--ds-space-3);
  border-top: 1px solid var(--ds-color-line);
  color: var(--ds-color-ink-muted);
  font-size: var(--ds-text-xs);
  font-family: var(--ds-font-mono);
}

.ds-card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-3);
  align-items: center;
  justify-content: space-between;
  margin-top: var(--ds-space-4);
}

.ds-card__price {
  font-size: var(--ds-text-xl);
  font-weight: 650;
}

.ds-card__price-note {
  color: var(--ds-color-ink-muted);
  font-size: var(--ds-text-xs);
  font-weight: 400;
}

.ds-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--ds-space-4);
  border-radius: var(--ds-radius-md);
  background: var(--ds-color-teal-soft);
  color: var(--ds-color-teal-strong);
}

.ds-card__icon svg {
  width: 24px;
  height: 24px;
}

.ds-card--flat {
  box-shadow: none;
}

.ds-card--accent {
  border-color: rgba(209, 138, 42, 0.4);
  background: linear-gradient(180deg, var(--ds-color-accent-soft) 0%, var(--ds-color-surface) 55%);
}

.ds-card.ds-is-hidden {
  display: none;
}

.ds-panel {
  padding: var(--ds-space-5);
  border: 1px solid var(--ds-color-line);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-color-surface);
}

.ds-panel__title {
  margin: 0 0 var(--ds-space-4);
  font-size: var(--ds-text-lg);
}

.ds-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-3);
  margin-bottom: var(--ds-space-4);
}

.ds-panel__head h2,
.ds-panel__head h3 {
  margin: 0;
  font-size: var(--ds-text-lg);
}

.ds-panel--teal {
  border-color: rgba(20, 125, 116, 0.25);
  background: #f0f6f4;
}

.ds-hero {
  padding: var(--ds-space-8) 0;
  border-bottom: 1px solid var(--ds-color-line);
  background:
    radial-gradient(circle at 15% 20%, rgba(31, 138, 136, 0.12), transparent 55%),
    radial-gradient(circle at 85% 10%, rgba(209, 138, 42, 0.14), transparent 50%),
    var(--ds-color-bg);
}

.ds-hero__inner {
  display: grid;
  gap: var(--ds-space-7);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
}

.ds-hero__content {
  min-width: 0;
}

.ds-flat-scheme {
  width: 100%;
  height: auto;
}

.ds-hero__title {
  margin-bottom: var(--ds-space-4);
}

.ds-hero__lead {
  color: var(--ds-color-ink-soft);
  font-size: var(--ds-text-xl);
  margin-bottom: var(--ds-space-5);
}

.ds-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-3);
  margin-bottom: var(--ds-space-5);
}

.ds-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-3) var(--ds-space-5);
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ds-color-ink-muted);
  font-size: var(--ds-text-sm);
}

.ds-hero__facts strong {
  display: block;
  color: var(--ds-color-ink);
  font-size: var(--ds-text-xl);
}

.ds-hero__figure {
  margin: 0;
}

.ds-hero__figure figcaption {
  margin-top: var(--ds-space-3);
  color: var(--ds-color-ink-muted);
  font-size: var(--ds-text-xs);
  font-family: var(--ds-font-mono);
}

.ds-form {
  display: grid;
  gap: var(--ds-space-4);
}

.ds-form__row {
  display: grid;
  gap: var(--ds-space-4);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.ds-field {
  display: grid;
  gap: var(--ds-space-2);
}

.ds-field__label {
  color: var(--ds-color-ink-soft);
  font-size: var(--ds-text-sm);
  font-weight: 600;
}

.ds-field__required {
  color: var(--ds-color-danger);
}

.ds-field__hint {
  color: var(--ds-color-ink-muted);
  font-size: var(--ds-text-xs);
}

.ds-field__error {
  color: var(--ds-color-danger);
  font-size: var(--ds-text-xs);
  font-weight: 600;
}

.ds-input,
.ds-select,
.ds-textarea {
  width: 100%;
  padding: var(--ds-space-3);
  border: 1px solid var(--ds-color-line-strong);
  border-radius: var(--ds-radius-md);
  background: var(--ds-color-surface);
  color: var(--ds-color-ink);
  font: inherit;
  font-size: var(--ds-text-sm);
  transition: border-color var(--ds-transition), box-shadow var(--ds-transition);
}

.ds-textarea {
  min-height: 140px;
  resize: vertical;
}

.ds-input::placeholder,
.ds-textarea::placeholder {
  color: #9aa1a8;
}

.ds-input:focus,
.ds-select:focus,
.ds-textarea:focus {
  border-color: var(--ds-color-teal);
  box-shadow: 0 0 0 3px rgba(31, 138, 136, 0.16);
  outline: none;
}

.ds-input[aria-invalid="true"],
.ds-select[aria-invalid="true"],
.ds-textarea[aria-invalid="true"] {
  border-color: var(--ds-color-danger);
}

.ds-input[aria-invalid="true"]:focus,
.ds-select[aria-invalid="true"]:focus,
.ds-textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(178, 64, 47, 0.16);
}

.ds-checkbox {
  display: flex;
  gap: var(--ds-space-3);
  align-items: flex-start;
  color: var(--ds-color-ink-soft);
  font-size: var(--ds-text-sm);
}

.ds-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--ds-color-teal);
  flex: 0 0 auto;
}

.ds-form__status {
  padding: var(--ds-space-3) var(--ds-space-4);
  border-radius: var(--ds-radius-md);
  border: 1px solid var(--ds-color-line);
  background: var(--ds-color-surface-alt);
  color: var(--ds-color-ink-soft);
  font-size: var(--ds-text-sm);
}

.ds-form__status[data-ds-state="success"] {
  border-color: rgba(47, 125, 79, 0.35);
  background: #e6f2e9;
  color: #235f3c;
}

.ds-form__status[data-ds-state="error"] {
  border-color: rgba(178, 64, 47, 0.35);
  background: #f8e6e1;
  color: #8f3123;
}

.ds-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-3);
  align-items: center;
}

.ds-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--ds-space-5);
  background: rgba(24, 29, 32, 0.55);
  overflow-y: auto;
}

.ds-modal[hidden] {
  display: none;
}

.ds-modal__dialog {
  position: relative;
  width: min(560px, 100%);
  padding: var(--ds-space-6);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-color-surface);
  box-shadow: var(--ds-shadow-lg);
}

.ds-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--ds-space-4);
  margin-bottom: var(--ds-space-4);
}

.ds-modal__title {
  margin: 0;
  font-size: var(--ds-text-2xl);
}

.ds-modal__close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--ds-color-line);
  border-radius: var(--ds-radius-md);
  background: var(--ds-color-surface);
  color: var(--ds-color-ink-soft);
  font-size: var(--ds-text-lg);
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}

.ds-modal__close:hover {
  border-color: var(--ds-color-line-strong);
  color: var(--ds-color-ink);
}

.ds-modal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-3);
  justify-content: flex-end;
  margin-top: var(--ds-space-5);
}

.ds-faq {
  border: 1px solid var(--ds-color-line);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-color-surface);
  overflow: hidden;
}

.ds-faq__item {
  border-bottom: 1px solid var(--ds-color-line);
}

.ds-faq__item:last-child {
  border-bottom: 0;
}

.ds-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-4);
  width: 100%;
  padding: var(--ds-space-4) var(--ds-space-5);
  border: 0;
  background: transparent;
  color: var(--ds-color-ink);
  font: inherit;
  font-size: var(--ds-text-base);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.ds-faq__question:hover {
  background: var(--ds-color-surface-alt);
}

.ds-faq__question:focus-visible {
  outline-offset: -3px;
}

.ds-faq__marker {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.ds-faq__marker::before,
.ds-faq__marker::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--ds-color-teal);
  border-radius: 2px;
  transform: translate(-50%, -50%);
}

.ds-faq__marker::before {
  width: 14px;
  height: 2px;
}

.ds-faq__marker::after {
  width: 2px;
  height: 14px;
  transition: transform var(--ds-transition);
}

.ds-faq__item.ds-is-open .ds-faq__marker::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.ds-faq__answer {
  padding: 0 var(--ds-space-5) var(--ds-space-5);
  color: var(--ds-color-ink-soft);
}

.ds-faq__answer[hidden] {
  display: none;
}

.ds-faq__answer > *:last-child {
  margin-bottom: 0;
}

.ds-dashboard {
  display: grid;
  gap: var(--ds-space-5);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.ds-metric {
  padding: var(--ds-space-4);
  border: 1px solid var(--ds-color-line);
  border-radius: var(--ds-radius-md);
  background: var(--ds-color-surface);
}

.ds-metric__label {
  display: block;
  color: var(--ds-color-ink-muted);
  font-size: var(--ds-text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ds-metric__value {
  display: block;
  margin-top: var(--ds-space-2);
  font-size: var(--ds-text-2xl);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.ds-metric__hint {
  display: block;
  margin-top: var(--ds-space-1);
  color: var(--ds-color-ink-muted);
  font-size: var(--ds-text-xs);
}

.ds-telemetry {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--ds-color-line);
  border-radius: var(--ds-radius-md);
  overflow: hidden;
}

.ds-telemetry-list {
  margin: 0 0 var(--ds-space-4);
  padding: 0;
  list-style: none;
  border: 1px solid var(--ds-color-line);
  border-radius: var(--ds-radius-md);
  overflow: hidden;
}

.ds-telemetry-graph {
  width: 100%;
  height: auto;
}

.ds-telemetry-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--ds-space-3);
  padding: var(--ds-space-3) var(--ds-space-4);
  border-bottom: 1px solid var(--ds-color-line);
  font-family: var(--ds-font-mono);
  font-size: var(--ds-text-sm);
}

.ds-telemetry-row:last-child {
  border-bottom: 0;
}

.ds-telemetry-row:nth-child(odd) {
  background: var(--ds-color-surface-alt);
}

.ds-status {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-2);
  font-size: var(--ds-text-sm);
}

.ds-status::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ds-color-ink-muted);
}

.ds-status--online,
.ds-server.ds-is-online {
  color: var(--ds-color-success);
}

.ds-status--online::before,
.ds-server.ds-is-online::before {
  background: var(--ds-color-success);
}

.ds-status--offline,
.ds-server.ds-is-offline {
  color: var(--ds-color-danger);
}

.ds-status--offline::before,
.ds-server.ds-is-offline::before {
  background: var(--ds-color-danger);
}

.ds-server-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ds-server {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-4);
  padding: var(--ds-space-3) 0;
  border-bottom: 1px solid var(--ds-color-line);
}

.ds-server:last-child {
  border-bottom: 0;
}

.ds-server__name {
  font-weight: 600;
}

.ds-server__latency {
  font-family: var(--ds-font-mono);
  font-size: var(--ds-text-sm);
  color: var(--ds-color-ink-muted);
}

.ds-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-3);
  align-items: center;
  margin-bottom: var(--ds-space-5);
  padding: var(--ds-space-4);
  border: 1px solid var(--ds-color-line);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-color-surface);
}

.ds-filter {
  padding: var(--ds-space-2) var(--ds-space-4);
  border: 1px solid var(--ds-color-line-strong);
  border-radius: var(--ds-radius-pill);
  background: var(--ds-color-surface);
  color: var(--ds-color-ink-soft);
  font: inherit;
  font-size: var(--ds-text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--ds-transition), border-color var(--ds-transition),
    color var(--ds-transition);
}

.ds-filter:hover {
  border-color: var(--ds-color-teal);
  color: var(--ds-color-teal-strong);
}

.ds-filter.ds-is-active {
  background: var(--ds-color-ink);
  border-color: var(--ds-color-ink);
  color: #fff;
}

.ds-filter__count {
  margin-left: auto;
}

.ds-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ds-color-line);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-color-surface);
}

.ds-table {
  min-width: 560px;
  margin: 0;
}

.ds-table caption {
  padding: var(--ds-space-4) var(--ds-space-4) 0;
  color: var(--ds-color-ink-muted);
  font-size: var(--ds-text-xs);
  text-align: left;
}

.ds-table tbody tr:last-child td {
  border-bottom: 0;
}

.ds-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ds-step;
}

.ds-step {
  position: relative;
  padding-left: 56px;
  padding-bottom: var(--ds-space-6);
}

.ds-step:last-child {
  padding-bottom: 0;
}

.ds-step::before {
  counter-increment: ds-step;
  content: counter(ds-step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--ds-color-line-strong);
  border-radius: var(--ds-radius-md);
  background: var(--ds-color-surface);
  color: var(--ds-color-accent-strong);
  font-family: var(--ds-font-mono);
  font-size: var(--ds-text-sm);
  font-weight: 700;
}

.ds-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 40px;
  left: 18px;
  width: 1px;
  height: calc(100% - 40px);
  background: var(--ds-color-line);
}

.ds-step__title {
  margin: 0 0 var(--ds-space-2);
  font-size: var(--ds-text-lg);
}

.ds-step__body {
  color: var(--ds-color-ink-soft);
}

.ds-step__body > *:last-child {
  margin-bottom: 0;
}

.ds-diagnostic {
  padding: var(--ds-space-5);
  border: 1px solid var(--ds-color-line);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-color-surface);
}

.ds-diagnostic__title {
  margin: 0 0 var(--ds-space-2);
  font-size: var(--ds-text-xl);
}

.ds-diagnostic__summary {
  color: var(--ds-color-ink-soft);
  margin-bottom: var(--ds-space-4);
}

.ds-diagnostic-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--ds-space-3);
}

.ds-diagnostic-step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: var(--ds-space-3);
  align-items: start;
  padding: var(--ds-space-3);
  border: 1px solid var(--ds-color-line);
  border-radius: var(--ds-radius-md);
  background: var(--ds-color-surface-alt);
  font-size: var(--ds-text-sm);
}

.ds-diagnostic-step [data-ds-step-number] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--ds-radius-sm);
  background: var(--ds-color-teal-soft);
  color: var(--ds-color-teal-strong);
  font-family: var(--ds-font-mono);
  font-weight: 700;
}

.ds-footer {
  padding: var(--ds-space-7) 0 var(--ds-space-6);
  border-top: 1px solid var(--ds-color-line);
  background: var(--ds-color-surface-alt);
}

.ds-footer__grid {
  display: grid;
  gap: var(--ds-space-6);
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(150px, 1fr));
}

.ds-footer__title {
  margin: 0 0 var(--ds-space-3);
  font-size: var(--ds-text-base);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ds-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--ds-space-2);
}

.ds-footer__list a {
  color: var(--ds-color-ink-soft);
  font-size: var(--ds-text-sm);
  text-decoration: none;
}

.ds-footer__list a:hover {
  color: var(--ds-color-teal-strong);
  text-decoration: underline;
}

.ds-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-3);
  justify-content: space-between;
  align-items: center;
  margin-top: var(--ds-space-6);
  padding-top: var(--ds-space-4);
  border-top: 1px solid var(--ds-color-line);
  color: var(--ds-color-ink-muted);
  font-size: var(--ds-text-xs);
}

.ds-breadcrumbs {
  padding: var(--ds-space-4) 0;
  color: var(--ds-color-ink-muted);
  font-size: var(--ds-text-sm);
}

.ds-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ds-breadcrumbs__item + .ds-breadcrumbs__item::before {
  content: "/";
  margin-right: var(--ds-space-2);
  color: var(--ds-color-line-strong);
}

.ds-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.ds-text-center {
  text-align: center;
}

.ds-text-muted {
  color: var(--ds-color-ink-muted);
}

.ds-text-small {
  font-size: var(--ds-text-sm);
}

.ds-mono {
  font-family: var(--ds-font-mono);
}

.ds-mt-0 {
  margin-top: 0;
}

.ds-mb-0 {
  margin-bottom: 0;
}

.ds-mt-4 {
  margin-top: var(--ds-space-4);
}

.ds-mt-5 {
  margin-top: var(--ds-space-5);
}

.ds-mt-6 {
  margin-top: var(--ds-space-6);
}

.ds-mb-4 {
  margin-bottom: var(--ds-space-4);
}

.ds-mb-5 {
  margin-bottom: var(--ds-space-5);
}

.ds-p-4 {
  padding: var(--ds-space-4);
}

.ds-p-5 {
  padding: var(--ds-space-5);
}

.ds-rounded {
  border-radius: var(--ds-radius-lg);
}

.ds-shadow {
  box-shadow: var(--ds-shadow-md);
}

.ds-hidden {
  display: none !important;
}

.ds-no-wrap {
  white-space: nowrap;
}

.ds-list-check {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--ds-space-2);
}

.ds-list-check li {
  position: relative;
  padding-left: 26px;
  color: var(--ds-color-ink-soft);
}

.ds-list-check li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--ds-color-teal);
  border-bottom: 2px solid var(--ds-color-teal);
  transform: rotate(-45deg);
}

.ds-code-block {
  position: relative;
  margin-bottom: var(--ds-space-5);
}

.ds-code-block__label {
  display: inline-block;
  margin-bottom: var(--ds-space-2);
  padding: var(--ds-space-1) var(--ds-space-3);
  border-radius: var(--ds-radius-sm);
  background: var(--ds-color-ink);
  color: #fff;
  font-family: var(--ds-font-mono);
  font-size: var(--ds-text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ds-code-block pre {
  margin-bottom: 0;
}

.ds-error-page {
  padding: var(--ds-space-8) 0;
  text-align: center;
}

.ds-error-page__code {
  display: block;
  color: var(--ds-color-accent);
  font-family: var(--ds-font-mono);
  font-size: clamp(4rem, 3rem + 8vw, 8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.ds-quick-links {
  display: grid;
  gap: var(--ds-space-4);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: var(--ds-space-6);
  text-align: left;
}

@media (max-width: 1199px) {
  .ds-container {
    max-width: 1040px;
  }
}

@media (max-width: 959px) {
  :root {
    --ds-header-height: 64px;
  }

  .ds-hero {
    padding: var(--ds-space-7) 0;
  }

  .ds-hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .ds-header__inner {
    flex-wrap: wrap;
    row-gap: var(--ds-space-3);
  }

  .ds-nav {
    flex-direction: column;
    align-items: stretch;
    gap: var(--ds-space-4);
    width: 100%;
    padding: var(--ds-space-4) 0;
  }

  html.ds-js .ds-nav {
    position: fixed;
    inset: var(--ds-header-height) 0 0;
    display: none;
    padding: var(--ds-space-5);
    background: var(--ds-color-surface);
    border-top: 1px solid var(--ds-color-line);
    overflow-y: auto;
  }

  html.ds-js .ds-nav.ds-is-open {
    display: flex;
  }

  html.ds-js .ds-nav-toggle {
    display: inline-flex;
  }

  .ds-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: var(--ds-space-1);
    width: 100%;
  }

  .ds-nav__link {
    display: block;
    padding: var(--ds-space-3) 0;
    border-bottom: 1px solid var(--ds-color-line);
    font-size: var(--ds-text-base);
  }

  .ds-nav__link.ds-is-current::after {
    display: none;
  }

  .ds-nav__actions {
    width: 100%;
  }

  .ds-nav__actions .ds-button {
    flex: 1 1 auto;
  }

  .ds-footer__grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

@media (max-width: 639px) {
  .ds-container {
    padding: 0 var(--ds-space-4);
  }

  .ds-section {
    padding: var(--ds-space-7) 0;
  }

  .ds-section--tight {
    padding: var(--ds-space-5) 0;
  }

  .ds-hero {
    padding: var(--ds-space-6) 0;
  }

  .ds-hero__lead {
    font-size: var(--ds-text-lg);
  }

  .ds-hero__actions .ds-button {
    width: 100%;
  }

  .ds-card {
    padding: var(--ds-space-4);
  }

  .ds-modal {
    padding: var(--ds-space-3);
    align-items: flex-end;
  }

  .ds-modal__dialog {
    padding: var(--ds-space-5);
  }

  .ds-telemetry-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ds-step {
    padding-left: 44px;
  }

  .ds-step::before {
    width: 30px;
    height: 30px;
  }

  .ds-step:not(:last-child)::after {
    top: 34px;
    left: 15px;
  }

  .ds-form__actions .ds-button {
    width: 100%;
  }

  .ds-filter-bar {
    padding: var(--ds-space-3);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.ds-cookie {
  position: fixed;
  left: var(--ds-space-4);
  right: var(--ds-space-4);
  bottom: var(--ds-space-4);
  z-index: 90;
}

.ds-cookie[hidden] {
  display: none;
}

.ds-cookie__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-4);
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--ds-space-4) var(--ds-space-5);
  border: 1px solid var(--ds-color-line);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-color-surface);
  box-shadow: var(--ds-shadow-lg);
}

.ds-cookie__text {
  margin: 0;
  max-width: 720px;
  color: var(--ds-color-ink-soft);
  font-size: var(--ds-text-sm);
}

.ds-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-3);
}

@media (max-width: 640px) {
  .ds-cookie {
    left: var(--ds-space-3);
    right: var(--ds-space-3);
    bottom: var(--ds-space-3);
  }

  .ds-cookie__inner {
    align-items: stretch;
    flex-direction: column;
    padding: var(--ds-space-4);
  }

  .ds-cookie__actions .ds-button {
    width: 100%;
  }
}

@media print {
  .ds-header,
  .ds-footer,
  .ds-nav-toggle,
  .ds-modal,
  .ds-cookie {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
