

:root {
    /* Color Palette */
    --clr-bg: #ffffff;
    --clr-bg-alt: #f4f5f7;
    --clr-text-main: #1a1a24;
    --clr-text-muted: #5e5e6e;
    --clr-accent-blue: #0056b3;
    --clr-accent-blue-hover: #004494;
    --clr-accent-red: #d32f2f;
    --clr-accent-red-hover: #b71c1c;
    --clr-border: #e0e0e0;
    
    /* Layout */
    --nav-height: 120px;
    --container-w: 1280px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 35px rgba(0, 86, 179, 0.15);
}

/* === BASE & RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    color: var(--clr-text-main);
    background-color: var(--clr-bg);
}

body {
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 6rem 0;
}

.bg-alt {
    background-color: var(--clr-bg-alt);
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--clr-accent-red);
    border-radius: 2px;
}

.section-title.left-align {
    text-align: left;
}

.section-title.left-align::after {
    left: 0;
    transform: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--clr-accent-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.btn-primary:hover {
    background-color: var(--clr-accent-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.4);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--clr-accent-blue);
    color: var(--clr-accent-blue);
}

.btn-outline:hover {
    background-color: var(--clr-accent-blue);
    color: white;
}

.btn-outline-white {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline-white:hover {
    background-color: white;
    color: var(--clr-accent-blue);
}

/* === NAVIGATION === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    background: transparent;
}

.navbar.ready {
    transition: background var(--transition-smooth), height var(--transition-smooth), box-shadow var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    height: 100px;
}

.nav-container {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    align-items: center;
    height: 100%;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 100px;
    width: auto;
    aspect-ratio: 3168 / 1344;
}

.navbar.ready .logo-img {
    transition: filter var(--transition-smooth), height var(--transition-smooth), transform var(--transition-fast);
}

.navbar.scrolled .logo-img {
    height: 80px;
}

.navbar.scrolled .logo a, .navbar.scrolled .nav-menu a {
    color: var(--clr-text-main);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-menu a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--clr-text-main);
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 0;
}

/* Initially white text on hero before scroll */
.navbar:not(.scrolled) .nav-menu a {
    color: white;
}

/* Invert the black logo to white on transparent navbar */
.navbar:not(.scrolled) .logo-img {
    filter: brightness(0) invert(1);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--clr-accent-red);
    transition: width var(--transition-fast);
}

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

.nav-menu a:hover, .nav-menu a.active {
    color: var(--clr-accent-blue) !important;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--clr-text-main);
    background-color: transparent;
    border: none;
    padding: 0.5rem;
}
.navbar:not(.scrolled) .mobile-toggle {
    color: white;
}

/* === HERO SECTION === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 700px;
    color: white;
    padding-top: var(--nav-height);
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeUp 1s ease forwards;
}

.hero-content .subtitle {
    font-size: 1.5rem;
    color: var(--clr-border);
    margin-bottom: 1.5rem;
    font-weight: 400;
    animation: fadeUp 1s 0.2s ease forwards;
    opacity: 0;
}

.hero-content p.desc {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: rgba(255,255,255,0.8);
    animation: fadeUp 1s 0.4s ease forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeUp 1s 0.6s ease forwards;
    opacity: 0;
}

/* Subpage Hero */
.subpage-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--clr-text-main);
    color: white;
    text-align: center;
}
.subpage-hero .hero-bg {
    opacity: 0.4;
}
.subpage-hero-content {
    width: 100%;
    z-index: 1;
    margin-top: var(--nav-height);
}
.subpage-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

/* === STATS COUNTER === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border-bottom: 4px solid var(--clr-accent-blue);
    transition: transform var(--transition-fast);
}

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

.stat-icon {
    font-size: 2.5rem;
    color: var(--clr-accent-red);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--clr-text-main);
    line-height: 1;
}

.stat-text {
    color: var(--clr-text-muted);
    font-weight: 500;
    margin-top: 0.5rem;
}

/* === SERVICES GRID === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--clr-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
    position: relative;
    border: 1px solid var(--clr-border);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.service-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

.service-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--clr-bg-alt);
    color: var(--clr-accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-top: -50px;
    position: relative;
    z-index: 2;
    border: 4px solid var(--clr-bg);
    margin-bottom: 1rem;
    transition: all var(--transition-fast);
}

.service-card:hover .service-icon {
    background-color: var(--clr-accent-blue);
    color: white;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1.5rem;
    font-weight: 600;
    color: var(--clr-accent-blue);
}

.service-link:hover {
    color: var(--clr-accent-red);
}

/* === ABOUT SECTION === */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    color: var(--clr-text-muted);
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-features {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--clr-text-main);
}

.feature-item i {
    color: var(--clr-accent-blue);
    font-size: 1.2rem;
}

.about-images {
    position: relative;
}

.img-main {
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.img-float {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 60%;
    border-radius: 12px;
    border: 10px solid var(--clr-bg);
    box-shadow: var(--shadow-md);
}

/* === LOGOS GRID (Części) === */
.logos-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    align-items: center;
}

@media (max-width: 992px) {
    .logos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .logos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.logo-item {
    background: var(--clr-bg-alt);
    padding: 2rem;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    transition: transform var(--transition-fast);
}
.logo-item:hover {
    transform: scale(1.05);
    background: white;
    box-shadow: var(--shadow-sm);
}
.logo-item img {
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--transition-fast);
}
.logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* === CONTACT === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}
.contact-info-card {
    background: var(--clr-accent-blue);
    color: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}
.contact-info-card h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}
.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.info-item i {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.7);
}
.info-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}
.info-item p, .info-item a {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
}
.info-item a:hover {
    color: white;
    text-decoration: underline;
}
.footer-logo {
    height: 160px;
    width: auto;
    aspect-ratio: 3168 / 1344;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}
.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

/* === FOOTER === */
footer {
    background-color: #111;
    color: #aaa;
    padding: 4rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-col h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}
.footer-links li {
    margin-bottom: 0.8rem;
}
.footer-links a:hover {
    color: var(--clr-accent-red);
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

/* === ANIMATIONS & UTILS === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 2rem;
    }
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    .img-float {
        display: none;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.3s;
    }
    .nav-menu.active {
        left: 0;
    }
    .navbar.scrolled .nav-menu {
        top: 70px;
        height: calc(100vh - 70px);
    }
    .nav-menu a {
        color: var(--clr-text-main) !important;
        font-size: 1.2rem;
    }
    .mobile-toggle {
        display: block;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* === UTILITY CLASSES === */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.stat-number-sm { font-size: 1.5rem; margin-top: 1rem; }
.btn-outline-white { border-color: white !important; color: white !important; }
.btn-outline-white:hover { background-color: white !important; color: var(--clr-accent-blue) !important; }
.mb-1 { margin-bottom: 1rem !important; }
.mb-2 { margin-bottom: 2rem !important; }
.mb-3 { margin-bottom: 3rem !important; }
.mb-5 { margin-bottom: 5rem !important; }
.mt-3 { margin-top: 3rem !important; }
.pt-5 { padding-top: 5rem !important; }
.pb-5 { padding-bottom: 5rem !important; }
.mt-1-5 { margin-top: 1.5rem !important; }
.my-2-1 { margin: 2rem 0 1rem !important; }
.text-white { color: white !important; }
.max-w-600 { max-width: 600px; margin: 0 auto; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.img-rounded-shadow { width: 100%; border-radius: 12px; box-shadow: var(--shadow-md); }
.section-subtitle { text-align: center; color: var(--clr-text-muted); margin-bottom: 3rem; font-size: 1.1rem; }
.h-100 { height: 100%; }
.min-h-500 { min-height: 500px; }
.fs-1-2 { font-size: 1.2rem; }
.bg-darkest { background-color: #0a0a0a; }
.opacity-30 { opacity: 0.3; }
.icon-huge-red { font-size: 4rem; color: var(--clr-accent-red); margin-bottom: 1rem; display: inline-block; }
.btn-red-large { background-color: var(--clr-accent-red) !important; font-size: 1.5rem !important; padding: 1rem 3rem !important; border: none !important; }
.btn-red-large:hover { background-color: var(--clr-accent-red-hover) !important; }
.emergency-box { background-color: var(--clr-bg-alt); padding: 3rem; border-radius: 12px; border-top: 5px solid var(--clr-accent-red); text-align: center; box-shadow: var(--shadow-md); }
.icon-large-red { font-size: 3rem; color: var(--clr-accent-red); margin-bottom: 1rem; display: inline-block; }
.title-1-8 { font-size: 1.8rem; margin-bottom: 1rem; }
.text-muted-mb-2 { color: var(--clr-text-muted); margin-bottom: 2rem; }
.phone-large { display: block; font-size: 2rem; font-weight: 800; color: var(--clr-text-main); }
.phone-large.mb-1 { margin-bottom: 1rem; }
.text-red { color: var(--clr-accent-red) !important; }

/* === COOKIE BANNER === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(26, 26, 36, 0.95);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    transform: translateY(100%);
    transition: transform 0.5s ease;
}
.cookie-banner.show {
    transform: translateY(0);
}
.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
    flex: 1;
    margin-right: 1rem;
}
.cookie-btn {
    background-color: var(--clr-accent-blue);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}
.cookie-btn:hover {
    background-color: var(--clr-accent-blue-hover);
}
@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .cookie-banner p {
        margin-right: 0;
    }
}

/* === IMAGE SLIDER === */
.image-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4/3;
    background-color: #000;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slider-slide {
    min-width: 100%;
    height: 100%;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    color: var(--clr-text-main);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background var(--transition-fast), color var(--transition-fast);
    z-index: 10;
}

.slider-btn:hover {
    background: var(--clr-accent-blue);
    color: white;
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

.slider-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.slider-indicator.active {
    background: white;
}
