/* 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 {
    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;
}

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

/* 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;
}

/* --- 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; }
    
    .main-header .container { flex-direction: column; gap: 10px; }
    .main-nav ul { padding: 10px 0; justify-content: center; flex-wrap: wrap; }
    
    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;
    }
}