/* ==========================================================================
   DTS – klocki wspólne dla wielu bloków: okruszki, sekcja i jej nagłówek (.sect, .shead),
   układ 5/7 (.split), arkusz leżący na nagłówku (.lift), przełącznik (.seg), wiersze z ikoną
   (.gains), trzy kolumny (.cols), etykiety (.chips), zdjęcie w ramce (.fig).
   Ładowane na każdej stronie (razem ok. 9 KB) – bloki z nich korzystają, nie kopiują ich.
   Źródło (prototyp): assets/css/podstrona.css
   ========================================================================== */

:root {
  --ledger-lift: clamp(3.5rem, 8vw, 6.5rem);
  --section-y: clamp(4rem, 8vw, 7.5rem);
}
/* Page rhythm (Ustawienia strony → Odstępy między sekcjami; class on <main>, inc/page-fields.php) */
.rytm-zwarty { --section-y: clamp(3.5rem, 7vw, 6rem); }
.rytm-zwarty-bardzo { --section-y: clamp(3.5rem, 6.5vw, 6rem); }

.crumbs ol {
  list-style: none; margin: 0 0 clamp(1.25rem, 2.6vw, 2rem); padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .65rem;
  font-family: var(--font-ui); font-size: .8125rem; line-height: 1.4; color: var(--muted);
}
.crumbs li { display: inline-flex; align-items: center; gap: .65rem; }
.crumbs li + li::before {
  content: ""; width: 5px; height: 5px; margin-right: .1rem;
  border-top: 1.5px solid var(--line-strong); border-right: 1.5px solid var(--line-strong);
  transform: rotate(45deg);
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--navy-900); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: .22em; }
.crumbs [aria-current] { color: var(--navy-900); font-weight: 500; }

/* --------------------------------------------------------------------------
   Sheets lying across the head (the ledger's geometry, any content)
   -------------------------------------------------------------------------- */

.lift { position: relative; z-index: 2; margin-top: calc(-1 * var(--ledger-lift)); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.lift__sheet {
  background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: clamp(1rem, 2.2vw, 1.5rem) clamp(1.25rem, 3.5vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
}
.lift__top {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 1.5rem;
  padding-bottom: .85rem; border-bottom: 1px solid var(--line-strong);
}
.lift__title { margin: 0; font-size: clamp(1.125rem, 1rem + .4vw, 1.375rem); font-weight: 600; color: var(--navy-900); letter-spacing: -.005em; }
.lift__state {
  margin: 0; font-family: var(--font-ui); font-weight: 500; font-size: .6875rem; line-height: 1.2;
  letter-spacing: .09em; text-transform: uppercase; color: var(--muted-2);
}
.lift__lead { margin: 1.1rem 0 0; color: var(--muted); font-size: 1.0625rem; max-width: 62ch; }

/* Segmented choice: radios that look like the form's topic chips */
.seg { display: inline-flex; flex-wrap: wrap; gap: 3px; margin: 0; padding: 4px; border: 0; min-width: 0; border-radius: var(--radius-pill); background: var(--navy-50); }
.seg legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.seg label { position: relative; display: block; cursor: pointer; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span {
  display: flex; align-items: center; gap: .5em; padding: .62rem 1.05rem; border-radius: var(--radius-pill);
  font-family: var(--font-ui); font-weight: 500; font-size: .875rem; line-height: 1.2; color: var(--navy); white-space: nowrap;
  transition: background-color .25s, color .25s, box-shadow .3s var(--ease);
}
.seg span .icon { width: 1.05em; height: 1.05em; }
.seg label:hover span { color: var(--navy-900); background: rgba(255, 255, 255, .75); }
.seg input:checked + span { background: var(--navy-900); color: #fff; box-shadow: 0 8px 16px -10px rgba(22, 42, 67, .9); }
.seg input:checked + span .icon { color: var(--orange-400); }
.seg input:focus-visible + span { outline: 2px solid var(--navy-900); outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }

/* --------------------------------------------------------------------------
   Sections: one rhythm, two grounds; the 5/7 split as a reusable pair
   -------------------------------------------------------------------------- */

.sect { padding: var(--section-y) 0; border-top: 1px solid var(--line); }
.sect--tint { background: var(--paper-2); }
.split {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2rem clamp(2rem, 6vw, 6rem); align-items: start;
}
.split__intro h2 { max-width: 16ch; }
.split__intro > p { color: var(--muted); font-size: 1.0625rem; max-width: 42ch; }
.split__intro--sticky { position: sticky; top: calc(var(--nav-h) + 2.5rem); }
.split__body > p { font-size: 1.0625rem; max-width: 62ch; }
.shead {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1.25rem clamp(2rem, 6vw, 6rem); align-items: start; margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.shead h2 { margin: 0; max-width: 18ch; }
.shead p { margin: 0; color: var(--muted); font-size: 1.0625rem; max-width: 60ch; }
.gain { font-size: 1.0625rem; max-width: 62ch; color: var(--text); }
.gain b { font-weight: 600; color: var(--navy-900); }
.quote-line {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; padding-top: 2rem; border-top: 1px solid var(--line-strong);
  max-width: 46ch; color: var(--navy-900); text-wrap: balance;
  font-size: clamp(1.25rem, 1.05rem + .8vw, 1.625rem); font-weight: 300; line-height: 1.35; letter-spacing: -.01em;
}

/* Framed photograph (the home page's service figure, at rest) */
.fig { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--navy-50); box-shadow: var(--shadow-md); }
.fig img { display: block; width: 100%; height: auto; }
.fig--fill { min-height: 320px; }
.split > .fig--fill { align-self: stretch; }
.fig--fill img { position: absolute; inset: 0; height: 100%; object-fit: cover; }

/* Hairline rows with an icon tile: what you gain, what is included */
.gains {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 4vw, 3.5rem); border-top: 1px solid var(--line-strong);
}
.gains--one { grid-template-columns: minmax(0, 1fr); }
.gains li {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: .2rem 1rem; align-content: start;
  padding: 1.2rem 0 1.25rem; border-bottom: 1px solid var(--line);
}
.gains__icon {
  grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-50); color: var(--navy);
}
.gains__icon .icon { width: 1.15rem; height: 1.15rem; }
.gains b { font-weight: 500; font-size: 1.0625rem; line-height: 1.35; color: var(--navy-900); padding-top: .45rem; }
.gains li > span:last-child { color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.gains--plain li { grid-template-columns: 1.25rem minmax(0, 1fr); padding: .85rem 0; }
.gains--plain .gains__icon { width: auto; height: auto; background: none; grid-row: auto; padding-top: .3rem; color: var(--navy); }
.gains--plain .gains__icon .icon { width: 1.1rem; height: 1.1rem; stroke-width: 2.25; }
.gains--plain b { padding-top: 0; font-weight: 400; color: var(--text); }

/* Three hairline columns (forms of service, ways to order) */
.cols { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3.5vw, 3rem); }
.cols > li { border-top: 1px solid var(--line-strong); padding-top: 1.4rem; }
.cols .gains__icon { margin-bottom: 1.1rem; }
.cols h3 { font-size: 1.25rem; margin-bottom: .45rem; }
.cols p { margin: 0; color: var(--muted); }

/* Small labelled chips inside a timeline step */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: .9rem 0 0; padding: 0; }
.chips li {
  display: inline-flex; align-items: center; gap: .45rem; padding: .42rem .7rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff;
  font-family: var(--font-ui); font-weight: 500; font-size: .8125rem; line-height: 1.2; color: var(--navy-900);
}
.chips .icon { color: var(--navy); }

.btn--ghost-light { border-color: rgba(255, 255, 255, .72); color: #fff; }
.btn--ghost-light:hover { background: #fff; border-color: #fff; color: var(--navy-900); }

@media (max-width: 900px) {
.split, .shead, .cols { grid-template-columns: minmax(0, 1fr); }
  .split__intro--sticky { position: static; }
}

@media (max-width: 767px) {
  .gains { grid-template-columns: minmax(0, 1fr); }
  .lift__top .seg { width: 100%; }
  .seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .seg span { height: 100%; justify-content: center; text-align: center; white-space: normal; padding-inline: .6rem; }
}

/* Icon tile: a 38px rounded square on navy-50 beside a row or a question (Audyt .au-, Wynajem .wn-, Serwis .sv-).
   Blocks size or colour it in their own context (e.g. .au-link .au-tile, .au-sig input:checked + .au-tile). */
.au-tile, .wn-tile, .sv-tile {
  flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--navy-50); color: var(--navy);
}
.au-tile { transition: background-color .3s, color .3s, box-shadow .3s; }
.au-tile .icon, .wn-tile .icon, .sv-tile .icon { width: 1.15rem; height: 1.15rem; }
