
:root {
    --brand-blue: #0A2342; /* Głęboki, potężny granat korporacyjny */
    --brand-red: #D9232D;  /* Agresywna, techniczna czerwień */
    --brand-light: #F4F7F6; /* Chłodne, nowoczesne tło */
    --brand-white: #FFFFFF;
    --text-dark: #1A202C;
    --text-muted: #4A5568;
    --border-soft: #E2E8F0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(10, 35, 66, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Open Sans', sans-serif; background-color: var(--brand-light); color: var(--text-dark); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
h1, h2, h3, h4, h5 { font-family: 'Montserrat', sans-serif; color: var(--brand-blue); font-weight: 800; margin-bottom: 1rem; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.mb-2 { margin-bottom: 20px; } .mb-4 { margin-bottom: 40px; } .mt-4 { margin-top: 40px; }

/* PRZYCISKI - POTĘGA I BIZNES */
.btn { display: inline-block; padding: 14px 32px; font-family: 'Montserrat', sans-serif; font-weight: 700; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; border-radius: 4px; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); cursor: pointer; text-align: center; border: 2px solid transparent; }
.btn i { margin-left: 8px; transition: transform 0.3s; }
.btn:hover i { transform: translateX(5px); }
.btn-blue { background: var(--brand-blue); color: var(--brand-white); border-color: var(--brand-blue); }
.btn-blue:hover { background: var(--brand-red); border-color: var(--brand-red); box-shadow: var(--shadow-md); transform: translateY(-3px); color: white;}
.btn-red { background: var(--brand-red); color: var(--brand-white); border-color: var(--brand-red); }
.btn-red:hover { background: #b81d26; border-color: #b81d26; box-shadow: var(--shadow-md); transform: translateY(-3px); }
.btn-outline { background: transparent; color: var(--brand-white); border-color: var(--brand-white); }
.btn-outline:hover { background: var(--brand-white); color: var(--brand-blue); transform: translateY(-3px); }

/* HEADER - CZYSTY BIZNES */
.main-header { background: var(--brand-white); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 1000; border-bottom: 3px solid var(--brand-blue); }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 90px; }
.logo-img { max-height: 55px; }
.main-nav { display: flex; gap: 30px; align-items: center; }
.main-nav a { font-family: 'Montserrat', sans-serif; font-size: 0.9rem; font-weight: 700; color: var(--brand-blue); text-transform: uppercase; position: relative; padding: 10px 0; }
.main-nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 3px; background: var(--brand-red); transition: width 0.3s ease; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.contact-link { background: var(--brand-red); color: var(--brand-white); padding: 10px 24px; border-radius: 4px; }
.main-nav a.contact-link::after { display: none; }
.main-nav a.contact-link:hover { background: #b81d26; box-shadow: var(--shadow-md); }

/* HERO SECTIONS (DLA PODSTRON) */
.page-hero { background: var(--brand-blue); padding: 80px 20px; text-align: center; color: var(--brand-white); position: relative; overflow: hidden; margin-bottom: 60px; border-bottom: 6px solid var(--brand-red); }
.page-hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url('bg_wynajem.jpg') center/cover; opacity: 0.15; z-index: 1; }
.page-hero-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.page-hero h1 { color: var(--brand-white); font-size: 3.5rem; text-transform: uppercase; margin-bottom: 15px; letter-spacing: 2px; }
.page-hero p { font-size: 1.2rem; opacity: 0.9; }

/* HOME HERO (WIELKIE OTWARCIE) */
.home-hero { position: relative; height: 85vh; min-height: 600px; background: var(--brand-blue); display: flex; align-items: center; padding: 0 20px; border-bottom: 6px solid var(--brand-red); overflow: hidden; }
.home-hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url('bg_wynajem.jpg') center/cover; opacity: 0.3; z-index: 1; }
.home-hero-content { position: relative; z-index: 2; max-width: 1400px; width: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.home-hero-text { flex: 1; max-width: 650px; }
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.home-hero-image { flex: 1.5; display: flex; justify-content: flex-end; align-items: center; }
.home-hero-image img { max-width: 100%; max-height: 750px; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3)); transform: scale(1.6); transform-origin: center right; }

.badge { display: inline-block; background: var(--brand-red); color: white; padding: 6px 16px; font-weight: 800; text-transform: uppercase; font-size: 0.9rem; margin-bottom: 20px; letter-spacing: 1px;}
.home-hero h1 { color: var(--brand-white); font-size: 4.5rem; line-height: 1.1; margin-bottom: 25px; text-transform: uppercase; }
.home-hero p { color: #E2E8F0; font-size: 1.3rem; margin-bottom: 40px; max-width: 600px; }

/* OVERLAPPING CARDS (Nowoczesny B2B) */
.services-overlap { margin-top: -100px; position: relative; z-index: 10; margin-bottom: 80px; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.service-card { background: var(--brand-white); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-md); transition: 0.4s; display: flex; flex-direction: column; border-bottom: 4px solid transparent; }
.service-card:hover { transform: translateY(-15px); box-shadow: var(--shadow-lg); border-bottom-color: var(--brand-red); }
.service-img { height: 220px; background: #F8FAFC; display: flex; align-items: center; justify-content: center; padding: 20px; border-bottom: 1px solid var(--border-soft); position: relative;}
.service-img img { max-width: 100%; max-height: 100%; object-fit: contain; transition: 0.5s; }
.service-card:hover .service-img img { transform: scale(1.1); }
.service-body { padding: 30px; text-align: left; flex-grow: 1; display: flex; flex-direction: column;}
.service-body h3 { font-size: 1.4rem; margin-bottom: 15px; }
.service-body p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 25px; flex-grow: 1; }
.service-link { font-family: 'Montserrat', sans-serif; font-weight: 800; color: var(--brand-red); text-transform: uppercase; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.service-card:hover .service-link { color: var(--brand-blue); }

/* GRID FLOTY (WYNAJEM) */
.fleet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 40px; margin-bottom: 80px; }
.fleet-card { background: var(--brand-white); border: 1px solid var(--border-soft); border-radius: 8px; padding: 30px; text-align: center; transition: 0.3s; position: relative; overflow: hidden;}
.fleet-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: var(--brand-blue); transition: 0.3s; }
.fleet-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; transform: translateY(-5px); }
.fleet-card:hover::before { background: var(--brand-red); }
.fleet-img { height: 220px; margin-bottom: 25px; display: flex; align-items: center; justify-content: center; }
.fleet-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fleet-card h3 { font-size: 1.5rem; border-bottom: 1px solid var(--border-soft); padding-bottom: 15px; margin-bottom: 20px; }
.fleet-specs { list-style: none; text-align: left; margin-bottom: 30px; }
.fleet-specs li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--border-soft); font-size: 0.95rem; color: var(--text-muted); }
.fleet-specs li strong { color: var(--brand-blue); }

/* WIDOK MASZYNY (PERFEKCYJNA REFERENCJA) */
.machine-view { background: var(--brand-white); border-radius: 12px; box-shadow: var(--shadow-md); padding: 50px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; margin-bottom: 80px; }
.machine-view-img { background: #F8FAFC; border-radius: 8px; padding: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-soft); }
.machine-view-img img { width: 100%; max-width: 450px; object-fit: contain; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.1)); }
.machine-view-details h2 { font-size: 2.8rem; text-transform: uppercase; color: var(--brand-blue); margin-bottom: 10px; }
.machine-divider { width: 100%; height: 2px; background: var(--brand-yellow); margin-bottom: 30px; background-color: #D9232D; /* Red line like in screenshot */ }
.machine-desc-title { color: var(--brand-red); font-weight: 700; font-family: 'Montserrat'; margin-bottom: 15px; font-size: 1.1rem; }
.machine-desc-box { background: #F8FAFC; border-left: 4px solid var(--brand-blue); padding: 25px; color: var(--text-muted); font-size: 1.05rem; margin-bottom: 40px; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 40px; }
.spec-table tr { border-bottom: 1px solid var(--border-soft); }
.spec-table td { padding: 16px 10px; color: var(--text-muted); font-size: 1rem; }
.spec-table td:first-child { font-weight: 700; color: var(--brand-blue); width: 45%; }
.machine-actions { display: flex; gap: 20px; }

/* SEKCJA ZWYKŁA / BIAŁY BOKS */
.content-box { background: var(--brand-white); border-radius: 8px; box-shadow: var(--shadow-sm); padding: 50px; margin-bottom: 60px; border: 1px solid var(--border-soft); }

/* DO POBRANIA */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 20px; margin-bottom: 40px; }
.dl-card { display: flex; align-items: center; padding: 20px 25px; background: var(--brand-white); border: 1px solid var(--border-soft); border-radius: 6px; font-weight: 700; color: var(--brand-blue); box-shadow: var(--shadow-sm); }
.dl-card i { font-size: 1.8rem; color: var(--brand-red); margin-right: 20px; }
.dl-card:hover { border-color: var(--brand-blue); box-shadow: var(--shadow-md); transform: translateY(-3px); color: var(--brand-red); }

/* KONTAKT & FORMULARZ */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; }
.contact-info h3 { font-size: 1.8rem; margin-bottom: 30px; }
.contact-block { margin-bottom: 30px; }
.contact-block h5 { color: var(--brand-red); font-size: 1.1rem; margin-bottom: 10px; border-bottom: 1px solid var(--border-soft); padding-bottom: 5px; }
.contact-block p { font-size: 1.1rem; color: var(--text-muted); display: flex; align-items: center; margin-bottom: 8px;}
.contact-block i { color: var(--brand-blue); width: 25px; font-size: 1.2rem; }
.form-box { background: var(--brand-white); padding: 40px; border-radius: 8px; box-shadow: var(--shadow-md); border-top: 5px solid var(--brand-blue); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--brand-blue); font-size: 0.9rem; }
.form-control { width: 100%; padding: 14px 16px; border: 1px solid #CBD5E0; border-radius: 4px; font-size: 1rem; background: #F8FAFC; transition: 0.3s; font-family: inherit; }
.form-control:focus { outline: none; border-color: var(--brand-blue); background: white; box-shadow: 0 0 0 3px rgba(10, 35, 66, 0.1); }
textarea.form-control { height: 160px; resize: vertical; }

/* FOOTER - SOLID B2B */
.site-footer { background: #0F172A; color: #94A3B8; padding-top: 80px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; margin-bottom: 60px; }
.footer-logo { max-height: 50px; filter: grayscale(1) brightness(10); margin-bottom: 25px; opacity: 0.9;}
.footer-about { padding-right: 40px; }
.footer-widget h4 { color: white; font-size: 1.2rem; margin-bottom: 25px; position: relative; padding-bottom: 10px; }
.footer-widget h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 2px; background: var(--brand-red); }
.footer-list { list-style: none; }
.footer-list li { margin-bottom: 15px; display: flex; align-items: flex-start; }
.footer-list i { color: var(--brand-red); margin-right: 15px; margin-top: 5px; font-size: 1.1rem; }
.footer-list strong { color: white; display: block; margin-bottom: 3px; }
.footer-bottom { background: #0B1120; padding: 20px 0; font-size: 0.85rem; border-top: 1px solid #1E293B; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.copyright { color: #94A3B8; }
.dev-credit { color: #94A3B8; display: flex; align-items: center; gap: 10px; }
.dev-logo-img { height: 22px; width: auto; opacity: 0.7; transition: all 0.3s ease; display: block; }
.dev-link { display: inline-block; text-decoration: none; }
.dev-link:hover .dev-logo-img { opacity: 1; transform: scale(1.05); }
.dev-link { color: var(--brand-white); font-weight: 800; font-family: 'Montserrat', sans-serif; letter-spacing: 1px; text-decoration: none; transition: color 0.3s; }
.dev-link:hover { color: var(--brand-red); }

/* MAPA */
.map-container { width: 100%; height: 450px; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-md); margin-top: 40px; border: 1px solid var(--border-soft); }
.map-container iframe { width: 100%; height: 100%; border: none; }

/* SPLIT PAGE INDEX */
.split-wrap { display: flex; height: 100vh; width: 100vw; overflow: hidden; background: #000; }
.split-side { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; transition: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); text-decoration: none; }
.split-side:hover { flex: 1.25; }
.split-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0.4; transition: 0.8s; }
.split-side:hover .split-bg { opacity: 0.6; transform: scale(1.05); }
.bg-red { background-color: var(--brand-red); }
.bg-blue { background-color: var(--brand-blue); }
.split-content { position: relative; z-index: 2; text-align: center; color: white; }
.split-content img { height: 80px; margin-bottom: 30px; filter: brightness(0) invert(1); }
.split-content h2 { font-size: 3.5rem; color: white; text-transform: uppercase; margin-bottom: 15px; letter-spacing: 2px;}
.split-content p { font-size: 1.2rem; font-weight: 600; margin-bottom: 40px; }
.split-btn { padding: 15px 40px; border: 3px solid white; font-family: 'Montserrat'; font-weight: 800; font-size: 1.1rem; text-transform: uppercase; transition: 0.3s; border-radius: 4px; }
.split-side:hover .split-btn { background: white; color: var(--text-dark); }

@media (max-width: 1024px) {
    .services-grid, .fleet-grid, .dl-grid { grid-template-columns: repeat(2, 1fr); }
    .machine-view, .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .services-overlap { margin-top: 40px; }
    .home-hero { height: auto; padding: 120px 20px 160px 20px; text-align: center; }
    .home-hero-content { flex-direction: column; text-align: center; }
    .home-hero-text { max-width: 100%; margin-bottom: 40px; }
    .hero-buttons { justify-content: center; }
    .home-hero-image { justify-content: center; width: 100%; }
    .home-hero-image img { max-height: 350px; transform: scale(1); transform-origin: center; }
    .home-hero h1 { font-size: 3rem; }
    .home-hero p { margin: 0 auto 40px auto; }
    .split-wrap { flex-direction: column; }
}
@media (max-width: 600px) {
    .services-grid, .fleet-grid, .dl-grid { grid-template-columns: 1fr; }
    .home-hero h1 { font-size: 2.5rem; }
    .page-hero h1 { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    .footer-bottom-inner { justify-content: center; text-align: center; flex-direction: column; gap: 10px; }
}


/* =========================================
   CENNIK I TABELA CENOWA
========================================= */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.95rem;
}
.pricing-table th, .pricing-table td {
    padding: 16px 20px;
    border: 1px solid var(--border-soft);
    text-align: left;
}
.pricing-table th {
    background-color: var(--brand-blue);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}
.pricing-table th small {
    font-weight: 400;
    font-size: 0.75rem;
    opacity: 0.85;
    text-transform: none;
}
.pricing-table tr:nth-child(even) {
    background-color: #F8FAFC;
}
.pricing-table tr:hover {
    background-color: #edf2f7;
}
.pricing-table td:not(:first-child) {
    font-weight: 700;
    color: var(--brand-blue);
    text-align: center;
}
@media (max-width: 768px) {
    .pricing-table th, .pricing-table td { padding: 10px; font-size: 0.85rem; }
    .calculator-grid { grid-template-columns: 1fr !important; }
}

/* =========================================
   TELEFON W NAGŁÓWKU
========================================= */
.header-right-group {
    display: flex;
    align-items: center;
    gap: 35px;
}
.header-phone-box {
    display: flex;
    align-items: center;
}
.header-phone-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: var(--brand-blue);
    background: var(--brand-light);
    padding: 10px 18px;
    border-radius: 4px;
    border: 1px solid var(--border-soft);
}
.header-phone-link i {
    color: var(--brand-red);
    font-size: 1.1rem;
}

@media (max-width: 1200px) {
    .header-right-group { gap: 15px; }
    .header-phone-link { font-size: 0.85rem; padding: 8px 12px; }
}
@media (max-width: 900px) {
    .header-phone-box { display: none; /* ukrywamy na małych ekranach, żeby nie zapychać menu */ }
}
