:root {
    --orange: #db861f;
    --orange-dark: #bd6e13;
    --orange-light: #f4e0c6;
    --ink: #242629;
    --text: #5e6268;
    --muted: #f4f4f2;
    --line: #e5e2dd;
    --white: #fff;
    --shadow: 0 18px 50px rgba(35, 30, 24, .10);
    --radius: 14px;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.68;
}
body.no-scroll, body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1.2rem; }
h1, h2, h3 { margin: 0 0 1rem; line-height: 1.18; letter-spacing: -.025em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.8rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.75rem); }
h3 { font-size: 1.25rem; }

.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.section { padding: 88px 0; }
.section-muted { background: var(--muted); }
.section-accent { background: var(--orange); color: var(--white); }
.section-label, .eyebrow {
    margin-bottom: .8rem;
    color: var(--orange-dark);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.section-accent .section-label, .hero .eyebrow { color: #ffe6c2; }
.centered { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-heading { margin-bottom: 40px; }
.section-heading > p:last-child { color: var(--text); }

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 10px 14px; transform: translateY(-150%); background: #000; color: #fff; }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.site-header { position: sticky; top: 0; z-index: 100; background: var(--orange); box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.header-inner { min-height: 106px; display: flex; align-items: center; justify-content: space-between; gap: 34px; }
.brand { display: flex; flex-direction: column; color: #fff; text-decoration: none; line-height: 1.35; }
.brand-main { font-size: 1rem; }
.brand strong { font-size: 1.05rem; }
.brand span:last-child { font-size: .92rem; opacity: .95; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { position: relative; color: rgba(255,255,255,.92); font-size: .96rem; text-decoration: none; white-space: nowrap; }
.main-nav a::after { content: ''; position: absolute; left: 0; bottom: -10px; width: 100%; height: 2px; transform: scaleX(0); transform-origin: left; background: #fff; transition: .22s; }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.menu-toggle { display: none; width: 46px; height: 42px; padding: 10px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; width: 100%; height: 2px; margin: 5px 0; background: #fff; }

.hero { position: relative; min-height: 610px; display: grid; align-items: center; overflow: hidden; color: #fff; background: url('../images/hero.jpg') center/cover no-repeat; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,18,18,.78) 0%, rgba(18,18,18,.54) 48%, rgba(18,18,18,.18) 100%); }
.hero-content { position: relative; z-index: 1; padding: 90px 0; }
.hero-content h1 { max-width: 820px; }
.hero-lead { max-width: 720px; font-size: clamp(1.15rem, 2vw, 1.45rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 12px 24px; border: 1px solid transparent; border-radius: 999px; font-weight: 750; text-decoration: none; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0,0,0,.16); }
.button-primary { background: var(--orange); color: #fff; }
.button-primary:hover { background: var(--orange-dark); }
.button-light { border-color: rgba(255,255,255,.8); background: rgba(255,255,255,.12); color: #fff; backdrop-filter: blur(6px); }
.button-dark { background: var(--ink); color: #fff; }
.text-link { color: var(--orange-dark); font-weight: 750; text-decoration: none; }

.page-hero { padding: 84px 0 74px; color: #fff; background: linear-gradient(120deg, #2d2e31, #53565c); }
.page-hero p { max-width: 780px; font-size: 1.1rem; color: rgba(255,255,255,.82); }
.page-hero-light { color: var(--ink); background: linear-gradient(135deg, #f6f3ee, #eee7dc); }
.page-hero-light p { color: var(--text); }

.about-grid { display: grid; grid-template-columns: minmax(300px, .78fr) 1.22fr; gap: 64px; align-items: center; }
.portrait-card { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.portrait-card img { width: 100%; height: auto; }
.about-content p { color: var(--text); }
.contact-intro { color: var(--ink) !important; font-size: 1.16rem; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.feature-card p { color: var(--text); }
.feature-number { display: inline-block; margin-bottom: 20px; color: var(--orange); font-size: .78rem; font-weight: 800; letter-spacing: .12em; }

.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 42px; border-radius: var(--radius); background: #252629; color: #fff; }
.cta-panel p { color: rgba(255,255,255,.72); }
.cta-panel .section-label { color: #f8bb73; }

.offer-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.offer-column { padding: 32px; border-top: 4px solid var(--orange); background: #fff; box-shadow: var(--shadow); }
.offer-column h2 { font-size: 1.45rem; }
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 8px 0 8px 26px; color: var(--text); border-bottom: 1px solid #eee; }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--orange); font-weight: 900; }

.split-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.process-list { margin: 0; padding: 0; list-style: none; }
.process-list li { display: grid; grid-template-columns: 50px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid #ddd; }
.process-list li:first-child { padding-top: 0; }
.process-list span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; }
.process-list p { margin: 4px 0 0; color: var(--text); }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery-item { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: #ddd; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery-item:hover img { transform: scale(1.045); }
.cta-inline { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-inline p { max-width: 700px; color: rgba(255,255,255,.85); }

.cert-intro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.credential-card { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); }
.credential-card > span { color: var(--orange); font-size: 1.5rem; font-weight: 900; }
.credential-card h2 { margin-top: 14px; font-size: 1.38rem; }
.credential-card p { color: var(--text); }
.certificate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.certificate-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.certificate-card img { width: 100%; height: 420px; object-fit: contain; padding: 16px; background: #f7f7f7; }
.certificate-card span { padding: 18px 20px; font-weight: 720; }
.archive-image { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.archive-image img { width: 100%; }

.clients-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.client-card { min-height: 180px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.client-card span { color: var(--orange); font-weight: 900; }
.client-card h2 { margin-top: 30px; font-size: 1.34rem; }
.two-column-text { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; }
.two-column-text p { color: var(--text); }

.contact-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 36px; align-items: start; }
.contact-card, .form-card { padding: 38px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.contact-card { background: #26272a; color: #fff; }
.contact-card .section-label { color: #f4b86f; }
.contact-list { margin: 30px 0; }
.contact-list > div { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.13); }
.contact-list dt { margin-bottom: 4px; color: rgba(255,255,255,.6); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.contact-list dd { margin: 0; }
.contact-list a { color: #fff; text-decoration: none; }
.area-note { color: rgba(255,255,255,.7); }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.contact-form label { display: block; margin-bottom: 18px; color: #3b3d40; font-size: .92rem; font-weight: 680; }
.contact-form label > span { color: var(--orange-dark); }
.contact-form input, .contact-form textarea { width: 100%; margin-top: 7px; padding: 13px 14px; border: 1px solid #d7d5d1; border-radius: 8px; background: #fafafa; color: var(--ink); font: inherit; }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid rgba(219,134,31,.18); border-color: var(--orange); }
.checkbox-label { display: grid !important; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-weight: 400 !important; }
.checkbox-label input { width: 18px; height: 18px; margin: 3px 0 0; }
.checkbox-label span { color: var(--text) !important; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-message { margin-bottom: 22px; padding: 14px 16px; border-radius: 8px; }
.form-message.success { background: #eaf6ec; color: #23602e; }
.form-message.error { background: #fdebea; color: #8b2824; }
.map-section iframe { display: block; width: 100%; height: 440px; border: 0; }

.legal-content { max-width: 860px; }
.legal-content h2 { margin-top: 2rem; font-size: 1.5rem; }
.legal-content p { color: var(--text); }

.site-footer { background: #5b5c5e; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 60px; padding: 58px 0; }
.footer-grid h2 { font-size: 1rem; letter-spacing: .04em; }
.footer-grid p { color: rgba(255,255,255,.75); }
.footer-grid a { color: #fff; text-decoration: none; }
.footer-kicker { font-size: .76rem; font-weight: 800; letter-spacing: .16em; }
.footer-phone { font-size: 1.35rem; font-weight: 800; }
.footer-bottom { padding: 18px 0; background: var(--orange); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: .86rem; }
.footer-bottom a { color: #fff; }

.lightbox { position: fixed; inset: 0; z-index: 999; display: none; align-items: center; justify-content: center; padding: 50px; background: rgba(0,0,0,.88); }
.lightbox.visible { display: flex; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 88vh; object-fit: contain; }
.lightbox-close { position: fixed; top: 18px; right: 24px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: #fff; color: #111; font-size: 2rem; cursor: pointer; }

@media (max-width: 980px) {
    .header-inner { min-height: 84px; flex-wrap: wrap; padding-block: 12px; }
    .main-nav { width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 0; }
    .js .menu-toggle { display: block; z-index: 110; }
    .js .main-nav { position: fixed; inset: 84px 0 0; z-index: 105; display: none; width: auto; padding: 28px 24px; background: #c97516; }
    .js .main-nav.open { display: flex; }
    .main-nav a { padding: 15px 5px; border-bottom: 1px solid rgba(255,255,255,.18); font-size: 1.08rem; }
    .main-nav a::after { display: none; }
    .hero { min-height: 520px; }
    .about-grid, .split-panel, .contact-layout, .two-column-text { grid-template-columns: 1fr; gap: 38px; }
    .portrait-card { max-width: 620px; }
    .feature-grid, .offer-columns, .cert-intro-grid, .certificate-grid, .clients-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .container { width: min(100% - 28px, var(--container)); }
    .section { padding: 62px 0; }
    .brand-main { font-size: .93rem; }
    .brand strong { font-size: .98rem; }
    .brand span:last-child { font-size: .82rem; }
    .hero { min-height: 560px; background-position: 64% center; }
    .hero-overlay { background: rgba(20,20,20,.68); }
    .page-hero { padding: 62px 0 54px; }
    .feature-grid, .offer-columns, .cert-intro-grid, .certificate-grid, .clients-grid, .gallery-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
    .cta-panel, .cta-inline { align-items: flex-start; flex-direction: column; padding: 30px; }
    .contact-card, .form-card { padding: 26px; }
    .certificate-card img { height: 360px; }
    .footer-bottom-inner { align-items: flex-start; flex-direction: column; }
    .lightbox { padding: 20px; }
}

/* Rozwijane menu Oferta */
.nav-dropdown { position: relative; }
.nav-dropdown-heading { display: flex; align-items: center; gap: 7px; }
.submenu-toggle { display: grid; width: 24px; height: 24px; place-items: center; padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; }
.submenu-toggle span { width: 8px; height: 8px; transform: translateY(-2px) rotate(45deg); border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transition: transform .2s; }
.nav-dropdown.submenu-open .submenu-toggle span { transform: translateY(2px) rotate(225deg); }
.submenu { position: absolute; top: calc(100% + 18px); left: -18px; z-index: 120; min-width: 245px; padding: 10px; visibility: hidden; transform: translateY(8px); border-radius: 10px; background: #fff; box-shadow: 0 18px 45px rgba(0,0,0,.18); opacity: 0; transition: opacity .18s, transform .18s, visibility .18s; }
.submenu::before { content: ''; position: absolute; top: -18px; left: 0; width: 100%; height: 18px; }
.submenu a { display: block; padding: 11px 13px; border-radius: 7px; color: var(--ink); font-size: .92rem; white-space: nowrap; }
.submenu a::after { display: none; }
.submenu a:hover, .submenu a.active { background: var(--orange-light); color: var(--orange-dark); }
.nav-dropdown:hover .submenu, .nav-dropdown:focus-within .submenu, .nav-dropdown.submenu-open .submenu { visibility: visible; transform: translateY(0); opacity: 1; }

/* Wymagane dokumenty */
.documents-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; align-items: start; }
.document-card { padding: 32px; border-top: 4px solid var(--orange); border-radius: 0 0 var(--radius) var(--radius); background: #fff; box-shadow: var(--shadow); }
.document-card h2 { font-size: 1.38rem; }
.document-card-wide { grid-column: 1 / -1; }
.document-list { margin: 0; padding-left: 1.25rem; color: var(--text); }
.document-list li { margin: 9px 0; padding-left: 5px; }
.document-list li::marker { color: var(--orange); }
.gallery-empty { padding: 24px; border: 1px dashed #cfc9c0; border-radius: 10px; background: #fff; color: var(--text); text-align: center; }

/* Lightbox z nawigacją */
.lightbox-content { display: flex; max-width: calc(100vw - 180px); max-height: 92vh; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.lightbox-counter { min-height: 1.5em; margin: 0; color: rgba(255,255,255,.82); font-weight: 700; }
.lightbox-nav { position: fixed; top: 50%; width: 58px; height: 58px; transform: translateY(-50%); border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(255,255,255,.94); color: #111; font-size: 2.7rem; line-height: 1; cursor: pointer; transition: transform .18s, background .18s; }
.lightbox-nav:hover { transform: translateY(-50%) scale(1.06); background: #fff; }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-nav[hidden] { display: none; }

@media (max-width: 980px) {
    .nav-dropdown { width: 100%; }
    .nav-dropdown-heading { justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.18); }
    .nav-dropdown-heading > a { flex: 1; border-bottom: 0; }
    .submenu-toggle { width: 50px; height: 50px; flex: 0 0 50px; }
    .submenu { position: static; display: none; min-width: 0; padding: 4px 0 10px 20px; visibility: visible; transform: none; border-radius: 0; background: transparent; box-shadow: none; opacity: 1; transition: none; }
    .submenu::before { display: none; }
    .nav-dropdown:hover .submenu, .nav-dropdown:focus-within .submenu { display: none; }
    .nav-dropdown.submenu-open .submenu { display: block; }
    .submenu a { padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,.14); border-radius: 0; color: rgba(255,255,255,.9); font-size: 1rem; white-space: normal; }
    .submenu a:hover, .submenu a.active { background: rgba(255,255,255,.12); color: #fff; }
    .documents-grid { grid-template-columns: 1fr; }
    .document-card-wide { grid-column: auto; }
}

@media (max-width: 640px) {
    .lightbox { padding: 68px 14px 22px; }
    .lightbox-content { max-width: 100%; }
    .lightbox img { max-width: calc(100vw - 28px); max-height: calc(100vh - 145px); }
    .lightbox-nav { top: auto; bottom: 20px; width: 48px; height: 48px; transform: none; font-size: 2.2rem; }
    .lightbox-nav:hover { transform: scale(1.04); }
    .lightbox-prev { left: 18px; }
    .lightbox-next { right: 18px; }
    .lightbox-counter { margin-bottom: 4px; }
    .document-card { padding: 26px; }
}
