.hero-kontakt {
    width: 100%;
    height: 40vh; /* Reduced height for better responsiveness */
    background: url('../../img/2025img/kontakt/kontaktheader.webp') no-repeat center center/cover; 
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
}

.hero-kontakt::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.4); /* Slightly darker for better text visibility */
}

/* HERO CONTENT */
.hero-content-kontakt {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 1rem; /* Ensure some padding for smaller screens */
}

/* Main heading with adaptive font size */
.hero-content-kontakt h1 {
    font-size: clamp(1.8rem, 4vw, 3.2rem); /* Scales based on screen width */
    margin-top: 2rem;
    line-height: 1.2;
    color: #fff
}

/* For tablets and smaller devices (768px) */
@media screen and (max-width: 768px) {
    .contacts_info-main_block .icon {
        margin-right: 20px;

    }

    .contacts_info-main_block {
        display: -webkit-inline-box;
    }
}

  /* RESPONSIVENESS */
  @media (max-width: 768px) {
    .hero-kontakt {
        height: 40vh; /* Reduce height for smaller screens */
    }

    .hero-content-kontakt h1 {
        font-size: 2.5rem; /* Further reduce font size on smaller devices */
    }

}

@media (max-width: 480px) {
    .hero-kontakt {
        height: 35vh; /* Make hero even smaller on very small screens */
    }

    .hero-content-kontakt h1 {
        font-size: 2.2rem; /* Smaller heading font size for compact screens */
    }

}