:root {
  --bodyBG: #1b1b1b;
  --textColor1: #f5f5f5;
  --textColor2: #1b1b1b;

  --maxWidthContainer: 1300px;
  --secondStyleColor: #ff7a00;
  --borderRadius: 12px;
}

html {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -o-moz-box-sizing: border-box;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*,
*::before,
*::after {
  box-sizing: inherit;
  padding: 0;
  margin: 0;
}
a {
  text-decoration: none;
}
ul {
  margin: 0;
  padding: 0;
}
li {
  list-style: none;
}
h1,
h2,
h3,
h4,
h5,
p {
  margin: 0;
}
body {
  font-family: var(--font-sans);
  background-color: var(--bodyBG);
  color: var(--textColor1);
  font-weight: 500;
  line-height: 1.2;
}

.container {
  max-width: var(--maxWidthContainer);
  padding: 0 20px;
  margin: 0 auto;
}

/* fonts global */
.defaultH1 {
  font-size: 56px !important;
  text-transform: uppercase;
  line-height: 1.2 !important;
}

.defaultH2 {
  font-size: 38px !important;
  text-transform: uppercase;
}

.defaultH3 {
  font-size: 28px !important;
}

.defaultH4 {
  font-size: 24px !important;
}

.defaultP,
li {
  font-size: 20px !important;
}

section {
  padding: 30px 0 !important;
  margin-bottom: 40px !important;
}

section h2 {
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}

section h2 + p {
  margin: 0 !important;
  margin-bottom: 10px !important;
}
section.hero {
  min-height: 70vh !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media screen and (width < 1100px) {
  .defaultH1 {
    font-size: 50px !important;
    line-height: 1.2;
  }
  .defaultH2 {
    font-size: 44px !important;
  }
  .defaultH3 {
    font-size: 24px !important;
  }
  .defaultH4 {
    font-size: 20px !important;
  }
  .defaultP,
  li {
    font-size: 18px !important;
  }

  section {
    padding: 20px 0 !important;
    margin-bottom: 20px !important;
  }

  section h2 {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
  }
  section.hero {
    min-height: 70vh !important;
  }
}

@media screen and (width < 700px) {
  .defaultH1 {
    font-size: 44px !important;
  }
  .defaultH2 {
    font-size: 34px !important;
  }
}

@media screen and (width < 500px) {
  .defaultH1 {
    font-size: 40px !important;
  }
  .defaultH2 {
    font-size: 30px !important;
  }
}

@media screen and (width < 380px) {
  .defaultH1 {
    font-size: 36px !important;
  }
  .defaultH2 {
    font-size: 28px !important;
  }
}

/*   НАСТРОЙКА SCROLL-BAR   */
::-webkit-scrollbar {
  width: 0.5em;
}
::-webkit-scrollbar-track {
  background-color: transparent;
}
::-webkit-scrollbar-thumb {
  background-color: var(--secondStyleColor);
}
::-webkit-scrollbar-thumb:active {
  background-color: var(--secondStyleColor);
}

/* ===== GLOBAL FADE-IN ON SCROLL ===== */
/* ---- GLOBAL FADE-IN ---- */
section {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Когда секция видима */
section._visible {
  opacity: 1;
  transform: translateY(0);
}
