/* ============================================================
   BASE — reset, typography, layout primitives
   ============================================================ */

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

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--text-main);
  background-color: var(--bg);
  scroll-behavior: smooth;
  transition: background-color 0.3s, color 0.3s;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ── Page wrapper ─────────────────────────────────── */

.page {
  min-height: 100vh;
  background: var(--page-gradient);
  transition: background 0.3s;
}

/* ── Container ────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Section defaults ─────────────────────────────── */

section {
  padding: 80px 0;
}

@media (min-width: 992px) {
  section {
    padding: 110px 0;
  }
}

/* ── Section headings ─────────────────────────────── */

.section-title {
  font-size: 32px;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--dark);
}

.section-title--center {
  text-align: center;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
}

.section-subtitle--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ── Split (two-column) grid ──────────────────────── */

.split {
  display: grid;
  gap: 32px;
}

@media (min-width: 992px) {
  .split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
  }
}
