/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --green:  #1a4a2e;
  --green2: #22603b;
  --lime:   #7cbf3b;
  --yellow: #f0c419;
  --dark:   #111a14;
  --light:  #f5f7f4;
  --gray:   #6b7c72;
  --white:  #ffffff;
  --section-pad: 100px 0;
  --radius: 10px;
  --shadow: 0 8px 40px rgba(0,0,0,.15);
}
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--white);
  color: var(--dark);
  line-height: 1.7;
}
h1, h2, h3 { line-height: 1.25; }
img { display: block; max-width: 100%; border-radius: var(--radius); }
a { color: inherit; text-decoration: none; }

/* ── Utility ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.tag {
  display: inline-block;
  background: var(--lime);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--green);
  margin-bottom: 22px;
}
.section-title span { color: var(--lime); }
.lead {
  font-size: 1.05rem;
  color: #3a4a40;
  max-width: 560px;
}
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
  letter-spacing: .03em;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.2); }
.btn-primary { background: var(--lime); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-dark    { background: var(--green); color: var(--white); }

/* ── NAV ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26,74,46,.97);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--lime);
  transition: box-shadow .3s;
}
#navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.35); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-img {
  height: 52px;
  width: auto;
  border-radius: 0;
}
.logo-name {
  color: var(--lime);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.15;
  white-space: nowrap;
}
.logo-name span {
  display: block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: rgba(255,255,255,.55);
}
.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,.82);
  font-size: .88rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 6px;
  transition: background .18s, color .18s;
  letter-spacing: .02em;
}
.nav-links a:hover,
.nav-links a.active { background: var(--lime); color: var(--white); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--green) 0%, var(--green2) 55%, #0d2e1b 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 70px;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(124,191,59,.12) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%237cbf3b' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 80px 0;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(124,191,59,.4);
  color: var(--lime);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero-label::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.4)} }
.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -.02em;
}
.hero-title em { color: var(--lime); font-style: normal; }
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-img-wrap { position: relative; }
.hero-img-wrap img {
  width: 100%;
  object-fit: cover;
  height: 480px;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.hero-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--yellow);
  border-radius: 12px;
  padding: 16px 22px;
  color: var(--dark);
  font-weight: 800;
  font-size: .85rem;
  box-shadow: var(--shadow);
  max-width: 220px;
}
.hero-badge strong { display: block; font-size: 1.5rem; }
.stats-strip {
  display: flex;
  gap: 40px;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 20px;
}
.stat-item { color: var(--white); }
.stat-item strong { display: block; font-size: 1.6rem; font-weight: 900; color: var(--lime); }
.stat-item span { font-size: .8rem; opacity: .7; }

/* ── SECTION COMMON ── */
section { padding: var(--section-pad); }
section:nth-child(even) { background: var(--light); }
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.section-grid.reverse { direction: rtl; }
.section-grid.reverse > * { direction: ltr; }

/* ── PRZEGLĄDY ── */
#przeglady { background: var(--white); }
.feature-list { list-style: none; margin: 28px 0 36px; display: flex; flex-direction: column; gap: 14px; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: .97rem;
  color: #3a4a40;
}
.feat-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.feat-icon.red    { background: #fde8e8; color: #c0392b; }
.feat-icon.yellow { background: #fef9e7; color: #d4a017; }
.feat-icon.green  { background: #e8f5e9; color: #27ae60; }
.traffic-box {
  background: var(--light);
  border-radius: 12px;
  padding: 24px;
  margin-top: 28px;
}
.traffic-box h4 { font-size: .9rem; color: var(--green); font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .06em; }
.traffic-items { display: flex; flex-direction: column; gap: 10px; }
.tl-item { display: flex; align-items: center; gap: 14px; font-size: .9rem; }
.tl-dot { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; }
.tl-dot.red    { background: #e74c3c; }
.tl-dot.yellow { background: #f39c12; }
.tl-dot.green  { background: #27ae60; }

/* ── DOKUMENTACJA ── */
#dokumentacja { background: var(--light); }
.doc-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0 36px;
}
.doc-card {
  background: var(--white);
  border-radius: 10px;
  padding: 20px;
  border-left: 4px solid var(--lime);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.doc-card h4 { font-size: .9rem; font-weight: 700; color: var(--green); margin-bottom: 6px; }
.doc-card p  { font-size: .85rem; color: var(--gray); }

/* ── PROJEKTOWANIE ── */
#projektowanie { background: var(--white); }
.img-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.img-gallery .main-img { grid-column: 1 / -1; }
.img-gallery img { width: 100%; object-fit: cover; border-radius: 10px; }
.img-gallery .main-img img { height: 300px; }
.img-gallery .sub-img img  { height: 180px; }
.process-steps { display: flex; flex-direction: column; gap: 20px; margin: 28px 0 36px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
  font-size: .85rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.step-body h4 { font-size: .95rem; font-weight: 700; color: var(--green); margin-bottom: 3px; }
.step-body p  { font-size: .88rem; color: var(--gray); }

/* ── O NAS ── */
#onas {
  background: linear-gradient(135deg, var(--green) 0%, #0d2e1b 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
#onas::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(124,191,59,.07);
}
#onas .section-title { color: var(--white); }
#onas .lead { color: rgba(255,255,255,.8); max-width: 680px; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}
.value-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 28px 24px;
  transition: background .25s, transform .25s;
}
.value-card:hover { background: rgba(255,255,255,.12); transform: translateY(-4px); }
.value-icon { width: 44px; height: 44px; margin-bottom: 16px; color: var(--lime); }
.value-icon svg { width: 100%; height: 100%; }
.value-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 10px; color: var(--lime); }
.value-card p  { font-size: .88rem; color: rgba(255,255,255,.72); line-height: 1.65; }
.onas-center { text-align: center; max-width: 740px; margin: 0 auto; }
.onas-center .lead { max-width: 100%; margin: 0 auto 36px; font-size: 1.08rem; }
.norm-badge {
  display: inline-block;
  border: 1px solid rgba(124,191,59,.4);
  color: var(--lime);
  font-size: .75rem;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: .06em;
}

/* ── KONTAKT ── */
#kontakt { background: var(--light); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 14px; }
.contact-info .lead { margin-bottom: 36px; }
.contact-items { display: flex; flex-direction: column; gap: 28px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.ci-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--green);
  color: var(--white);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ci-icon svg { width: 22px; height: 22px; }
.ci-body strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--lime); margin-bottom: 4px; font-weight: 700; }
.ci-body span, .ci-body a { font-size: .97rem; color: #3a4a40; display: block; line-height: 1.6; }
.ci-body a:hover { color: var(--lime); }
.contact-form-wrap {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow);
}
.contact-form-wrap h3 { font-size: 1.2rem; font-weight: 800; color: var(--green); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-group label { font-size: .8rem; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .06em; }
.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 1.5px solid #d4ddd7;
  border-radius: 8px;
  font-size: .95rem;
  font-family: inherit;
  color: var(--dark);
  outline: none;
  transition: border-color .2s;
  background: var(--light);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--lime); background: var(--white); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit {
  width: 100%; padding: 15px; border: none; border-radius: 50px;
  background: var(--green); color: var(--white);
  font-size: 1rem; font-weight: 700; cursor: pointer;
  letter-spacing: .04em; transition: background .2s, transform .15s;
  margin-top: 6px;
}
.form-submit:hover:not(:disabled) { background: var(--lime); transform: translateY(-2px); }
.form-submit:disabled { opacity: .6; cursor: not-allowed; }
.form-feedback {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  margin-top: 14px;
  display: none;
}
.form-feedback.success { background: #e8f5e9; color: #27ae60; border: 1px solid #a5d6a7; }
.form-feedback.error   { background: #fde8e8; color: #c0392b; border: 1px solid #ef9a9a; }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.55);
  padding: 40px 0;
  font-size: .85rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,.5); transition: color .2s; }
.footer-links a:hover { color: var(--lime); }

/* ── SCROLL PROGRESS ── */
.scroll-progress {
  position: fixed;
  top: 70px; left: 0;
  height: 3px;
  background: var(--lime);
  z-index: 999;
  transition: width .1s;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner, .section-grid, .contact-grid { grid-template-columns: 1fr; }
  .section-grid.reverse { direction: ltr; }
  .hero-img-wrap { order: -1; }
  .hero-img-wrap img { height: 300px; }
  .hero-badge { bottom: 10px; left: 10px; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .doc-cards { grid-template-columns: 1fr; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--green);
    padding: 20px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .stats-strip { gap: 24px; flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .values-grid  { grid-template-columns: 1fr; }
  .form-row     { grid-template-columns: 1fr; }
  .img-gallery  { grid-template-columns: 1fr; }
  .img-gallery .main-img { grid-column: 1; }
  .contact-form-wrap { padding: 24px; }
  section { padding: 70px 0; }
  .logo-name { display: none; }
}
