/* Reset i podstawy */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: #f8f9fa;
    color: #2c3e50;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1rem;
    color: #1e40af;
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2.2rem; text-align: center; position: relative; margin-bottom: 2rem; }
h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #1e40af;
    margin: 1rem auto 0;
    border-radius: 2px;
}
h3 { font-size: 1.6rem; }

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

a {
    color: #1e40af;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1e3a8a;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 0.75rem;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* Kontener */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Kolory */
:root {
    --primary: #1e40af;
    --primary-light: #3b82f6;
    --secondary: #64748b;
    --dark: #1f2937;
    --light: #f1f5f9;
    --white: #ffffff;
    --gray: #e2e8f0;
    --success: #10b981;
    --danger: #ef4444;
}

/* Przyciski */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.btn-secondary {
    background: var(--gray);
    color: var(--dark);
}

.btn-secondary:hover {
    background: #cbd5e1;
    transform: translateY(-2px);
}

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

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

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

.logo a {
    color: inherit;
    text-decoration: none;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav a {
    font-weight: 500;
    color: var(--dark);
    position: relative;
    padding: 0.5rem 0;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.hero-image {
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 100%;
    object-fit: cover;
}

/* Sekcje */
section {
    margin-bottom: 4rem;
}

/* Kolumny */
.columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.column {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

/* Karty */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.card img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.card h3 {
    padding: 1rem 1.5rem 0.5rem;
    font-size: 1.4rem;
}

.card p {
    padding: 0 1.5rem 1rem;
    color: var(--secondary);
    font-size: 1rem;
}

.card a {
    display: block;
    margin: 0 1.5rem 1.5rem;
}

/* Galeria */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-grid img {
    border-radius: 0.75rem;
    transition: transform 0.3s ease;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Filtry galerii */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.gallery-filters button {
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s;
}

.gallery-filters button.active,
.gallery-filters button:hover {
    background: var(--primary);
    color: white;
}

/* Mapy */
.map-section iframe {
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    width: 100%;
    height: 400px;
}

/* CTA */
.cta {
    text-align: center;
    background: var(--primary);
    color: white;
    padding: 3rem 2rem;
    border-radius: 1rem;
    margin: 3rem 0;
}

.cta h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta h2::after {
    background: white;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

/* Formularz */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.error {
    color: var(--danger);
    font-size: 0.9rem;
    margin-top: 0.25rem;
    display: block;
}

/* Stopka */
.footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer a {
    color: #94a3b8;
    transition: color 0.3s;
}

.footer a:hover {
    color: white;
}

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

.footer-column h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    color: white;
    padding: 1rem;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    backdrop-filter: blur(10px);
}

.cookie-consent.show {
    transform: translateY(0);
}

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

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    flex: 1;
}

.cookie-content a {
    color: #93c5fd;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-buttons button {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    min-width: 80px;
}

/* Responsywność */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-image {
        order: -1;
        margin-bottom: 1.5rem;
    }
    
    h1 { font-size: 2.2rem; }
    h2 { font-size: 2rem; }
}

@media (max-width: 768px) {
    .nav ul {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 999;
    }
    
    .nav ul.show {
        left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .cta {
        padding: 2rem 1.5rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.8rem; }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 1rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* Dodatkowe klasy pomocnicze */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.p-2 { padding: 2rem; }
