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

/* Десктоп: 1rem = 10px при ширине 1920px (эталонный фрейм Figma).
   Плавно масштабируется от 1280px, зафиксировано на границах. */
@media (min-width: 768px) {
  html {
    font-size: clamp(6.667px, 0.520833vw, 10px);
  }
}

/* Мобильный: 1rem = 10px при ширине 380px (мобильный фрейм Figma). */
@media (max-width: 767px) {
  html {
    font-size: clamp(8.421px, 2.631579vw, 12.632px);
  }
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Цвет за пределами страницы при оттягивании (bounce) в Safari на iOS — совпадает с theme-color */
  background-color: #002d29;
}

body {
  min-height: 100vh;
  line-height: 1;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

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

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

ul, ol {
  list-style: none;
}

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