* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    line-height: 1.6;
}

/*  ustalenia naglowki  */
h1{
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #e9b949;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h2{
    font-size: 22px;
    font-weight: bold;
    margin: 20px 0 15px;
    color: #e9b949;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

h3{
    font-size: 18px;
    font-weight: bold;
    margin: 15px 0 10px;
    color: #3498db;
}

p{
    margin-bottom: 15px;
    text-align: left;
    color: #e0e0e0;
}

/* caly wyglad */
main{
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 30px;
}

.gorna-czesc{
    display: flex;
    gap: 30px;
    width: 100%;
}

.opis-firmy{
    background: linear-gradient(145deg, #2d3746 0%, #1e2835 100%);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    flex: 3;
    padding: 25px;
    height: auto;
    border: 1px solid #3a4a5f;
}

.kontakt{
    background: linear-gradient(145deg, #2d3746 0%, #1e2835 100%);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    flex: 1;
    padding: 25px;
    height: auto;
    text-align: center;
    border: 1px solid #3a4a5f;
}

.galeria{
    background: linear-gradient(145deg, #2d3746 0%, #1e2835 100%);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    padding: 25px;
    width: 100%;
    text-align: center;
    border: 1px solid #3a4a5f;
}

/* === gora nowy styl === */
header{
    background: linear-gradient(135deg, #0f1419 0%, #1a2530 100%);
    padding: 15px 0;
    font-size: 24px;
    text-align: center;
    border-bottom: 3px solid #e9b949;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header img{
    height: 90px;
    width: 90px;
    border-radius: 8px;
    border: 2px solid #e9b949;
}

.header-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.header-contact a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 5px;
    transition: color 0.3s;
}

.header-contact a:hover {
    color: #e9b949;
    text-decoration: none;
}

/* nowe */
.mef-sekcja {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 20px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 20px;
}


.mef-wycena h2 {
    font-size: 36px;
    color: #e9b949;
    margin-bottom: 15px;
    border: none;
}

.mef-wycena p {
    font-size: 20px;
    color: #e0e0e0;
    margin-bottom: 25px;
    text-align: center;
}

.zyd-button {
    display: inline-block;
    background: linear-gradient(135deg, #e9b949 0%, #d4a742 100%);
    color: #1a1a2e;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(233, 185, 73, 0.3);
}

.zyd-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(233, 185, 73, 0.5);
    text-decoration: none;
    color: #1a1a2e;
}

/* === ZALETY === */
.zalety {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.zaleta {
    display: flex;
    align-items: center;
    background: rgba(52, 152, 219, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    flex: 1 1 calc(50% - 15px);
    min-width: 250px;
    border-left: 4px solid #3498db;
}

.zaleta-ikona {
    font-size: 24px;
    margin-right: 10px;
}

/* no rzeczy ktore robia */
.uslugi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.usluga {
    background: rgba(233, 185, 73, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 4px solid #e9b949;
    color: #e0e0e0;
}

/* kontakt */
.kontakt-dane {
    text-align: left;
}

.kontakt-dane h3 {
    margin-top: 20px;
    color: #e9b949;
}

.kontakt-dane p {
    margin-bottom: 5px;
}

/* galeria + zmiany */
.galeria-prac {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.galeria img{
    width: calc(25% - 15px);
    height: 250px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #3498db;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.galeria img:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.5);
    border-color: #e9b949;
}

/* lekkie zmiany rozstawień */
@media (max-width: 900px) {
    .gorna-czesc {
        flex-direction: column;
    }
    
    .galeria img {
        width: calc(50% - 15px);
        height: 220px;
    }
    
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-contact {
        align-items: center;
    }
}

@media (max-width: 600px) {
    main {
        padding: 15px;
        gap: 20px;
    }
    
    .opis-firmy, .kontakt, .galeria {
        padding: 20px;
    }
    
    header img {
        height: 70px;
        width: 70px;
    }
    
    .galeria img {
        width: 100%;
        height: 200px;
    }
    
    .mef-wycena h2 {
        font-size: 28px;
    }
    
    .mef-wycena p {
        font-size: 18px;
    }
    
    .zaleta {
        flex: 1 1 100%;
    }
    
    .uslugi-grid {
        grid-template-columns: 1fr;
    }
}

/* === COOKIE BANNER === */
.baner-cookies {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #1a2530 0%, #2d3746 100%);
    color: #e0e0e0;
    text-align: center;
    padding: 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    z-index: 9999;
    border-top: 2px solid #3498db;
}

.baner-cookies p {
    margin: 0;
    font-size: 14px;
    color: #e0e0e0;
}

.baner-cookies button {
    background: linear-gradient(135deg, #e9b949 0%, #d4a742 100%);
    color: #1a1a2e;
    border: none;
    padding: 8px 16px;
    margin-left: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.baner-cookies button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(233, 185, 73, 0.4);
}

/* === FOOTER === */
footer {
    position: relative;
    bottom: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, #0f1419 0%, #1a2530 100%);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e9b949;
    border-top: 2px solid #3498db;
    margin-top: 20px;
}

/* linki  */
a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #e9b949;
    text-decoration: underline;
}

/* nowy layout  */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    border-radius: 8px;
    border: 2px solid #e9b949;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #e9b949;
    padding: 10px 0;
    height: 150px;
    font-size: 18px;
}

.modal-content, #caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #e9b949;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #3498db;
    cursor: pointer;
}

@media only screen and (max-width: 700px){
    .modal-content {
        width: 100%;
    }
}
.ukryty{
    display: none;
}