/* ------- PALETA / ZMIENNE ------- */
:root {
  --bg:        #f5f3ee;     /* jasne, ciepłe tło */
  --bg-2:      #ffffff;
  --ink:       #161616;     /* prawie czerń */
  --ink-soft:  #2a2a2a;
  --muted:     #5b5b5b;
  --line:      #e3dfd4;
  --yellow:    #ffc400;
  --yellow-d:  #d8a300;
  --dark:      #14130f;     /* sekcje na ciemno */
  --dark-2:    #1d1c17;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.02;
  margin: 0 0 .4em;
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); text-transform: uppercase; }
h3 { font-size: 1.3rem; text-transform: uppercase; letter-spacing: .02em; }

.hl { color: var(--yellow); }

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* ------- PASEK BHP (czarno-żółta szrafa) ------- */
.hazard-strip {
  height: 10px;
  background: repeating-linear-gradient(
    135deg,
    var(--yellow) 0 18px,
    var(--ink) 18px 36px
  );
}

/* ------- TOPBAR ------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .55rem 4%;
  background: rgba(245, 243, 238, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
/* relative tylko gdy potrzebne — dropdown na mobile pozycjonuje się
   względem topbara, ale na desktopie zostawiamy sticky bez kotwicy */
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-logo {
  display: block;
  height: 150px;
  width: auto;
  border-radius: 6px;
  transition: transform .25s ease;
}
.brand:hover .brand-logo { transform: scale(1.03); }

.nav {
  margin-left: auto;
  display: flex;
  gap: 1.5rem;
}
.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink-soft);
  padding: .25rem 0;
  position: relative;
}
.nav a:hover { color: var(--ink); }
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover::after { transform: scaleX(1); }

.cta-phone {
  background: var(--ink);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  white-space: nowrap;
  transition: background .2s ease;
}
.cta-phone:hover { background: var(--yellow); color: var(--ink); }

/* hamburger — domyślnie schowany, pojawia się dopiero na mobile */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
  transition: background .2s ease, border-color .2s ease;
}
.nav-toggle:hover { background: rgba(0, 0, 0, .04); border-color: var(--ink-soft); }
.nav-toggle:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: '';
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after  { top:  7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0; transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0; transform: rotate(-45deg);
}

@media (max-width: 740px) {
  .brand-logo { height: 100px; }
  .topbar { gap: .6rem; padding: .45rem 4%; position: relative; }
  .cta-phone { padding: .5rem .8rem; font-size: .88rem; }

  /* hamburger przejmuje rolę "odpychacza" — push siebie i telefon na prawo */
  .nav-toggle { display: inline-flex; margin-left: auto; order: 2; }
  .cta-phone { order: 3; }

  /* nav: dropdown wysuwany spod topbara */
  .nav {
    order: 4;
    margin-left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px -16px rgba(0, 0, 0, .25);
    padding: .25rem 4%;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a {
    padding: .85rem .25rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
}

/* ------- HERO ------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: brightness(.78);
  transform: scale(1.05);
  will-change: transform;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20,19,15,.78), rgba(20,19,15,.25) 60%, rgba(20,19,15,0)),
    linear-gradient(0deg, rgba(20,19,15,.55), transparent 40%);
}
.hero-inner {
  position: relative;
  width: min(1180px, 92%);
  margin: 0 auto;
  padding: clamp(7rem, 15vh, 9rem) 0;
  color: #fff;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .35rem .8rem;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255,196,0,.25);
}
.hero h1 {
  color: #fff;
  max-width: 14ch;
  font-size: clamp(2.4rem, min(5.5vw, 7.5vh), 5rem);
  margin: 0 0 .35em;
}
.hero .lead {
  max-width: 52ch;
  font-size: clamp(1rem, 1.6vh, 1.1rem);
  color: rgba(255,255,255,.85);
  margin: clamp(.8rem, 1.6vh, 1.2rem) 0 clamp(1.2rem, 2.4vh, 2rem);
}

.hero-cta {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 1rem 1.6rem;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: .01em;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  border: 2px solid transparent;
}
.btn-yellow {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 10px 28px -10px rgba(255,196,0,.55);
}
.btn-yellow:hover { background: var(--yellow-d); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.55);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.hero-stats {
  margin-top: clamp(2rem, 4.5vh, 3.5rem);
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}
.hero-stats > div {
  border-left: 3px solid var(--yellow);
  padding-left: 1rem;
}
.hero-stats strong {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}
.hero-stats span {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}

.scroll-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,.55);
  border-radius: 14px;
  text-decoration: none;
}
.scroll-hint span {
  display: block;
  width: 3px;
  height: 8px;
  background: var(--yellow);
  border-radius: 2px;
  margin: 6px auto 0;
  animation: scrollDot 1.8s infinite ease-in-out;
}
@keyframes scrollDot {
  0%   { transform: translateY(0); opacity: 1; }
  60%  { transform: translateY(14px); opacity: 0; }
  61%  { transform: translateY(0); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ------- SEKCJE ------- */
.section { padding: 5.5rem 0; }
.section-light { background: var(--bg); }
.section-dark  { background: var(--dark); color: #efe9d8; }
.section-dark h2 { color: #fff; }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h2 { max-width: 22ch; margin-inline: auto; }
.section-sub { color: var(--muted); max-width: 60ch; margin: 1rem auto 0; }
.section-dark .section-sub { color: rgba(255,255,255,.7); }

.kicker {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--yellow-d);
  margin: 0 0 .6rem;
  padding: .2rem .6rem;
  background: rgba(255,196,0,.16);
  border-radius: 4px;
}
.kicker.on-dark { background: rgba(255,196,0,.18); color: var(--yellow); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.two-col .prose p { color: var(--muted); margin: 0 0 1rem; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

/* ------- FLOTA ------- */
.fleet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 820px) { .fleet { grid-template-columns: 1fr; } }

.fleet-card {
  background: var(--dark-2);
  border: 1px solid #2c2a22;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, border-color .25s ease;
}
.fleet-card:hover {
  transform: translateY(-4px);
  border-color: var(--yellow);
}
.fleet-photo {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0c0c0a;
}
.fleet-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.fleet-card:hover .fleet-photo img { transform: scale(1.04); }

.fleet-body { padding: 1.6rem 1.6rem 1.8rem; color: #efe9d8; }
.fleet-tag {
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: -.2rem 0 1.1rem;
}
.specs {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  border-top: 1px solid #2c2a22;
}
.specs li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid #2c2a22;
  font-size: .95rem;
}
.specs li span { color: rgba(255,255,255,.55); }
.specs li strong { color: #fff; text-align: right; }
.fleet-note { color: rgba(255,255,255,.7); font-size: .95rem; margin: .5rem 0 0; }

/* ------- USŁUGI ------- */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 980px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .services { grid-template-columns: 1fr; } }

.service {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.6rem 1.4rem 1.5rem;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.service:hover {
  transform: translateY(-3px);
  border-color: var(--yellow);
  box-shadow: 0 18px 40px -28px rgba(0,0,0,.25);
}
.service-ico {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--ink);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.service h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.service p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ------- GALERIA / REALIZACJE ------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 820px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

.gal {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4 / 5;
  background: #ddd;
}
.gal img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease, filter .3s ease;
}
.gal-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: .8rem 1rem;
  background: linear-gradient(0deg, rgba(20,19,15,.82), transparent);
  color: #fff;
  font-size: .9rem;
  font-weight: 500;
  transform: translateY(15%);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}
.gal:hover img { transform: scale(1.05); filter: brightness(.85); }
.gal:hover .gal-cap { transform: translateY(0); opacity: 1; }
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 3rem 1rem;
  margin: 0;
  font-size: .95rem;
}

/* ------- KARTY (siatka wpisów: home / list / related) ------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
@media (max-width: 820px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .post-grid { grid-template-columns: 1fr; } }

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--yellow);
  box-shadow: 0 18px 40px -28px rgba(0,0,0,.25);
}
.card-img {
  display: block;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: #ddd;
  transition: filter .3s ease;
}
.card:hover .card-img { filter: brightness(.92); }
.card-body {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.2rem 1.2rem;
  flex: 1;
  gap: .55rem;
}
.card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--ink);
}
.card-excerpt {
  color: var(--muted);
  font-size: .92rem;
  flex: 1;
}
.card-more {
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
  color: var(--yellow-d);
  margin-top: auto;
}
.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: var(--muted);
  margin-top: .4rem;
}
.card-foot .card-more { font-size: .82rem; margin: 0; }

.section-more {
  text-align: center;
  margin: 2.5rem 0 0;
}

/* ------- BREADCRUMB ------- */
.breadcrumb {
  padding: 1rem 0 .25rem;
  font-size: .9rem;
  color: var(--muted);
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.breadcrumb a:hover { color: var(--ink); border-bottom-color: var(--yellow); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }
.breadcrumb [aria-hidden] { margin: 0 .5rem; color: var(--line); }

.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ------- STRONA POJEDYNCZEGO WPISU ------- */
.post {
  padding: 2rem 0 4rem;
}
.post-head {
  text-align: center;
  max-width: 760px;
  margin: 1rem auto 2rem;
}
.post-head h1 {
  margin: .4rem 0 1rem;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  text-transform: uppercase;
  line-height: 1.05;
}
.post-lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 auto;
}
.post-meta {
  margin-top: 1.2rem;
  font-size: .85rem;
  color: var(--muted);
  letter-spacing: .04em;
}
.post-cover {
  margin: 0 auto 2.5rem;
  max-width: 1180px;
  width: 92%;
}
.post-cover img {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 30px 60px -40px rgba(0,0,0,.45);
}
.post-body {
  max-width: 740px;
  font-size: 1.07rem;
  line-height: 1.7;
}
.post-body h2,
.post-body h3 {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  margin: 2.4em 0 .6em;
  line-height: 1.1;
}
.post-body h2 { font-size: 1.7rem; }
.post-body h3 { font-size: 1.3rem; }
.post-body p { margin: 0 0 1.2em; }
.post-body ul,
.post-body ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.post-body li { margin-bottom: .4em; }
.post-body blockquote {
  margin: 2em 0;
  padding: 1.2em 1.4em;
  border-left: 4px solid var(--yellow);
  background: rgba(255,196,0,.08);
  border-radius: 0 8px 8px 0;
  color: var(--ink-soft);
}
.post-body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 2em auto;
  box-shadow: 0 20px 40px -28px rgba(0,0,0,.35);
}
.post-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}
.post-stub {
  background: rgba(255,196,0,.1);
  border: 1px dashed var(--yellow-d);
  padding: 1.2rem 1.4rem;
  border-radius: 10px;
  color: var(--ink-soft);
}
.post-cta {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin: 3rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

/* button na jasnym tle (na podstronach mamy bardziej "biały" wygląd) */
.btn-ghost-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost-dark:hover { background: var(--ink); color: #fff; }

/* sekcja powiązanych - używa post-grid + lekkie tło */
.related { padding-top: 4rem; padding-bottom: 5rem; border-top: 1px solid var(--line); }

/* ------- KONTAKT ------- */
.contact-section { color: #efe9d8; }
.contact-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}
.contact-list li {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #2c2a22;
  align-items: center;
}
.contact-ico {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.contact-list div { display: flex; flex-direction: column; }
.contact-list span {
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.contact-list a, .contact-list strong {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
}
.contact-list a:hover { color: var(--yellow); }

/* ------- FOOTER ------- */
.footer { background: var(--dark); color: rgba(255,255,255,.7); }
.footer-inner {
  padding: 1.6rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .9rem;
}
.footer-meta { color: var(--yellow); letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; }

/* ------- WCIĄGARKA + LINA + HAK (sticky animacja na scroll) ------- */
.crane-rig {
  position: fixed;
  top: 0;
  /* trochę miejsca z prawej, żeby hak miał gdzie się wychylić bez schodzenia z ekranu */
  right: clamp(28px, 4vw, 64px);
  width: 70px;
  height: 100vh;
  pointer-events: none;
  z-index: 30;
  opacity: 0;
  transition: opacity .5s ease;
}
.crane-rig.is-visible { opacity: 1; }

/* MOCOWANIE / WCIĄGARKA u góry */
.rig-mount {
  position: absolute;
  top: 0;
  right: -30px;
  width: 120px;
  height: 70px;
}
.rig-mount svg { width: 100%; height: 100%; overflow: visible; }
/* bęben obraca się wokół swojego środka - kąt steruje JS */
.drum {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transform: rotate(var(--drum-rot, 0deg));
}

/* RAMIĘ: punkt-pivot tuż pod bębnem. Cały ten węzeł obraca się o --cable-tilt,
   więc lina i hak (dzieci tego elementu) zawsze są ze sobą zsynchronizowane
   geometrycznie - nie da się ich rozjechać niezależnie od matmy. */
.rig-arm {
  position: absolute;
  top: 62px;                  /* wyjście liny z bębna */
  right: 12px;                /* oś bębna - pivot na środku liny */
  width: 0;
  height: 0;
  transform-origin: 0 0;
  transform: rotate(var(--cable-tilt, 0deg));
}

/* LINA - żółta plecionka z ciemnym konturem, widoczna na jasnym i czarnym tle */
.rig-cable {
  position: absolute;
  top: 0;
  left: -2px;                 /* połowa szerokości liny → wycentrowane na pivocie */
  width: 4px;
  height: var(--cable-len, 0px);
  /* splot: jaśniejszy + ciemniejszy żółty na zmianę → wygląda jak skręcona lina */
  background:
    repeating-linear-gradient(
      to bottom,
      #ffc400 0,
      #ffc400 4px,
      #c98f00 4px,
      #c98f00 8px
    );
  border-radius: 2px;
  /* ciemny kontur + miękki cień - czytelne na każdym tle */
  box-shadow:
    0 0 0 1px #1a1a1a,
    0 1px 3px rgba(0, 0, 0, .35);
}

/* HAK - siedzi NA KOŃCU liny, dosłownie: top: cable-len.
   Dziedziczy obrót po .rig-arm, więc jest „przyklejony" do dołu liny.
   Dodatkowy --hook-extra-rot to drobna bezwładność bloczka. */
.rig-hook {
  position: absolute;
  top: var(--cable-len, 0px);
  left: -20px;                /* połowa szerokości haka → wycentrowane na pivocie */
  width: 40px;
  height: 56px;
  transform-origin: 20px 0;   /* obrót wokół miejsca styku z liną */
  transform: rotate(var(--hook-extra-rot, 0deg));
  /* podwójny cień: jeden ciemny dla konturu na białym, drugi dla głębi */
  filter:
    drop-shadow(0 0 1px rgba(0, 0, 0, .9))
    drop-shadow(0 3px 5px rgba(0, 0, 0, .35));
}
.rig-hook svg { width: 100%; height: 100%; }

/* dla telefonów cały rig schowamy - robi się ciasno */
@media (max-width: 640px) {
  .crane-rig { display: none; }
}

/* preferencja zmniejszonych animacji */
@media (prefers-reduced-motion: reduce) {
  .rig-arm, .rig-cable, .rig-hook, .drum, .scroll-hint span { transition: none; animation: none; }
  html { scroll-behavior: auto; }
}
