.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;  
    height: 100%;
    /*background: linear-gradient(to right, #1d4f77, transparent);*/
    z-index: 1; 
    pointer-events: none;
}

.hero {
    width: 95%;
    height: 85vh;
    margin: 20px auto;
    border-radius: 30px;
 background-image: url('http://ksint.grupa-abs.pl/wp-content/uploads/2025/01/1d4f77-21.png');
    position: relative;
    overflow: hidden;
 background-size: cover;

    color: var(--color-text);
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.hero-container {
    max-width: 1400px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    z-index: 5;
    max-width: 50%;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    background-color: var(--color-gray);
    padding: 8px 20px;
    border-radius: 50px;
    z-index: 5;
    font-size: 0.9rem;
    font-weight: light;
    margin-bottom: 20px;
    color: var(--color-text);
}

.hero-badge .dot {
    width: 10px;
    height: 10px;
    z-index: 5;
    background-color: var(--color-primary);
    border-radius: 50%;
    margin-right: 10px;
}

.hero-content h1 {
    font-size: 3rem;
  font-weight: 500;
    line-height: 4rem;
    z-index: 5;
    margin-bottom: 30px;
    margin-top: 10px;
    color: #d27f41;
    font-family: var(--font-secondary);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-family: var(--font-primary);
    line-height: 1.8;
    z-index: 5;
    color: black;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    align-items: stretch; 

    z-index: 5;
}

.btn-primary {
    padding: 20px 30px;
    background-color:#d27f41;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    z-index: 5;
    white-space: nowrap; 

    font-size: 1rem;
    font-weight:normal;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background-color: #b46f3a;
    transform: translateY(-3px);
}

.btn-secondary {
    padding: 15px 30px;
    background-color: transparent;
    color: #1d4f77;
    text-decoration: none;
    border: 1px solid #1d4f77;
    border-radius: 30px;
    font-size: 1rem;
    z-index: 5;
    white-space: nowrap; 

    font-weight:normal;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: #1d4f77;
    transform: translateY(-3px);
}

.btn-secondary .icon {
    font-size: 1.2rem;
    line-height: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 5;

    position: relative;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    z-index: 5;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.typing-text {
    font-size: 2.5rem; 
    font-weight: 700;
    background: linear-gradient(130deg, #2a7fff 50%, #1f57aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 20px 0;
    z-index: 5;
    position: relative;
    word-wrap: break-word;
    word-break: break-word;
    text-align: start; 
    overflow: hidden; 
    white-space: pre-wrap; 
    height: 4rem; 
    line-height: 2rem;
}

.typing-text::after {
    content: '';
    position: absolute;
    left: 0;
    z-index: 5;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background: linear-gradient(130deg, #2a7fff 50%, #1f57aa 100%);
}




.logos-section {
    display: flex;
    justify-content: center;
    padding: 50px 20px;

}

.logos-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 95%;
    flex-wrap: wrap;
    gap: 50px;
}

.logo-item {
    flex: 1 1 calc(25% - 20px); 
    max-width: 150px;
    text-align: center;
}

.logo-item img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease-in-out;
}

.logo-item img:hover {
    filter: grayscale(0%);
}



@media (max-width: 1400px) {
    .hero {
        height: 80vh;
        padding: 60px 30px;
    }
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 50px;
        padding: 0 40px;
    }
    .hero-content, .hero-image {
        max-width: 90%;
    }
    .hero-content h1 {
        font-size: 2.8rem;
        line-height: 3.8rem;
        margin-top: 5%;
    }
    .hero-content p {
        font-size: 1.1rem;
        margin-top: 0;
    }
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 25px;
    }
}

@media (max-width: 1024px) {
    .hero {
        height: auto;
        padding: 50px 20px;
    }
    .hero-container {
        flex-direction: column;
        align-items: center;
    }
	
	.logos-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 95%;
    flex-wrap: wrap;
    gap: 10px;
}
    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 3rem;
        margin-top: 4%;
    }
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 30px;        padding: 0 25px;
    }
    .hero-image {
        margin-top: 30px;
    }
}

@media (max-width: 800px) {
    .hero {
        height: auto;
        padding: 40px 15px;
        flex-direction: column;
    }
    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 2.5rem;
    }
    .typing-text {
        font-size: 1.5rem;
        line-height: 2rem;
    }
	  .hero-content p {
        font-size: 1rem;
		        padding: 0;
    }
    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 16px;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 20px;
    }
    .btn-primary, .btn-secondary {
        width: 90%;
        margin: 0 auto;	padding: 15px 20px;
		        justify-content: center;
    }
}

@media (max-width: 600px) {
    .hero {
        height: auto;
        padding: 30px 10px;
		background-image: url('http://ksint.grupa-abs.pl/wp-content/uploads/2025/01/Untitled-design-2025-01-07T173947.085.png');
    }
	
		.logos-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 95%;
    flex-wrap: wrap;
    gap: 80px;
}
    .hero-content h1 {
        font-size: 1.6rem;
        line-height: 2rem;
        margin-top: 2%;
    }
	  .hero-container {
   
        padding: 0 0px;
    }
    .hero-content p {
        font-size: 1rem;
		        padding: 0;
    }
    .hero-image {
        margin-top: 15px;
    }
}

@media (min-width: 1440px) {
    .hero {
        max-width: 95%;
        height: 85vh;
        margin: 20px auto;
    }
    
    .hero-content h1 {
        font-size: 3rem;

    }
    .hero-container {
        max-width: 1400px;
       
    }
    .hero-buttons {
        gap: 35px;
    }
}

