:root {
  --font-family: "Inter", sans-serif;
  --second-family: "MedievalSharp", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background-color: transparent;
  padding: 0;
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

*,
::before,
::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  margin: 0 auto;
  background-color: green;
  background-image: linear-gradient(225deg, #37ff00 0%, #000 99.65%);
  color: #fff;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

.section {
  padding: 60px 0;
  box-shadow: inset 0 0 32px rgba(0, 0, 0, 0.9);
}

.container {
  width: 100%;
  padding: 0 20px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--second-family);
  font-weight: 500;
  font-size: 32px;
  text-transform: uppercase;
  text-align: center;
  color: #c7ff00;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  margin-bottom: 22px;
}

.section-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 163%;
  color: #fff;
}

/* слой фона */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden; /* важно */
}

/* вращаем именно псевдоэлемент, который больше экрана */
.bg::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;

  /* запас по размеру, чтобы при вращении не было пустых краёв */
  width: 160vmax;
  height: 160vmax;

  transform: translate(-50%, -50%) rotate(0deg);
  transform-origin: center;

  background: url("../img/paint.png") center / cover no-repeat;

  will-change: transform;
  animation: bgSpin 40s linear infinite;
}

@keyframes bgSpin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media screen and (min-width: 375px) {
  .container {
    width: 375px;
  }
}

@media screen and (min-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .container {
    width: 768px;
    padding: 0 32px;
  }
}

@media screen and (min-width: 1436px) {
  .section {
    padding: 64px;
  }

  .container {
    width: 1436px;
    padding: 0 100px;
  }

  .section-title {
    font-size: 42px;
    margin-bottom: 60px;
  }
}
