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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-family);
  font-size: var(--font-size-body);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  font-size: var(--font-size-h1);
  font-weight: 700;
  line-height: 1.15;
}

h2 {
  font-size: var(--font-size-h2);
  font-weight: 700;
  line-height: 1.2;
}

h3 {
  font-size: var(--font-size-h3);
  font-weight: 600;
  line-height: 1.3;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

@media (max-width: 640px) {
  .container {
    padding-left: max(16px, var(--container-padding));
    padding-right: max(16px, var(--container-padding));
  }
}

.section {
  padding-top: 64px;
  padding-bottom: 64px;
}

.section--soft {
  background: var(--color-bg-soft);
}

.section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.section__link {
  font-size: var(--font-size-small);
  font-weight: 600;
  color: var(--color-text-secondary);
  transition: color var(--transition);
}

.section__link:hover {
  color: var(--color-text);
}

.icon {
  flex-shrink: 0;
}
