
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #ffffff;
  color: #000000;
}

.page-wrapper {
  width: 100%;
}



.section {
  position: relative;
  width: 100%;
  height: 100vh;              
  overflow: hidden;
}


.section-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}


.section-bg-home {
  background-image: url("bg-home.png");
}

.section-bg-about {
  background-image: url("bg-about.png");
}

.section-bg-chart {
  background-image: url("bg-chart.png");
}



.section-hero {
  display: flex;
  align-items: center;
  justify-content: center;
}


.hero-character-wrapper {
  position: absolute;
  z-index: 2;
  left: 3vw;        
  bottom: 5vh;
}

.hero-character {
  width: 400px;     
  max-width: 35vw;
  animation: floatCharacter 3s ease-in-out infinite;
}


.hero-title-wrapper {
  position: relative;
  z-index: 2;
  text-align: center;
  top:-200px;
}

.hero-title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(5.5rem, 10vw, 8.5rem);
}

/* кнопка X */
.x-button {
  position: absolute;
  z-index: 2;
  right: 2.5vw;  
  bottom: 3vh;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.x-logo-img {
  width: 60px;
  max-width: 12vw;
  display: block;
}


.scroll-down-wrapper {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 4vh;
  transform: translateX(-50%);
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.scroll-down-img {
  width: 56px;
  max-width: 10vw;
  display: block;
  animation: bounceArrow 1.5s ease-in-out infinite;
}


.btn-hover {
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-hover:hover {
  transform: translateY(-4px);
  filter: brightness(1.08);
}



.section-about {
  padding: 0;                 
}


.about-title-wrapper {
  position: absolute;
  z-index: 2;
  top: 6vh;                   
  left: 5vw;                  
}

.about-title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(3.5rem, 6vw, 5rem); 
}


.about-text-wrapper {
  position: absolute;
  z-index: 2;
  top: 28vh;                  
  left: 50%;
  transform: translateX(-50%);
  
  max-width: 55vw;            
  text-align: center;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.5;
}




.section-chart {
  padding: 4vh 5vw;
}


.chart-title-wrapper {
  position: relative;
  z-index: 2;
  margin-bottom: 2vh;
}

.chart-title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3.3rem);
}


.chart-frame-wrapper {
  position: relative;
  z-index: 2;
  margin-top: 4vh;
  width: 100%;
  max-width: 1100px;  
  height: min(60vh, 520px);
  background: #000;   
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
  overflow: hidden;
}

.chart-frame {
  width: 100%;
  height: 100%;
  border: none;
}



@keyframes floatCharacter {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes bounceArrow {
  0% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, -8px);
  }
  100% {
    transform: translate(-50%, 0);
  }
}



@media (max-width: 768px) {
  .hero-character {
    width: 180px;
  }

  .hero-character-wrapper {
    left: 4vw;
    bottom: 3vh;
  }

  .x-logo-img {
    width: 46px;
  }

  .scroll-down-img {
    width: 44px;
  }

  .about-text-wrapper,
  .chart-frame-wrapper {
    max-width: 100%;
  }
}

