body{
    gap: 0;
}


nav {
  padding-bottom: 120px;
}

.hero {
  display: flex;
  flex-direction: column;
  padding: 0px 120px 120px 120px;
}

h1 {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 160px;
  color: #FAF8F3;
}
.poster-section {
  position: relative;
  width: 100%;
  background-color: #2C3E50;
  padding: 80px 120px;
}

.poster-cube {
  position: absolute;
  width: 120px;
  height: 120px;
  background-image: url('../assets/images/cube-basic.svg');
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.poster-side-line {
  position: absolute;
  z-index: 1;
}

.poster-side-line.right {
  top: 5%;
  right: 0;
  width: 96px;
  height: 100%;
}

.poster-side-line.right.green {
  background-color: #7A9E7E;
}

.poster-bottom-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 120px;
  z-index: 3;
  color: #FAF8F3;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
}

.error-middle {
  position: relative;
  width: 100%;
  min-height: 500px;
  background-color: #2C3E50;
  padding: 0;
}

.error-middle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 96px;
  background-color: #7A9E7E;
  z-index: 1;
}

.error-middle::after {
  content: '';
  position: absolute;
  bottom: -5%;
  left: 0;
  width: 100%;
  height: 30%;
  background-color: #9E2A3E;
  z-index: 1;
}

.error-cube {
  position: absolute;
  bottom: 0;
  left: 120px;
  width: 300px;
  height: 300px;
  background-image: url('../assets/images/cube-404.svg');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 2;
}

.error-connector {
  top: 0;
  height: 100%;
  right: 25%;
}

.error-text-block {
  bottom: 0;
  height: 96px;
  justify-content: flex-end;
  padding: 0 120px;
  font-size: 16px;
  line-height: 1.5;
}

.error-text-block p {
  max-width: 500px;
  margin: 0;
  text-align: right;
}

@media (max-width: 1280px) {
  .hero h1 {
    font-size: 96px;
  }
  
  .error-cube {
    left: 80px;
    width: 160px;
    height: 160px;
  }
  
  .error-text-block {
    padding: 0 80px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 0 60px 80px 60px;
  }
  
  .hero h1 {
    font-size: 72px;
  }
  
  .error-middle {
    min-height: 400px;
  }
  
  .error-middle::before,
  .error-middle::after {
    height: 64px;
  }
  
  .error-cube {
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    bottom: 64px;
  }
  
  .error-connector {
    right: 15%;
  }
  
  .error-text-block {
    height: auto;
    bottom: -100px;
    padding: 20px 24px;
    justify-content: center;
  }
  
  .error-text-block p {
    text-align: center;
    max-width: 100%;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 0 24px 60px 24px;
  }
  
  .hero h1 {
    font-size: 36px;
    line-height: 1.2;
  }
  
  nav {
    padding-bottom: 60px;
  }
  
  .error-middle::before,
  .error-middle::after {
    height: 48px;
  }
  
  .error-cube {
    width: 100px;
    height: 100px;
  }
  
  .error-text-block {
    font-size: 13px;
  }
}