body {
    position: relative;
    background: url('house2/photo/d2_1.jpg') center/cover no-repeat;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin: 0;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.contact-section {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0 50px;
    box-sizing: border-box;
    z-index: 2;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
}

.contact-box {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    width: 600px;
    height: 250px;
    padding: 30px;
    display: flex; /* Dodane */
    flex-direction: column; /* Dodane */
    justify-content: center; /* Dodane - centrowanie pionowe */
    align-items: center; /* Dodane - centrowanie poziome */
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.contact-box h3 {
    font-size: clamp(28px, 2.5vw, 32px);
    margin-bottom: 15px;
}

.contact-box p {
    font-size: clamp(18px, 2vw, 22px);
    margin: 0;
}

/* Usunięcie podkreśleń z linków */
.contact-box a {
    text-decoration: none;
    color: inherit;
}

.contact-box:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

@media (max-width: 1024px) {
    .contact-box {
        width: 500px;
        height: 220px;
    }
}

@media (max-width: 768px) {
    .contact-section {
        justify-content: center;
        padding: 20px;
    }

    .contact-info {
        align-items: center;
    }

    .contact-box {
        width: 90%;
        height: auto;
        min-height: 200px; /* Dodane dla zachowania proporcji */
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .contact-box {
        width: 100%;
    }

    .contact-box h3 {
        font-size: 22px;
    }

    .contact-box p {
        font-size: 16px;
    }
}