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

:root {
  --orange: #f97316;
  --orange-dark: #ea6c0a;
  --dark: #111827;
  --dark2: #1f2937;
  --dark3: #374151;
  --gray: #6b7280;
  --light: #f9fafb;
  --white: #ffffff;
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--dark);
  color: var(--white);
  line-height: 1.6;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(17, 24, 39, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(249,115,22,.2);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--white);
  text-decoration: none;
}
.logo span { color: var(--orange); }
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: #d1d5db;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--orange); }
.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: .45rem 1.1rem;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--orange-dark) !important; color: var(--white) !important; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  /* Fallback dla przeglądarek bez image-set */
  background:
    linear-gradient(135deg, rgba(17,24,39,.92) 0%, rgba(31,41,55,.80) 100%),
    url('hero.jpg') center/cover no-repeat;
  padding: 6rem 1.5rem 4rem;
}
/* WebP z fallbackiem JPEG dla nowoczesnych przeglądarek */
@supports (background-image: image-set(url('hero.webp') type('image/webp'))) {
  .hero {
    background:
      linear-gradient(135deg, rgba(17,24,39,.92) 0%, rgba(31,41,55,.80) 100%),
      image-set(url('hero.webp') type('image/webp'), url('hero.jpg') type('image/jpeg')) center/cover no-repeat;
  }
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(249,115,22,.15);
  border: 1px solid rgba(249,115,22,.4);
  color: var(--orange);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  max-width: 700px;
}
.hero h1 span { color: var(--orange); }
.hero p {
  font-size: 1.1rem;
  color: #9ca3af;
  max-width: 540px;
  margin-bottom: 2.5rem;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  padding: .8rem 2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background .2s, transform .15s;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  padding: .8rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,.25);
  transition: border-color .2s, transform .15s;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 4rem;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}
.stat-label { font-size: .8rem; color: #6b7280; margin-top: .2rem; }

/* ── SECTIONS COMMON ── */
section { padding: 5rem 1.5rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-tag {
  display: inline-block;
  color: var(--orange);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.section-sub {
  color: #9ca3af;
  font-size: 1rem;
  max-width: 560px;
  margin-bottom: 3rem;
}
.divider {
  width: 56px;
  height: 4px;
  background: var(--orange);
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

/* ── SERVICES ── */
#uslugi { background: var(--dark2); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color .25s, transform .2s;
}
.service-card:hover {
  border-color: rgba(249,115,22,.5);
  transform: translateY(-4px);
}
.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(249,115,22,.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.service-card p { font-size: .875rem; color: #9ca3af; }

/* ── EQUIPMENT ── */
#sprzet { background: var(--dark); }
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.equipment-card {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s, transform .2s;
}
.equipment-card:hover {
  border-color: rgba(249,115,22,.5);
  transform: translateY(-4px);
}
.eq-header {
  background: linear-gradient(135deg, var(--dark3), var(--dark2));
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.eq-icon {
  font-size: 2.2rem;
  line-height: 1;
}
.eq-name {
  font-size: 1.05rem;
  font-weight: 700;
}
.eq-type {
  font-size: .75rem;
  color: var(--orange);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.eq-body { padding: 1.25rem; }
.eq-specs { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.eq-specs li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .875rem;
  color: #d1d5db;
}
.eq-specs li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
}
.eq-tag {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(249,115,22,.15);
  color: var(--orange);
  font-size: .75rem;
  font-weight: 600;
  padding: .3rem .7rem;
  border-radius: 999px;
}

/* ── WHY US ── */
#dlaczego { background: var(--dark2); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.why-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--dark3);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.06);
}
.why-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.why-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.why-card p { font-size: .85rem; color: #9ca3af; }

/* ── CONTACT ── */
#kontakt { background: var(--dark); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 1rem; }
.contact-info p { color: #9ca3af; margin-bottom: 2rem; font-size: .95rem; }
.contact-items { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-item-icon {
  width: 44px;
  height: 44px;
  background: rgba(249,115,22,.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-item-text strong {
  display: block;
  font-size: .8rem;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .1rem;
}
.contact-item-text span { font-size: .95rem; color: #d1d5db; }
.contact-item-text a { font-size: .95rem; color: #d1d5db; text-decoration: none; transition: color .2s; }
.contact-item-text a:hover { color: var(--orange); }
.contact-form {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  padding: 2rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-group label { font-size: .8rem; font-weight: 600; color: #9ca3af; }
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: var(--white);
  font-size: .9rem;
  padding: .7rem 1rem;
  outline: none;
  transition: border-color .2s;
  font-family: inherit;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--orange);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select option { background: var(--dark3); }
.form-submit {
  width: 100%;
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: .85rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  margin-top: .5rem;
}
.form-submit:hover { background: var(--orange-dark); }

/* ── Zgoda RODO ── */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: 1rem;
}
.form-consent input {
  width: 18px;
  height: 18px;
  margin-top: .15rem;
  flex-shrink: 0;
  accent-color: var(--orange);
  cursor: pointer;
}
.form-consent label {
  font-size: .8rem;
  line-height: 1.5;
  color: #9ca3af;
  cursor: pointer;
}
.rodo-note {
  margin-bottom: 1rem;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: var(--dark3);
}
.rodo-note summary {
  cursor: pointer;
  padding: .65rem 1rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--orange);
  list-style: none;
}
.rodo-note summary::-webkit-details-marker { display: none; }
.rodo-note summary::before {
  content: '▸ ';
  display: inline-block;
  transition: transform .2s;
}
.rodo-note[open] summary::before { content: '▾ '; }
.rodo-content {
  padding: 0 1rem 1rem;
  font-size: .75rem;
  line-height: 1.6;
  color: #9ca3af;
}
.rodo-content p { margin-bottom: .6rem; }
.rodo-content p:last-child { margin-bottom: 0; }
.rodo-content strong { color: #d1d5db; }
.rodo-content a { color: var(--orange); text-decoration: none; }
.rodo-content a:hover { text-decoration: underline; }

/* ── FOOTER ── */
footer {
  background: var(--dark2);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 2rem 1.5rem;
  text-align: center;
  color: #6b7280;
  font-size: .85rem;
}
footer strong { color: var(--orange); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
}
