:root {
  --red-600: #dc2626;
  --red-50: #fef2f2;
  --red-700: #b91c1c;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-400: #9ca3af;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--gray-600);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  background: var(--white);
}

img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 16px; }
h1, h2, h3 { color: var(--gray-900); line-height: 1.2; margin: 0 0 16px; }
h1 { font-size: 48px; line-height: 1.1; font-weight: 800; }
h2 { font-size: 36px; font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; }

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.section { padding: 80px 0; }
.section-soft { background: var(--gray-50); }
.section-dark { background: var(--gray-900); color: #d1d5db; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-red { background: var(--red-600); color: rgba(255, 255, 255, 0.86); }
.section-red h2 { color: var(--white); }
.section-head {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}
.section-head p, .lead {
  font-size: 18px;
  line-height: 1.6;
}
.accent { color: var(--red-600); }
.center { text-align: center; }
.muted { color: var(--gray-400); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .section { padding: 56px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
