body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('background.png') no-repeat center center fixed;
    background-size: cover;
    z-index: -1;
}

.content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    color: #fff;
}

.logo-container {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #8B4513;
    margin-bottom: 20px;
    width: 90%; /* Responsive width */
    max-width: 1200px; /* Matches desired logo size */
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    width: 100%; /* Scales to container */
    height: auto; /* Maintains aspect ratio */
    max-width: 1200px; /* Desired max size for large screens */
    display: block;
    margin: 0 auto; /* Ensures centering */
}

.logoibmg {
    width: 100%; /* Wypełnia kafelek */
    height: auto; /* Zachowuje proporcje */
    max-width: 100px; /* Ogranicza rozmiar, aby nie dominowało kafelka */
    display: block;
    margin: 0 auto; /* Centrowanie w kafelku */
}


@media (max-width: 1200px) {
    .logoibmg {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .logoibmg {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .logoibmg {
        max-width: 150px;
    }
}

.contract-section {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #8B4513;
    padding: 10px 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.contract-section h2 {
    color: #FFD700;
    margin: 0 0 10px;
    font-size: 1.5em;
}

.contract-section p {
    color: #fff;
    font-size: 1em;
    word-break: break-all;
}

.tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    width: 100%;
}

.tile {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #8B4513;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.tile:hover {
    transform: scale(1.05);
}

.tile h2 {
    color: #FFD700;
    margin: 0 0 10px;
    font-size: 1.5em;
}

.tile p {
    color: #fff;
    font-size: 1em;
    margin: 0;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

/* Responsiveness */
@media (max-width: 1200px) {
    .logo-container {
        width: 95%; /* Slightly wider on medium screens */
    }
    .logo {
        max-width: 800px; /* Caps at native resolution unless upscaled */
    }
}

@media (max-width: 768px) {
    .tiles {
        grid-template-columns: 1fr;
    }
    .contract-section {
        width: 90%;
    }
    .logo-container {
        padding: 10px;
        width: 95%;
    }
    .logo {
        max-width: 500px; /* Adjusted for tablets/phones */
    }
}

@media (max-width: 480px) {
    .logo-container {
        padding: 5px;
    }
    .logo {
        max-width: 300px; /* Smaller for tiny screens */
    }
    .tile h2 {
        font-size: 1.2em;
    }
    .tile p {
        font-size: 0.9em;
    }
}