:root {
    --primary-color: #e67e22;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --text-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* KLUCZOWE ZMIANY DLA STPKI NA DOLE */
body {
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Rozciąga body na pełną wysokość ekranu */
}

/* Sprawia, że główna zawartość rośnie i wypycha stopkę */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1; 
}

/* Header & Navigation */
header {
    background-color: #fff;
    border-bottom: 3px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

.brand-logos {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-main {
    height: 60px;
    width: auto;
}

.logo-owner {
    height: 50px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li a {
    color: var(--dark-color);
    text-decoration: none;
    padding: 10px 15px;
    transition: color 0.3s, background-color 0.3s;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
}

nav ul li a:hover, nav ul li a.active {
    color: #fff;
    background-color: var(--dark-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 450px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -2;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.75);
    z-index: -1;
}

.hero-content {
    z-index: 1;
    padding: 20px;
    max-width: 800px;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.hero p {
    font-size: 18px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Main Content Layout */
section {
    padding: 60px 0;
    border-bottom: 1px solid #eee;
}

section h2 {
    color: var(--dark-color);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Grid i Panele */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--light-color);
    padding: 25px;
    border-radius: 5px;
    border-top: 4px solid var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.card h3, .card h4 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.card ul {
    padding-left: 20px;
}

.info-block {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.info-col {
    flex: 1;
    min-width: 300px;
}

.panel-wladze {
    background: var(--light-color);
    padding: 20px;
    border-radius: 5px;
    border-left: 4px solid var(--primary-color);
}

/* Przetargi - Styl akordeonu / rozwijania */
.przetarg-item {
    background: var(--light-color);
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
    overflow: hidden;
}

.przetarg-item[open] {
    border-left: 4px solid var(--primary-color);
}

summary {
    padding: 15px;
    cursor: pointer;
    font-weight: 600;
    background-color: #fff;
    outline: none;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

.przetarg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.przetarg-title {
    color: var(--dark-color);
    font-size: 16px;
}

.przetarg-date {
    font-size: 13px;
    color: #7f8c8d;
    font-weight: normal;
}

.przetarg-content {
    padding: 20px;
    background: var(--light-color);
    border-top: 1px solid #eee;
    font-size: 15px;
}

.przetarg-content p {
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: #bbb;
    text-align: center;
    padding: 40px 20px;
    font-size: 14px;
    width: 100%;
}

footer strong {
    color: #fff;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 992px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
}

@media (max-width: 768px) {
    /* Usunięto ukrywanie .hero, teraz baner zmniejsza się responsywnie */
    .hero {
        height: 300px;
    }
    .hero h2 {
        font-size: 26px;
    }
    .hero p {
        font-size: 15px;
    }
    
    .brand-logos {
        width: 100%;
        justify-content: space-around;
        gap: 10px;
    }

    .logo-main {
        height: 45px;
    }

    .logo-owner {
        height: 38px;
    }

    section {
        padding: 40px 0;
    }

    .przetarg-header {
        flex-direction: column;
        align-items: flex-start;
    }
}