*, *::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 при ширине 360px (эталонный мобильный фрейм Figma). */
@media (max-width: 767px) {
  html {
    font-size: clamp(8.889px, 2.77778vw, 13.333px);
  }
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: #0f0c09;
}

body {
  min-height: 100vh;
}

body.menu-open {
  overflow: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button, input, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}
