:root {
  --grey-900: #1d1f20;
  --grey-800: #2b2d2f;
  --grey-700: #3a3d40;
  --grey-500: #6b6e72;
  --grey-300: #b9bcc0;
  --grey-100: #e8e9ea;
  --accent: #c8102e;
  --accent-dark: #9e0c24;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Roboto', sans-serif;
  background: var(--grey-800);
  color: var(--grey-100);
  padding-top: 0;
}
h1, h2, h3, .brand-text, .eyebrow, .btn, .num {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: .03em;
}
a { color: var(--grey-100); }
.text-accent { color: var(--accent); }
.text-muted-light { color: var(--grey-300); }

/* NAV */
#mainNav {
  background: rgba(29, 31, 32, .55);
  backdrop-filter: blur(6px);
  transition: background .3s, box-shadow .3s;
}
#mainNav.scrolled { background: rgba(29, 31, 32, .96); box-shadow: 0 2px 12px rgba(0,0,0,.4); }
#mainNav .navbar-collapse { background: rgba(29,31,32,.97); padding: .5rem 1rem; border-radius: 6px; }
@media (min-width: 992px) { #mainNav .navbar-collapse { background: transparent; padding: 0; } }
.brand-logo { height: 38px; width: auto; border-radius: 4px; }
.brand-text { font-weight: 700; font-size: 1.15rem; }
.brand-text small { color: var(--accent); font-size: .75em; }
.nav-link { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .05em; }
.nav-link:hover { color: var(--accent) !important; }

/* BUTTONS */
.btn-accent {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 4px 0 var(--accent-dark);
  transition: transform .1s, box-shadow .1s, background .2s;
}
.btn-accent:hover { background: #e0143a; color: #fff; }
.btn-accent:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent-dark); }

/* HERO – tło z image000000.JPG widoczne pod szarym nakładem */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 7rem 0 4rem;
  background:
    linear-gradient(180deg, rgba(43,45,47,.78) 0%, rgba(43,45,47,.88) 100%),
    url('../images/bg-hero.jpg') center / cover no-repeat,
    var(--grey-800);
  background-attachment: scroll;
  overflow: hidden;
}
@media (min-width: 992px) { .hero { background-attachment: scroll, fixed, scroll; } }
.hero::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 90px;
  background: linear-gradient(180deg, transparent, var(--grey-800));
}
.hero h1 { font-size: clamp(2.2rem, 7vw, 4rem); font-weight: 700; line-height: 1.05; margin-bottom: 1rem; }
.hero .lead { color: var(--grey-100); max-width: 34rem; margin-bottom: 1.5rem; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: .95rem; margin-bottom: .5rem; }
.scroll-hint {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  z-index: 2; text-decoration: none; font-size: 1.8rem; color: var(--grey-100);
  animation: bounce 1.6s infinite;
}
@keyframes bounce { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* SVG – chłop z młotem */
.hero-figure svg { width: 100%; max-width: 420px; height: auto; filter: drop-shadow(0 12px 18px rgba(0,0,0,.5)); }
.hammer { transform-box: fill-box; transform-origin: 85% 90%; animation: swing 1.6s ease-in-out infinite; }
@keyframes swing {
  0%   { transform: rotate(-35deg); }
  45%  { transform: rotate(-35deg); }
  60%  { transform: rotate(18deg); }
  100% { transform: rotate(-35deg); }
}
.worker { animation: body 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom center; }
@keyframes body { 0%,45% { transform: rotate(0); } 60% { transform: rotate(2deg); } 100% { transform: rotate(0); } }
.debris polygon { animation: shake 1.6s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes shake { 0%,55% { transform: translate(0,0); } 62% { transform: translate(6px,-8px) rotate(12deg); } 100% { transform: translate(0,0); } }
@media (prefers-reduced-motion: reduce) {
  .hammer, .worker, .debris polygon, .scroll-hint { animation: none; }
  html { scroll-behavior: auto; }
}

/* SECTIONS */
.section { padding: 4.5rem 0; }
.section-dark { background: var(--grey-900); }
.section-head { margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 700; }

.card-service {
  background: var(--grey-700);
  border-top: 4px solid var(--accent);
  border-radius: 6px;
  padding: 1.75rem 1.5rem;
  transition: transform .25s, box-shadow .25s;
}
.card-service:hover { transform: translateY(-6px); box-shadow: 0 12px 24px rgba(0,0,0,.4); }
.card-service .icon { font-size: 2.2rem; margin-bottom: .5rem; }
.card-service h3 { font-size: 1.4rem; font-weight: 600; }
.card-service p { color: var(--grey-300); }
.card-service ul { padding-left: 1.1rem; margin: 0; color: var(--grey-100); }
.card-service li::marker { color: var(--accent); }

.stat { padding: 1rem .5rem; }
.stat .num { display: block; font-size: clamp(2.2rem, 8vw, 3.4rem); font-weight: 700; color: var(--accent); }
.stat span:last-child { color: var(--grey-300); font-size: .95rem; }

/* GALERIA */

/* KONTAKT */
.contact-box, .contact-form { background: var(--grey-700); border-radius: 6px; padding: 1.75rem 1.5rem; height: 100%; }
.contact-box h3 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.contact-box p { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; word-break: break-word; }
.ci { display: inline-flex; min-width: 2.2rem; height: 2.2rem; align-items: center; justify-content: center; background: var(--accent); color: #fff; border-radius: 50%; font-size: .8rem; font-weight: 700; }
.contact-form .form-control, .contact-form .form-select {
  background: var(--grey-800); border-color: var(--grey-500); color: var(--grey-100);
}
.contact-form .form-control:focus, .contact-form .form-select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(200,16,46,.25);
}
#formInfo.ok { color: #7bd88f; }
#formInfo.err { color: #ff8a8a; }

.footer { background: #141516; padding: 1.5rem 0; color: var(--grey-300); }

/* STICKY PRZYCISK TELEFONU */
.call-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 1030;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: #fff; text-decoration: none;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.5);
}

/* Reveal przy przewijaniu */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.reveal.visible { opacity: 1; transform: none; }

/* Zdjęcie w hero (hero-chlop.jpg) – gdy istnieje, zastępuje ilustrację SVG */
.hero-photo { display: none; width: 100%; max-width: 440px; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 8px; border-bottom: 6px solid var(--accent); box-shadow: 0 16px 32px rgba(0,0,0,.55); }
.hero-figure.has-photo .hero-photo { display: inline-block; }
.hero-figure.has-photo svg { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }

/* GALERIA – karty (tekst jako HTML) */
.gal-item {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; width: 100%;
  aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 6px; overflow: hidden; cursor: pointer;
  background: linear-gradient(135deg, var(--grey-700), var(--grey-500)) center / cover no-repeat;
  text-align: left; color: #fff; transition: transform .25s, box-shadow .25s;
}
.gal-item::before { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.85)); }
.gal-item:hover, .gal-item:focus-visible { transform: scale(1.03); box-shadow: 0 10px 24px rgba(0,0,0,.5); outline: 0; }
.gal-item:focus-visible { box-shadow: 0 0 0 3px var(--accent); }
.gal-label, .gal-more { position: relative; z-index: 1; padding: 0 .85rem; }
.gal-label { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .03em; font-weight: 600; font-size: clamp(.95rem, 3.6vw, 1.25rem); line-height: 1.15; }
.gal-more { padding-bottom: .75rem; font-size: .8rem; color: var(--grey-300); }
.gal-item:hover .gal-more { color: #fff; }

/* GALERIA – slider */
.gal-modal { background: var(--grey-900); color: var(--grey-100); border: 1px solid var(--grey-700); }
.gal-modal .modal-header { border-bottom-color: var(--grey-700); }
.gal-modal .modal-title { font-family: 'Oswald', sans-serif; text-transform: uppercase; font-size: 1.25rem; margin: 0; }
.gal-slide-img { display: block; width: 100%; height: min(72vh, 640px); object-fit: contain; background: #111; }
.gal-empty { padding: 3rem 1rem; text-align: center; color: var(--grey-300); }
.carousel-control-prev, .carousel-control-next { width: 14%; }
