﻿/* ========================================
   FONT IMPORT - Jost + Magra (liderstal.pl)
======================================== */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&family=Magra:wght@400;700&display=swap');

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

/* FIX: Overflow na mobile - białe okno po prawej */
html, body {
    overflow-x: hidden;
}

body {
    position: relative;
}

:root {
    /* Colors - LiderStal */
    --primary: #C00000;
    --primary-dark: #900000;
    --primary-light: #E53935;
    --secondary: #23293A;
    --accent: #C00000;
    --dark: #23293A;
    --dark-light: #2d3548;
    --light: #f8f9fa;
    --white: #ffffff;
    --gray: #515A73;
    --gray-light: #e9ecef;
    --bg-light: #F5F5F5;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 30px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(192, 0, 0, 0.3);
    
    /* Typography - zgodne z liderstal.pl */
    --font-primary: 'Jost', 'Roboto', sans-serif;
    --font-heading: 'Magra', 'Montserrat', sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 30px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--secondary);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

/* Remove underline from all links */
a, a:hover, a:focus, a:active, a:visited {
    text-decoration: none !important;
}

/* ========================================
   PRELOADER
======================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    position: relative;
}

.loader-inner {
    position: absolute;
    top: -3px;
    left: -3px;
    width: 60px;
    height: 60px;
    border: 3px solid transparent;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   PAGE WRAPPER - max 1500px dla contentu
======================================== */
.page-wrapper {
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
}

/* ========================================
   CONTAINER & UTILITIES
======================================== */
.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.accent-text {
    color: var(--primary);
}

.accent-text-light {
    color: #6CAEFF;
}

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

.bg-gray {
    background-color: #F0F4F8;
}

.bg-dark-blue {
    background-color: #23293A;
}

.bg-dark-blue .tiles-title,
.bg-dark-blue .tiles-subtitle,
.bg-dark-blue .tile-name {
    color: #ffffff;
}

.bg-dark-blue .tile {
    background-color: rgba(255, 255, 255, 0.1);
}

.bg-dark-blue .tile-icon i {
    color: #ffffff;
}

/* ========================================
   NAVIGATION
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 45px;
    width: auto;
    transition: filter var(--transition-normal), opacity var(--transition-normal);
}

.navbar:not(.scrolled) .logo-img {
    filter: brightness(0) invert(1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color var(--transition-normal);
}

.navbar.scrolled .nav-link {
    color: var(--secondary);
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--gradient-primary);
    padding: 12px 25px;
    border-radius: 5px;
    color: var(--white) !important;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--white);
    position: relative;
    transition: background var(--transition-normal);
}

.navbar.scrolled .hamburger {
    background: var(--secondary);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background: inherit;
    left: 0;
    transition: transform var(--transition-normal);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: translateY(8px) rotate(45deg);
    background: var(--secondary);
}

.nav-toggle.active .hamburger::after {
    transform: translateY(-8px) rotate(-45deg);
    background: var(--secondary);
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    padding: 0;
    margin-bottom: 100px;
    box-shadow: 0 2px 7.5px 7px rgba(0, 0, 0, 0.13);
}

.hero-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Hero centered container */
.hero:has(.hero-centered) .hero-container {
    justify-content: center;
}

.hero:has(.hero-centered) {
    align-items: center;
    justify-content: center;
    min-height: 450px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg-img,
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
}

.hero-content {
    text-align: center;
    max-width: 1600px;
    z-index: 1;
    padding: 80px 0 30px;
}

/* Hero wyśrodkowany - dla stron miast */
.hero-content.hero-centered {
    text-align: center;
    width: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-centered .hero-title {
    color: var(--white);
    text-transform: uppercase;
    font-size: 52px;
    letter-spacing: 2px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 62px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 17px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Buttons - zgodne ze stylem liderstal.pl */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    font-family: var(--font-heading) !important;
    font-size: 15px;
    font-weight: 700 !important;
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 1px solid var(--primary);
    border-radius: 6px;
}

.btn-primary {
    background: var(--primary);
    background-color: var(--primary);
    color: var(--white) !important;
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background: transparent;
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary i {
    transition: transform var(--transition-normal);
}

.btn-primary:hover i {
    transform: translateX(5px);
}

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

.btn-light:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

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

/* ========================================
   CONTENT SECTIONS
======================================== */
.content-section {
    padding: 25px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: var(--font-weight-bold);
    color: var(--secondary);
    margin-bottom: 25px;
    line-height: 1.3;
}

.section-title-left {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: var(--font-weight-bold);
    color: var(--secondary);
    margin-bottom: 15px;
    line-height: 1.3;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
}

/* Obrazek wyśrodkowany pionowo */
.content-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Kontener zdjęcia tylko w 4 głównych sekcjach (index.php) */
#o-garazach .content-image,
#wybor .content-image,
#producent .content-image,
#konfigurator .content-image {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 1px 1px 3px 0px rgba(0, 0, 0, 0.2);
    padding: 10px;
}

/* Sekcje BEZ reverse: tekst po lewej, zdjęcie po prawej */
.content-grid .content-text {
    order: 1;
}

.content-grid .content-image {
    order: 2;
}

/* Sekcje Z reverse: zdjęcie po lewej, tekst po prawej */
.content-grid.reverse .content-image {
    order: 1;
}

.content-grid.reverse .content-text {
    order: 2;
}

.content-text {
    font-size: 16px;
    line-height: 1.7;
}

.content-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.content-text a:hover {
    text-decoration: none;
}

.content-text p {
    margin-bottom: 20px;
}

.content-full {
    margin-bottom: 40px;
}

.content-full p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.7;
}

.content-intro {
    margin-bottom: 40px;
}

.content-intro p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.feature-list {
    list-style: none;
    margin: 25px 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 16px;
}

.feature-list li i {
    color: var(--primary);
    margin-top: 4px;
}

.feature-list.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 30px;
}

.content-image img {
    width: 100%;
    height: auto;
    background: transparent;
}

#o-garazach .content-image img,
#wybor .content-image img,
#producent .content-image img,
#konfigurator .content-image img {
    border-radius: 6px;
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    margin-top: 40px;
}

.image-item img {
    width: 100%;
    height: auto;
}

/* Examples Gallery - mini grid for realizacje examples */
.examples-gallery {
    width: 100%;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.example-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.example-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

.example-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3;
}

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

@media (max-width: 576px) {
    .examples-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   PRODUCTS SECTION
======================================== */
.products-section {
    padding: 70px 0;
    background-color: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--white);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    text-decoration: none;
    display: block;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.product-info h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    margin-bottom: 15px;
    width: 100%;
}

.product-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary);
    background-color: var(--primary);
    color: var(--white) !important;
    font-family: var(--font-heading) !important;
    font-size: 14px;
    font-weight: 700 !important;
    transition: all var(--transition-normal);
    border: 2px solid var(--primary);
    border-radius: 6px;
}

.product-card:hover .product-btn {
    background: var(--secondary);
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--white) !important;
}

.products-cta {
    text-align: center;
    margin-top: 30px;
}

/* ========================================
   PRODUCT CAROUSEL
======================================== */
.carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 0 70px;
    margin: 40px 0;
}

.carousel-container {
    overflow: visible;
    width: 100%;
    clip-path: inset(-20px -15px -20px -15px);
}

.carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.5s ease;
    padding: 20px 0;
}

.carousel-card {
    flex: 0 0 calc(25% - 12px);
    min-width: calc(25% - 12px);
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-normal);
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.carousel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    text-decoration: none;
}

.carousel-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 12px 12px 0 0;
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.carousel-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-grow: 1;
}

.carousel-info h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    color: #000000;
    margin-bottom: 15px;
    width: 100%;
    line-height: 1.4;
    flex-grow: 1;
}

.btn.btn-carousel {
    display: inline-block;
    padding: 10px 20px;
    background: transparent;
    color: var(--secondary);
    font-family: var(--font-heading) !important;
    font-size: 14px;
    font-weight: 600 !important;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid var(--secondary);
    transition: all 0.3s ease;
    text-align: center;
}

.btn.btn-carousel:hover {
    background: transparent;
    color: var(--primary) !important;
    text-decoration: none;
    border-color: var(--primary);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.btn.btn-carousel:active,
.btn.btn-carousel:focus {
    background: transparent;
    color: var(--primary) !important;
    text-decoration: none;
    outline: none !important;
    border-color: var(--primary);
}

/* Opis pod przyciskiem karuzeli */
.products-description {
    max-width: 1500px;
    margin: 30px auto 0;
    text-align: left;
    padding: 0 20px;
}

.products-description p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 20px;
}

.products-description p:last-child {
    margin-bottom: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    z-index: 10;
}

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

.carousel-btn:focus {
    outline: none !important;
}

.carousel-btn:focus-visible {
    background: var(--white) !important;
    outline: 2px solid var(--primary) !important;
    box-shadow: var(--shadow-md) !important;
}

.carousel-btn i {
    font-size: 18px;
    color: var(--secondary);
    transition: color var(--transition-normal);
}

.carousel-btn:hover i {
    color: var(--white);
}

.carousel-btn:focus-visible i {
    color: var(--secondary) !important;
}

.carousel-btn-prev {
    left: 5px;
}

.carousel-btn-next {
    right: 5px;
}

/* Carousel responsive */
@media (max-width: 1200px) {
    .carousel-card {
        flex: 0 0 calc(33.333% - 11px);
        min-width: calc(33.333% - 11px);
    }
}

@media (max-width: 992px) {
    .carousel-card {
        flex: 0 0 calc(50% - 8px);
        min-width: calc(50% - 8px);
    }
    .carousel-wrapper {
        padding: 0 50px;
    }
}

@media (max-width: 768px) {
    .carousel-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
    .carousel-wrapper {
        padding: 0 40px;
    }
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    .carousel-btn i {
        font-size: 14px;
    }
    .carousel-track {
        gap: 16px;
    }
}

/* ========================================
   KAFELKI SECTIONS
======================================== */
.tiles-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

.tiles-section.bg-light {
    background-color: var(--bg-light) !important;
}

.tiles-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Wrapper dla kafelków - 1400px */
.tiles-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

.tiles-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: var(--font-weight-bold);
    color: var(--secondary);
    margin-bottom: 40px;
    text-align: left;
}

.tiles-subtitle {
    font-family: 'Magra', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 40px;
    text-align: left;
    line-height: 1.3;
}

.tiles-subtitle strong {
    font-weight: 800;
}

/* ========================================
   TILES GRID - Responsywny układ kafelków
   Gap: 20px (stały, nie zmienia się)
   Kafelki zawsze wycentrowane na stronie
======================================== */

/* BASE: domyślny styl dla .tiles-grid */
.tiles-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0 auto;
    justify-content: center;
}

/* OFERTA (tiles-grid-oferta): 5+5 → 2 → 1
   10 kafelków: 5×240 + 4×20 = 1280px na desktop, 2 kolumny na tablet, 1 na mobile */
.tiles-grid-oferta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
    justify-content: center;
}

.tiles-grid-oferta .tile {
    width: 240px;
    flex: 0 0 240px;
}

/* MIASTA / WOJEWÓDZTWO (tiles-grid-5): 5 → 2 → 1 
   5 tiles: 5×240 + 4×20 = 1280px */
.tiles-grid-5 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
    justify-content: center;
}

.tiles-grid-5 .tile {
    width: 240px;
    flex: 0 0 240px;
}

/* OFERTA + INNE WOJEWÓDZTWA (tiles-grid-4): 4 → 2 → 1 
   4 tiles: 4×280 + 3×20 = 1180px */
.tiles-grid-4,
.tiles-grid.tiles-grid-4 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1180px;
    margin: 0 auto;
    justify-content: center;
}

.tiles-grid-4 .tile,
.tiles-grid.tiles-grid-4 .tile {
    width: 280px;
    flex: 0 0 280px;
}

/* BAZA WIEDZY (tiles-grid-6): 6 → 3 → 1 
   6 tiles: 6×180 + 5×20 = 1180px */
.tiles-grid-6,
.tiles-grid.tiles-grid-6 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1180px;
    margin: 0 auto;
    justify-content: center;
}

.tiles-grid-6 .tile,
.tiles-grid.tiles-grid-6 .tile {
    width: 180px;
    flex: 0 0 180px;
}

.tile {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(35, 41, 58, 0.1);
    padding: 25px 20px;
    text-align: center;
    text-decoration: none;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    border: 1px solid rgba(35, 41, 58, 0.08);
}

.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(35, 41, 58, 0.15);
}

.tile-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    padding: 10px;
    border-radius: 10px;
}

.tile-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.tile-icon i {
    font-size: 30px;
    color: var(--white);
    transition: transform var(--transition-normal);
    display: block;
}

.tile:hover .tile-icon i {
    transform: scale(1.1);
}

.tile-name {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    color: var(--secondary);
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: block;
}

/* Responsive tiles - Flexbox z precyzyjnymi breakpointami */
/* Oferta (tiles-grid-oferta): 5+5 → 2 → 1 */
/* Oferta/Inne woj. (tiles-grid-4): 4 → 2 → 1 */
/* Baza wiedzy (tiles-grid-6): 6 → 3 → 1 */
/* Miasta/Województwo (tiles-grid-5): 5 → 2 → 1 */

/* ===== TILES-GRID-OFERTA (5+5 → 2 → 1) =====
   10 kafelków: na desktop 5 w rzędzie, na tablet 2 w rzędzie, na mobile 1 */
@media (max-width: 1320px) {
    .tiles-grid-oferta {
        max-width: 500px; /* 2×240 + 1×20 */
    }
    .tiles-grid-oferta .tile {
        width: 240px;
        flex: 0 0 240px;
    }
}

@media (max-width: 540px) {
    .tiles-grid-oferta {
        max-width: 100%;
        padding: 0 15px;
    }
    .tiles-grid-oferta .tile {
        width: 100%;
        flex: 0 0 100%;
        max-width: 280px;
    }
}

/* ===== TILES-GRID-5 (5 → 2 → 1) =====
   5 kafelków: 5×240 + 4×20 = 1280px
   2 kafelki: 2×240 + 1×20 = 500px
   1 kafelek: pełna szerokość */
@media (max-width: 1320px) {
    .tiles-grid-5 {
        max-width: 500px;
        justify-content: center;
    }
    .tiles-grid-5 .tile {
        width: 240px;
        flex: 0 0 240px;
    }
}

@media (max-width: 540px) {
    .tiles-grid-5 {
        max-width: 100%;
        padding: 0 15px;
        justify-content: center;
    }
    .tiles-grid-5 .tile {
        width: 100%;
        flex: 0 0 100%;
        max-width: 280px;
    }
}

/* ===== TILES-GRID-4 (4 → 2 → 1) ===== */
/* 4 tiles: at full width (>1220px viewport) */
/* 2 tiles: medium (620px - 1220px viewport) */
@media (max-width: 1220px) {
    .tiles-grid-4,
    .tiles-grid.tiles-grid-4 {
        max-width: 580px; /* 2×280 + 1×20 = 580px */
    }
}
/* 1 tile: small (<620px viewport) */
@media (max-width: 620px) {
    .tiles-grid-4,
    .tiles-grid.tiles-grid-4 {
        max-width: 300px;
    }
    .tiles-grid-4 .tile,
    .tiles-grid.tiles-grid-4 .tile {
        width: 100%;
        flex: 0 0 100%;
    }
}

/* ===== TILES-GRID-6 (6 → 3 → 1) ===== */
/* 6 tiles: at full width (>1220px viewport) */
/* 3 tiles: medium (600px - 1220px viewport) */
@media (max-width: 1220px) {
    .tiles-grid-6,
    .tiles-grid.tiles-grid-6 {
        max-width: 580px; /* 3×180 + 2×20 = 580px */
    }
}
/* 1 tile: small (<600px viewport) */
@media (max-width: 600px) {
    .tiles-grid-6,
    .tiles-grid.tiles-grid-6 {
        max-width: 280px;
    }
    .tiles-grid-6 .tile,
    .tiles-grid.tiles-grid-6 .tile {
        width: 100%;
        flex: 0 0 100%;
    }
}

/* ===== MOBILNY STYL KAFELKÓW (wszystkie) ===== */
@media (max-width: 600px) {
    .tiles-grid .tile,
    .tiles-grid-oferta .tile,
    .tiles-grid-4 .tile,
    .tiles-grid-5 .tile,
    .tiles-grid-6 .tile {
        min-height: 70px;
        padding: 12px 15px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
    }
    .tiles-grid .tile-icon,
    .tiles-grid-oferta .tile-icon,
    .tiles-grid-4 .tile-icon,
    .tiles-grid-5 .tile-icon,
    .tiles-grid-6 .tile-icon {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
        margin-bottom: 0;
    }
    .tiles-grid .tile-name,
    .tiles-grid-oferta .tile-name,
    .tiles-grid-4 .tile-name,
    .tiles-grid-5 .tile-name,
    .tiles-grid-6 .tile-name {
        font-size: 12px;
        text-align: left;
    }
}

/* ========================================
   CTA SECTION
======================================== */
.cta-section {
    background: var(--gradient-primary);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section.bg-dark-blue {
    background: var(--secondary);
}

/* Czerwony akcent w CTA z granatowym tłem */
.cta-section.bg-dark-blue .accent-text {
    color: var(--primary);
}

.cta-section.bg-dark-blue .cta-title {
    font-size: 28px;
    font-weight: var(--font-weight-bold);
}

/* Buttony w CTA granatowym */
.cta-section.bg-dark-blue .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white) !important;
}

.cta-section.bg-dark-blue .btn-primary:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--secondary) !important;
}

.cta-section.bg-dark-blue .btn-outline-light {
    background: transparent;
    border-color: var(--white);
    color: var(--white) !important;
}

.cta-section.bg-dark-blue .btn-outline-light:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white) !important;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.cta-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 35px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   FOOTER
======================================== */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo-img {
    height: 40px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all var(--transition-normal);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-normal);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--white);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
}

.contact-item i {
    color: var(--primary-light);
}

.contact-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.contact-item a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
    font-size: 14px;
}

/* ========================================
   BACK TO TOP
======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* ========================================
   ANIMATIONS
======================================== */
.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease forwards;
}

.animate-slide-up.delay-1 {
    animation-delay: 0.2s;
}

.animate-slide-up.delay-2 {
    animation-delay: 0.4s;
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
    /* Fallback - pokaż po animacji CSS jeśli JS nie zadziała */
    animation: showFallback 0.1s ease 1.5s forwards;
}

@keyframes showFallback {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
    animation: none; /* Wyłącz fallback gdy JS zadziałał */
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 100px 40px;
        gap: 25px;
        transition: right var(--transition-normal);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu .nav-link {
        color: var(--secondary);
        font-size: 1.1rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Na mobile zdjęcie zawsze na górze */
    .content-grid .content-image,
    .content-grid.reverse .content-image {
        order: 1;
    }
    
    .content-grid .content-text,
    .content-grid.reverse .content-text {
        order: 2;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-list.two-columns {
        grid-template-columns: 1fr;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 52px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .hero {
        min-height: 400px;
        margin-bottom: 60px;
        padding: 0;
    }
    
    .hero-content {
        text-align: center;
        padding: 60px 20px 30px;
    }
    
    .hero-title {
        font-size: 37px;
    }
    
    .hero-subtitle {
        font-size: 18px;
        color: #ffffff;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .cta-title {
        font-size: 24px;
    }
    
    .cta-text {
        font-size: 16px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* ========================================
   IMPORT MOBILE FIX - ŁATKA NAPRAWCZA
======================================== */
@import url("_mobile_fix.css");


