/* ============================================================
   BOSZ-INOX — ciemny industrialny premium
   Jeden plik CSS, zero frameworkow. Zmienne (tokeny) ponizej.
   ============================================================ */

:root {
  --bg: #0c0f12;            /* grafit prawie czarny */
  --bg-2: #12161b;          /* tlo sekcji naprzemienne */
  --surface: #181e24;       /* karty */
  --surface-2: #1e252c;
  --line: rgba(255, 255, 255, .08);
  --text: #e9edf1;
  --muted: #97a2ab;
  --accent: #d98e32;        /* bursztyn / iskra spawania */
  --accent-soft: rgba(217, 142, 50, .14);
  --steel: #8fa8ba;         /* stalowy blekit — detale */
  --radius: 4px;
  --font-display: 'Archivo', sans-serif;
  --font-body: 'Inter', sans-serif;
  --container: 1200px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

img:not([src$=".svg"]) { filter: saturate(.85) contrast(1.05); }

a { color: var(--text); text-decoration: none; }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .015em;
  line-height: 1.12;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.15rem; letter-spacing: .02em; }

p { color: var(--muted); }

.muted { color: var(--muted); }

/* ---------- eyebrow ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .25em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
  flex: 0 0 auto;
}

/* ---------- przyciski ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #0c0f12;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, color .25s ease, transform .25s ease;
}
.btn:hover { background: #e8a04a; border-color: #e8a04a; transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-ghost:hover {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.link-more {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  display: inline-flex;
  gap: 8px;
  margin-top: 14px;
}
.link-more span { transition: transform .25s ease; }
.link-more:hover span { transform: translateX(5px); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(12, 15, 18, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}
.logo { display: flex; align-items: center; margin-right: auto; }
.logo img { height: 34px; width: auto; filter: none; }

.main-nav ul { display: flex; gap: 30px; list-style: none; }
.main-nav a {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
  transition: color .25s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
}
.lang-switch .sep { color: var(--line); }
.lang-switch a { color: var(--muted); transition: color .25s ease; }
.lang-switch a:hover { color: var(--text); }
.lang-switch a.active { color: var(--accent); }

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* menu mobilne */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(12, 15, 18, .97);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  opacity: 0;
  transition: opacity .3s ease;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.open { opacity: 1; }
.mobile-menu ul { list-style: none; text-align: center; }
.mobile-menu li + li { margin-top: 22px; }
.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text);
}
.mobile-menu nav a.active { color: var(--accent); }
.mobile-menu .lang-switch { font-size: 1rem; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 92vh;
  padding: calc(var(--header-h) + 60px) 0 90px;
  overflow: hidden;
  isolation: isolate;
}
.hero-page { min-height: 52vh; padding-bottom: 70px; }

.hero-media, .hero-media img, .hero-overlay { position: absolute; inset: 0; }
.hero-media { z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(to top, rgba(12, 15, 18, .96) 0%, rgba(12, 15, 18, .55) 55%, rgba(12, 15, 18, .45) 100%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}

.hero-content > * { max-width: 720px; }
.hero-text { font-size: 1.08rem; margin: 20px 0 34px; color: #c8d0d8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- statystyki ---------- */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 40px 26px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; }
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--accent);
  margin-bottom: 8px;
}
.stat-label { font-size: .88rem; color: var(--muted); }

/* ---------- sekcje ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.section-head { margin-bottom: 48px; max-width: 760px; }
.section-head-num {
  display: flex;
  align-items: flex-start;
  gap: 26px;
  max-width: none;
}
.sec-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(143, 168, 186, .35);
  flex: 0 0 auto;
  user-select: none;
}

.lead { font-size: 1.06rem; max-width: 820px; }
.subhead {
  margin: 44px 0 12px;
  color: var(--steel);
}

/* ---------- gridy kart ---------- */
.card-grid { display: grid; gap: 24px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* karty branz */
.ind-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.ind-card:hover {
  transform: translateY(-6px);
  border-top-color: var(--accent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
.ind-card-media { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.ind-card-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12, 15, 18, .55), transparent 55%);
}
.ind-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.ind-card:hover .ind-card-media img { transform: scale(1.05); }
.ind-card-body { padding: 24px; }
.ind-card-body h3 { margin-bottom: 10px; }

/* karty "dlaczego" */
.why-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .3s ease, border-color .3s ease;
}
.why-card:hover { transform: translateY(-4px); border-color: rgba(217, 142, 50, .45); }
.why-num {
  display: block;
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--accent);
  margin-bottom: 16px;
}
.why-card h3 { margin-bottom: 10px; }

/* karty zalet (oferta) */
.benefit-grid { margin-top: 36px; }
.benefit-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform .3s ease, border-color .3s ease;
}
.benefit-card:hover { transform: translateY(-4px); border-color: rgba(217, 142, 50, .45); }
.benefit-num {
  display: block;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--accent);
  margin-bottom: 14px;
}
.benefit-card h4 {
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 10px;
}
.benefit-card p { font-size: .9rem; }

/* ---------- split (tekst + zdjecie) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split-top { align-items: start; }
.split-text p { margin-bottom: 20px; }
.split-text .btn { margin-top: 10px; }
.split-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- lista narzedzi (engineering) ---------- */
.tool-list { border-top: 1px solid var(--line); }
.tool-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}
.tool-label { font-weight: 600; color: var(--text); }
.tool-items { color: var(--steel); font-size: .92rem; }

/* ---------- lista punktow (spawanie) ---------- */
.check-list { list-style: none; max-width: 820px; }
.check-list li {
  position: relative;
  padding: 16px 4px 16px 34px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.check-list li:first-child { border-top: 1px solid var(--line); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 24px;
  width: 14px; height: 2px;
  background: var(--accent);
}

/* ---------- tagi (kontrola jakosci) ---------- */
.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.tag-list li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: .88rem;
  padding: 10px 16px;
  transition: border-color .25s ease, color .25s ease;
}
.tag-list li:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- certyfikaty ---------- */
.cert-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .3s ease, border-color .3s ease;
}
.cert-card:hover { transform: translateY(-4px); border-color: rgba(217, 142, 50, .45); }
.cert-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: .03em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(217, 142, 50, .35);
  border-radius: var(--radius);
  padding: 10px 16px;
  margin-bottom: 18px;
}
.cert-card p { font-size: .92rem; }

/* ---------- transport ---------- */
.transport-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.transport-grid figure {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.transport-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.transport-grid figure:hover img { transform: scale(1.05); }

/* ---------- galeria ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  cursor: zoom-in;
  position: relative;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .5s ease; }
.gallery-item:hover img { transform: scale(1.06); filter: saturate(.85) contrast(1.05) brightness(1.12); }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(12, 15, 18, .95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: min(1100px, 92vw);
  max-height: 84vh;
  object-fit: contain;
  border-radius: var(--radius);
  filter: none;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius);
  width: 48px; height: 48px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { border-color: var(--accent); color: var(--accent); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- closing (oferta) ---------- */
.closing { max-width: 760px; }
.closing-text { margin: 18px 0 32px; }

/* ---------- pasek kontaktowy nad stopka ---------- */
.band {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 80px 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.band-inner { max-width: 700px; }
.band-text { margin: 16px 0 30px; }

/* ---------- kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.contact-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.contact-block h3 {
  color: var(--accent);
  font-size: .85rem;
  letter-spacing: .18em;
  margin-bottom: 14px;
}
.contact-block .contact-sub { margin-top: 22px; }
.contact-block p { margin-bottom: 14px; }
.contact-block p:last-child { margin-bottom: 0; }
.contact-block a { color: var(--text); transition: color .25s ease; }
.contact-block a:hover { color: var(--accent); }

/* formularz */
.contact-form { max-width: 720px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-field input, .form-field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
  padding: 13px 16px;
  transition: border-color .25s ease;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-field textarea { resize: vertical; }
.form-note {
  margin-top: 16px;
  font-size: .84rem;
  color: var(--muted);
}
.form-note.sent { color: var(--accent); }

/* mapa */
.map-section { line-height: 0; border-top: 1px solid var(--line); }
.map-section iframe {
  filter: grayscale(1) invert(.92) contrast(.9);
  height: 380px;
}

/* ---------- stopka ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 64px 20px 48px;
}
.footer-logo { height: 34px; width: auto; margin-bottom: 18px; }
.footer-col h3 {
  font-size: .8rem;
  letter-spacing: .2em;
  color: var(--steel);
  margin-bottom: 16px;
}
.footer-col p, .footer-links { font-size: .9rem; color: var(--muted); }
.footer-col a { color: var(--muted); transition: color .25s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-links { list-style: none; }
.footer-links li + li { margin-top: 10px; }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 20px;
  font-size: .8rem;
  color: var(--muted);
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- responsywnosc ---------- */
@media (max-width: 1024px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .transport-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: none; border-top: 1px solid var(--line); }
  .stat:nth-child(-n + 2) { border-top: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .main-nav, .site-header .lang-switch { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .tool-row { grid-template-columns: 1fr; gap: 6px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .transport-grid { grid-template-columns: 1fr; }
  .section-head-num { gap: 16px; }
  .hero { min-height: 78vh; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox { padding: 16px; }
}

@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-top: 1px solid var(--line); }
  .stat:first-child { border-top: none; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom-inner { flex-direction: column; }
}

/* ---------- prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
