:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --surface-muted: #f2f2ee;

  --text: #1c1c1a;
  --muted: #6f6f68;
  --muted-soft: #8a8a82;

  --border: #dcdcd4;
  --border-strong: #cfcfc7;

  --accent: #5f6b63;
  --accent-soft: rgba(95, 107, 99, 0.18);

  --success-bg: #edf6ef;
  --success-border: #cfe4d3;
  --success-text: #2f6b3c;

  --error-bg: #f8ecec;
  --error-border: #e7c9c9;
  --error-text: #7a2f2f;

  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 20px;

  --shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 10px 28px rgba(0, 0, 0, 0.06);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;

  --max-width: 860px;
  --max-width-narrow: 520px;

  --text-xs: 0.875rem;
  --text-sm: 0.95rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.65rem;
  --text-2xl: 2rem;
}

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

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

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--text-base);
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

a {
  color: inherit;
}

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

h1 {
  font-size: var(--text-2xl);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

h2 {
  font-size: var(--text-lg);
  line-height: 1.2;
  margin-bottom: var(--space-3);
}

h3 {
  font-size: var(--text-md);
  line-height: 1.25;
  margin-bottom: var(--space-2);
}

p {
  margin-bottom: var(--space-3);
}

@media (max-width: 640px) {
  :root {
    --max-width: 100%;
    --text-2xl: 1.8rem;
    --text-xl: 1.5rem;
    --space-6: 22px;
    --space-7: 24px;
    --space-8: 28px;
  }

  h1 {
    margin-bottom: var(--space-2);
  }
}