/* torgovlya storefront — minimal, theme-aware, responsive.
   Colour and type live as tokens so a design system can grow from here. */
:root {
  --bg: #ffffff;
  --fg: #111418;
  --muted: #6b7280;
  --accent: #2563eb;
  --border: #e6e8eb;
  --card: #f7f8fa;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1216;
    --fg: #e6e8eb;
    --muted: #9aa4b2;
    --accent: #6ea8ff;
    --border: #232a31;
    --card: #161b21;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.bar { max-width: 1040px; margin: 0 auto; padding: 0 1rem; }
.container { max-width: 1040px; margin: 0 auto; padding: 2.5rem 1rem; }

.site-header { border-bottom: 1px solid var(--border); }
.brand {
  display: inline-block;
  padding: 1rem 0;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.hero { max-width: 42rem; }
.hero h1 {
  font-size: clamp(1.7rem, 4.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}
.lead { font-size: 1.15rem; margin: 0 0 0.5rem; }
.muted { color: var(--muted); }

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.pillar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}
.pillar h2 { font-size: 1.05rem; margin: 0 0 0.4rem; }
.pillar p { margin: 0; color: var(--muted); }

.notfound { text-align: center; padding: 3rem 0; }
.notfound h1 { font-size: 3.5rem; margin: 0; letter-spacing: -0.03em; }

.site-footer { border-top: 1px solid var(--border); color: var(--muted); }
.site-footer span { display: block; padding: 1.25rem 0; font-size: 0.9rem; }
