.why-choose-us {
    max-width: 1300px;
    margin: 0 auto;
    padding-top: 0px;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 20px 0px;
}

.why-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: bold;
    color: #000;
    margin-bottom: 15px;
}

.why-description {
    font-size: 1rem;
    color: #555;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
}

/* Siatka kwadratów */
.why-grid {
    width: 92%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    max-width: 100%;
    margin: 0 auto;
    gap: 20px;
    justify-content: center;
    position: relative;
    padding-bottom: 30px;
}

/* Pojedyncza karta */
.why-box {
    height: 300px;
    position: relative;
    border-radius: 20px;
    background-color: #fff;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    border: 3px solid transparent;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}



/* Efekt hover na border */
.why-box:hover {
    border-color: transparent;
    background-image: linear-gradient(white, white), 
    linear-gradient(120deg, #2f3f22, #74a945);
    background-origin: border-box;
    background-clip: content-box, border-box;
    box-shadow: 0px 0px 30px 1px rgba(95, 127, 63, 0.3);
    cursor: pointer;
}

/* Tytuł w kwadracie */
.why-box h2 {
    font-size: clamp(1.4rem, 3vw, 1.6rem);
    color: #000;
    margin-bottom: 5px;
    margin-top: 10px;
    font-weight: 600;
    z-index: 3;
    position: relative;
}

/* Opis w kwadracie */
.why-box p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: #555;
    margin-top: 20px;
    padding: 0px 20px;
    margin-bottom: 40px;
    z-index: 3;
    position: relative;
}
.why-number {
    position: absolute;
    bottom: -100px;
    font-size: 12rem;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.why-number.visible {
    opacity: 1;
    transform: translateY(0);
}


/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
    .why-box {
        height: 250px;
    }
}
