/* ============================================================
   Grupa BBS Polska – Main Stylesheet
   ============================================================ */

/* === CSS Variables === */
:root {
  --primary:        #E8751A;
  --primary-dark:   #C45F0D;
  --primary-light:  rgba(232,117,26,0.12);
  --dark:           #1C1C1C;
  --anthracite:     #2D2D2D;
  --medium:         #666666;
  --light:          #F5F5F5;
  --border:         #E0E0E0;
  --white:          #FFFFFF;
  --shadow:         0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg:      0 12px 48px rgba(0,0,0,0.18);
  --radius:         8px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --transition:     0.3s ease;
  --font-heading:   'Montserrat', sans-serif;
  --font-body:      'Open Sans', sans-serif;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--dark); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* === Typography === */
h1,h2,h3,h4,h5 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { line-height: 1.75; color: var(--medium); }

/* === Utility === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section-header { text-align: center; margin-bottom: 64px; }
.section-header .overline {
  display: inline-block; font-family: var(--font-heading); font-weight: 600;
  font-size: 0.8rem; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--primary); margin-bottom: 14px;
}
.section-header h2 { color: var(--dark); margin-bottom: 16px; }
.section-header p { max-width: 580px; margin: 0 auto; font-size: 1.05rem; }
.section-header .divider {
  width: 56px; height: 4px; background: var(--primary);
  margin: 18px auto 0; border-radius: 2px;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius);
  font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem;
  transition: all var(--transition); cursor: pointer;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(232,117,26,0.35); }
.btn-outline-white { border: 2px solid rgba(255,255,255,0.7); color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--primary); border-color: var(--white); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--anthracite); transform: translateY(-2px); box-shadow: var(--shadow); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 76px; padding: 0 24px;
  display: flex; align-items: center;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}
.navbar.scrolled {
  background: rgba(28,28,28,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 30px rgba(0,0,0,0.35);
}
.navbar-inner {
  max-width: 1200px; width: 100%; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.navbar-logo { display: flex; align-items: center; gap: 12px; }
.navbar-logo img { height: 52px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
.navbar-logo-text { font-family: var(--font-heading); color: var(--white); font-size: 0.75rem; letter-spacing: 0.5px; line-height: 1.3; opacity: 0.8; }

.navbar-nav { display: flex; align-items: center; gap: 4px; }
.navbar-nav a {
  color: rgba(255,255,255,0.88); font-family: var(--font-heading);
  font-weight: 600; font-size: 0.88rem; padding: 8px 14px;
  border-radius: var(--radius); letter-spacing: 0.3px;
  transition: all var(--transition);
}
.navbar-nav a:hover { color: var(--primary); }
.navbar-nav a.active { color: var(--primary); }
.nav-cta {
  background: var(--primary) !important; color: var(--white) !important;
  padding: 10px 22px !important; margin-left: 8px;
}
.nav-cta:hover { background: var(--primary-dark) !important; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(232,117,26,0.35); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; border-radius: var(--radius);
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero {
  position: relative; height: 100vh; min-height: 620px;
  overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0;
  background-size: cover; background-position: center center;
  background-repeat: no-repeat;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(28,28,28,0.75) 0%, rgba(28,28,28,0.3) 60%, transparent 100%);
}

.hero-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; align-items: center; padding: 0 24px;
}
.hero-content-inner { max-width: 1200px; width: 100%; margin: 0 auto; padding-top: 76px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(232,117,26,0.9); color: var(--white);
  font-family: var(--font-heading); font-weight: 600; font-size: 0.8rem;
  padding: 7px 18px; border-radius: 20px; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 24px;
  backdrop-filter: blur(4px);
}
.hero-badge-dot { width: 6px; height: 6px; background: var(--white); border-radius: 50%; animation: pulse-dot 1.5s infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-content h1 {
  color: var(--white); max-width: 800px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.4);
  margin-bottom: 20px;
}
.hero-content .hero-desc {
  color: rgba(255,255,255,0.85); font-size: 1.15rem;
  max-width: 560px; margin-bottom: 40px; line-height: 1.7;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* Slider dots */
.hero-dots {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; gap: 10px; align-items: center;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
  transition: all var(--transition); border: none; padding: 0;
}
.hero-dot.active { background: var(--primary); transform: scale(1.4); }

/* Slider arrows */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 2px solid rgba(255,255,255,0.25);
  color: var(--white); font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); backdrop-filter: blur(6px);
}
.hero-arrow:hover { background: var(--primary); border-color: var(--primary); }
.hero-prev { left: 28px; }
.hero-next { right: 28px; }

/* Scroll hint */
.hero-scroll {
  position: absolute; bottom: 36px; right: 40px; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.5); font-size: 0.8rem; font-family: var(--font-heading);
  letter-spacing: 1px; text-transform: uppercase;
}
.scroll-line { width: 40px; height: 1px; background: rgba(255,255,255,0.3); }

/* ============================================================
   O FIRMIE
   ============================================================ */
.about { padding: 104px 0; background: var(--white); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.about-text .overline { font-family: var(--font-heading); font-weight: 600; font-size: 0.8rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--primary); margin-bottom: 16px; display: block; }
.about-text h2 { color: var(--dark); margin-bottom: 20px; }
.about-text .lead { font-size: 1.05rem; color: var(--anthracite); font-weight: 500; margin-bottom: 20px; line-height: 1.7; }
.about-text p { margin-bottom: 20px; }

.about-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; }
.pillar {
  display: flex; align-items: flex-start; gap: 14px; padding: 18px 16px;
  background: var(--light); border-radius: var(--radius);
  border-left: 3px solid var(--primary);
  transition: box-shadow var(--transition);
}
.pillar:hover { box-shadow: var(--shadow); }
.pillar-icon { font-size: 1.6rem; flex-shrink: 0; line-height: 1; }
.pillar-text h4 { font-family: var(--font-heading); font-size: 0.88rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.pillar-text p { font-size: 0.82rem; margin: 0; }

/* Stats */
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat-card {
  background: var(--dark); color: var(--white);
  padding: 36px 28px; border-radius: var(--radius-lg);
  text-align: center; position: relative; overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat-card::before {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 100px; height: 100px; background: var(--primary);
  border-radius: 50%; opacity: 0.12;
}
.stat-card.highlight {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}
.stat-card.highlight::before { background: rgba(255,255,255,0.2); opacity: 1; }
.stat-num {
  display: block; font-family: var(--font-heading); font-size: 3rem;
  font-weight: 800; line-height: 1; margin-bottom: 10px;
}
.stat-label { font-size: 0.88rem; opacity: 0.82; font-weight: 500; line-height: 1.4; }

/* ============================================================
   OFERTA
   ============================================================ */
.offer { padding: 104px 0; background: var(--light); }

.offer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.offer-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.offer-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.offer-card-header {
  padding: 32px 28px; display: flex; align-items: flex-start; gap: 18px;
  position: relative; overflow: hidden;
}
.offer-card:nth-child(1) .offer-card-header { background: linear-gradient(135deg, #1E2A35 0%, #2D3F52 100%); }
.offer-card:nth-child(2) .offer-card-header { background: linear-gradient(135deg, #1A1A1A 0%, #3A3A3A 100%); }
.offer-card:nth-child(3) .offer-card-header { background: linear-gradient(135deg, #1A0E00 0%, #3C2200 100%); }
.offer-card:nth-child(4) .offer-card-header { background: linear-gradient(135deg, #0D1A2E 0%, #1A3050 100%); }

.offer-card-header::after {
  content: ''; position: absolute; bottom: -30px; right: -30px;
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.offer-icon-wrap {
  width: 56px; height: 56px; border-radius: var(--radius); flex-shrink: 0;
  background: rgba(232,117,26,0.2); border: 1px solid rgba(232,117,26,0.35);
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
}
.offer-card-header-text { flex: 1; }
.offer-card-header h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 8px; }
.offer-card-header p { color: rgba(255,255,255,0.65); font-size: 0.87rem; margin: 0; line-height: 1.55; }

.offer-badge {
  position: absolute; top: 16px; right: 16px;
  background: var(--primary); color: var(--white);
  font-family: var(--font-heading); font-weight: 700; font-size: 0.68rem;
  padding: 4px 10px; border-radius: 10px; text-transform: uppercase; letter-spacing: 0.5px;
}

.offer-body { padding: 28px; flex: 1; }
.offer-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 0; font-size: 0.92rem; color: var(--medium);
  border-bottom: 1px solid var(--border);
}
.offer-list li:last-child { border-bottom: none; }
.offer-list li::before {
  content: '›'; color: var(--primary); font-weight: 700;
  font-size: 1.1rem; line-height: 1.5; flex-shrink: 0; margin-top: 0;
}

/* ============================================================
   REALIZACJE
   ============================================================ */
.projects { padding: 104px 0; background: var(--white); }

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.project-card {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); background: var(--white);
  transition: transform var(--transition), box-shadow var(--transition);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.project-img {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  background: var(--light);
}
.project-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.project-card:hover .project-img img { transform: scale(1.07); }
.project-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(28,28,28,0.65) 100%);
}
.project-cat {
  position: absolute; top: 14px; left: 14px;
  background: var(--primary); color: var(--white);
  font-family: var(--font-heading); font-weight: 700; font-size: 0.72rem;
  padding: 5px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px;
}

.project-body { padding: 22px 20px; }
.project-body h4 {
  font-family: var(--font-heading); font-size: 1rem; color: var(--dark);
  margin-bottom: 8px; line-height: 1.4;
}
.project-body p { font-size: 0.87rem; margin: 0; line-height: 1.6; }
.project-systems {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px;
}
.system-tag {
  background: var(--light); color: var(--medium);
  font-family: var(--font-heading); font-size: 0.72rem; font-weight: 600;
  padding: 3px 10px; border-radius: 10px; border: 1px solid var(--border);
}

/* ============================================================
   CERTYFIKATY
   ============================================================ */
.certs { padding: 80px 0; background: var(--anthracite); }
.certs .section-header h2 { color: var(--white); }
.certs .section-header p { color: rgba(255,255,255,0.60); }
.certs .divider { background: var(--primary); }

.certs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.cert-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); padding: 36px 24px; text-align: center;
  transition: all var(--transition);
}
.cert-card:hover { background: rgba(232,117,26,0.12); border-color: var(--primary); transform: translateY(-4px); }
.cert-icon { font-size: 2.6rem; margin-bottom: 18px; }
.cert-card h4 { color: var(--white); font-family: var(--font-heading); font-size: 1rem; margin-bottom: 10px; line-height: 1.4; }
.cert-card p { color: rgba(255,255,255,0.55); font-size: 0.84rem; margin: 0; line-height: 1.55; }

/* ============================================================
   KONTAKT
   ============================================================ */
.contact { padding: 104px 0; background: var(--light); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }

/* Contact info side */
.contact-info-block h3 { font-family: var(--font-heading); color: var(--dark); margin-bottom: 10px; }
.contact-info-block .contact-intro { font-size: 1rem; margin-bottom: 36px; }

.contact-detail {
  display: flex; align-items: flex-start; gap: 16px; margin-bottom: 26px;
}
.contact-detail-icon {
  width: 50px; height: 50px; border-radius: var(--radius); flex-shrink: 0;
  background: var(--primary); display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; box-shadow: 0 4px 16px rgba(232,117,26,0.30);
}
.contact-detail-text h4 {
  font-family: var(--font-heading); font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px; color: var(--medium);
  margin-bottom: 6px;
}
.contact-detail-text p, .contact-detail-text a {
  font-size: 0.98rem; color: var(--dark); font-weight: 600; display: block; line-height: 1.5;
}
.contact-detail-text a:hover { color: var(--primary); }

.map-wrap {
  margin-top: 32px; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow);
}
.map-wrap iframe { width: 100%; height: 260px; border: none; display: block; }

/* Contact form side */
.contact-form-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 44px 40px; box-shadow: var(--shadow);
}
.contact-form-card h3 {
  font-family: var(--font-heading); color: var(--dark);
  margin-bottom: 28px; font-size: 1.5rem;
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-family: var(--font-heading); font-weight: 600;
  font-size: 0.8rem; color: var(--medium); text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 8px;
}
.form-group label span { color: var(--primary); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 0.95rem; color: var(--dark); background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none; appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232,117,26,0.12);
}
.form-group textarea { height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit { width: 100%; padding: 16px; font-size: 1rem; justify-content: center; margin-top: 4px; }

.form-msg {
  display: none; margin-top: 18px; padding: 14px 18px;
  border-radius: var(--radius); font-size: 0.92rem; line-height: 1.5;
}
.form-msg.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; display: block; }
.form-msg.error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--dark); padding: 64px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }

.footer-brand img { height: 50px; margin-bottom: 18px; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.88rem; max-width: 300px; line-height: 1.7; }
.footer-socials { display: flex; gap: 10px; margin-top: 22px; }
.footer-social {
  width: 38px; height: 38px; border-radius: var(--radius);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); font-size: 1rem;
  transition: all var(--transition);
}
.footer-social:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }

.footer-col h4 {
  font-family: var(--font-heading); color: var(--white); font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 22px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: rgba(255,255,255,0.5); font-size: 0.9rem; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--primary); }
.footer-col address { font-style: normal; color: rgba(255,255,255,0.5); font-size: 0.88rem; line-height: 2; }
.footer-col address a { color: rgba(255,255,255,0.5); display: block; transition: color var(--transition); }
.footer-col address a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-bottom p { color: rgba(255,255,255,0.3); font-size: 0.83rem; }
.footer-bottom .footer-legal a { color: rgba(255,255,255,0.3); font-size: 0.83rem; transition: color var(--transition); }
.footer-bottom .footer-legal a:hover { color: var(--primary); }

/* ============================================================
   GALLERY PAGE
   ============================================================ */
.page-hero {
  height: 380px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--dark);
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.3;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,28,28,0.5) 0%, rgba(28,28,28,0.7) 100%);
}
.page-hero-content {
  position: relative; z-index: 1; text-align: center; padding: 0 24px;
}
.page-hero-content h1 { color: var(--white); margin-bottom: 14px; }
.page-hero-content p { color: rgba(255,255,255,0.72); font-size: 1.05rem; max-width: 500px; margin: 0 auto; }

.gallery-section { padding: 80px 0; }

.gallery-filter {
  display: flex; justify-content: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 48px;
}
.gallery-filter-btn {
  padding: 9px 22px; border-radius: 20px;
  font-family: var(--font-heading); font-weight: 600; font-size: 0.85rem;
  border: 2px solid var(--border); color: var(--medium); cursor: pointer;
  transition: all var(--transition); background: var(--white);
}
.gallery-filter-btn.active,
.gallery-filter-btn:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }

.gallery-grid {
  columns: 4; column-gap: 16px;
}
.gallery-item {
  break-inside: avoid; margin-bottom: 16px;
  border-radius: var(--radius); overflow: hidden;
  cursor: pointer; position: relative; display: block;
  background: var(--light);
}
.gallery-item img {
  width: 100%; height: auto; display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: rgba(232,117,26,0.65);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay svg { width: 36px; height: 36px; fill: none; stroke: white; stroke-width: 2; stroke-linecap: round; }

.gallery-more { text-align: center; margin-top: 48px; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.94); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-img-wrap { position: relative; max-width: 90vw; max-height: 85vh; }
.lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); object-fit: contain; display: block; }
.lightbox-close {
  position: absolute; top: -16px; right: -16px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  font-size: 1.4rem; display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; transition: transform var(--transition);
  line-height: 1;
}
.lightbox-close:hover { transform: rotate(90deg) scale(1.1); }
.lightbox-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12); border: none; color: var(--white);
  width: 54px; height: 54px; border-radius: 50%; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--transition); z-index: 2;
  backdrop-filter: blur(4px);
}
.lightbox-arrow:hover { background: var(--primary); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter {
  position: absolute; bottom: -36px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.5); font-size: 0.88rem; white-space: nowrap;
}

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 500;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; box-shadow: 0 4px 20px rgba(232,117,26,0.4);
  cursor: pointer; opacity: 0; pointer-events: none;
  transform: translateY(12px);
  transition: all var(--transition);
  border: none;
}
.scroll-top.visible { opacity: 1; pointer-events: all; transform: none; }
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ============================================================
   FADE-IN ANIMATION
   ============================================================ */
.fade-in { opacity: 0; transform: translateY(32px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-in.visible { opacity: 1; transform: none; }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .offer-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .gallery-grid { columns: 3; }
  .about-inner { gap: 48px; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  /* Zawsze ciemny navbar na mobilce; backdrop-filter wyłączony bo tworzy containing block dla fixed dzieci */
  .navbar, .navbar.scrolled {
    background: rgba(20,20,20,0.97) !important;
    backdrop-filter: none !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.35);
  }
  .navbar-nav {
    position: fixed; top: 76px; left: 0; right: 0; bottom: 0;
    background: rgba(20,20,20,0.98); backdrop-filter: blur(16px);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001; overflow-y: auto; padding: 24px 0;
  }
  .navbar-nav.open { transform: translateX(0); }
  .navbar-nav li { width: 100%; display: flex; justify-content: center; }
  .navbar-nav a { font-size: 1.1rem; padding: 13px 28px; width: 280px; text-align: center; border-radius: var(--radius-lg); display: block; }
  .nav-cta { margin-left: 0 !important; margin-top: 8px; width: 280px !important; display: flex !important; justify-content: center; }
  .about-inner { grid-template-columns: 1fr; }
  .about-pillars { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .gallery-grid { columns: 2; }
  .hero-prev, .hero-next { display: none; }
  .contact-form-card { padding: 32px 24px; }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .gallery-grid { columns: 1; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .about-stats { grid-template-columns: 1fr; }
  .stat-card.highlight { grid-column: auto; }
  .certs-grid { grid-template-columns: 1fr; }
  .page-hero { height: 280px; }
}
