/* Zmienne globalne, reset, typography, navigation, footer, buttons */
/* Około 400-500 linii wspólnego kodu */

/* --- Zmienne Globalne i Reset --- */
:root {
    --primary-color: #2C82C9; /* Logo Blue - świeży niebieski */
    --secondary-color: #104E8B; /* Logo Dark Blue - ciemniejszy kontrastowy */
    --accent-color: #82C341;  /* Logo Green - limonkowa zieleń */
    --text-color: #333;
    --light-bg-color: #f8f9fa;
    --white-color: #FFFFFF;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* --- Style Pomocnicze --- */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4 {
    font-family: 'Nunito', sans-serif;
    color: var(--text-color);
    line-height: 1.2;
}

h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.2rem;
    font-weight: 700;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white-color);
    padding: 15px 35px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    border: 2px solid var(--accent-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    background-color: var(--white-color);
    color: var(--accent-color);
}

.cta-button-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    padding: 15px 35px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-button-secondary:hover {
    transform: translateY(-3px);
    background-color: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 4px 15px rgba(10, 38, 71, 0.2);
}

/* --- Nagłówek i Nawigacja --- */
.main-header {
    background-color: var(--white-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 24px;
    z-index: 1001; /* Ensure logo stays above mobile menu */
}

/* Header logo - smaller */
.main-header .logo img {
    height: auto;
    width: 150px;
    max-width: 150px;
}

/* --- Mobile Menu Button (Hamburger) --- */
.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002; /* Above menu overlay */
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
}

.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 30px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 3px;
    position: absolute;
    transition: transform 0.15s ease;
}

.hamburger-inner::before, .hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before {
    top: -10px;
}

.hamburger-inner::after {
    bottom: -10px;
}

/* Hamburger Active State (X shape) */
.mobile-menu-toggle.active .hamburger-inner {
    background-color: transparent;
}

.mobile-menu-toggle.active .hamburger-inner::before {
    transform: translateY(10px) rotate(45deg);
    background-color: var(--secondary-color); /* Or white if menu bg is dark */
}

.mobile-menu-toggle.active .hamburger-inner::after {
    transform: translateY(-10px) rotate(-45deg);
    background-color: var(--secondary-color);
}

/* Footer logo - bigger */
.footer-content .logo {
    justify-content: center;
    margin-bottom: 20px;
}

.footer-content .logo img {
    height: auto;
    width: 180px; /* Zmniejszone z 250px */
    max-width: 180px;
    filter: brightness(0) invert(1); /* Make logo white in footer */
    opacity: 0.9;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--accent-color);
}

/* Specjalny styl dla przycisku kontakt w menu */
.main-nav .cta-button {
    color: var(--white-color);
    transition: all 0.3s ease;
}

/* Active menu item styles */
.main-nav a.active {
    color: var(--accent-color);
    font-weight: 600;
}

.main-nav a.cta-button.active {
    background-color: var(--accent-color);
    color: var(--white-color);
    font-weight: 600;
}

/* --- Language Switcher Styles (PL | EN) --- */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px; /* Odstęp między elementami */
    font-size: 0.9rem;
    margin-left: 10px; /* Odsunięcie od reszty menu */
}

.lang-current {
    font-weight: 700;
    color: var(--secondary-color);
    cursor: default;
}

.lang-link {
    font-weight: 400;
    color: var(--text-color);
    opacity: 0.7;
    text-decoration: none;
    transition: all 0.3s ease;
}

.lang-link:hover {
    opacity: 1;
    color: var(--accent-color);
    text-decoration: none;
}

.lang-separator {
    color: #ccc;
    font-weight: 300;
    user-select: none;
}

/* Adjust for mobile */
@media (max-width: 768px) {
    .lang-switcher {
        margin-left: 0;
        margin-top: 10px;
        justify-content: flex-start; /* Left align in mobile menu */
        font-size: 1.1rem; /* Match other mobile links */
    }
    
    .lang-separator {
        margin: 0 5px;
    }
}

/* --- Dropdown Menu --- */
.main-nav li {
    position: relative;
}

.main-nav .dropdown-menu {
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    border-radius: var(--border-radius);
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 1100;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none; /* Prevent accidental clicks when hidden */
}

.has-dropdown:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 400;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: var(--light-bg-color);
    color: var(--primary-color);
    padding-left: 25px; /* Slight indentation effect on hover */
}

/* Mobile Dropdown Override */
@media (max-width: 768px) {
    .main-nav .dropdown-menu {
        position: static;
        display: flex; /* Always show on mobile for simplicity */
        box-shadow: none;
        padding: 5px 0 5px 20px;
        background: transparent;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        border-left: 2px solid #eee;
        margin-top: 5px;
        width: 100%;
    }

    .dropdown-menu a {
        padding: 8px 0;
        font-size: 1rem;
        color: var(--text-color);
        opacity: 0.8;
    }
    
    .dropdown-menu a:hover {
        background: transparent;
        padding-left: 0;
        color: var(--primary-color);
        opacity: 1;
    }
}

/* --- Stopka --- */
.main-footer {
    background-color: var(--secondary-color);
    background-image: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--white-color);
    padding: 40px 0 30px; /* Mniejszy padding */
    text-align: center;
    font-size: 0.9rem; /* Mniejsza czcionka */
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    align-items: center;
}

.footer-text p {
    margin-bottom: 5px;
    opacity: 0.8;
}

.footer-links {
    margin-top: 5px;
}

.footer-links a {
    color: var(--white-color);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s;
    font-size: 0.85rem;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-links .separator {
    margin: 0 8px;
    opacity: 0.5;
}

/* --- Style dla urządzeń mobilnych (podstawowe) --- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: block; /* Show hamburger */
    }

    .main-header .container {
        /* Keep logo and hamburger in a row */
        flex-direction: row; 
        justify-content: space-between;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden by default */
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white-color);
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        padding: 80px 20px 20px; /* Top padding for close button area */
        transition: right 0.3s ease-in-out;
        z-index: 1001;
    }

    .main-nav.active {
        right: 0; /* Slide in */
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 0;
    }

    .main-nav li {
        width: 100%;
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
    }

    .main-nav li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        font-size: 1.1rem;
        display: block;
    }

    .main-nav .cta-button {
        display: block;
        text-align: center;
        margin-top: 10px;
    }

    /* Optional backdrop when menu is open */
    .menu-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999; /* Mniej niż header (1000), aby header i menu były na wierzchu */
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .menu-backdrop.active {
        display: block;
        opacity: 1;
    }
    
    section { padding: 60px 0; }
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 20px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

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

.cookie-text {
    flex: 1;
}

.cookie-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.cookie-text a {
    color: white;
    text-decoration: underline;
    cursor: pointer;
}

.cookie-text a:hover {
    color: white;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--primary-color);
    color: white;
}

.cookie-btn-accept:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.cookie-btn-settings {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-settings:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive design for cookie banner */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookie-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }
}

/* Animation for cookie banner */
.cookie-banner.slide-up {
    animation: slideUp 0.4s ease-out;
}

.cookie-banner.slide-down {
    animation: slideDown 0.4s ease-out forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* --- Toast Notification --- */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--white-color);
    color: var(--text-color);
    padding: 15px 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    border-left: 5px solid var(--primary-color);
    max-width: 350px;
}

.toast-notification.visible {
    transform: translateY(0);
    opacity: 1;
}

.toast-notification.success {
    border-left-color: var(--accent-color);
}

.toast-notification.error {
    border-left-color: #e74c3c;
}

.toast-icon {
    font-size: 1.2rem;
}

.toast-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.5;
    padding: 0 5px;
}

.toast-close:hover {
    opacity: 1;
}
