:root {
  --bg: #f4f0e8;
  --bg-muted: #e7e0d4;
  --card: #fbf8f2;
  --text: #20241f;
  --muted: #66675f;
  --accent: #8b5e3c;
  --accent-dark: #3d463d;
  --line: rgba(32, 36, 31, .15);
  --shadow: 0 22px 60px rgba(32, 36, 31, .13);
  --radius: 18px;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(32,36,31,.025) 1px, transparent 1px),
    linear-gradient(rgba(32,36,31,.025) 1px, transparent 1px);
  background-size: 28px 28px;
}
img, svg { max-width: 100%; }
img { display: block; }
a { color: inherit; }
strong { color: inherit; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 1000; padding: 10px 14px; background: var(--text); color: white; border-radius: 999px; }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244,240,232,.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; flex-shrink: 0; }
.brand-logo { width: 340px; max-width: min(58vw, 340px); height: auto; display: block; }
.site-nav { display: flex; gap: 24px; align-items: center; font-size: 14px; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover { color: var(--text); }
.nav-toggle { display: none; border: 1px solid var(--line); border-radius: 8px; padding: 9px 13px; background: transparent; font: inherit; }

.section { padding: 92px 0; }
.hero { padding-top: 108px; }
.muted { background: rgba(231,224,212,.68); }
.hero-grid, .two-columns, .bathroom-grid, .contact-grid, .subpage-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.eyebrow { margin: 0 0 14px; color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: 12px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -.045em; }
h1 { margin-bottom: 24px; max-width: 820px; font-size: clamp(44px, 6vw, 76px); }
h2 { margin-bottom: 20px; font-size: clamp(34px, 4vw, 54px); }
h3 { margin-bottom: 12px; font-size: 24px; }
p { color: var(--muted); }
.lead { max-width: 680px; font-size: 20px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 26px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid var(--accent-dark); border-radius: 9px; text-decoration: none; font: inherit; font-weight: 800; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--accent-dark); color: white; }
.button.secondary, .button.cookie-secondary { background: rgba(255,255,255,.55); color: var(--accent-dark); }
.trust-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.trust-list li { padding: 8px 12px; border: 1px solid var(--line); background: rgba(255,255,255,.45); border-radius: 8px; color: var(--muted); font-size: 14px; }

.hero-photo-wrap { position: relative; min-height: 570px; border-radius: 28px; overflow: visible; }
.hero-photo { width: 100%; height: 570px; object-fit: cover; object-position: 50% 45%; border-radius: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.experience-card { width: 190px; height: 190px; display: grid; place-content: center; text-align: center; color: white; background: var(--accent-dark); border-radius: 50%; box-shadow: var(--shadow); }
.photo-badge { position: absolute; left: -38px; top: 42px; z-index: 2; }
.experience-number { display: block; font-family: Georgia, serif; font-size: 68px; line-height: .9; }
.experience-card span:last-child { margin-top: 10px; text-transform: uppercase; letter-spacing: .12em; font-size: 10px; }
.hero-note { position: absolute; right: -20px; bottom: 24px; z-index: 2; max-width: 290px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.hero-note p { margin: 7px 0 0; }

.section-heading { max-width: 800px; margin-bottom: 36px; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { min-height: 250px; padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; }
.card p { margin-bottom: 14px; }
.card-link { margin-top: auto; color: var(--accent); font-weight: 800; text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.featured-card { background: var(--accent-dark); color: white; }
.featured-card p, .featured-card .card-kicker { color: rgba(255,255,255,.76); }
.featured-card .card-link { color: white; }
.card-kicker { display: block; margin-bottom: 32px; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }

.bathroom-section { overflow: hidden; }
.bathroom-photo-card, .subpage-photo, .gallery-photo { margin: 0; position: relative; overflow: hidden; border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.bathroom-photo-card img { width: 100%; height: 570px; object-fit: cover; object-position: center; }
.bathroom-photo-card figcaption, .subpage-photo figcaption, .gallery-photo figcaption { padding: 12px 15px; color: var(--muted); font-size: 13px; background: var(--card); }
.check-list { display: grid; gap: 14px; margin-top: 28px; }
.check-list div { display: grid; grid-template-columns: 48px 1fr; gap: 15px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); }
.check-list span { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--accent); color: var(--accent); border-radius: 50%; font-weight: 800; }
.check-list p { margin: 7px 0 0; color: var(--text); }
.text-link { display: inline-flex; margin-top: 20px; color: var(--accent); font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.process-section { padding-top: 74px; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.process-grid article { padding: 24px; border-top: 3px solid var(--accent); background: rgba(255,255,255,.35); }
.process-grid article > span { display: block; margin-bottom: 38px; color: var(--accent); font-weight: 800; }
.process-grid p { margin-bottom: 0; }

.gallery-grid { display: grid; grid-template-columns: 1.15fr .85fr 1fr; grid-auto-rows: 285px; gap: 16px; }
.gallery-photo img { width: 100%; height: calc(100% - 47px); min-height: 0; object-fit: cover; }
.gallery-tall { grid-row: span 2; }
.gallery-wide { grid-row: span 2; }
.gallery-placeholder { position: relative; display: flex; align-items: end; padding: 18px; overflow: hidden; background: linear-gradient(145deg, rgba(61,70,61,.16), rgba(139,94,60,.25)); border: 1px solid var(--line); border-radius: 18px; }
.gallery-placeholder::before { content: ""; position: absolute; inset: 18px; border: 1px dashed rgba(32,36,31,.25); border-radius: 10px; }
.gallery-placeholder span { position: relative; z-index: 1; padding: 8px 10px; background: rgba(251,248,242,.88); border-radius: 6px; font-weight: 700; font-size: 13px; }
.gallery-more-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; padding: 22px; overflow: hidden; background: var(--accent-dark); color: white; border-radius: 18px; text-decoration: none; }
.gallery-more-card::before { content: ""; position: absolute; inset: 16px; border: 1px solid rgba(255,255,255,.28); border-radius: 10px; }
.gallery-more-card span, .gallery-more-card strong { position: relative; z-index: 1; }
.gallery-more-card span { color: rgba(255,255,255,.7); font-size: 13px; }
.gallery-more-card strong { font-size: 18px; }
.gallery-more-card:hover { background: #2f382f; }

.realizacje-hero { padding-bottom: 58px; }
.realizacje-page-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.realization-card { overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.realization-card-large { grid-column: 1 / -1; display: grid; grid-template-columns: 1.05fr .95fr; }
.realization-card img { width: 100%; height: 560px; object-fit: cover; }
.realization-card:not(.realization-card-large) img { height: 620px; }
.realization-copy { padding: 28px; }
.realization-copy h2 { margin-bottom: 14px; }
.realization-copy p:last-child { margin-bottom: 0; }
.realizacje-info-box { margin-top: 24px; padding: 30px; background: rgba(255,255,255,.38); border: 1px solid var(--line); border-radius: 18px; }
.realizacje-info-box h2 { margin-bottom: 12px; }
.realizacje-info-box p { margin-bottom: 0; }

.local-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.faq-list { display: grid; gap: 12px; }
details { padding: 18px 22px; border: 1px solid var(--line); background: var(--card); border-radius: 12px; }
summary { cursor: pointer; font-weight: 800; }
details p { margin: 14px 0 0; }

.contact-card { display: grid; gap: 8px; padding: 30px; background: var(--accent-dark); color: white; border-radius: 20px; box-shadow: var(--shadow); font-style: normal; }
.contact-card span { color: rgba(255,255,255,.72); }
.contact-card a { width: fit-content; margin-top: 10px; color: white; font-weight: 800; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }
.contact-card strong { font-size: 26px; }

.subpage-hero { padding-top: 92px; }
.subpage-photo img { width: 100%; height: 520px; object-fit: cover; }
.content-page { max-width: 850px; }
.content-page h1 { font-size: clamp(42px, 6vw, 72px); }
.content-page h2 { margin-top: 44px; font-size: clamp(28px, 3.6vw, 42px); }
.content-page p, .content-page li { font-size: 18px; }
.content-list { display: grid; gap: 10px; padding-left: 22px; color: var(--muted); }
.cta-box { margin-top: 48px; padding: 30px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cta-box h2 { margin-top: 0; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.related-grid a { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--accent-dark); font-weight: 800; text-decoration: none; }
.related-grid a:hover { border-color: var(--accent); }

.legal-page { padding-top: 88px; }
.legal-updated { font-size: 14px; }
.legal-page a { color: var(--accent); }

.site-footer { padding: 34px 0 90px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.footer-brand { max-width: 420px; }
.footer-logo { width: 300px; max-width: 100%; height: auto; margin-bottom: 10px; }
.footer-inner p { margin: 3px 0 0; font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 12px 18px; max-width: 480px; }
.footer-links a, .link-button { color: var(--muted); font-size: 13px; text-decoration: none; }
.footer-links a:hover, .link-button:hover { color: var(--text); }
.link-button { border: 0; padding: 0; background: transparent; font: inherit; cursor: pointer; }

.cookie-banner { position: fixed; inset: auto 18px 18px 18px; z-index: 1000; }
.cookie-banner[hidden] { display: none; }
.cookie-content { width: min(100%, 1040px); margin-inline: auto; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: rgba(251,248,242,.98); box-shadow: 0 24px 70px rgba(32,36,31,.25); }
.cookie-content p { margin: 5px 0 0; font-size: 14px; }
.cookie-content a { color: var(--accent); }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .button { min-height: 44px; padding: 0 16px; font-size: 14px; }

.mobile-contact-bar { display: none; }

@media (max-width: 950px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; top: 82px; left: 20px; right: 20px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px; }
  .hero-grid, .two-columns, .bathroom-grid, .contact-grid, .subpage-grid { grid-template-columns: 1fr; gap: 38px; }
  .hero { padding-top: 72px; }
  .hero-photo-wrap { min-height: 500px; }
  .hero-photo { height: 500px; }
  .photo-badge { left: 18px; top: 18px; }
  .hero-note { right: 18px; bottom: 18px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-wide { grid-row: span 1; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .realization-card-large { grid-template-columns: 1fr; }
  .realization-card-large img { height: 540px; }
  .cookie-content { grid-template-columns: 1fr; }
  .cookie-actions { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, var(--container)); }
  .section { padding: 66px 0; }
  .hero { padding-top: 58px; }
  .lead { font-size: 18px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .trust-list { display: grid; }
  .cards-grid, .process-grid, .gallery-grid, .related-grid, .realizacje-page-grid { grid-template-columns: 1fr; }
  .gallery-tall, .gallery-wide { grid-row: auto; }
  .realization-card-large { grid-column: auto; }
  .realization-card img, .realization-card:not(.realization-card-large) img, .realization-card-large img { height: 460px; }
  .hero-photo-wrap { min-height: 430px; }
  .hero-photo { height: 430px; }
  .experience-card { width: 145px; height: 145px; }
  .experience-number { font-size: 52px; }
  .hero-note { max-width: 235px; padding: 16px; }
  .bathroom-photo-card img, .subpage-photo img { height: 420px; }
  .footer-inner { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
  .cookie-banner { inset: auto 10px 72px 10px; }
  .cookie-actions { flex-direction: column; }
  .mobile-contact-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,.18); box-shadow: 0 -8px 30px rgba(32,36,31,.22); }
  .mobile-contact-bar a { min-height: 56px; display: grid; place-items: center; color: white; background: var(--accent-dark); font-weight: 800; text-decoration: none; }
  .mobile-contact-bar a + a { background: #506d4e; }
  .site-footer { padding-bottom: 100px; }
}


@media (max-width: 980px) {
  .brand-logo { max-width: min(64vw, 300px); }
  .footer-brand { max-width: 100%; }
}

@media (max-width: 700px) {
  .header-inner { min-height: 76px; gap: 12px; }
  .brand-logo { max-width: min(62vw, 220px); }
  .footer-logo { width: 240px; }
}
