/* Zmienne kolorystyczne */
:root {
    --primary: #FFD700;     /* żółty */
    --secondary: #333333;   /* ciemny szary */
    --light: #F5F5F5;       /* jasny szary */
    --accent: #FFED4E;      /* jasny żółty */
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--secondary);
    background-color: var(--white);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Nagłówek */
.site-header {
    background-color: var(--secondary);
    color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px var(--shadow);
}

/* Flexbox dla całego header-content */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary);
}

.logo i {
    margin-right: 10px;
}

/* Nawigacja - desktop */
.site-nav {
    position: relative;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: var(--primary);
    height: 3px;
    width: 100%;
    border-radius: 2px;
    position: absolute;
    transition: all 0.3s;
}

.nav-toggle-label span::before {
    content: '';
    top: -8px;
}

.nav-toggle-label span::after {
    content: '';
    top: 8px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 20px;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: var(--primary);
    color: var(--secondary);
}

/* Główna zawartość */
main {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

main h1, main h2, main h3 {
    color: var(--secondary);
    margin-bottom: 20px;
}

main h1 {
    font-size: 2.5rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 10px;
    margin-bottom: 30px;
}

main h2 {
    font-size: 2rem;
    color: var(--secondary);
    margin-top: 30px;
}

main h3 {
    font-size: 1.5rem;
}

main p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

main ul, main ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

main li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

main strong {
    color: var(--secondary);
}

/* Sekcje z tłem */
.highlight {
    background-color: var(--light);
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    border-left: 5px solid var(--primary);
}

/* Stopka */
.site-footer {
    background-color: var(--secondary);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section p {
    margin-bottom: 10px;
    font-size: 1rem;
}

.footer-section i {
    margin-right: 10px;
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
}

/* Formularz kontaktowy */
.contact-form {
    background-color: var(--light);
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.btn {
    background-color: var(--primary);
    color: var(--secondary);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
}

.btn:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow);
}

/* Strona kontaktowa */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.contact-card {
    background-color: var(--light);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* ========== RESPONSYWNOŚĆ ========== */

/* Tablet (992px i mniej) */
@media (max-width: 992px) {
    .nav-menu li {
        margin-left: 15px;
    }
    
    .nav-menu a {
        font-size: 0.95rem;
        padding: 6px 10px;
    }
    
    main h1 {
        font-size: 2.2rem;
    }
    
    main h2 {
        font-size: 1.8rem;
    }
}

/* Telefon (768px i mniej) - DZIAŁAJĄCE, WYŚRODKOWANE MENU */
@media (max-width: 768px) {
    /* Header - hamburger po prawej */
    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        min-height: 40px;
    }
    
    .logo {
        flex: 1;
        min-width: 0;
    }
    
    .logo h1 {
        font-size: 1.5rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100vw - 100px);
        line-height: 1.3;
        margin: 0;
    }
    
    .site-nav {
        flex-shrink: 0;
        margin-left: 15px;
    }
    
    /* Przycisk hamburgera */
    .nav-toggle-label {
        display: block;
        position: relative;
        width: 30px;
        height: 24px;
        margin: 0;
        cursor: pointer;
    }
    
    .nav-toggle-label span {
        background: var(--primary);
        height: 3px;
        width: 100%;
        border-radius: 2px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        transition: all 0.3s;
    }
    
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        content: '';
        background: var(--primary);
        height: 3px;
        width: 100%;
        border-radius: 2px;
        position: absolute;
        transition: all 0.3s;
    }
    
    .nav-toggle-label span::before {
        top: -8px;
    }
    
    .nav-toggle-label span::after {
        top: 8px;
    }
    
    /* DZIAŁAJĄCE, WYŚRODKOWANE MENU DROPDOWN */
    .nav-menu {
        display: none;
        flex-direction: column;
        position: fixed; /* Zamiast absolute - lepsza kontrola */
        top: 70px; /* Odstęp od góry */
        left: 50%;
        transform: translateX(-50%); /* Wyśrodkowanie */
        background-color: var(--secondary);
        padding: 25px;
        border-radius: 10px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.25);
        z-index: 100;
        width: calc(100% - 40px); /* 100% minus marginesy */
        max-width: 350px; /* Ograniczona maksymalna szerokość */
        text-align: center;
        margin: 0 auto;
    }
    
    .nav-menu li {
        margin: 10px 0;
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        width: 100%;
        padding: 14px 20px;
        font-size: 1.1rem;
        background-color: rgba(255, 215, 0, 0.1);
        border-radius: 8px;
        border: 1px solid rgba(255, 215, 0, 0.2);
        transition: all 0.3s ease;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        background-color: var(--primary);
        color: var(--secondary);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    
    /* Pokazanie menu po kliknięciu */
    .nav-toggle:checked ~ .nav-menu {
        display: flex;
    }
    
    /* Animacja hamburgera w X */
    .nav-toggle:checked ~ .nav-toggle-label span {
        background: transparent;
    }
    
    .nav-toggle:checked ~ .nav-toggle-label span::before {
        top: 0;
        transform: rotate(45deg);
    }
    
    .nav-toggle:checked ~ .nav-toggle-label span::after {
        top: 0;
        transform: rotate(-45deg);
    }
    
    /* Główna zawartość */
    main {
        padding: 25px 0;
    }
    
    main h1 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    main h2 {
        font-size: 1.6rem;
        margin-top: 25px;
    }
    
    main p {
        font-size: 1rem;
    }
    
    /* Stopka */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-card {
        padding: 20px;
    }
}

/* Bardzo małe telefony (480px i mniej) */
@media (max-width: 480px) {
    .site-header {
        padding: 12px 0;
    }
    
    .logo h1 {
        font-size: 1.3rem;
        max-width: calc(100vw - 80px);
    }
    
    .nav-toggle-label {
        width: 25px;
        height: 20px;
    }
    
    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        height: 2.5px;
    }
    
    .nav-toggle-label span::before {
        top: -6px;
    }
    
    .nav-toggle-label span::after {
        top: 6px;
    }
    
    /* Menu na bardzo małych ekranach */
    .nav-menu {
        top: 65px; /* Mniejszy odstęp */
        width: calc(100% - 30px); /* Mniejsze marginesy */
        max-width: 320px;
        padding: 20px;
    }
    
    .nav-menu a {
        font-size: 1rem;
        padding: 12px 18px;
    }
    
    main h1 {
        font-size: 1.6rem;
    }
    
    main h2 {
        font-size: 1.4rem;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 1rem;
        width: 100%;
    }
}

/* Dodatkowe poprawki dla bardzo wąskich ekranów */
@media (max-width: 360px) {
    .logo h1 {
        font-size: 1.2rem;
        max-width: calc(100vw - 70px);
    }
    
    .container {
        padding: 0 15px;
    }
    
    .nav-menu {
        top: 60px;
        width: calc(100% - 20px);
        max-width: 300px;
        padding: 15px;
    }
    
    .nav-menu a {
        padding: 10px 15px;
        font-size: 0.95rem;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
}
