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

html { scroll-behavior: smooth; }

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-heading);
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }

p { max-width: 65ch; }
a { color: var(--ma-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

button { font: inherit; cursor: pointer; border: none; background: none; }

input, select, textarea {
  font: inherit;
  color: var(--text-heading);
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-input);
  border-radius: 6px;
  background: var(--surface-input);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ma-primary);
  box-shadow: 0 0 0 3px rgba(0, 140, 191, 0.18);
}
label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-body);
  margin-bottom: 0.4rem;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

.section { padding-block: clamp(3rem, 6vw, 5rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }

.stack > * + * { margin-top: var(--stack, 1rem); }
.stack-lg > * + * { margin-top: 2rem; }
.stack-sm > * + * { margin-top: 0.5rem; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-body); opacity: 0.85; }
.text-small { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
