:root {
    --bg: #08080a;
    --bg-alt: #0e0e11;
    --surface: #151518;
    --surface-2: #1c1c20;
    --text: #f3f3f5;
    --muted: #9a9aa2;
    --red: #e10600;
    --red-bright: #ff2a20;
    --silver: #d7d7dc;
    --border: rgba(255, 255, 255, 0.09);
    --radius: 14px;
    --maxw: 1180px;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--red-bright); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.accent { color: var(--red); }

h1, h2, h3, h4 { line-height: 1.08; font-weight: 800; letter-spacing: -0.01em; text-transform: uppercase; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-style: italic; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--silver);
    margin-bottom: 16px;
    position: relative;
    padding-left: 44px;
}
.eyebrow::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    width: 32px; height: 2px;
    background: var(--red);
    transform: translateY(-50%);
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--red);
    color: #fff;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    box-shadow: 0 10px 30px rgba(225, 6, 0, 0.35);
}
.btn:hover { background: var(--red-bright); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 36px rgba(225, 6, 0, 0.5); }
.btn-full { width: 100%; text-align: center; }
.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    box-shadow: none;
    color: var(--text);
}
.btn-ghost:hover { background: transparent; border-color: var(--red); color: #fff; box-shadow: none; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 60;
    backdrop-filter: blur(12px);
    background: rgba(8, 8, 10, 0.82);
    border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 28px; height: 78px; }
.logo { display: flex; align-items: center; }
.logo-img { height: 52px; width: auto; display: block; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
    color: var(--silver); font-weight: 600; font-size: 0.82rem;
    letter-spacing: 0.12em; text-transform: uppercase; position: relative; padding: 4px 0;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: var(--red); }
.nav-links a.active::after {
    content: ""; position: absolute; bottom: -2px; left: 0; width: 100%; height: 2px; background: var(--red);
}
.nav-social { display: flex; gap: 14px; align-items: center; }
.nav-social a {
    width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center;
    border: 1px solid var(--border); color: var(--red); font-weight: 700;
    transition: all 0.15s;
}
.nav-social a:hover { background: var(--red); color: #fff; border-color: var(--red); }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* Hero */
.hero {
    position: relative;
    padding: 90px 0 110px;
    background: radial-gradient(circle at 74% 42%, rgba(225,6,0,0.10), transparent 55%), var(--bg);
    overflow: hidden;
}
.hero-stage {
    position: absolute; inset: 0; z-index: 0;
    transition: transform 0.35s cubic-bezier(.2,.7,.2,1);
    will-change: transform;
}
.hero-glow {
    position: absolute; right: 12%; top: 40%; width: 620px; height: 620px;
    transform: translate(0, -50%);
    background: radial-gradient(circle, rgba(225,6,0,0.42), rgba(225,6,0,0.08) 45%, transparent 65%);
    filter: blur(18px);
    animation: glowPulse 4.5s ease-in-out infinite;
}
.hero-car-wrap {
    position: absolute; top: 0; bottom: 0; right: -3%;
    width: 62%;
    filter: drop-shadow(0 26px 46px rgba(0,0,0,0.6));
    animation: carIn 1.15s cubic-bezier(.16,.84,.28,1) both;
}
/* Ostra, nieruchoma warstwa auta oraz identycznie ułożona kopia z falującym dymem */
.hero-car,
.hero-car-haze {
    position: absolute; top: 50%; right: 0; transform: translateY(-50%);
    height: 86%; width: auto; max-width: 100%; object-fit: contain;
}
.hero-car-haze {
    /* falowanie tylko na dole obrazka (tam, gdzie na zdjęciu jest dym) */
    filter: url(#smokeWaft);
    -webkit-mask-image: linear-gradient(to top, #000 0%, #000 26%, transparent 46%);
            mask-image: linear-gradient(to top, #000 0%, #000 26%, transparent 46%);
    mix-blend-mode: screen;
    opacity: 0.9;
    pointer-events: none;
}
.smoke-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
/* Fade so the car emerges from darkness and text stays legible */
.hero-fade {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        linear-gradient(90deg, var(--bg) 30%, rgba(8,8,10,0.45) 54%, rgba(8,8,10,0) 78%),
        linear-gradient(to top, var(--bg), transparent 22%);
}
.hero-inner { position: relative; z-index: 2; }
.hero-copy { max-width: 560px; }
.hero h1 { margin-bottom: 22px; text-shadow: 0 4px 30px rgba(0,0,0,0.6); }
.lead { font-size: 1.1rem; color: var(--muted); margin-bottom: 30px; max-width: 42ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

@keyframes carIn {
    from { opacity: 0; transform: translateX(70px) scale(1.02); }
    to   { opacity: 1; transform: none; }
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.5;  transform: translate(0, -50%) scale(1); }
    50%      { opacity: 0.85; transform: translate(0, -50%) scale(1.07); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-car-wrap, .hero-car, .hero-glow { animation: none; }
    .hero-car-haze { display: none; }
    .hero-stage { transition: none; }
}

/* Sections */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head .eyebrow { padding-left: 0; }
.section-head .eyebrow::before { display: none; }

.grid { display: grid; gap: 22px; }
.grid-services { grid-template-columns: repeat(5, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 22px;
    text-align: center;
    transition: transform 0.15s, border-color 0.15s;
    position: relative;
}
.feature::before {
    content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 0; height: 3px; background: var(--red); transition: width 0.25s;
}
.feature:hover { transform: translateY(-5px); border-color: rgba(225,6,0,0.5); }
.feature:hover::before { width: 60%; }
.feature-icon { font-size: 2rem; margin-bottom: 14px; }
.feature h3 { font-size: 1rem; margin-bottom: 10px; letter-spacing: 0.03em; }
.feature p { font-size: 0.9rem; }

/* Trust badges */
.badges { background: #060607; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 30px 0; }
.badges-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.badge { display: flex; gap: 12px; align-items: flex-start; }
.badge-icon { font-size: 1.4rem; color: var(--red); line-height: 1.2; }
.badge strong { display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 3px; }
.badge span { font-size: 0.82rem; line-height: 1.4; }

/* Realizacje */
.result-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
}
.result-tag {
    display: inline-block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--red); border: 1px solid rgba(225,6,0,0.4); border-radius: 999px; padding: 4px 12px; margin-bottom: 18px;
}
.result-nums { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; font-weight: 800; margin-bottom: 12px; }
.result-nums span { color: var(--muted); }
.result-nums i { color: var(--red); font-style: normal; }
.result-nums strong { color: #fff; }

/* Split sections */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center; }
.split p { color: var(--muted); margin-top: 14px; }
.check-list { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: var(--muted); }
.check-list li::before {
    content: "✓"; position: absolute; left: 0; top: 0; color: var(--red); font-weight: 800;
}
.split .btn { margin-top: 26px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; }
.stat strong { display: block; font-size: 1.9rem; color: var(--red); text-transform: none; }
.stat span { font-size: 0.85rem; }

.about-logo { display: grid; place-items: center; }
.about-logo img { max-width: 78%; height: auto; filter: drop-shadow(0 20px 50px rgba(225,6,0,0.25)); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.contact-list { list-style: none; margin-top: 24px; display: grid; gap: 14px; color: var(--muted); font-size: 1.05rem; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.82rem; margin-bottom: 6px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.field input, .field textarea {
    width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
    padding: 13px 15px; color: var(--text); font: inherit; transition: border-color 0.15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-size: 0.95rem; }
.alert-success { background: rgba(40, 200, 120, 0.14); border: 1px solid rgba(40, 200, 120, 0.4); color: #7ef0b0; }
.alert-error { background: rgba(225, 6, 0, 0.14); border: 1px solid rgba(225, 6, 0, 0.5); color: #ff8b84; }

/* Map */
.map-wrap { margin-top: 52px; position: relative; }
.map {
    width: 100%; height: 380px; border: 1px solid var(--border); border-radius: var(--radius);
    display: block; filter: grayscale(0.35) contrast(1.05);
}
.map-link {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
    font-size: 0.9rem; font-weight: 600; letter-spacing: 0.04em; color: var(--silver);
}
.map-link:hover { color: var(--red-bright); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 26px; background: #060607; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 34px; }
.footer-logo { height: 64px; width: auto; margin-bottom: 14px; }
.footer-grid h4 { margin-bottom: 14px; font-size: 0.95rem; }
.footer-grid p { margin: 5px 0; font-size: 0.92rem; }
.footer-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 0.85rem; }

/* Responsive */
@media (max-width: 1000px) {
    .grid-services { grid-template-columns: repeat(3, 1fr); }
    .badges-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .hero { padding: 64px 0 80px; }
    .hero-car-wrap { width: 100%; right: 0; opacity: 0.4; }
    .hero-car, .hero-car-haze { height: auto; width: 108%; right: -4%; }
    .hero-fade { background:
        linear-gradient(180deg, rgba(8,8,10,0.55), rgba(8,8,10,0.9) 70%),
        linear-gradient(to top, var(--bg), transparent 30%); }
    .split, .contact-grid { grid-template-columns: 1fr; }
    .about-logo { order: -1; }
    .about-logo img { max-width: 60%; }
    .footer-grid { grid-template-columns: 1fr; }
    .nav-links, .nav-social { display: none; }
    .nav-toggle { display: block; margin-left: auto; }
    .nav-links.open {
        display: flex; flex-direction: column; position: absolute; top: 78px; left: 0; right: 0;
        background: var(--bg-alt); padding: 18px 24px; border-bottom: 1px solid var(--border); gap: 16px;
    }
}
@media (max-width: 620px) {
    .grid-services, .grid-3, .badges-row, .stats { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 2.4rem; }
}
@media (max-width: 440px) {
    .grid-services, .grid-3, .badges-row, .stats { grid-template-columns: 1fr; }
}
