:root {
  --sw-container: 1200px;
  --sw-container-narrow: 980px;
  --sw-container-text: 760px;
  --sw-container-pad: clamp(16px, 4vw, 32px);

  --sw-space-1: 8px;
  --sw-space-2: 12px;
  --sw-space-3: 16px;
  --sw-space-4: 24px;
  --sw-space-5: 32px;
  --sw-space-6: 48px;
  --sw-space-7: 64px;
  --sw-space-8: 96px;

  --sw-h1: clamp(28px, 5vw, 46px);
  --sw-h2: clamp(24px, 3.8vw, 38px);
  --sw-h3: clamp(20px, 3vw, 28px);
  --sw-lead: clamp(16px, 2.4vw, 20px);
  --sw-body: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
}

img,
picture,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
}

.sw-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.sw-container {
  width: min(var(--sw-container), calc(100% - (var(--sw-container-pad) * 2)));
  margin: 0 auto;
}

.sw-container--narrow {
  width: min(var(--sw-container-narrow), calc(100% - (var(--sw-container-pad) * 2)));
  margin: 0 auto;
}

.sw-container--text {
  width: min(var(--sw-container-text), calc(100% - (var(--sw-container-pad) * 2)));
  margin: 0 auto;
}

.sw-section {
  padding: clamp(48px, 8vw, 96px) 0;
}

.sw-section--tight {
  padding: clamp(32px, 6vw, 72px) 0;
}

.sw-section--compact {
  padding: clamp(24px, 5vw, 48px) 0;
}

.sw-stack {
  display: flex;
  flex-direction: column;
  gap: var(--sw-space-4);
}

.sw-grid {
  display: grid;
  gap: var(--sw-space-4);
}

.sw-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.sw-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.sw-card {
  border-radius: var(--sw-radius-lg, 24px);
  padding: var(--sw-space-4);
}

.sw-prose {
  max-width: 70ch;
}

.sw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}

.sw-btn--primary {
  background: var(--sw-accent, #22d3ee);
  color: #0f172a;
}

.sw-btn--secondary {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.4);
  color: inherit;
}

.sw-btn--block {
  width: 100%;
}

.sw-form {
  display: grid;
  gap: var(--sw-space-3);
}

.sw-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
}

.sw-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sw-space-3);
}

.sw-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  font-size: 16px;
}

.sw-input--light {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.5);
}

.sw-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sw-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

@media (max-width: 768px) {
  .sw-section {
    padding: clamp(40px, 8vw, 80px) 0;
  }
}

@media (max-width: 640px) {
  .sw-field-row {
    grid-template-columns: 1fr;
  }

  .sw-btn--block,
  .sw-btn--mobile-block {
    width: 100%;
  }

  button,
  .btn,
  input[type="submit"],
  input[type="button"] {
    min-height: 44px;
  }

  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea {
    font-size: 16px;
  }
}
