/* --- RESET I PODSTAWY --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/*body {
    color: #333;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
} */
body {
    font-family:Verdana, Geneva, Tahoma, sans-serif; /* To jest teraz Twój "zamek" */
    line-height: 1.6;
    color: #333;
}

.container {
    margin: auto;
    max-width: 1100px;
    padding: 0 20px;
}

/* --- GÓRNA BELKA (TOP BAR) --- */
.top-bar {
    background: #ffcc00;
    color: #222;
    font-size: 14px;
    font-weight: bold;
    padding: 8px 0;
}

.top-bar-content {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.contact-info span {
    margin-right: 20px;
}

.top-bar .contact-info a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.top-bar .contact-info a:hover {
    color: #222;
    text-decoration: underline;
}

/* --- NAWIGACJA I LOGO --- */
header {
    background: #222;
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

nav {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.logo {
    align-items: center;
    display: flex;
    font-size: 24px;
    font-weight: bold;
    gap: 15px;
    letter-spacing: 1px;
}

.logo img, .main-logo {
    height: 100px;
    object-fit: contain;
    transition: height 0.3s ease;
    width: 140px;
}

.logo-wrapper {
    align-items: center;
    display: flex;
    gap: 15px;
    text-decoration: none;
}

.logo span, .logo-text {
    color: #ffcc00;
    font-weight: bold;
    line-height: 1;
}

.logo span span {
    color: #ffcc00;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    color: #fff;
    margin-left: 20px;
    text-decoration: none;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ffcc00;
}

/* Dropdown Menu */
nav ul li.dropdown {
    position: relative;
}

.dropdown-menu {
    background: #222;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    display: none;
    left: 0;
    list-style: none;
    min-width: 200px;
    padding: 10px 0;
    position: absolute;
    top: 100%;
    z-index: 2000;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    border-bottom: 1px solid #333;
    display: block;
    font-size: 14px;
    margin-left: 0 !important;
    padding: 10px 20px;
}

.dropdown-menu li a:hover {
    background: #333;
    color: #ffcc00;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* --- SEKCJA HERO --- */
.hero {
    align-items: center;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('zdjecia/1.jpg') center/cover;
    color: #fff;
    display: flex;
    height: 80vh;
    justify-content: center;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.btn {
    background: #ffcc00;
    border-radius: 5px;
    color: #222;
    display: inline-block;
    font-weight: bold;
    margin-top: 20px;
    padding: 10px 30px;
    text-decoration: none;
}

/* --- USŁUGI I KARTY --- */
.services {
    padding: 50px 0;
    text-align: center;
}

.services h2 {
    margin-bottom: 30px;
}

.grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    background: #f4f4f4;
    border-bottom: 5px solid #ffcc00;
    padding: 30px;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card-img-circle {
    border: 4px solid #ffcc00;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    height: 250px;
    margin: 0 auto 20px;
    overflow: hidden;
    width: 250px;
}

.card-img-circle img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    width: 100%;
}

.card:hover .card-img-circle img {
    transform: scale(1.1);
}

.btn-sm {
    background: #222;
    border-radius: 4px;
    color: #ffcc00;
    display: inline-block;
    font-size: 0.85rem;
    font-weight: bold;
    margin: 5px 0;
    padding: 8px 15px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-sm:hover {
    background: #ffcc00;
    color: #222;
}

.card-links {
    align-items: center;
    display: flex;
    flex-direction: column;
}

/* --- PODSTRONY (CONTENT) --- */
.page-header {
    background: #333;
    border-bottom: 5px solid #ffcc00;
    color: #fff;
    padding: 50px 0;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.subpage-content {
    padding: 60px 0;
}

.content-wrapper {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.text-side { flex: 1.5; min-width: 300px; }
.image-side { flex: 1; min-width: 300px; }

.check-list {
    list-style: none;
    margin: 20px 0;
}

.check-list li::before {
    color: #ffcc00;
    content: "●";
    display: inline-block;
    font-weight: bold;
    margin-left: 0;
    width: 1em;
}

.about-img, .subpage-img {
    border-radius: 10px;
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.subpage-img {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    max-width: 100%;
}

/* --- BLOG / AKTUALNOŚCI --- */
.blog-section {
    padding: 60px 20px;
}

.blog-container {
    margin: 0 auto;
    max-width: 900px;
}

.news-item {
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    padding-bottom: 30px;
}

.news-date {
    align-items: center;
    background: #222;
    border-radius: 5px;
    color: #ffcc00;
    display: flex;
    flex-direction: column;
    height: 80px;
    justify-content: center;
    min-width: 80px;
    text-align: center;
}

.news-date .day {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.news-date .month {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.news-content h2 {
    color: #222;
    margin-bottom: 10px;
}

.news-content p {
    color: #666;
    margin-bottom: 15px;
}

.read-more {
    color: #222;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}

.read-more:hover {
    color: #ffcc00;
}

/* --- KONTAKT --- */
.contact-layout {
    padding: 60px 20px;
}

.contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.contact-card, .map-card {
    background: #fdfdfd;
    border-radius: 8px;
    border-top: 4px solid #ffcc00;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    flex: 1;
    min-width: 300px;
    padding: 30px;
}

.contact-card h2, .map-card h3 {
    color: #222;
    font-size: 1.5rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.contact-card p {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.contact-card strong {
    color: #222;
}

.map-container-inner {
    border: 1px solid #ddd;
    border-radius: 5px;
    line-height: 0;
    overflow: hidden;
}

/* --- GALERIA --- */
.services-gallery {
    border-top: 2px solid #ffcc00;
    margin-top: 50px;
    padding-top: 30px;
}

.services-gallery h3 {
    color: #222;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
}

.gallery-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(4, 1fr);
}

.gallery-item {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    height: 200px;
    overflow: hidden;
}

.gallery-item img {
    cursor: pointer;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    width: 100%;
}

.gallery-item img:hover {
    transform: scale(1.1);
}

/* --- STOPKA --- */
footer {
    background: #222;
    color: #fff;
    margin-top: 50px;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    text-align: left;
}

.footer-column h3 {
    color: #ffcc00;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-column p {
    color: #bbb;
    margin-bottom: 10px;
}

.footer-column strong, .footer-bottom strong {
    color: #ffcc00;
}

.footer-bottom {
    border-top: 1px solid #444;
    color: #777;
    font-size: 0.9rem;
    margin-top: 40px;
    padding-top: 40px;
    text-align: center;
}

.footer-map {
    border: 2px solid #444;
    border-radius: 8px;
    line-height: 0;
    margin-top: 15px;
    overflow: hidden;
}

.footer-map iframe {
    filter: grayscale(100%) invert(90%) contrast(90%);
    transition: 0.3s;
}

.footer-map:hover iframe {
    filter: grayscale(0%) invert(0%);
}

/* --- HAMBURGER MENU --- */
.hamburger {
    cursor: pointer;
    display: none;
    flex-direction: column;
    gap: 5px;
}

.bar {
    background: #ffcc00;
    border-radius: 2px;
    height: 3px;
    width: 25px;
}

.calculator-card {
    background: #fdfdfd;
    border: 3px solid #ffcc00;
    border-radius: 15px;
    padding: 30px;
    margin: 40px auto;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 25px 0;
    text-align: left;
}

.input-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.result-box {
    margin-top: 30px;
    padding: 20px;
    background: #222;
    color: #fff;
    border-radius: 10px;
    animation: fadeIn 0.5s;
}

.result-value {
    font-size: 2.5rem;
    color: #ffcc00;
    font-weight: bold;
    margin: 10px 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 500px) {
    .calc-grid {
        grid-template-columns: 1fr;
    }
}

/* --- RESPONSYWNOŚĆ (MEDIA QUERIES) --- */

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .contact-info span {
        display: block;
        font-size: 16px;
        margin-bottom: 10px;
    }

    header { padding: 10px 0; }
    .main-logo { height: 40px; }
    .logo-text { font-size: 18px; }

    .nav-menu {
        background: #222;
        display: none;
        flex-direction: column;
        left: 0;
        position: absolute;
        text-align: center;
        top: 100%;
        width: 100%;
    }

    .nav-menu.active { display: flex; }
    .hamburger { display: flex; }

    .hero h1 { font-size: 2rem; }
    .footer-column { text-align: center; }
    
    .image-side {
        margin-bottom: 25px;
        order: -1;
    }

    .about-img, .subpage-img {
        height: 300px;
        object-fit: cover;
    }

    .contact-row {
        gap: 20px;
        margin-bottom: 20px;
    }
}

@media (max-width: 600px) {
    .top-bar-content {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .top-bar-socials { display: none; }
    .contact-info span { margin-right: 0; }

    .news-item {
        flex-direction: column;
        gap: 15px;
    }

    .news-date {
        flex-direction: row;
        gap: 10px;
        height: auto;
        padding: 10px;
        width: 100%;
    }
}

@media (max-width: 500px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item { height: 250px; }
}
/* Poprawka dla bardzo wąskich ekranów mobilnych */
@media (max-width: 400px) {
    .logo {
        gap: 8px; /* Zmniejszamy odstęp między obrazkiem a tekstem */
    }

    .main-logo {
        height: 30px; /* Jeszcze bardziej zmniejszamy logo */
        width: auto;
    }

    .logo-text, .logo span {
        font-size: 16px; /* Zmniejszamy napis, by zrobiło się miejsce na hamburgera */
    }

    .container {
        padding: 0 15px; /* Delikatnie zwężamy boczne marginesy strony */
    }
}
.logo {
    white-space: nowrap; /* To sprawi, że napis zawsze będzie w jednej linii */
}
/* --- OPTYMALIZACJA DLA TABLETÓW (IPAD AIR) I TELEFONÓW --- */
@media (max-width: 1024px) {
    header {
        padding: 10px 0;
    }

    /* Zmniejszamy logo na tabletach, by nie zajmowało za dużo miejsca */
    .main-logo {
        height: 50px; 
    }

    .logo-text {
        font-size: 20px;
    }

    /* Ukrywamy standardowe menu i pokazujemy hamburgera */
    .nav-menu {
        background: #222;
        display: none; /* Schowane domyślnie */
        flex-direction: column;
        left: 0;
        position: absolute;
        text-align: center;
        top: 100%;
        width: 100%;
        z-index: 1000;
    }

    /* Wyświetlamy linki jeden pod drugim w menu mobilnym */
    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        display: block;
        margin: 0;
        padding: 15px;
        border-bottom: 1px solid #333;
    }

    .nav-menu.active {
        display: flex; /* Pokazuje się po kliknięciu w JS */
    }

    .hamburger {
        display: flex; /* Hamburger staje się widoczny na tabletach */
    }
    
    /* Układ sekcji "O firmie" / podstron - zdjęcie nad tekstem */
    .image-side {
        order: -1;
        margin-bottom: 25px;
    }
}
