/* Reset + типографика + контейнер. Подключается после tokens.css/themes.css. */

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

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

body {
  margin: 0;
  font-family: var(--font-base);
  font-optical-sizing: auto;
  font-weight: var(--fw-regular);
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-base);
  font-optical-sizing: auto;
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.01em;
  color: var(--color-text);
}

h1 { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.05; font-weight: var(--fw-black); letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.1; }
h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; font-weight: var(--fw-bold); }
h4 { font-size: 18px; line-height: 1.3; font-weight: var(--fw-bold); }

p { margin: 0; }

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

.section { padding-block: var(--gap-3xl); }
.section--tight { padding-block: var(--gap-2xl); }

.text-muted { color: var(--color-text-muted); }
.text-primary { color: var(--color-primary); }

@media (max-width: 768px) {
  .container { padding-inline: 16px; }
  .section { padding-block: 56px; }
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
}

@media (max-width: 360px) {
  body { font-size: 15px; }
  .container { padding-inline: 14px; }
}
