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

:root {
  --green:        #E8431A;
  --green-dark:   #c93610;
  --green-footer: #0D1B2A;
  --green-light:  #FF6B45;
  --green-pale:   #fff1ee;
  --text:         #1a1a1a;
  --text-mid:     #444;
  --text-muted:   #888;
  --border:       #e0e0e0;
  --bg:           #ffffff;
  --bg-section:   #f5f5f5;
  --font-main:    'Barlow', sans-serif;
  --font-cond:    'Barlow Condensed', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-main); color: var(--text); background: var(--bg); overflow-x: hidden; }

/* ── TOPBAR ── */
.topbar {
  background: var(--green-footer);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 5%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 32px;
}
.topbar-hours { display: flex; align-items: center; gap: 8px; }
.topbar-hours strong { font-size: 15px; font-weight: 700; letter-spacing: 0; }
.topbar-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-light); display: inline-block; }

/* ── NAV ── */
nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 5%;
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 40px;
}
/* .nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
} */
/* .logo-chevrons {
  display: flex;
  gap: 3px;
}
.logo-chevron {
  width: 0; height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}
.logo-chevron.c1 { border-left: 12px solid var(--green-light); }
.logo-chevron.c2 { border-left: 12px solid var(--green); } */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  height: 40px; /* dopasuj do projektu */
  width: auto;
}
.logo-wordmark {
  font-family: var(--font-cond);
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}
.logo-wordmark span { color: var(--green); }
.logo-sub {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: -4px;
}
.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--green); background: var(--green-pale); }
.nav-links a.active { color: var(--green); }
.nav-cta-btn {
  background: var(--green) !important;
  color: #fff !important;
  border-radius: 3px;
  padding: 9px 18px !important;
}
.nav-cta-btn:hover { background: var(--green-dark) !important; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #0D1B2A 0%, #1C3144 50%, #1a2e40 100%);
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 80px 5%;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 50px 50px;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 20px;
}
.hero-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-light);
}
.hero h1 {
  font-family: var(--font-cond);
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 800;
  color: #fff;
  line-height: 0.95;
  letter-spacing: -1px;
  margin-bottom: 24px;
}
.hero h1 em { font-style: normal; color: var(--green-light); }
.hero-desc {
  font-size: 17px;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 40px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  background: var(--green);
  color: #fff;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 28px;
  border: 2px solid var(--green);
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-outline {
  background: transparent;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 28px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 3px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.7); color: #fff; }

/* ── STATS ── */
.stats {
  background: var(--green-dark);
  display: flex;
  justify-content: center;
}
.stats-inner {
  display: flex;
  width: 100%;
  max-width: 1200px;
}
.stat {
  flex: 1;
  padding: 28px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-cond);
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}
.stat-num sup { font-size: 20px; color: var(--green-light); }
.stat-lbl { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.55); letter-spacing: 0.06em; text-transform: uppercase; }

/* ── SECTIONS COMMON ── */
.section { padding: 80px 5%; }
.section-white { background: #fff; }
.section-gray  { background: var(--bg-section); }

.section-head { margin-bottom: 48px; }
.section-tag {
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-tag::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--green);
}
.section-head h2 {
  font-family: var(--font-cond);
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1.05;
  margin-bottom: 14px;
}
.section-head p {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 560px;
}

/* ── SERVICES GRID ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-bottom: 4px solid var(--green);
  border-radius: 2px;
  padding: 36px 32px;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: default;
}
.service-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}
.svc-icon {
  width: 52px; height: 52px;
  background: var(--green-pale);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.svc-icon svg { width: 26px; height: 26px; stroke: var(--green); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 {
  font-family: var(--font-cond);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.service-card p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.65;
}
.learn-more {
  display: inline-block;
  margin-top: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  text-decoration: none;
  border-bottom: 2px solid var(--green);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.learn-more:hover { color: var(--green-dark); border-color: var(--green-dark); }

/* ── ISO BAR ── */
.iso-bar {
  background: var(--green);
  padding: 22px 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  text-align: center;
}
.iso-badge {
  font-family: var(--font-cond);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}
.iso-sep { width: 1px; height: 28px; background: rgba(255,255,255,0.3); }
.iso-text {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
}

/* ── MACHINES ── */
.machines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.machine-card {
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  background: #fff;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 2px;
  transition: border-color 0.2s, background 0.2s;
}
.machine-card:hover { background: var(--green-pale); border-color: var(--green); }
.machine-card-icon {
  width: 36px; height: 36px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.machine-card-icon svg { width: 16px; height: 16px; stroke: var(--green); fill: none; stroke-width: 2; }
.machine-info { flex: 1; }
.machine-name { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.3; }
.machine-brand { font-size: 12px; font-weight: 400; color: var(--green); text-transform: uppercase; letter-spacing: 0.06em; }

/* ── WHY US ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.why-card {
  background: #fff;
  padding: 36px 30px;
  position: relative;
}
.why-card::before {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  background: var(--green);
  margin-bottom: 20px;
}
.why-card h3 {
  font-family: var(--font-cond);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 10px;
}
.why-card p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.65;
}
.why-num {
  font-family: var(--font-cond);
  font-size: 48px;
  font-weight: 800;
  color: rgba(232,67,26,0.1);
  position: absolute;
  bottom: 16px;
  right: 20px;
  line-height: 1;
}

/* ── CLIENTS ── */
.clients-overflow { overflow: hidden; position: relative; }
.clients-overflow::before,
.clients-overflow::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
}
.clients-overflow::before { left: 0; background: linear-gradient(to right, var(--bg-section), transparent); }
.clients-overflow::after  { right: 0; background: linear-gradient(to left, var(--bg-section), transparent); }

.clients-track {
  display: flex;
  animation: scroll 32s linear infinite;
  width: max-content;
}
.clients-track:hover { animation-play-state: paused; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.client-name {
  padding: 16px 36px;
  font-family: var(--font-cond);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
  white-space: nowrap;
  transition: color 0.2s;
}
.client-name:hover { color: var(--green); }

/* ── CTA SECTION ── */
.cta-section {
  background: #0D1B2A;
  padding: 80px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.cta-section > * { position: relative; z-index: 1; }
.cta-section h2 {
  font-family: var(--font-cond);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.cta-section p {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.cta-contact-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.cta-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}
.cta-detail svg { width: 14px; height: 14px; stroke: var(--green-light); fill: none; stroke-width: 2; flex-shrink: 0; }
.cta-detail strong { color: rgba(255,255,255,0.9); font-weight: 500; }

/* ── FOOTER ── */
footer {
  background: var(--green-footer);
  color: rgba(255,255,255,0.85);
  padding: 60px 5% 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 280px 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-logo-wrap { display: flex; flex-direction: column; gap: 12px; }
.footer-logo-name {
  font-family: var(--font-cond);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-logo-name .chevrons { display: flex; gap: 2px; }
.footer-logo-name .ch { width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.footer-logo-name .ch1 { border-left: 9px solid rgba(255,255,255,0.5); }
.footer-logo-name .ch2 { border-left: 9px solid #fff; }
.footer-tagline { font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.5); line-height: 1.6; }
.footer-address { font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.65); line-height: 1.8; }

.footer-col h4 {
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--green-light); }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.35); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,0.6); }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── RESPONSIVE DESIGN (Media Queries) ── */

@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr; /* Stopka w 2 kolumnach na tabletach */
  }
}

@media (max-width: 768px) {
  /* Nawigacja */
  nav {
    height: auto;
    padding: 15px 5%;
    flex-direction: column;
    gap: 15px;
  }
  .nav-links {
    margin-left: 0;
    flex-wrap: wrap;
    justify-content: center;
  }
  .nav-links a {
    padding: 6px 10px;
    font-size: 11px;
  }

  /* Hero */
  .hero {
    padding: 60px 5%;
    text-align: center;
  }
  .hero-inner {
    max-width: 100%;
  }
  .hero-label {
    justify-content: center;
  }
  .hero-label::before { display: none; } /* Usuwamy kreskę dla lepszego wyśrodkowania */
  .hero-desc {
    margin: 0 auto 30px;
  }
  .hero-btns {
    justify-content: center;
  }

  /* Statystyki - zmiana na 2x2 */
  .stats-inner {
    flex-wrap: wrap;
  }
  .stat {
    flex: 0 0 50%;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .stat:nth-child(even) {
    border-left: 1px solid rgba(255,255,255,0.1);
  }

  /* Usługi i Maszyny - wymuszenie 1 kolumny tam, gdzie grid jest za ciasny */
  .services-grid, .machines-grid {
    grid-template-columns: 1fr;
  }

  /* Stopka - wszystko w jednej kolumnie */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .footer-logo-wrap {
    align-items: center;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Topbar - ukrywamy lub upraszczamy na małych ekranach */
  .topbar {
    justify-content: center;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .stat {
    flex: 0 0 100%; /* Statystyki jeden pod drugim na bardzo małych telefonach */
    border-left: none !important;
  }
  
  .hero h1 {
    font-size: 36px; /* Nadpisujemy clamp, jeśli wciąż jest za duże */
  }
}