/* Hero section */
.hero {
  position: relative;
  background-image: url('../images/uslugi-top.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 45vh;
  min-height: 250px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-bottom: 20px;
  z-index: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero h1 {
  position: relative;
  z-index: 2;
  color: white;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 800;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  letter-spacing: 0.05em;
  margin: 0;
}

.uslugi-wrapper {
  max-width: 800px;
  margin: 30px auto;
  padding: 20 15px;
  text-align: center;
}

.uslugi-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  margin-top: 20px;
  object-fit: cover;
}

.uslugi-description {
  font-size: 1.6rem;
  color: #333;
  line-height: 1.5;
  font-weight: 500;
}


@media (max-width: 1024px) {
  .hero {
    height: 35vh;
    padding-bottom: 15px;
  }

  .hero h1 {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
  }

  .uslugi-description {
    font-size: 1.4rem;
    padding: 0 10px;
  }

  .uslugi-wrapper {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 30vh;
    padding-bottom: 10px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .uslugi-description {
    font-size: 1.3rem;
  }

  .uslugi-wrapper {
    padding: 0 15px;
  }

  .uslugi-image {
    margin-top: 15px;
    margin-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 28vh;
    padding-bottom: 8px;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .uslugi-description {
    font-size: 1.2rem;
    line-height: 1.4;
  }

  .uslugi-image {
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  }

  .uslugi-wrapper {
    padding: 0 10px;
  }
}