/* MBM Prosjekt – inspirert av rolig, eksklusiv entreprenør-stil: krem, blekk og MBM-rødt */
:root {
    --red: #d90a0a;
    --red-dark: #b00808;
    --ink: #141414;
    --ink-2: #1f1f1f;
    --cream: #f4efe7;
    --cream-2: #ebe4d8;
    --line: #ddd5c8;
    --text: #3a3631;
    --muted: #7a736a;
    --white: #ffffff;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Montserrat', system-ui, sans-serif;
    --radius: 28px;
    --ease: cubic-bezier(.22, .8, .24, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: var(--sans);
    color: var(--text);
    background: #fbf9f5;
    line-height: 1.75;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.container { width: min(1200px, 100% - 40px); margin: 0 auto; }
@media (min-width: 961px) { .container { width: min(1200px, 100% - 120px); } }
.section { padding: 120px 0; position: relative; }
.bg-cream { background: var(--cream); }
.bg-ink { background: var(--ink); color: #cfc8bd; }
.center { text-align: center; }
.center-block { display: block; text-align: center; }
.mt-40 { margin-top: 40px; }
.w-100 { width: 100%; }

/* --- Typografia --- */
.eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #e9b7b7;
    margin-bottom: 18px;
}
.eyebrow.dark { color: var(--red); }
.eyebrow.center-block { display: block; text-align: center; }
.section-heading {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.12;
    color: var(--ink);
    margin-bottom: 22px;
}
.section-heading.light, .display.light { color: var(--white); }
.section-lead { max-width: 720px; margin: 0 auto 60px; color: var(--muted); font-size: 1.05rem; }
.section-lead.light { color: #a9a196; }
.display {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(1.9rem, 3.4vw, 2.8rem);
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 24px;
}
p + p { margin-top: 16px; }

/* --- Przyciski --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 34px;
    border-radius: 999px;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: var(--white); box-shadow: 0 10px 30px -10px rgba(217, 10, 10, .6); }
.btn-red:hover { background: var(--red-dark); }
.btn-sm { padding: 11px 22px; font-size: 0.7rem; }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--ink); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

/* --- Pasek postępu przewijania --- */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0;
    background: var(--red); z-index: 3000;
}

/* --- Nawigacja --- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 18px 0;
    transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.navbar.scrolled {
    background: rgba(251, 249, 245, .94);
    backdrop-filter: blur(12px);
    padding: 10px 0;
    box-shadow: 0 1px 0 var(--line);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand-logo { height: 46px; width: auto; border-radius: 6px; }
.nav-links { list-style: none; display: flex; gap: 34px; }
.nav-links a {
    text-decoration: none; color: var(--white);
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
    position: relative; padding: 6px 0;
}
.nav-links a::after {
    content: ''; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%;
    background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.navbar.scrolled .nav-links a { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.cert-logos { display: flex; gap: 8px; }
.cert-logos img { height: 48px; width: auto; border-radius: 4px; background: var(--white); }
.burger { display: none; background: none; border: none; cursor: pointer; width: 34px; height: 28px; position: relative; }
.burger span { position: absolute; left: 4px; right: 4px; height: 2px; background: var(--white); transition: transform .3s, opacity .3s, background .3s; }
.burger span:nth-child(1) { top: 7px; } .burger span:nth-child(2) { top: 13px; } .burger span:nth-child(3) { top: 19px; }
.navbar.scrolled .burger span, .navbar.menu-open .burger span { background: var(--ink); }
.navbar.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.navbar.menu-open .burger span:nth-child(2) { opacity: 0; }
.navbar.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- Hero --- */
.hero {
    position: relative; min-height: 100vh; min-height: 100svh;
    display: flex; align-items: center;
    background: var(--ink); color: var(--white);
    overflow: hidden; padding: 120px 0 80px;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.hero-slide.active { opacity: 1; }
.hero-dots { position: absolute; right: 40px; bottom: 34px; z-index: 3; display: flex; gap: 8px; }
.hero-dots span { width: 26px; height: 3px; background: rgba(255,255,255,.25); border-radius: 2px; overflow: hidden; position: relative; }
.hero-dots span.active::after { content: ''; position: absolute; inset: 0; background: var(--red); transform-origin: left; animation: dot-fill var(--slide-ms, 13000ms) linear forwards; }
@keyframes dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-photo {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    opacity: 0; filter: grayscale(1) contrast(1.1);
    transition: opacity 2.4s ease, filter 3s ease;
}
.hero-slide.drawn .hero-photo { opacity: 1; filter: none; }
.hero::after {
    content: ''; position: absolute; inset: 0;
    z-index: 2; background: linear-gradient(90deg, rgba(14,14,14,.92) 0%, rgba(14,14,14,.7) 38%, rgba(14,14,14,.15) 70%, rgba(14,14,14,.05) 100%), linear-gradient(0deg, rgba(14,14,14,.6), transparent 30%);
}
.hero-grid {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
    background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
    mask-image: radial-gradient(ellipse at 70% 50%, #000 30%, transparent 75%);
    animation: grid-drift 40s linear infinite;
}
@keyframes grid-drift { to { background-position: 120px 120px, 120px 120px, 24px 24px, 24px 24px; } }
.hero-inner { position: relative; z-index: 3; }
.hero-text { max-width: 600px; }
.hero h1 {
    font-family: var(--serif); font-weight: 600;
    font-size: clamp(2.6rem, 5.6vw, 4.8rem); line-height: 1.04;
    margin-bottom: 26px;
}
.hero h1 em { color: var(--red); font-style: italic; }
.hero-text p { color: #cfc8bd; max-width: 520px; font-size: 1.05rem; }
.hero-question { margin-top: 34px; font-family: var(--serif); font-size: 1.35rem; color: var(--white) !important; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; }

/* Szkic architekta prawdziwego budynku (wytrasowany ze zdjęcia): najpierw długie linie konstrukcyjne,
   potem linie "pod linijkę" z przedłużeniami na narożnikach, na końcu luźne drzewo.
   Potem pod szkic wjeżdża zdjęcie w tym samym kadrze; cykl leci w kółko (app.js). */
.sketch { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; transition: opacity 1.6s ease; }
.sketch path {
    fill: none; stroke: #f1ebe1; stroke-linecap: round; stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 1; stroke-dashoffset: 1;
}
.sk-cons path { stroke-width: .8; opacity: .28; }
.sk-main .l1 { stroke-width: 1.9; }
.sk-main .l2 { stroke-width: 1.3; }
.sk-main .l3 { stroke-width: .9; opacity: .8; }
.sk-soft path { stroke-width: .8; opacity: .4; }
.hero-slide.go .sk-cons path { animation: draw 1.8s cubic-bezier(.5, 0, .2, 1) forwards; animation-delay: calc(.2s + var(--i) * 60ms); }
.hero-slide.go .sk-main path { animation: draw .9s cubic-bezier(.4, 0, .2, 1) forwards; animation-delay: calc(.8s + var(--i) * 12ms); }
.hero-slide.go .sk-soft path { animation: draw 1.6s ease-out forwards; animation-delay: calc(2.6s + var(--i) * 25ms); }
.hero-slide.drawn .sketch { opacity: .12; }
/* wymazywanie przed kolejną rundą: kreski znikają od początku do końca */
.hero-slide.erase .sketch path { stroke-dashoffset: 0; animation: erase .8s cubic-bezier(.6, 0, .4, 1) forwards; animation-delay: calc(var(--i) * 3ms); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes erase { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1; } }
@keyframes fade-in { to { opacity: 1; } }

.scroll-down { position: absolute; left: 50%; bottom: 28px; z-index: 3; width: 30px; height: 40px; transform: translateX(-50%); }
.scroll-down span {
    position: absolute; left: 6px; width: 18px; height: 18px;
    border-right: 1.5px solid var(--white); border-bottom: 1.5px solid var(--white);
    transform: rotate(45deg); animation: chevron 2s infinite;
}
.scroll-down span:nth-child(2) { top: 10px; animation-delay: .2s; }
@keyframes chevron { 0% { opacity: 0; transform: rotate(45deg) translate(-6px, -6px); } 50% { opacity: 1; } 100% { opacity: 0; transform: rotate(45deg) translate(6px, 6px); } }

/* --- Pasek zaufania --- */
.trust-bar { background: var(--white); border-bottom: 1px solid var(--line); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 30px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: none; }
.trust-cert.trust-cert-box { display: flex; align-items: center; justify-content: center; width: 150px; background: #fff; border: 1px solid var(--line); }
.trust-cert-box img { width: 118px; height: auto; }
.trust-cert { display: block; height: 96px; width: auto; margin: 0 auto 14px; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.trust-item strong { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.trust-item span { font-size: 0.78rem; color: var(--muted); letter-spacing: .05em; }

/* --- Split (tekst + zdjęcie) --- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-top: 50px; }
.split.reverse .split-text { order: 2; }
.split-media { position: relative; }
.img-frame { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.4; box-shadow: 0 40px 80px -40px rgba(20,20,20,.5); }
.img-frame img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.tilt { transition: transform .6s var(--ease); }
.floating-badge {
    position: absolute; left: -30px; bottom: 40px;
    background: var(--red); color: var(--white);
    padding: 22px 28px; border-radius: 20px;
    box-shadow: 0 20px 40px -15px rgba(217,10,10,.6);
    animation: float 6s ease-in-out infinite;
}
.badge-num { display: block; font-family: var(--serif); font-size: 2.4rem; font-weight: 700; line-height: 1; }
.badge-label { font-size: 0.72rem; letter-spacing: .2em; text-transform: uppercase; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.quote-line { margin-top: 26px !important; padding-left: 20px; border-left: 3px solid var(--red); font-style: italic; }

/* --- Wartości --- */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.value { text-align: center; padding: 30px 20px; border-radius: 20px; transition: background .4s var(--ease), transform .4s var(--ease); }
.value:hover { background: var(--white); transform: translateY(-6px); }
.icon { width: 52px; height: 52px; margin: 0 auto 18px; fill: none; stroke: var(--red); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.value h4 { font-family: var(--serif); font-size: 1.45rem; color: var(--ink); margin-bottom: 8px; font-weight: 600; }
.value p { font-size: 0.92rem; color: var(--muted); }

/* --- Usługi z zakładkami --- */
.tabs { margin-top: 90px; }
.tab-buttons { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; }
.tab-btn {
    font-family: var(--sans); font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
    padding: 14px 30px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
    cursor: pointer; transition: all .35s var(--ease);
}
.tab-btn.active, .tab-btn:hover { background: var(--ink); color: var(--white); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: panel-in .6s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
    position: relative; overflow: hidden;
    background: var(--cream); border-radius: 22px; padding: 36px 30px;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease), background .45s var(--ease);
}
.service-card::before {
    content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--red);
    transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.service-card:hover { transform: translateY(-8px); background: var(--white); box-shadow: 0 30px 60px -30px rgba(20,20,20,.35); }
.service-card:hover::before { transform: scaleX(1); }
.service-no { font-family: var(--serif); font-size: 1rem; color: var(--red); font-weight: 700; }
.service-card h4 { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: var(--ink); margin: 6px 0 10px; line-height: 1.2; }
.service-card p { font-size: .92rem; color: var(--muted); }

/* --- Liczby --- */
.stats { position: relative; padding: 130px 0; overflow: hidden; color: var(--white); }
.stats-bg { position: absolute; inset: -20% 0; background-size: cover; background-position: center; will-change: transform; }
.stats::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,20,.82), rgba(20,20,20,.9)); }
.stat { display: flex; flex-direction: column; align-items: center; }
.stats-inner { position: relative; z-index: 1; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 30px; text-align: center; }
.stat-num { font-family: var(--serif); font-size: clamp(3.4rem, 6vw, 5rem); font-weight: 600; line-height: 1; color: var(--white); }
.stat-plus { font-family: var(--serif); font-size: 1.6rem; color: #ff6b6b; font-style: italic; line-height: 1.3; margin-top: 6px; }
.stat p { color: #bdb5aa; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; margin-top: 4px; }

/* --- Projekty --- */
.projects .section-heading { margin-bottom: 12px; }
.projects .eyebrow { color: #e9b7b7; }
.projectsSwiper { padding-bottom: 50px !important; }
.project-slide {
    display: block; height: 460px; position: relative; overflow: hidden;
    border-radius: var(--radius); text-decoration: none; background: var(--ink-2);
}
.project-slide-bg { position: absolute; inset: 0; background-position: center; background-size: cover; transition: transform 1s var(--ease); }
.project-slide:hover .project-slide-bg { transform: scale(1.08); }
.project-count {
    position: absolute; top: 18px; right: 18px; z-index: 1;
    background: rgba(255,255,255,.92); color: var(--ink);
    font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    padding: 6px 12px; border-radius: 999px;
}
.slide-content {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 80px 28px 28px;
    background: linear-gradient(to top, rgba(10,10,10,.92), rgba(10,10,10,.5) 60%, transparent);
    color: var(--white);
    transform: translateY(14px); transition: transform .6s var(--ease);
}
.project-slide:hover .slide-content { transform: none; }
.slide-top {
    position: absolute; left: 0; right: 0; top: 0; z-index: 1; padding: 22px 120px 60px 26px;
    background: linear-gradient(to bottom, rgba(10,10,10,.75), rgba(10,10,10,.35) 60%, transparent);
    color: var(--white);
}
.slide-top h4 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; line-height: 1.15; }
.slide-quote {
    font-family: var(--serif); font-style: italic; font-size: 1.02rem; line-height: 1.45; color: #f1ebe1;
    margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.slide-quote-navn { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #e9b7b7; margin-bottom: 10px; }
.slide-content h4 { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; line-height: 1.15; margin-bottom: 8px; }
.slide-content p {
    font-size: .85rem; color: #cfc8bd; line-height: 1.55; margin-bottom: 12px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.slide-more { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #ff6b6b; opacity: 0; transition: opacity .5s var(--ease); }
.project-slide:hover .slide-more { opacity: 1; }
.projectsSwiper .swiper-pagination-bullet { background: #6f685f; opacity: 1; width: 8px; height: 8px; transition: width .3s; border-radius: 4px; }
.projectsSwiper .swiper-pagination-bullet-active { background: var(--red); width: 26px; }
.swiper-nav { display: flex; justify-content: center; gap: 12px; }
.swiper-nav button {
    width: 54px; height: 54px; border-radius: 50%;
    border: 1.5px solid #4a453f; background: transparent; color: var(--white);
    font-size: 1.2rem; cursor: pointer; transition: all .35s var(--ease);
}
.swiper-nav button:hover { background: var(--red); border-color: var(--red); }

/* --- Oś czasu --- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.timeline-line { position: absolute; top: 31px; left: 12.5%; right: 12.5%; height: 2px; background: var(--line); }
.timeline-line span { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--red); }
.phase { text-align: center; position: relative; }
.phase-dot {
    width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--cream); border: 2px solid var(--line);
    font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--muted);
    transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
    position: relative; z-index: 1;
}
.phase.lit .phase-dot { background: var(--red); border-color: var(--red); color: var(--white); transform: scale(1.08); }
.phase h4 { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); font-weight: 600; margin-bottom: 6px; }
.phase p { font-size: .9rem; color: var(--muted); max-width: 230px; margin: 0 auto; }

/* --- Referencje --- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; }
.testimonials.to-kolonner { grid-template-columns: repeat(2, 1fr); max-width: 960px; margin-left: auto; margin-right: auto; }
.testimonial { background: var(--cream); border-radius: 22px; padding: 36px 32px; display: flex; flex-direction: column; }
.stars { color: #c7a25a; letter-spacing: 3px; margin-bottom: 16px; }
.testimonial blockquote { font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; color: var(--ink); flex: 1; }
.testimonial figcaption { display: flex; align-items: center; gap: 14px; margin-top: 26px; font-size: .88rem; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--white); font-weight: 700; }

/* --- Partnerzy --- */
.partners { padding: 70px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.partners-title { text-align: center; font-size: .72rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-bottom: 30px; }
.partners-row { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 60px; }
.partners-row img { max-height: 64px; width: auto; transition: filter .4s, opacity .4s, transform .4s; }
.partners-row img:hover { transform: scale(1.05); }

/* --- Kontakt --- */
.contact { background: var(--ink); color: #cfc8bd; overflow: hidden; }
.contact::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 60px 60px;
}
.contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; }
.contact-list { list-style: none; margin-top: 36px; }
.contact-list li { padding: 18px 0; border-bottom: 1px solid #2c2a27; display: flex; flex-direction: column; }
.contact-list span { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: #8f877c; }
.contact-list a { color: var(--white); text-decoration: none; font-family: var(--serif); font-size: 1.5rem; }
.contact-list a:hover { color: #ff6b6b; }
.contact-form { background: var(--white); border-radius: var(--radius); padding: 44px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.field { position: relative; margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field input, .field textarea, .field select {
    width: 100%; padding: 22px 16px 8px; font-family: var(--sans); font-size: .95rem; color: var(--ink);
    border: 1.5px solid var(--line); border-radius: 14px; background: #fbf9f5; outline: none;
    transition: border-color .3s, background .3s; appearance: none;
}
.field select { cursor: pointer; }
.field textarea { resize: vertical; }
.field label {
    position: absolute; left: 17px; top: 16px; font-size: .9rem; color: var(--muted); pointer-events: none;
    transition: top .25s var(--ease), font-size .25s var(--ease), color .25s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--red); background: var(--white); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field .label-fixed { top: 6px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }

/* --- Stopka --- */
.footer { background: #0d0d0d; color: #8f877c; padding: 70px 0 24px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1.5fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: var(--white); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; margin-bottom: 14px; }
.footer a { color: #cfc8bd; text-decoration: none; }
.footer a:hover { color: #ff6b6b; }
.footer-logo { height: 52px; width: auto; border-radius: 6px; margin-bottom: 14px; }
.footer-copy { text-align: center; border-top: 1px solid #222; padding-top: 22px; font-size: .78rem; color: #5f5952; }
.mobile-cta { display: none; }

/* --- Lightbox --- */
.lightbox {
    position: fixed; inset: 0; z-index: 4000; background: rgba(12,12,12,.97);
    display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-top { display: flex; align-items: center; gap: 20px; padding: 16px 24px; color: var(--white); }
#lightbox-title { flex: 1; font-family: var(--serif); font-size: 1.5rem; }
#lightbox-counter { color: #8f877c; font-size: .85rem; letter-spacing: .1em; }
#lightbox-close { background: none; border: none; color: var(--white); font-size: 2.6rem; line-height: 1; cursor: pointer; transition: color .3s, transform .3s; }
#lightbox-close:hover { color: var(--red); transform: rotate(90deg); }
.lightboxSwiper { flex: 1; width: 100%; }
.lightboxSwiper .swiper-slide { display: flex; align-items: center; justify-content: center; padding: 0 70px 30px; }
.lightboxSwiper img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; }
.lightbox .swiper-button-next, .lightbox .swiper-button-prev { color: var(--white); }

/* --- Animacje przy przewijaniu --- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.hero .reveal { transform: translateY(30px); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    .sketch path { stroke-dashoffset: 0; }
    .hero-photo { opacity: 1; filter: none; }
}

/* --- Tablet --- */
@media (max-width: 1100px) {
    .cert-logos { display: none; }
    .nav-links { gap: 22px; }
}

@media (max-width: 960px) {
    .section { padding: 90px 0; }
    .burger { display: block; }
    .nav-right .btn { display: none; }
    .nav-links {
        position: fixed; inset: 0; z-index: -1;
        flex-direction: column; justify-content: center; align-items: center; gap: 28px;
        background: var(--cream);
        clip-path: circle(0 at calc(100% - 40px) 40px);
        transition: clip-path .7s var(--ease);
    }
    .navbar.menu-open .nav-links { clip-path: circle(150% at calc(100% - 40px) 40px); }
    .nav-links a { color: var(--ink) !important; font-family: var(--serif); font-size: 2rem; letter-spacing: 0; text-transform: none; font-weight: 600; }
    .navbar.menu-open { background: transparent; box-shadow: none; }

    .hero { padding-top: 100px; }
    .split, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
    .split.reverse .split-text { order: 0; }
    .values-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .service-grid, .testimonials { grid-template-columns: 1fr 1fr; }
    .trust-inner { grid-template-columns: 1fr 1fr; }
    .trust-item:nth-child(2) { border-right: none; }
    .trust-cert { height: 80px; }
    .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* --- Telefon --- */
@media (max-width: 640px) {
    body { font-size: 15px; padding-bottom: 56px; }
    .section { padding: 70px 0; }
    .hero h1 { font-size: 2.5rem; }
    .hero { align-items: flex-end; }
    .hero::after { background: linear-gradient(0deg, rgba(14,14,14,.95) 0%, rgba(14,14,14,.8) 45%, rgba(14,14,14,.2) 80%); }
    .hero-slides { height: 65%; }
    .hero-dots { right: 20px; top: 90px; bottom: auto; }
    .hero-buttons .btn { flex: 1; padding: 14px 18px; }
    .scroll-down { display: none; }
    .img-frame { aspect-ratio: 4 / 3.6; }
    .floating-badge { left: 14px; bottom: -24px; padding: 14px 20px; }
    .badge-num { font-size: 1.8rem; }
    .values-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .value { padding: 20px 8px; }
    .service-grid, .testimonials, .testimonials.to-kolonner { grid-template-columns: 1fr; }
    .tab-buttons { gap: 6px; }
    .tab-btn { padding: 12px 16px; font-size: .68rem; letter-spacing: .1em; }
    .stats { padding: 90px 0; }
    .project-slide { height: 380px; }
    .timeline { grid-template-columns: 1fr; gap: 34px; padding-left: 10px; }
    .timeline-line { top: 0; bottom: 0; left: 41px; right: auto; width: 2px; height: auto; }
    .timeline-line span { width: 100% !important; height: var(--fill, 0%); bottom: auto; }
    .phase { display: grid; grid-template-columns: 64px 1fr; column-gap: 20px; text-align: left; }
    .phase-dot { grid-row: span 2; margin: 0; }
    .phase p { margin: 0; max-width: none; }
    .contact-form { padding: 28px 20px; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-logo { margin: 0 auto 14px; }
    .partners-row { gap: 30px; }
    .partners-row img { max-height: 44px; }
    .lightboxSwiper .swiper-slide { padding: 0 10px 20px; }
    .lightbox .swiper-button-next, .lightbox .swiper-button-prev { display: none; }

    .mobile-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500; box-shadow: 0 -6px 20px rgba(0,0,0,.2); }
    .mobile-cta a { flex: 1; text-align: center; padding: 17px 10px; font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--white); }
    .mobile-cta-call { background: var(--red); }
    .mobile-cta-mail { background: var(--ink); }
}
