* {
  box-sizing: border-box;
}

:root {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--field-bg);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.1;
}

h2 {
  font-size: 1rem;
  line-height: 1.25;
}

strong {
  font-weight: 750;
}

noscript {
  display: block;
  padding: 16px;
  text-align: center;
  background: #fee2e2;
  color: #7f1d1d;
}

@media (max-width: 620px) {
  input,
  select {
    min-height: 38px;
    padding: 0 10px;
  }

  label {
    gap: 5px;
    font-size: 0.84rem;
  }

  h1 {
    font-size: 1.28rem;
  }

  h2 {
    font-size: 0.95rem;
  }
}
