/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: #fff;
  line-height: var(--line-height-normal);
  font-size: var(--font-size-base);
  overflow-x: hidden;
}

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

/* Быстрее отрисовка: браузер может отложить картинки ниже экрана */
img[loading="lazy"] {
  content-visibility: auto;
}

a {
  color: inherit;
}

/* Typography */
h1 {
  font-size: var(--font-size-hero);
  font-weight: 700;
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
}

h2 {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 600;
  line-height: 1.3;
}

h4 {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 600;
}

p {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  font-weight: 400;
}

.text-lg { font-size: var(--font-size-lg); line-height: var(--line-height-relaxed); }
.text-sm { font-size: var(--font-size-sm); line-height: var(--line-height-normal); }
.text-xs { font-size: var(--font-size-xs); line-height: 1.4; }
.uppercase {
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  font-size: var(--font-size-xs);
  font-weight: 600;
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Main */
main {
  margin-top: var(--header-height);
}

section {
  padding: var(--section-padding) 0;
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-text-muted), transparent);
  margin: clamp(60px, 10vw, 100px) 0;
}
