/* =========================================
   CARSHOP - MODERN CSS REWORK (v3.1)
========================================= */

:root {
    --primary-color: #ff6600;
    --primary-hover: #ff8533;
    --primary-glow: rgba(255, 102, 0, 0.4);
    
    --dark-bg: #090909;
    --surface-bg: #141414;
    --surface-hover: #1a1a1a;
    
    --text-color: #f0f0f0;
    --text-muted: #a0a0a0;
    --border-color: #262626;
    
    --nav-height: 85px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius-md: 12px;
    --radius-sm: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- HEADER --- */
.site-header {
    background-color: rgba(9, 9, 9, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-content { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo a { display: flex; align-items: center; height: 100%; }
.logo img { max-height: 50px; width: auto; display: block; transition: var(--transition); }
.logo img:hover { transform: scale(1.05); filter: drop-shadow(0 0 8px var(--primary-glow)); }

.main-nav ul { display: flex; gap: 35px; }
.main-nav a { 
    font-weight: 600; text-transform: uppercase; font-size: 13px; 
    color: var(--text-color); padding: 10px 0; position: relative; letter-spacing: 1px;
}
.main-nav a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 50%;
    background-color: var(--primary-color); transition: var(--transition);
    transform: translateX(-50%); box-shadow: 0 0 8px var(--primary-glow);
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a:hover, .main-nav a.active { color: var(--primary-color); }

/* --- PRZYCISKI --- */
.cta-button, .cta-button-outline {
    display: inline-block; padding: 16px 36px; font-weight: 700;
    text-transform: uppercase; font-size: 14px; border-radius: var(--radius-sm);
    letter-spacing: 1.5px; cursor: pointer; transition: var(--transition);
}
.cta-button {
    background-color: var(--primary-color); color: #fff; border: none;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.2);
}
.cta-button:hover {
    background-color: var(--primary-hover); transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}
.cta-button-outline {
    background-color: transparent; border: 2px solid var(--primary-color); color: var(--primary-color);
}
.cta-button-outline:hover {
    background-color: var(--primary-color); color: #fff; box-shadow: 0 8px 25px var(--primary-glow);
}

/* --- HERO SECTIONS --- */
.hero-section, .page-hero { position: relative; text-align: center; border-bottom: 1px solid var(--border-color); }
.hero-section {
    height: 70vh;
    background: linear-gradient(to bottom, rgba(9,9,9,0.4) 0%, rgba(9,9,9,0.9) 100%), url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&q=80') center/cover no-repeat;
    display: flex; align-items: center;
}
.page-hero { padding: 140px 0 60px; background: radial-gradient(circle at top, var(--surface-bg) 0%, var(--dark-bg) 100%); }

.hero-section h1, .page-hero h1 { 
    font-size: 3.5rem; margin-bottom: 20px; text-transform: uppercase; 
    font-weight: 800; letter-spacing: 2px; text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}
.page-hero h1 { color: var(--primary-color); font-size: 2.8rem; }
.hero-section p, .page-hero p { 
    font-size: 1.25rem; color: var(--text-muted); margin-bottom: 40px; 
    max-width: 700px; margin-inline: auto;
}

/* --- SEKCJE OGÓLNE --- */
.comparison-cta, .gallery-hero, .comparison-section, .services-section, .contact-section { padding: 90px 0; }
.comparison-cta { background-color: var(--surface-bg); text-align: center; }
.comparison-cta h2 { font-size: 2.5rem; margin-bottom: 20px; }
.comparison-cta p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 40px; }

/* --- USŁUGI --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 35px; margin-bottom: 60px; }
.service-card {
    background-color: var(--surface-bg); padding: 45px 35px; border-radius: var(--radius-md);
    border: 1px solid var(--border-color); display: flex; flex-direction: column;
    transition: var(--transition); position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0; transition: var(--transition);
}
.service-card:hover {
    transform: translateY(-8px); border-color: #333; background-color: var(--surface-hover);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}
.service-card:hover::before { opacity: 1; }
.service-icon { font-size: 2.8rem; margin-bottom: 25px; filter: drop-shadow(0 0 10px rgba(255,255,255,0.1)); }
.service-card h3 { font-size: 1.4rem; margin-bottom: 15px; letter-spacing: 1px; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 30px; flex-grow: 1; }
.service-price {
    font-weight: 700; color: var(--primary-color); font-size: 1.15rem;
    padding-top: 20px; border-top: 1px solid var(--border-color);
}

.custom-service-banner {
    grid-column: 1 / -1; background: linear-gradient(145deg, var(--surface-bg) 0%, #050505 100%);
    border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 60px 40px;
    text-align: center; position: relative; overflow: hidden; transition: var(--transition);
}
.custom-service-banner::after {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%); opacity: 0.05; pointer-events: none;
}
.custom-service-banner:hover { border-color: var(--primary-color); box-shadow: 0 0 40px rgba(255, 102, 0, 0.05); }
.custom-service-banner h3 { color: var(--primary-color); font-size: 2.2rem; margin-bottom: 20px; }
.custom-service-banner p { font-size: 1.1rem; color: var(--text-muted); max-width: 800px; margin: 0 auto 35px; }
.phone-block { display: flex; justify-content: center; align-items: center; gap: 15px; margin-bottom: 35px; }
.phone-number-link { color: #fff; font-size: 2.5rem; font-weight: 800; }
.phone-number-link:hover { color: var(--primary-color); text-shadow: 0 0 15px var(--primary-glow); }

/* --- GALERIA SUWAKI --- */
.comparison-wrapper { margin-bottom: 100px; text-align: center; }
.comparison-wrapper h3 { margin-bottom: 30px; font-size: 1.8rem; letter-spacing: 1px; }
.img-comp-container {
    position: relative; height: 450px; width: 100%; max-width: 900px; margin: 0 auto;
    border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}
.img-comp-img { position: absolute; width: auto; height: auto; overflow: hidden; }
.img-comp-img img { display: block; height: 450px; width: auto; min-width: 900px; object-fit: cover; }
.img-comp-slider {
    position: absolute; z-index: 9; cursor: ew-resize; width: 3px; height: 100%; top: 0;
    background-color: var(--primary-color); transform: translateX(-50%);
    box-shadow: 0 0 15px var(--primary-color), 0 0 5px var(--primary-color);
}
.img-comp-slider:hover { width: 5px; background-color: #fff; box-shadow: 0 0 20px var(--primary-color); }
.comp-label {
    position: absolute; top: 25px; padding: 8px 20px; background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px); color: #fff; font-weight: 700; font-size: 12px;
    letter-spacing: 2px; border-radius: 30px; border: 1px solid rgba(255,255,255,0.1);
    z-index: 10; pointer-events: none;
}
.label-before { left: 25px; }
.label-after { right: 25px; background: rgba(255, 102, 0, 0.8); border-color: var(--primary-color); }

/* --- KONTAKT & FORMULARZE --- */
.contact-container { display: flex; flex-wrap: wrap; gap: 50px; }
.contact-info-blocks { flex: 1; min-width: 300px; display: flex; flex-direction: column; gap: 30px; }
.info-block {
    background-color: var(--surface-bg); padding: 35px; border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color); box-shadow: 0 10px 30px rgba(0,0,0,0.3); transition: var(--transition);
}
.info-block:hover { transform: translateX(10px); background-color: var(--surface-hover); }
.info-block h3 { margin-bottom: 20px; font-size: 1.3rem; letter-spacing: 1px; }
.info-block p { color: var(--text-muted); margin-bottom: 8px; }
.info-block strong { color: #fff; }
.contact-form-wrapper {
    flex: 1.5; min-width: 300px; background-color: var(--surface-bg); padding: 50px;
    border-radius: var(--radius-md); border: 1px solid var(--border-color); box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.contact-form-wrapper h3 { color: var(--primary-color); margin-bottom: 30px; font-size: 1.8rem; }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 10px; font-size: 0.9rem; font-weight: 600; color: var(--text-muted); letter-spacing: 1px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 16px 20px; background-color: var(--dark-bg); border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); color: #fff; font-family: inherit; font-size: 1rem; transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary-color); background-color: #0f0f0f;
    box-shadow: inset 0 0 0 1px var(--primary-color), 0 0 15px var(--primary-glow);
}
.contact-form .cta-button { width: 100%; margin-top: 15px; padding: 20px; font-size: 16px; }

/* --- FAQ (AKORDEON) --- */
.faq-section { 
    background-color: var(--dark-bg); padding: 80px 0; border-top: 1px solid var(--border-color); 
}
.faq-container { max-width: 850px; margin: 0 auto; }
.faq-item { 
    background-color: var(--surface-bg); border: 1px solid var(--border-color); 
    border-radius: var(--radius-md); margin-bottom: 20px; overflow: hidden; transition: var(--transition); 
}
.faq-item:hover { border-color: #333; background-color: var(--surface-hover); }
.faq-item.active { border-color: var(--primary-color); box-shadow: 0 0 20px rgba(255, 102, 0, 0.08); }
.faq-question { 
    padding: 25px 30px; display: flex; justify-content: space-between; align-items: center; 
    cursor: pointer; font-size: 1.15rem; font-weight: 600; color: #fff; transition: var(--transition);
}
.faq-item.active .faq-question { color: var(--primary-color); }
.faq-icon { font-size: 1.8rem; color: var(--primary-color); transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); line-height: 1; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { 
    max-height: 0; padding: 0 30px; color: var(--text-muted); 
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out, opacity 0.4s ease-in-out; 
    opacity: 0; overflow: hidden; 
}
.faq-item.active .faq-answer { max-height: 600px; padding: 0 30px 25px; opacity: 1; }
.faq-answer p { margin: 0; padding-top: 10px; }

/* --- STOPKA --- */
.site-footer { background-color: #050505; padding: 70px 0 20px; border-top: 1px solid var(--border-color); }
.footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 50px; margin-bottom: 50px; }
.footer-info, .footer-map { flex: 1; min-width: 300px; }
.site-footer h3 {
    color: var(--primary-color); margin-bottom: 25px; text-transform: uppercase;
    letter-spacing: 1px; display: inline-block; position: relative;
}
.site-footer h3::after { content: ''; position: absolute; left: 0; bottom: -8px; width: 40px; height: 3px; background-color: var(--primary-color); }
.footer-info p { color: var(--text-muted); margin-bottom: 12px; }
.footer-info span { color: #fff; font-weight: 600; }
.map-container { border: 1px solid var(--border-color); border-radius: var(--radius-sm); overflow: hidden; filter: grayscale(20%) contrast(110%); transition: var(--transition); }
.map-container:hover { filter: grayscale(0%) contrast(100%); border-color: var(--primary-color); }
.map-container iframe { display: block; }
.footer-bottom { text-align: center; color: #555; font-size: 13px; padding-top: 25px; border-top: 1px solid #1a1a1a; }
.footer-bottom a { color: var(--primary-color); font-weight: bold; }
.footer-bottom a:hover { color: #fff; text-shadow: 0 0 10px var(--primary-glow); }

/* --- FLOATING CHAT WIDGET --- */
.floating-chat {
    position: fixed; bottom: 30px; right: 30px; z-index: 9999;
    display: flex; flex-direction: column; align-items: center; gap: 15px;
}
.chat-options {
    display: flex; flex-direction: column; gap: 15px; opacity: 0; visibility: hidden;
    transform: translateY(20px); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.floating-chat:hover .chat-options { opacity: 1; visibility: visible; transform: translateY(0); }
.chat-main-btn {
    width: 65px; height: 65px; background-color: var(--primary-color); border-radius: 50%;
    display: flex; justify-content: center; align-items: center; font-size: 30px;
    color: white; cursor: pointer; box-shadow: 0 5px 20px rgba(255, 102, 0, 0.4); transition: var(--transition);
}
.chat-main-btn:hover { transform: scale(1.1); background-color: var(--primary-hover); box-shadow: 0 8px 25px rgba(255, 102, 0, 0.6); }
.chat-btn {
    width: 50px; height: 50px; border-radius: 50%; display: flex; justify-content: center;
    align-items: center; text-decoration: none; box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: var(--transition); background-color: #fff;
}
.chat-btn img { width: 30px; height: 30px; }
.whatsapp-btn { background-color: #25D366; }
.whatsapp-btn:hover { background-color: #20b858; transform: scale(1.1) rotate(10deg); box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5); }
.messenger-btn { background: linear-gradient(45deg, #00B2FF, #006AFF); }
.messenger-btn:hover { transform: scale(1.1) rotate(-10deg); box-shadow: 0 5px 20px rgba(0, 106, 255, 0.5); }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    .hero-section h1 { font-size: 2.5rem; }
    .page-hero h1 { font-size: 2.2rem; }
    .main-nav ul { gap: 15px; }
    .main-nav a { font-size: 12px; }
    .img-comp-container, .img-comp-img img { height: 300px; min-width: 100%; }
    .contact-form-wrapper { padding: 30px 20px; }
    .custom-service-banner { padding: 40px 20px; }
    .phone-number-link { font-size: 1.8rem; }
    .faq-question { font-size: 1rem; padding: 20px; }
    .faq-item.active .faq-answer { padding: 0 20px 20px; }
    .floating-chat { bottom: 20px; right: 20px; }
    .chat-options { opacity: 1; visibility: visible; transform: translateY(0); }
    .chat-main-btn { display: none; }
}