/* --- Podstawowe Style i Zmienne --- */
:root {
    --primary-color: #0d47a1;   /* Głęboki, korporacyjny niebieski */
    --secondary-color: #1976d2; /* Jaśniejszy, aktywny niebieski */
    --accent-color: #ffab00;    /* Ciepły, złoty akcent */
    --light-bg: #f8f9fa;
    --dark-text: #212529;
    --light-text: #f1f1f1;
}

/* --- Globalne Ustawienia --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth; /* Płynne przewijanie */
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--dark-text);
    background-color: #fff;
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: visible; /* Zmienione z hidden dla cieni */
    padding: 0 2rem;
}

/* --- Nagłówek i Nawigacja --- */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem 0; /* Zwiększony padding dla lepszego wyglądu */
    text-align: center;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px); /* Efekt rozmycia tła za nagłówkiem */
}

/* ZMIANA: Zmieniony układ na kolumnowy i wyśrodkowany */
.header-container {
    display: flex;
    flex-direction: column; /* Układa elementy jeden pod drugim */
    align-items: center;    /* Centruje je w poziomie */
    gap: 1.5rem;            /* Dodaje odstęp między logo a menu */
}

/* ZMIANA: Zwiększona maksymalna szerokość logo */
.site-logo {
    max-width: 400px; /* Możesz dostosować tę wartość */
    height: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 600;
    font-size: 1.4rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}


/* --- Sekcja Hero --- */
.hero {
    min-height: 85vh; /* Zwiększona wysokość */
    background: linear-gradient(rgba(0, 30, 80, 0.7), rgba(0, 30, 80, 0.7)), url('https://images.pexels.com/photos/3184418/pexels-photo-3184418.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center/cover;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1.5rem;
}

.hero-content {
    max-width: 800px;
}

.hero h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

/* --- Przyciski --- */
.btn-primary {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-primary:hover {
    background: #ffc107;
    transform: translateY(-3px);
}

/* --- Ogólne style sekcji --- */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-weight: 600;
}

#about {
    background: var(--light-bg);
}

#about p {
    text-align: center;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* --- Usługi --- */
.services-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
}

.service-branch {
    flex: 1;
    min-width: 320px;
    max-width: 480px;
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-top: 5px solid var(--secondary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-branch:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.service-branch.accounting {
    border-top-color: var(--accent-color);
}

.branch-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.branch-title .icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
}
.service-branch.accounting .icon {
    color: var(--accent-color);
}

.branch-title h3 {
    font-size: 1.8rem;
    color: var(--dark-text);
}

.service-branch ul {
    list-style: none;
}

.service-branch li {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    padding-left: 1.7rem;
    position: relative;
}

.service-branch li::before {
    content: '\f00c'; /* ikona 'check' z Font Awesome */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.service-branch.accounting li::before {
    color: var(--accent-color);
}

/* --- Animacje --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Mapa --- */
#location { background: var(--light-bg); }

.map-container {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Stopka --- */
.main-footer {
    background: var(--dark-text);
    color: var(--light-text);
    text-align: center;
    padding: 4rem 2rem;
}

.main-footer h3 {
    margin-bottom: 2rem;
    font-size: 2rem;
}

.contact-info a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--accent-color);
}

.contact-info p {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    line-height: 1.8;
}

.copyright {
    margin-top: 3rem;
    font-size: 0.9rem;
    color: #aaa;
}

/* --- Responsywność --- */
@media (max-width: 768px) {
    /* ZMIANA: Usunięto niepotrzebne już reguły z .header-container */
    .main-nav ul { 
        gap: 0,9rem; 
        flex-wrap: wrap; /* Zapewnia, że menu zmieści się na małych ekranach */
        justify-content: center;
    }
    .main-nav a { font-size: 0.9rem; }
    .hero h2 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem; }
    .section { padding: 3rem 0; }
    .section-title { font-size: 2rem; }
}