/* reset styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  position: relative;
  font-family: var(--font-primary);
  font-style: normal;
  font-weight: 400;
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  letter-spacing: var(--letter-spacing-base);
  background: var(--color-background);
  color: var(--color-text);
  overflow-x: hidden;
}
a {
  font: inherit;
  color: inherit;
  text-decoration: none;
}
button, input {
  outline: none;
  border: none;
  background-color: unset;
}
img { max-width: 100%; }
span { font: inherit; color: inherit; text-transform: inherit; }
main { overflow: hidden; }

/* main styles */
.main__container {
  position: relative;
  z-index: 2;
  max-width: var(--container-max-width);
  padding-inline: var(--spacing-container);
  margin-inline: auto;
}
section {
  padding-block: var(--spacing-section);
}
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}
h1 {
  font-size: var(--font-size-h1);
  line-height: var(--line-height-h1);
  letter-spacing: var(--letter-spacing-h1);
}
h2 {
  text-align: center;
  font-size: var(--font-size-h2);
  line-height: var(--line-height-h2);
  letter-spacing: var(--letter-spacing-h2);
  margin-bottom: 32px;
}
h2 + p {
  text-align: center;
  line-height: 24px;
  margin-block: -16px 32px;
}
h2 span {
  color: var(--color-primary);
}

/* --- ПРАВИЛА КОНТРАСТНОСТИ --- */

/* Блоки с темным/цветным фоном, где текст должен быть светлым */
.hero,
.calc,
.footer,
.faq,
.review__item,
.warum__item,
.step__img {
    color: black;
}

/* Элементы, которые всегда должны быть темными */
.review__top,
.register__title,
.register__subtitle,
.header__inner,
.form__title,
.form__label,
.form__input,
.steps__item-description,
h2,
h2 + p {
    color: var(--color-text);
}

/* Элементы, которые всегда должны быть светлыми */
.footer a,
.form__submit,
.step__btn {
    color: var(--color-text-dark);
}

/* Адаптивность */
@media (width < 767px) {
  section { padding-block: 32px; }
  h1 {
    font-size: var(--font-size-h3);
    line-height: 1.2;
    letter-spacing: -1.92px;
  }
  h2 {
    text-align: left;
    font-size: var(--font-size-h3);
    line-height: normal;
    letter-spacing: -1.28px;
    margin-bottom: 24px;
  }
  h2 + p {
    text-align: left;
    margin-block: -8px 24px;
  }
}