*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #0c1824;
  --navy: #033249;
  --navy-mid: #0a3d56;
  --stone: #f7f5f2;
  --stone-dark: #ece8e2;
  --white: #ffffff;
  --muted: #6b7280;
  --muted-light: #9ca3af;
  --line: rgba(12, 24, 36, 0.08);
  --bronze: #a68455;
  --bronze-light: #c4a574;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--stone);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  width: min(var(--wrap), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.preview-tag {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 200;
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 2px;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 28px 0;
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), border-color 0.5s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(12, 24, 36, 0.94);
  backdrop-filter: blur(20px);
  padding: 16px 0;
  border-color: rgba(255,255,255,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand img {
  height: 52px;
  width: auto;
  transition: height 0.5s var(--ease);
}

.nav.scrolled .brand img { height: 44px; }

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--bronze-light);
  transition: width 0.4s var(--ease);
}

.nav-links a:hover,
.nav-links a.active { color: #fff; }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  position: relative;
  z-index: 2;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  padding: 14px 28px;
  border-radius: 2px;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease);
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--bronze-light);
  color: #fff;
  transform: translateY(-1px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(12, 24, 36, 0.25) 0%,
      rgba(12, 24, 36, 0.45) 40%,
      rgba(12, 24, 36, 0.88) 100%),
    linear-gradient(90deg,
      rgba(12, 24, 36, 0.7) 0%,
      rgba(12, 24, 36, 0.2) 55%,
      rgba(12, 24, 36, 0.5) 100%),
    url("/images/hero-option-2-elewacja.png") center / cover no-repeat;
  transform: scale(1.04);
  animation: heroZoom 20s var(--ease) infinite alternate;
}

@keyframes heroZoom {
  to { transform: scale(1.1); }
}

.hero-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 160px 0 100px;
}

.hero-content {
  max-width: 720px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.2s forwards;
}

.hero-eyebrow::before {
  content: "";
  width: 48px;
  height: 1px;
  background: var(--bronze-light);
}

.hero-eyebrow span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze-light);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.35s forwards;
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
}

.hero-desc {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  color: rgba(255,255,255,0.72);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 48px;
  font-weight: 400;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.5s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.65s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.4s var(--ease);
  cursor: pointer;
  border: none;
}

.btn-solid {
  background: #fff;
  color: var(--ink);
}

.btn-solid:hover {
  background: var(--bronze-light);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.06);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.12);
  margin-top: 80px;
  max-width: 640px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.8s forwards;
}

.hero-meta div {
  background: rgba(12, 24, 36, 0.55);
  backdrop-filter: blur(8px);
  padding: 24px 28px;
}

.hero-meta strong {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}

.hero-meta span {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== INTRO ===== */
.intro {
  padding: 120px 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
  align-items: start;
}

.section-index {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze);
  padding-top: 8px;
}

.intro-quote {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  max-width: 780px;
}

.intro-quote em {
  font-style: italic;
  color: var(--navy-mid);
}

.intro-body {
  margin-top: 32px;
  max-width: 560px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ===== SERVICES ===== */
.services {
  padding: 120px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.section-head h1,
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
  max-width: 480px;
}

.section-head p {
  max-width: 360px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.svc-card {
  background: var(--white);
  padding: 48px 40px;
  position: relative;
  transition: background 0.5s var(--ease);
  overflow: hidden;
}

.svc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.svc-card:hover {
  background: var(--stone);
}

.svc-card:hover::before { transform: scaleX(1); }

.svc-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--bronze);
  margin-bottom: 24px;
}

.svc-card h3 {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.2;
}

.svc-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.75;
}

.svc-card.featured {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--ink);
  color: #fff;
  padding: 64px;
}

.svc-card.featured::before { background: var(--bronze-light); }

.svc-card.featured:hover { background: #111f2e; }

.svc-card.featured h3 {
  font-size: clamp(2rem, 3vw, 2.75rem);
  color: #fff;
}

.svc-card.featured p { color: rgba(255,255,255,0.65); }

.svc-card.featured .svc-num { color: var(--bronze-light); }

.featured-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}

.featured-list li {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  padding-left: 16px;
  position: relative;
}

.featured-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 1px;
  background: var(--bronze-light);
}

/* ===== PROCESS ===== */
.process {
  padding: 120px 0;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-top: 64px;
}

.step-num {
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--stone-dark);
  line-height: 1;
  margin-bottom: 20px;
}

.process-steps h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
}

.process-steps p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ===== CERT ===== */
.cert {
  padding: 120px 0;
}

.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.cert-grid h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 24px;
}

.cert-grid p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

.cert-frame {
  position: relative;
  background: var(--white);
  padding: 12px;
  border: 1px solid var(--line);
}

.cert-frame::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid var(--stone-dark);
  pointer-events: none;
}

.cert-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== CTA ===== */
.cta {
  background: var(--ink);
  padding: 100px 0;
  text-align: center;
}

.cta h2 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.15;
}

.cta p {
  color: rgba(255,255,255,0.55);
  font-size: 1.05rem;
  margin-bottom: 40px;
  max-width: 480px;
  margin-inline: auto;
}

.cta .btn-solid {
  background: var(--bronze);
  color: #fff;
}

.cta .btn-solid:hover {
  background: var(--bronze-light);
}

.cta-phone {
  display: block;
  margin-top: 24px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.3s;
}

.cta-phone:hover { color: var(--bronze-light); }

/* ===== FOOT ===== */
.foot {
  padding: 48px 0;
  background: var(--stone);
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted-light);
}

.foot strong { color: var(--muted); font-weight: 500; }

/* ===== EXTENSIONS ===== */

/* Container alias */
.container {
  width: min(var(--wrap), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

/* Subpages: nav always scrolled */
body:not(.page-home) .nav {
  background: rgba(12, 24, 36, 0.94);
  backdrop-filter: blur(20px);
  padding: 16px 0;
  border-color: rgba(255,255,255,0.06);
}

body:not(.page-home) .nav .brand img {
  height: 44px;
}

body.page-home .brand img {
  height: 64px;
}

body.page-home .nav.scrolled .brand img {
  height: 54px;
}

/* Subpage hero */
.page-hero {
  padding: 140px 0 72px;
  background: var(--navy);
  text-align: center;
  color: #fff;
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: #fff;
}

.page-hero p {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: rgba(255,255,255,0.62);
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.75;
}

.page-hero .section-index {
  color: var(--bronze-light);
  margin-bottom: 16px;
}

.page-hero .btn {
  margin-top: 32px;
}

.page-hero .contact-header-info {
  margin-top: 32px;
}

/* Page content sections */
.page-content section {
  padding: 120px 0;
}

.page-content--lead > section:first-child {
  padding-top: 140px;
}

.page-content section:nth-child(even) {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-content > .container {
  padding-block: 80px;
}

/* Local page intro */
.local-intro {
  max-width: 720px;
}

.local-intro h2 {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 24px;
}

.local-intro p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.local-intro p:last-child {
  margin-bottom: 0;
}

/* FAQ */
.faq {
  max-width: 800px;
  margin-inline: auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  margin-bottom: 1px;
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}

.faq-item.open {
  border-color: rgba(166, 132, 85, 0.25);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: var(--white);
  border: none;
  padding: 1.35rem 1.75rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  transition: color 0.3s;
}

.faq-question:hover {
  color: var(--navy);
}

.faq-question::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--bronze);
  line-height: 1;
  transition: transform 0.3s var(--ease);
}

.faq-item.open .faq-question::after {
  content: "\2212";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}

.faq-answer-inner {
  padding: 0 1.75rem 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.faq-item.open .faq-answer {
  max-height: 480px;
}

/* Opinions carousel */
.opinie-section {
  background: var(--navy);
  padding: 120px 0;
}

.opinie-title {
  font-family: var(--serif);
  text-align: center;
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  margin-bottom: 48px;
  line-height: 1.15;
}

.opinie-carousel {
  max-width: 720px;
  margin-inline: auto;
}

.opinie-carousel-viewport {
  position: relative;
  display: grid;
  min-height: 220px;
}

.opinie-carousel-viewport > .opinia-slide {
  grid-area: 1 / 1;
}

.opinia-slide {
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease), visibility 0.65s;
  pointer-events: none;
  z-index: 0;
}

.opinia-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 1;
}

.opinia-slide .opinia,
.opinia {
  background: var(--white);
  padding: 40px 44px;
  border: 1px solid var(--line);
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink);
  text-align: center;
}

.opinia p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.opinia span {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.opinia-date {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted-light);
}

.opinia-stars {
  color: var(--bronze);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.12em;
}

.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.google-badge svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.opinie-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 2rem;
}

.opinie-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,0.28);
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.opinie-dot.is-active {
  background: var(--bronze-light);
  transform: scale(1.2);
}

.opinie-dot:hover {
  background: rgba(255,255,255,0.55);
}

.opinie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.opinie-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  padding: 14px 28px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 2px;
  transition: background 0.3s var(--ease), color 0.3s, border-color 0.3s;
}

.opinie-link:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

.opinie-link-primary {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.opinie-link-primary:hover {
  background: var(--bronze-light);
  border-color: var(--bronze-light);
  color: #fff;
}

/* Areas */
.areas-section {
  text-align: center;
  padding: 120px 0;
}

.areas-section h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 24px;
}

.areas-text {
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 40px;
}

.area-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  padding: 28px 24px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background 0.4s var(--ease), color 0.3s;
  position: relative;
}

.area-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.area-card:hover {
  background: var(--stone);
  color: var(--navy);
}

.area-card:hover::before {
  transform: scaleX(1);
}

.areas-bottom {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.75;
}

/* Gallery / realizacje */
.realizacje-fb-link {
  margin-top: 32px;
}

.section-head--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.section-head--stack h1,
.section-head--stack h2 {
  max-width: 640px;
}

.section-head--stack p {
  max-width: 560px;
}

.realizacje-category {
  padding-bottom: 80px;
}

.realizacje-category + .realizacje-category {
  padding-top: 64px;
  border-top: 1px solid var(--line);
}

.realizacje-category-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 32px;
}

.realizacje-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.realizacja {
  position: relative;
  background: var(--white);
  overflow: hidden;
  text-align: left;
  transition: background 0.4s var(--ease);
}

.realizacja::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 260px;
  background: rgba(12, 24, 36, 0.5);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
  z-index: 1;
}

.realizacja:hover {
  background: var(--stone);
}

.realizacja:hover::before {
  opacity: 1;
}

.realizacja img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.6s var(--ease);
}

.realizacja:hover img {
  transform: scale(1.05);
}

.realizacja-content {
  padding: 32px 28px;
}

.realizacja h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.25;
}

.realizacja p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.realizacja--tile::before {
  height: 100%;
}

.realizacja--tile img {
  height: 280px;
  display: block;
}

@media (max-width: 768px) {
  .realizacja--tile img {
    height: 220px;
  }
  .realizacje-category + .realizacje-category {
    padding-top: 48px;
  }
  .realizacje-category {
    padding-bottom: 56px;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(12, 24, 36, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
  z-index: 10000;
  backdrop-filter: blur(8px);
}

.lightbox.active,
.lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 92%;
  max-height: 90%;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.75rem;
  padding: 12px 18px;
  cursor: pointer;
  border-radius: 2px;
  z-index: 10001;
  transition: background 0.3s;
  line-height: 1;
}

.lightbox-arrow:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-arrow.left { left: 24px; }
.lightbox-arrow.right { right: 24px; }

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  cursor: pointer;
  border-radius: 2px;
  z-index: 10001;
  transition: background 0.3s;
  line-height: 1;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-close {
  top: 24px;
  right: 24px;
  font-size: 2rem;
  padding: 8px 16px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  padding: 12px 18px;
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* Contact */
.contact-header {
  padding: 140px 0 64px;
  background: var(--navy);
  text-align: center;
  color: #fff;
}

.contact-header h1 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 600;
  margin: 0 0 12px;
  line-height: 1.1;
}

.contact-header p {
  margin: 0 0 32px;
  color: rgba(255,255,255,0.62);
  font-size: 1.05rem;
}

.contact-header-info {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-header-info a {
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 24px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 2px;
  transition: background 0.3s var(--ease), border-color 0.3s;
}

.contact-header-info a:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.45);
}

.contact-form-wrap {
  position: relative;
  z-index: 2;
}

.contact-section {
  padding: 100px 0;
  background: var(--stone);
}

.contact-section--lead {
  padding-top: 140px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-details h1,
.contact-details h2 {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 16px;
}

.contact-details > p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 440px;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.contact-card {
  background: var(--white);
  padding: 28px 32px;
  transition: background 0.3s var(--ease);
}

.contact-card:hover {
  background: var(--stone);
}

.contact-card-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 8px;
}

.contact-card-value {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
}

.contact-card-value a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-card-value a:hover {
  color: var(--bronze);
}

.contact-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.contact-card-links a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: background 0.3s, border-color 0.3s;
}

.contact-card-links a:hover {
  background: var(--white);
  border-color: var(--bronze);
  color: var(--bronze);
}

.contact-form-panel {
  background: var(--white);
  padding: 48px 40px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(12, 24, 36, 0.06);
  scroll-margin-top: 100px;
}

.contact-form-panel h3 {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.contact-form-panel > p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 32px;
  line-height: 1.6;
}

.contact-form-wrap--inline {
  max-width: none;
  margin: 0;
  padding: 0;
}

.contact-form {
  background: transparent;
  padding: 0;
  border: none;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 24px;
  border: 1px solid var(--stone-dark);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--stone);
  transition: border-color 0.3s, background 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--bronze);
  background: var(--white);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button {
  width: 100%;
  padding: 16px 36px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s var(--ease);
}

.contact-form button:hover {
  background: var(--bronze);
}

#form-success {
  display: none;
}

.form-success {
  background: rgba(166, 132, 85, 0.12);
  color: var(--navy);
  padding: 16px 20px;
  border: 1px solid rgba(166, 132, 85, 0.3);
  border-radius: 2px;
  text-align: center;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.contact-map {
  max-width: var(--wrap);
  margin: 0 auto 100px;
  padding: 0 var(--gutter);
}

.contact-map-header {
  text-align: center;
  margin-bottom: 32px;
}

.contact-map-header h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.contact-map-header p {
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-map iframe {
  width: 100%;
  height: 420px;
  border: 0;
  border: 1px solid var(--line);
  filter: grayscale(20%);
}

/* Offer page */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 48px;
}

.offer-card {
  background: var(--white);
  padding: 48px 40px;
  position: relative;
  transition: background 0.5s var(--ease);
  overflow: hidden;
}

.offer-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.offer-card:hover {
  background: var(--stone);
}

.offer-card:hover::before {
  transform: scaleX(1);
}

.offer-card h3 {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 16px;
  line-height: 1.2;
}

.offer-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

.offer-card ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.offer-card li {
  font-size: 0.88rem;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
  margin-bottom: 8px;
  line-height: 1.6;
}

.offer-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 1px;
  background: var(--bronze);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Unified footer */
.site-footer,
.foot {
  padding: 48px var(--gutter);
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
}

.site-footer strong,
.foot strong {
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

.site-footer a,
.foot a {
  color: var(--bronze-light);
  text-decoration: none;
  transition: color 0.3s;
}

.site-footer a:hover,
.foot a:hover {
  color: #fff;
}

.site-footer p + p,
.foot p + p {
  margin-top: 12px;
}

/* Mobile nav toggle */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.3s;
  position: relative;
  z-index: 102;
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nav-mobile-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.3s;
  pointer-events: none;
}

.nav-mobile-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-mobile-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-mobile-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 72px;
  z-index: 101;
  background: rgba(12, 24, 36, 0.98);
  padding: 32px var(--gutter) 48px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-mobile-menu.is-open {
  display: block;
  z-index: 10000;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .mobile-call-btn,
body.menu-open .cookie-banner {
  display: none !important;
}

.nav-mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-mobile-menu a {
  display: block;
  padding: 18px 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.3s;
}

.nav-mobile-menu a:hover,
.nav-mobile-menu a.active {
  color: var(--bronze-light);
}

.nav-mobile-menu .nav-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  width: 100%;
  padding: 16px 24px;
  background: var(--bronze);
  color: #fff;
  border: none;
  border-bottom: none;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  transform: none;
}

.nav-mobile-menu .nav-cta:hover {
  background: var(--bronze-light);
  color: #fff;
  transform: none;
}

/* Mobile call button */
.mobile-call-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9998;
  background: var(--bronze);
  color: #fff;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 8px 32px rgba(12, 24, 36, 0.35);
  transition: background 0.3s, transform 0.3s var(--ease);
}

.mobile-call-btn:hover {
  background: var(--bronze-light);
  transform: translateY(-2px);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 20px var(--gutter);
  z-index: 9999;
  display: none;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.cookie-banner.show {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.88rem;
  max-width: 640px;
  line-height: 1.6;
}

.cookie-banner a {
  color: var(--bronze-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner button {
  background: var(--bronze);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 2px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.3s;
  white-space: nowrap;
}

.cookie-banner button:hover {
  background: var(--bronze-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav,
  .nav.scrolled,
  body:not(.page-home) .nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(12, 24, 36, 0.97);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 12px 0;
  }
  .brand img { height: 40px; }
  .nav.scrolled .brand img { height: 40px; }
  .nav-inner { position: relative; z-index: 102; }
  .nav-mobile-menu {
    top: 64px;
    height: calc(100dvh - 64px);
    height: calc(100svh - 64px);
    z-index: 10000;
    background: var(--ink);
  }
  .nav-mobile-menu.is-open {
    z-index: 10000;
  }
  .intro-grid { grid-template-columns: 1fr; gap: 24px; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-card.featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
    padding: 40px 32px;
  }
  .featured-list { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .cert-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-meta { grid-template-columns: 1fr; }
  .offer-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: 1fr 1fr; }
  .realizacje-grid { grid-template-columns: 1fr 1fr; }
  .page-content section { padding: 80px 0; }
  .page-content--lead > section:first-child { padding-top: 120px; }
  .opinie-section { padding: 80px 0; }
  .areas-section { padding: 80px 0; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .contact-section { padding: 80px 0; }
  .contact-section--lead { padding-top: 120px; }
}

@media (max-width: 768px) {
  .mobile-call-btn { display: block; }
  body.has-mobile-call { padding-bottom: 80px; }
  .areas-grid { grid-template-columns: 1fr; }
  .realizacje-grid { grid-template-columns: 1fr; }
  .opinia-slide .opinia,
  .opinia { padding: 32px 28px; }
  .contact-form { padding: 32px 24px; }
  .lightbox-arrow.left { left: 12px; }
  .lightbox-arrow.right { right: 12px; }
  .cookie-banner.show {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .process-steps { grid-template-columns: 1fr; }
  .hero-grid { padding-bottom: 64px; }
  .nav-cta { padding: 12px 18px; font-size: 10px; }
  .page-hero { padding: 120px 0 56px; }
  .contact-header { padding: 120px 0 48px; }
  .contact-header-info { flex-direction: column; align-items: center; }
  .contact-header-info a { width: 100%; max-width: 280px; text-align: center; }
  .opinie-actions { flex-direction: column; align-items: stretch; }
  .opinie-link { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; }
  .hero-eyebrow, .hero h1, .hero-desc, .hero-actions, .hero-meta {
    opacity: 1;
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .opinia-slide { transition: none; }
  .realizacja img { transition: none; }
}
