.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(20, 60, 124, 1));
    z-index: 1;
}


.hero img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 0;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 5%;
    z-index: 2;
    color: white;
    text-align: left;
}

.hero-content h1 {
    color: #FFFFFF;
    font-size: 45px;
    font-weight: 700;
    margin: 0 0 20px 0;
}

.hero-content p {
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 400;
    margin: 0;
}

/* Ноутбуки (992px - 1199px) */
@media (max-width: 1199px) {
  .hero-content {
    left: 4%;
  }
  .hero-content h1 {
    font-size: 40px;
  }
  .hero-content p {
    font-size: 18px;
  }
}

/* Планшеты (768px - 991px) */
@media (max-width: 991px) {
  .hero img {
    display: none;
  }
  .hero {
    background: url('/images/hero.png') no-repeat center center;
    background-size: cover;
    height: 100vh;
    filter: brightness(0.8);
  }

  .hero-content {
    left: 3%;
    top: 45%;
  }
  .hero-content h1 {
    font-size: 38px;
  }
  .hero-content p {
    font-size: 22px;
  }
}

/* Горизонтальные мобильные (576px - 767px) */
@media (max-width: 767px) {
  

  .hero-content {
    width: 94%;
    left: 3%;
    top: 40%;
    text-align: center;
  }
  .hero-content h1 {
    font-size: 38px;
    line-height: 1.3;
    text-align: center;
  }
  .hero-content p {
    font-size: 22px;
    margin: 0 auto 20px;
  }
}

/* Вертикальные мобильные (481px - 575px) */
@media (max-width: 575px) {
  .hero-content {
    top: 35%;
    padding: 0;
  }
  .hero-content h1 {
    font-size: 34px;
  }
  .hero-content p {
    font-size: 19px;
    padding: 0 30px;
  }
  .hero-content .btn {
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .hero-content {
    top: 34%;
  }
  .hero-content h1 {
    font-size: 25px;
  }
  .hero-content p {
    font-size: 15px;
  }
}
