*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --graphite: #3D4149;
    --red: #E05A52;
    --blue: #7BAFD4;
    --lightgray: #E8E8E8;
    --offwhite: #FAFAFA;
    --white: #ffffff;
    --border: 2.5px solid var(--graphite);
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--offwhite); color: var(--graphite); }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* NAV */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: var(--white);
    border-bottom: var(--border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 48px; height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
    width: 36px; height: 36px; border: 2px solid var(--graphite);
    display: grid; grid-template-columns: 40% 60%; grid-template-rows: 55% 45%; overflow: hidden;
}
.lm-gray1 { background: #D4D4D4; }
.lm-red   { background: var(--red); }
.lm-blue  { background: var(--blue); }
.lm-gray2 { background: #E8E8E8; }
.logo-text { font-size: 18px; font-weight: 600; letter-spacing: -0.5px; color: var(--graphite); }
.site-nav ul { list-style: none; display: flex; gap: 36px; }
.site-nav a { font-size: 14px; font-weight: 400; letter-spacing: 0.3px; color: var(--graphite); transition: color 0.15s; }
.site-nav a:hover { color: var(--red); }
.btn-primary {
    background: var(--graphite); color: var(--white);
    padding: 14px 28px; font-size: 14px; font-weight: 600;
    border: var(--border); cursor: pointer; letter-spacing: 0.3px;
    transition: background 0.15s; display: inline-block;
}
.btn-primary:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.btn-outline {
    background: transparent; color: var(--graphite);
    padding: 14px 28px; font-size: 14px; font-weight: 500;
    border: var(--border); cursor: pointer; letter-spacing: 0.3px;
    transition: all 0.15s; display: inline-block;
}
.btn-outline:hover { background: var(--lightgray); }
.nav-cta {
    background: var(--graphite); color: var(--white) !important;
    padding: 8px 20px; font-weight: 500; border: var(--border);
    font-size: 14px; transition: background 0.15s;
}
.nav-cta:hover { background: var(--red) !important; border-color: var(--red); }

/* HERO */
.hero {
    margin-top: 64px; min-height: calc(100vh - 64px);
    display: grid; grid-template-columns: 1fr 1fr;
    border-bottom: var(--border); overflow: hidden;
}
.hero-left {
    padding: 80px 56px; display: flex; flex-direction: column; justify-content: center;
    border-right: var(--border); background: var(--white);
}
.hero-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--red); margin-bottom: 24px; }
.hero-headline { font-size: clamp(36px, 4.5vw, 58px); font-weight: 700; line-height: 1.05; letter-spacing: -2px; color: var(--graphite); margin-bottom: 28px; }
.hero-headline span { color: var(--red); }
.hero-sub { font-size: 17px; font-weight: 300; line-height: 1.65; color: #5a5f6b; max-width: 420px; margin-bottom: 44px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-right { position: relative; background: var(--lightgray); overflow: hidden; }
.mondrian-hero {
    position: absolute; inset: 0;
    display: grid; grid-template-columns: 38% 2.5px 1fr; grid-template-rows: 45% 2.5px 1fr;
}
.mh-1 { background: var(--white); }
.mh-2 { background: var(--red); }
.mh-v { background: var(--graphite); grid-column: 2; grid-row: 1 / 4; }
.mh-h { background: var(--graphite); grid-column: 1 / 4; grid-row: 2; }
.mh-3 { background: var(--blue); }
.mh-4 { background: var(--lightgray); }
.hero-label {
    position: absolute; bottom: 32px; left: 32px;
    font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
    background: var(--white); padding: 8px 14px; border: var(--border); color: var(--graphite);
}

/* STATS */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: var(--border); }
.stat { padding: 40px 48px; border-right: var(--border); }
.stat:last-child { border-right: none; }
.stat-accent { width: 24px; height: 3px; background: var(--red); margin-bottom: 16px; }
.stat-num { font-size: 48px; font-weight: 700; line-height: 1; letter-spacing: -2px; }
.stat-num sup { font-size: 24px; vertical-align: top; margin-top: 6px; display: inline-block; }
.stat-label { font-size: 13px; color: #7a7f8a; margin-top: 8px; }

/* SEKCJE */
.section { padding: 96px 48px; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 56px; border-bottom: var(--border); padding-bottom: 24px; }
.section-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.section-title { font-size: 36px; font-weight: 700; letter-spacing: -1.5px; line-height: 1.1; }

/* OFERTA */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); }
.offer-card { border: var(--border); border-right: none; padding: 40px 32px; transition: background 0.15s; }
.offer-card:last-child { border-right: var(--border); }
.offer-card:hover { background: var(--white); }
.offer-icon { width: 48px; height: 48px; margin-bottom: 24px; border: var(--border); display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.offer-icon svg { width: 24px; height: 24px; stroke: var(--graphite); fill: none; stroke-width: 1.5; transition: stroke 0.15s; }
.offer-card:hover .offer-icon { background: var(--red); border-color: var(--red); }
.offer-card:hover .offer-icon svg { stroke: white; }
.offer-title { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 12px; }
.offer-desc { font-size: 14px; line-height: 1.7; color: #5a5f6b; }
.offer-tag { display: inline-block; margin-top: 20px; font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; border: 1.5px solid var(--lightgray); padding: 5px 10px; color: #9a9fa8; }

/* REALIZACJE */
.realizacje-section { background: var(--graphite); padding: 96px 48px; }
.realizacje-section .section-eyebrow { color: var(--blue); }
.realizacje-section .section-title { color: var(--white); }
.realizacje-section .section-header { border-bottom: 2.5px solid rgba(255,255,255,0.15); }

/* Siatka realizacji z WordPressa */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
}
.gallery-grid.has-one   { grid-template-columns: 1fr; }
.gallery-grid.has-two   { grid-template-columns: 1fr 1fr; }
.gallery-grid.has-four  { grid-template-columns: repeat(2, 1fr); }
.gallery-grid.has-five,
.gallery-grid.has-many  {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 280px 280px;
}
.gallery-grid.has-five .realizacja-item:first-child,
.gallery-grid.has-many .realizacja-item:first-child { grid-row: 1 / 3; }

.realizacja-item {
    position: relative; overflow: hidden;
    display: flex; align-items: flex-end; padding: 20px;
    min-height: 280px; cursor: pointer;
    background: #2C2F35;
}
.realizacja-item img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.realizacja-item:hover img { transform: scale(1.04); }
.realizacja-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 60%);
}
.realizacja-num { position: absolute; top: 20px; right: 20px; z-index: 2; font-size: 10px; font-weight: 700; letter-spacing: 1px; color: rgba(255,255,255,0.4); }
.realizacja-label {
    position: relative; z-index: 2;
    font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
    color: rgba(255,255,255,0.9); background: rgba(0,0,0,0.3); padding: 6px 12px;
}
.realizacja-miasto { font-size: 10px; font-weight: 400; color: rgba(255,255,255,0.6); margin-left: 4px; }

/* Placeholder gdy brak zdjęć */
.gallery-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 80px 40px; text-align: center;
    border: 2px dashed rgba(255,255,255,0.15);
}
.gallery-placeholder p { color: rgba(255,255,255,0.4); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.gallery-placeholder a { border-color: rgba(255,255,255,0.3); color: white; }

/* PROCES */
.proces-steps { display: grid; grid-template-columns: repeat(4, 1fr); }
.step { padding: 40px 32px; border: var(--border); border-right: none; position: relative; }
.step:last-child { border-right: var(--border); }
.step-accent { position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.step:nth-child(1) .step-accent { background: var(--red); }
.step:nth-child(2) .step-accent { background: var(--blue); }
.step:nth-child(3) .step-accent { background: var(--graphite); }
.step:nth-child(4) .step-accent { background: var(--red); }
.step-num { font-size: 52px; font-weight: 700; letter-spacing: -3px; color: var(--lightgray); line-height: 1; margin-bottom: 16px; }
.step-title { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.step-desc { font-size: 13px; line-height: 1.7; color: #7a7f8a; }

/* OPINIE */
.opinie-section { padding: 96px 48px; background: var(--white); border-bottom: var(--border); }
.opinie-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.opinia { padding: 36px 32px; border: var(--border); border-right: none; }
.opinia:last-child { border-right: var(--border); }
.opinia-stars { color: var(--red); font-size: 16px; letter-spacing: 2px; margin-bottom: 16px; }
.opinia-text { font-size: 14px; line-height: 1.75; color: #5a5f6b; margin-bottom: 20px; font-style: italic; }
.opinia-autor { font-size: 13px; font-weight: 600; }
.opinia-miasto { font-size: 11px; color: #9a9fa8; letter-spacing: 1px; text-transform: uppercase; margin-top: 2px; }

/* KONTAKT */
.kontakt-section { display: grid; grid-template-columns: 1fr 1fr; border-top: var(--border); }
.kontakt-left { padding: 96px 56px; border-right: var(--border); background: var(--red); }
.kontakt-left .section-eyebrow { color: rgba(255,255,255,0.7); }
.kontakt-left .section-title { color: var(--white); font-size: 40px; margin-bottom: 20px; }
.kontakt-left p { color: rgba(255,255,255,0.8); font-size: 16px; line-height: 1.7; }
.contact-info { margin-top: 40px; }
.contact-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.contact-icon { width: 40px; height: 40px; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon svg { width: 18px; height: 18px; stroke: white; fill: none; stroke-width: 2; }
.contact-text { font-size: 15px; font-weight: 500; color: white; }
.contact-sub { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 2px; }
.kontakt-right { padding: 96px 56px; background: var(--white); }
.kontakt-right .section-title { font-size: 28px; margin-bottom: 36px; }
.form-field { margin-bottom: 20px; }
.form-label { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; display: block; margin-bottom: 8px; }
.form-input { width: 100%; padding: 12px 16px; border: var(--border); background: var(--offwhite); font-size: 15px; font-family: 'Inter', sans-serif; color: var(--graphite); outline: none; border-radius: 0; transition: border-color 0.15s, background 0.15s; }
.form-input:focus { border-color: var(--red); background: var(--white); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit { width: 100%; padding: 16px; margin-top: 8px; background: var(--graphite); color: var(--white); font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; border: var(--border); cursor: pointer; font-family: 'Inter', sans-serif; transition: background 0.15s; }
.form-submit:hover { background: var(--red); border-color: var(--red); }

/* FOOTER */
.site-footer { background: var(--graphite); color: rgba(255,255,255,0.5); padding: 32px 48px; display: flex; align-items: center; justify-content: space-between; border-top: 2.5px solid rgba(255,255,255,0.1); font-size: 13px; }
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo .logo-mark { width: 28px; height: 28px; border-color: rgba(255,255,255,0.3); }
.footer-logo .logo-mark .lm-gray1,
.footer-logo .logo-mark .lm-gray2 { background: #555; }
.footer-logo .logo-text { color: white; font-size: 15px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,0.5); transition: color 0.15s; }
.footer-links a:hover { color: var(--red); }

/* RESPONSYWNOŚĆ */
@media (max-width: 900px) {
    .site-header { padding: 0 20px; }
    .site-nav ul { display: none; }
    .hero { grid-template-columns: 1fr; }
    .hero-right { display: none; }
    .stats { grid-template-columns: 1fr; }
    .stat { border-right: none; border-bottom: var(--border); }
    .section, .realizacje-section, .opinie-section { padding: 60px 20px; }
    .offers { grid-template-columns: 1fr; }
    .offer-card { border-right: var(--border); }
    .gallery-grid, .gallery-grid.has-five, .gallery-grid.has-many { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .gallery-grid.has-five .realizacja-item:first-child,
    .gallery-grid.has-many .realizacja-item:first-child { grid-row: auto; }
    .proces-steps { grid-template-columns: 1fr 1fr; }
    .step { border-right: var(--border); }
    .opinie-grid { grid-template-columns: 1fr; }
    .opinia { border-right: var(--border); }
    .kontakt-section { grid-template-columns: 1fr; }
    .kontakt-left, .kontakt-right { padding: 60px 24px; }
    .form-row { grid-template-columns: 1fr; }
    .site-footer { flex-direction: column; gap: 16px; text-align: center; }
}

/* BLOG – treść artykułu */
.post-content { font-size: 16px; line-height: 1.8; color: #3a3f47; }
.post-content h2 { font-size: 26px; font-weight: 700; letter-spacing: -1px; margin: 48px 0 16px; padding-top: 48px; border-top: var(--border); color: var(--graphite); }
.post-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.post-content h3 { font-size: 19px; font-weight: 700; margin: 32px 0 12px; color: var(--graphite); }
.post-content p { margin-bottom: 20px; }
.post-content ul, .post-content ol { margin: 0 0 20px 24px; }
.post-content li { margin-bottom: 8px; line-height: 1.7; }
.post-content ul li::marker { color: var(--red); }
.post-content ol li::marker { color: var(--red); font-weight: 700; }
.post-content strong { font-weight: 700; color: var(--graphite); }
.post-content a { color: var(--red); text-decoration: underline; }
.post-content a:hover { color: var(--graphite); }
.post-content img { max-width: 100%; height: auto; border: var(--border); margin: 32px 0; display: block; }
.post-content blockquote { border-left: 4px solid var(--red); margin: 32px 0; padding: 16px 24px; background: var(--offwhite); font-size: 17px; font-style: italic; color: #5a5f6b; }
.post-content table { width: 100%; border-collapse: collapse; margin: 32px 0; font-size: 14px; }
.post-content th { background: var(--graphite); color: white; padding: 12px 16px; text-align: left; font-weight: 600; letter-spacing: 0.5px; }
.post-content td { padding: 12px 16px; border-bottom: 1px solid var(--lightgray); }
.post-content tr:hover td { background: var(--offwhite); }

/* BLOG – responsywność */
@media (max-width: 900px) {
    .post-content h2 { font-size: 22px; }
    .post-content h3 { font-size: 17px; }
}
