/* ==========================================================================
   Blok „Powiązane usługi” (.related). Źródło: assets/css/podstrona.css (Related services),
   podstrony/outsourcing.css (.os-rel), podstrony/audyt.css (.au-links), style.css
   i podstrony/wynajem.css (.offer__list z kafelkiem ikony).
   ========================================================================== */

.related { padding: var(--section-y) 0 clamp(2.5rem, 5vw, 4rem); }
.related--linia { border-top: 1px solid var(--line); }
/* .related--odstep: no line, the full section rhythm on top (Audyt's .au-related) */
.related--brak { padding-top: clamp(2.5rem, 5vw, 4rem); }
.related--separator { padding-top: 0; }
/* on a compact-rhythm page (Outsourcing: .p-outsourcing .os-related) the gap under the dot is shorter */
.rytm-zwarty .related--separator > .container::before { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
/* a hairline fading out at both ends, an orange dot in a white gap (B separator) */
.related--separator > .container::before {
  content: ""; grid-column: 1 / -1; display: block; height: 26px; margin-bottom: clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(circle, var(--orange) 0 4px, var(--orange-50) 4.5px 7px, #fff 7.5px 12px, transparent 12.5px) center / 26px 26px no-repeat,
    linear-gradient(90deg, rgba(203, 213, 224, 0), var(--line-strong) 28%, var(--line-strong) 72%, rgba(203, 213, 224, 0)) center / 100% 1px no-repeat;
}

/* section head of B: the prefix on its own row, both columns from the top */
.related .shead { align-items: start; row-gap: 1.25rem; }
.related .shead h2 { max-width: 17ch; }

/* --------------------------------------------------------------------------
   Karty (Outsourcing): ikona, tytuł, jedno zdanie, strzałka na dole
   -------------------------------------------------------------------------- */

.os-rel { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: clamp(.75rem, 1.6vw, 1.25rem); }
.os-rel__card {
  display: flex; flex-direction: column; align-items: flex-start; height: 100%;
  padding: clamp(1.25rem, 2.2vw, 1.75rem); border-radius: var(--radius-lg);
  background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--text); text-decoration: none;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.os-rel__card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-float); }
.os-rel__card:focus-visible { border-radius: var(--radius-lg); }
.os-rel__ico { width: 38px; height: 38px; margin-bottom: 1.1rem; border-radius: 12px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy); }
.os-rel__ico .icon { width: 1.1rem; height: 1.1rem; }
.os-rel__card h3 { margin: 0 0 .4rem; font-size: 1.25rem; color: var(--navy-900); }
.os-rel__card p { margin: 0 0 1.4rem; font-size: .9375rem; line-height: 1.55; color: var(--muted); }
.os-rel__go {
  margin-top: auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  color: var(--navy-900); box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition: background-color .3s, color .3s, box-shadow .3s, transform .45s var(--ease);
}
.os-rel__go .icon { width: 1rem; height: 1rem; }
.os-rel__card:hover .os-rel__go, .os-rel__card:focus-visible .os-rel__go { background: var(--orange); color: #fff; box-shadow: none; transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Karty z tytułem w wierszu (Audyt, Tonery): ikona, nazwa, strzałka nad jednym zdaniem
   -------------------------------------------------------------------------- */

.au-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: clamp(.75rem, 1.6vw, 1.25rem); }
.au-link {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; grid-template-rows: auto 1fr; align-items: center; gap: .9rem 1rem; height: 100%;
  padding: clamp(1.25rem, 2.2vw, 1.6rem); border-radius: var(--radius-lg); background: #fff; color: inherit; text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -32px rgba(22, 42, 67, .4);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.au-link:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-float); }
.au-link .au-tile { width: 44px; height: 44px; border-radius: 14px; }
.au-link .au-tile .icon { width: 1.25rem; height: 1.25rem; }
.au-link h3 { margin: 0; font-size: 1.25rem; letter-spacing: -.015em; }
.au-link p { grid-column: 1 / -1; grid-row: 2; align-self: start; margin: 0; padding-top: .9rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.au-link__go {
  grid-column: 3; grid-row: 1;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition: background-color .3s, color .3s, box-shadow .3s, transform .4s var(--ease);
}
.au-link__go .icon { width: 1.1rem; height: 1.1rem; }
.au-link:hover .au-link__go, .au-link:focus-visible .au-link__go { background: var(--orange); color: #fff; box-shadow: none; transform: translateX(3px); }
.au-link:hover .au-tile { background: var(--navy-900); color: var(--orange-400); }

/* --------------------------------------------------------------------------
   Lista obok wstępu (Wynajem): wiersze oferty ze strony głównej, bez zdjęcia
   -------------------------------------------------------------------------- */

.related__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1.25rem clamp(2rem, 6vw, 6rem); align-items: start;
}
.related__grid > .eyebrow.eyebrow { grid-column: 1 / -1; margin: 0; }
.related__intro h2 { max-width: 14ch; margin-top: 0; }
.related__intro p { color: var(--muted); font-size: 1.0625rem; max-width: 38ch; margin: 0; }
.related .offer__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.related .offer__item a {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto;
  gap: .25rem 1.5rem; align-items: center;
  padding: 1.4rem 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
.related .offer__item h3, .related .offer__item p { transition: transform .4s var(--ease), color .25s; }
.related .offer__item h3 { display: flex; align-items: center; gap: .8rem; margin: 0; font-size: 1.375rem; font-weight: 600; color: var(--navy); }
.related .offer__item p { margin: 0; padding-left: calc(38px + .8rem); color: var(--muted); grid-column: 1; font-size: .9375rem; }
.related .offer__arrow {
  grid-row: 1 / 3; grid-column: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: var(--navy);
  transition: background .25s, border-color .25s, color .25s, transform .35s var(--ease);
}
.related .offer__arrow .icon { width: 1.1rem; height: 1.1rem; }
.related .offer__item a:hover .offer__arrow,
.related .offer__item a:focus-visible .offer__arrow { background: var(--orange); border-color: var(--orange); color: var(--navy-900); transform: translateX(-4px); }
.related .offer__item a:hover h3,
.related .offer__item a:hover p { transform: translateX(.75rem); }

/* --------------------------------------------------------------------------
   Responsywność
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .related__grid { grid-template-columns: minmax(0, 1fr); }
  .related .shead { grid-template-columns: minmax(0, 1fr); row-gap: 1rem; }
  .os-rel, .au-links { grid-template-columns: minmax(0, 1fr); }
  .os-rel__card { display: grid; grid-template-columns: 38px minmax(0, 1fr) 40px; column-gap: 1rem; align-items: center; }
  .os-rel__ico { grid-row: 1 / 3; margin: 0; align-self: start; }
  .os-rel__card h3 { grid-column: 2; margin: 0; align-self: end; }
  .os-rel__card p { grid-column: 2; margin: .25rem 0 0; }
  .os-rel__go { grid-column: 3; grid-row: 1 / 3; margin: 0; }
  .related .offer__item h3 { font-size: 1.2rem; }
}

@media (max-width: 560px) {
  .related .offer__item p { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .os-rel__card, .os-rel__go, .au-link, .au-link__go, .au-tile { transition: none; }
  .os-rel__card:hover, .os-rel__card:hover .os-rel__go, .au-link:hover, .au-link:hover .au-link__go { transform: none; }
  .related .offer__item a:hover h3, .related .offer__item a:hover p { transform: none; }
}
