:root {
    --bg: #0b0f14;
    --bg-2: #101720;
    --surface: #ffffff;
    --surface-soft: #f4f6f8;
    --surface-dark: rgba(11, 15, 20, .84);
    --text: #111820;
    --text-muted: #5c6673;
    --text-light: #f6f8fb;
    --line: rgba(255,255,255,.15);
    --line-dark: rgba(17, 24, 32, .12);
    --accent: #54c3ff;
    --accent-2: #cbd7e5;
    --accent-dark: #0c83bd;
    --shadow: 0 24px 80px rgba(0,0,0,.18);
    --radius-lg: 30px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--surface);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.05rem; }
h1, h2, h3 { margin: 0; line-height: 1.06; letter-spacing: -.04em; }
h1 { font-size: clamp(2.45rem, 5.7vw, 5.35rem); font-weight: 900; }
.hero h1 { font-size: clamp(2.08rem, 4.65vw, 4.45rem); }
h2 { font-size: clamp(2rem, 4vw, 3.55rem); font-weight: 850; }
h3 { font-size: 1.18rem; font-weight: 800; letter-spacing: -.025em; }

.container { width: min(calc(100% - 36px), var(--container)); margin: 0 auto; }
.container.narrow { width: min(calc(100% - 36px), 860px); }
.section { padding: clamp(70px, 9vw, 128px) 0; }
.section-dark { color: var(--text-light); background: var(--bg); position: relative; overflow: hidden; }
.section-soft { background: var(--surface-soft); }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 1000; background: #fff; color: #000; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 10, 14, .78);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,.1);
    color: #fff;
    transition: background .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { background: rgba(7, 10, 14, .94); box-shadow: 0 16px 45px rgba(0,0,0,.22); }
.nav-wrap { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 260px; }
.brand-logo { width: 108px; height: 68px; object-fit: contain; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: #000; }
.brand-text { display: grid; gap: 2px; }
.brand-text strong { font-size: 1.08rem; letter-spacing: .14em; }
.brand-text small { font-size: .68rem; font-weight: 800; letter-spacing: .11em; color: rgba(255,255,255,.72); }
.main-nav { display: flex; align-items: center; gap: 22px; font-weight: 750; font-size: .94rem; }
.main-nav a { color: rgba(255,255,255,.78); transition: color .18s ease; }
.main-nav a:hover, .main-nav a.is-active { color: #fff; }
.nav-phone { padding: 12px 16px; border: 1px solid rgba(84,195,255,.42); border-radius: 999px; color: #fff !important; background: rgba(84,195,255,.12); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.16); background: transparent; color: #fff; border-radius: 12px; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 6px 0; border-radius: 10px; }

.hero { min-height: calc(100vh - 94px); display: grid; align-items: center; padding: clamp(68px, 8vw, 112px) 0; }
.hero-bg { position: absolute; inset: 0; background: url('../img/hero-lakier.webp') center/cover no-repeat; transform: scale(1.01); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(4,6,9,.95) 0%, rgba(5,8,12,.88) 36%, rgba(8,11,16,.45) 68%, rgba(8,11,16,.72) 100%), radial-gradient(circle at 68% 22%, rgba(84,195,255,.24), transparent 34%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.35fr) 360px; gap: 54px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--accent); font-size: .78rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 34px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow.dark { color: var(--accent-dark); }
.hero .lead { max-width: 760px; margin-top: 26px; color: rgba(255,255,255,.78); font-size: clamp(1.04rem, 1.5vw, 1.25rem); }
.hero-actions, .center-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 34px; }
.hero-actions.small { margin-top: 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 850; border: 1px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, #72d2ff, #1597d2); color: #051018; box-shadow: 0 14px 40px rgba(84,195,255,.24); }
.btn-secondary { color: #fff; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.08); }
.btn-outline { border-color: rgba(17,24,32,.16); color: var(--text); background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.call-strip { margin-top: 28px; display: inline-flex; align-items: center; gap: 16px; padding: 12px 16px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.08); border-radius: 999px; color: rgba(255,255,255,.78); }
.call-strip a { color: #fff; font-weight: 900; white-space: nowrap; }
.hero-card { position: relative; padding: 28px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,.06)); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.hero-logo { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 22px; border: 1px solid rgba(255,255,255,.15); }
.hero-card p { margin: 18px 0; color: rgba(255,255,255,.78); font-weight: 900; letter-spacing: .12em; font-size: .8rem; }
.hero-contact { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); }
.hero-contact strong { font-size: 1.1rem; }
.hero-contact a { color: #fff; font-weight: 850; }

.intro-grid { display: grid; grid-template-columns: .82fr 1.55fr; gap: 50px; align-items: start; }
.section-heading { max-width: 760px; }
.section-heading.centered { text-align: center; margin: 0 auto 42px; }
.section-heading.centered .eyebrow { justify-content: center; }
.section-heading p { margin-top: 18px; color: var(--text-muted); font-size: 1.06rem; }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.benefit-card, .service-card, .step, .region-card, .compare-card, .gallery-item { border: 1px solid var(--line-dark); background: #fff; border-radius: var(--radius-md); box-shadow: 0 18px 60px rgba(18,28,38,.08); }
.benefit-card { padding: 30px; }
.benefit-card .icon { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 28px; border-radius: 16px; color: var(--accent-dark); background: rgba(84,195,255,.12); font-weight: 900; }
.benefit-card p, .service-card p, .step p, .region-card p { color: var(--text-muted); margin-top: 12px; }

.before-after-section { background: linear-gradient(180deg, #f6f8fb 0%, #fff 100%); }
.realizations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.compare-card { overflow: hidden; }
.compare-images { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #111820; }
.compare-images figure, .before-after-large figure { margin: 0; position: relative; overflow: hidden; background: #0b0f14; }
.compare-images img { width: 100%; height: 310px; object-fit: cover; transition: transform .5s ease; }
.compare-card:hover img { transform: scale(1.035); }
.compare-images figcaption, .before-after-large figcaption { position: absolute; left: 14px; top: 14px; padding: 7px 11px; border-radius: 999px; background: rgba(0,0,0,.72); color: #fff; font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.compare-body { padding: 22px; }
.compare-body p { margin-top: 9px; color: var(--text-muted); }
.center-actions { justify-content: center; margin-top: 36px; }

.method::before { content: ''; position: absolute; width: 520px; height: 520px; right: -160px; top: -180px; background: radial-gradient(circle, rgba(84,195,255,.22), transparent 68%); }
.method-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .95fr 1.05fr; gap: 58px; align-items: center; }
.method-visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 560px; box-shadow: var(--shadow); }
.method-visual img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; }
.visual-badge { position: absolute; left: 24px; bottom: 24px; padding: 11px 15px; border-radius: 999px; background: rgba(255,255,255,.9); color: #111820; font-weight: 900; }
.method-content p { color: rgba(255,255,255,.76); font-size: 1.04rem; }
.method-list { display: grid; gap: 12px; margin-top: 28px; }
.method-list div { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; background: rgba(255,255,255,.06); }
.method-list strong { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(84,195,255,.18); color: var(--accent); }
.method-list span { color: rgba(255,255,255,.86); font-weight: 650; }

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.service-card { padding: 28px; }
.service-card::before { content: ''; display: block; width: 44px; height: 4px; border-radius: 10px; background: linear-gradient(90deg, var(--accent), var(--accent-dark)); margin-bottom: 22px; }

.process-grid { display: grid; grid-template-columns: .85fr 1.3fr; gap: 58px; align-items: start; }
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.step { padding: 26px; position: relative; overflow: hidden; }
.step span { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #111820; color: #fff; font-weight: 900; margin-bottom: 22px; }

.region-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.region-card { padding: 32px; background: linear-gradient(140deg, #fff, #eef7fc); }

.cta { padding: clamp(70px, 8vw, 105px) 0; }
.cta-box { display: grid; grid-template-columns: 1.3fr auto; gap: 34px; align-items: center; padding: clamp(28px, 5vw, 54px); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); box-shadow: var(--shadow); }
.cta-box p { color: rgba(255,255,255,.75); margin-top: 14px; }
.cta-actions { display: grid; gap: 12px; }

.page-hero { padding: clamp(76px, 9vw, 120px) 0; background: radial-gradient(circle at 80% 20%, rgba(84,195,255,.22), transparent 30%), linear-gradient(135deg, #080b0f, #151c26); }
.page-hero h1 { font-size: clamp(2.35rem, 5vw, 4.6rem); }
.page-hero p { color: rgba(255,255,255,.74); font-size: 1.12rem; margin-top: 18px; }
.gallery-hero { background-image: linear-gradient(110deg, rgba(5,7,10,.95), rgba(8,12,18,.76)), url('../img/auto-po-naprawie.webp'); background-size: cover; background-position: center; }
.gallery-list { display: grid; gap: 42px; }
.gallery-item { padding: clamp(18px, 3vw, 28px); }
.gallery-item-head { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.gallery-item-head p { color: var(--text-muted); max-width: 780px; margin-top: 10px; }
.gallery-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 160px; }
.gallery-meta span { padding: 7px 12px; border-radius: 999px; background: var(--surface-soft); color: var(--text-muted); font-weight: 750; font-size: .84rem; }
.before-after-large { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.before-after-large img { width: 100%; height: 560px; object-fit: cover; border-radius: 18px; }
.before-after-large figure { border-radius: 18px; }
.empty-state { padding: 38px; border: 1px dashed var(--line-dark); border-radius: var(--radius-md); text-align: center; color: var(--text-muted); }

.legal .prose { font-size: 1.05rem; }
.prose h2 { font-size: 1.55rem; margin-top: 34px; margin-bottom: 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-muted); }
.prose a { color: var(--accent-dark); font-weight: 750; }

.site-footer { background: #080b0f; color: rgba(255,255,255,.74); padding: 54px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 40px; }
.footer-brand { color: #fff; font-size: 1.5rem; font-weight: 900; letter-spacing: .16em; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer a { color: #fff; font-weight: 750; }
.footer-bottom { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .9rem; }
.mobile-call { display: none; position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 90; min-height: 54px; border-radius: 999px; align-items: center; justify-content: center; background: linear-gradient(135deg, #72d2ff, #1597d2); color: #051018; font-weight: 900; box-shadow: 0 16px 46px rgba(0,0,0,.32); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }

@media (max-width: 1060px) {
    .hero-grid, .intro-grid, .method-grid, .process-grid, .region-grid, .cta-box { grid-template-columns: 1fr; }
    .hero-card { max-width: 420px; }
    .benefits-grid, .realizations-grid { grid-template-columns: 1fr; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .method-visual, .method-visual img { min-height: 420px; }
    .before-after-large img { height: 430px; }
}

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .main-nav { position: fixed; inset: 82px 18px auto 18px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 14px; border: 1px solid rgba(255,255,255,.14); background: rgba(7,10,14,.98); border-radius: 22px; box-shadow: var(--shadow); }
    .main-nav.is-open { display: flex; }
    .main-nav a { padding: 14px 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
    .main-nav a:last-child { border-bottom: 0; }
    .brand { min-width: 0; }
    .brand-logo { width: 76px; height: 52px; }
    .brand-text strong { font-size: .95rem; }
    .brand-text small { font-size: .58rem; }
    .nav-wrap { min-height: 78px; }
    .hero { min-height: auto; }
    .call-strip { align-items: flex-start; flex-direction: column; border-radius: 20px; }
    .steps, .service-grid, .before-after-large { grid-template-columns: 1fr; }
    .gallery-item-head { flex-direction: column; }
    .gallery-meta { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
    .before-after-large img { height: 420px; }
    .footer-grid { grid-template-columns: 1fr; }
    .mobile-call { display: flex; }
    .site-footer { padding-bottom: 92px; }
}

@media (max-width: 560px) {
    .section { padding: 62px 0; }
    .hero-actions, .center-actions { align-items: stretch; flex-direction: column; }
    .btn { width: 100%; }
    .hero-card { padding: 18px; }
    .benefit-card, .service-card, .step, .region-card { padding: 22px; }
    .compare-images { grid-template-columns: 1fr; }
    .compare-images img { height: 360px; }
    .before-after-large img { height: 360px; }
}
