/* ==========================================================================
   Blok „Tablica oferty” (.offer): nagłówek sekcji, plansza sześciu kafli z rysunkami (.board)
   i pod nią trzy drogi po audycie (.choose).
   Źródło (prototyp): assets/css/style.css („Offer”, odstęp sekcji), assets/css/home-board.css
   (cała plansza), assets/css/strona-b.css („Trzy drogi po audycie” i granatowy kafel Monitoringu).
   Zmiany: liczba zadań Outsourcingu z atrybutu (--n), ścieżka siatki w motywie.
   ========================================================================== */

.offer { padding: clamp(4rem, 8vw, 7.5rem) 0; background: var(--paper-2); border-top: 1px solid var(--line); }
.offer__head {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1.5rem 4rem; align-items: end; margin-bottom: clamp(2rem, 3.5vw, 2.75rem);
}
.offer__head h2 { margin: 0; max-width: 18ch; }
.offer__head p { color: var(--muted); font-size: 1.0625rem; max-width: 62ch; margin: 0; }

/* --- plansza (home-board.css) --- */
.board {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(.75rem, 1.4vw, 1.125rem);
}
.board__tile {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  padding: clamp(1.25rem, 2vw, 1.75rem); border-radius: var(--radius-lg);
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
}
.board__tile h3 {
  display: flex; align-items: center; gap: .7rem; margin: 0;
  font-size: clamp(1.1875rem, 1rem + .45vw, 1.375rem); font-weight: 600; letter-spacing: -.015em; line-height: 1.2; color: var(--navy);
}
.board__ico {
  flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--navy-50); color: var(--navy);
}
.board__ico .icon { width: 1.15rem; height: 1.15rem; }
.board__tile > p { margin: .75rem 0 0; color: var(--muted); font-size: .9375rem; line-height: 1.6; max-width: 46ch; }
.board__cap { margin-top: 1.25rem !important; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--navy-900) !important; font-size: 1rem !important; }
.board__note { margin-top: .75rem !important; font-family: var(--font-ui); font-size: .6875rem !important; letter-spacing: .09em; text-transform: uppercase; color: #b9c7da !important; }

/* layout: the wide Outsourcing tile and the audit photo on top, four instruments below */
.board__tile--out { grid-column: 1 / 9; grid-row: 1; min-height: clamp(21rem, 27vw, 24rem); }
.board__tile--aud { grid-column: 9 / -1; grid-row: 1; }
.board__tile--mon, .board__tile--svc, .board__tile--ton, .board__tile--wyn { grid-column: span 3; min-height: clamp(19rem, 24vw, 21.5rem); }
.board__tile:is(.board__tile--mon, .board__tile--svc, .board__tile--ton, .board__tile--wyn) h3 { font-size: clamp(1.125rem, 1rem + .3vw, 1.25rem); }

/* Outsourcing: the title across the tile, then text on the left and the drawing on the right;
   six jobs, six orange threads, one partner, one invoice */
.board__tile--out {
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); grid-template-rows: auto auto 1fr;
  column-gap: clamp(1.5rem, 3.5vw, 3rem);
}
.board__tile--out > h3 { grid-column: 1 / -1; grid-row: 1; }
.board__tile--out > p:not(.board__cap) { grid-column: 1; grid-row: 2; }
.board__tile--out > .board__cap { grid-column: 1; grid-row: 3; align-self: end; }
.board__tile--out .flow { grid-column: 2; grid-row: 2 / 4; margin-top: 1.1rem; }
.flow { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(36px, .55fr) minmax(0, 1fr); align-items: stretch; }
.flow__from { list-style: none; margin: 0; padding: 0; display: grid; grid-template-rows: repeat(var(--n, 6), minmax(38px, 1fr)); }
.flow__from li {
  position: relative; display: flex; align-items: center; gap: .65rem; padding-right: 1rem;
  font-size: .9375rem; font-weight: 500; color: var(--navy-900); line-height: 1.2;
}
.flow__from .icon {
  width: 32px; height: 32px; padding: 8px; flex: none; border-radius: 50%;
  background: var(--navy-50); color: var(--navy); stroke-width: 1.75;
}
.flow__from li::after {
  content: ""; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; margin-top: -5px;
  border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px var(--orange-50);
  transition: background-color .4s, box-shadow .4s;
}
.flow__mid { position: relative; }
.flow__threads { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flow__threads path { fill: none; vector-effect: non-scaling-stroke; }
.flow__track path { stroke: var(--orange-100); stroke-width: 2; }
.flow__draw path { stroke: var(--orange); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.flow__to { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-left: .5rem; }
.flow__hub {
  width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); box-shadow: inset 0 0 0 2.5px var(--orange), 0 10px 24px -14px rgba(22, 42, 67, .5);
  font-family: var(--font-ui); font-weight: 600; font-size: 1.3125rem; letter-spacing: .02em; color: var(--navy-900);
}
.flow__say { margin-top: .65rem; font-size: .875rem; line-height: 1.35; color: var(--muted); }
.flow__line { width: 2px; height: 22px; margin: .65rem 0; border-radius: 1px; background: var(--orange); }
.flow__doc {
  display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .8rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper);
  font-family: var(--font-ui); font-weight: 500; font-size: .8125rem; color: var(--navy-900); white-space: nowrap;
}
.flow__doc .icon { width: 1.05rem; height: 1.05rem; color: var(--navy); }

/* Monitoring: the section's one dark mass (the navy ground of every navy module in B);
   a toner level falls to the threshold and orders itself */
.board__tile--mon { background: url("../../assets/img/siatka-granat.svg") center / cover no-repeat, var(--navy-ground); box-shadow: none; }
.board__tile--mon h3 { color: #fff; }
.board__tile--mon .board__ico { background: rgba(255, 255, 255, .1); color: var(--orange-400); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.board__tile--mon > p { color: #c9d4e2; }
.meter { margin-top: auto; padding-top: 1.25rem; }
.meter__top { display: flex; justify-content: space-between; align-items: flex-end; gap: .75rem; font-size: .875rem; line-height: 1.35; color: #c9d4e2; }
.meter__val { font-weight: 300; font-size: clamp(2rem, 1.6rem + .9vw, 2.5rem); line-height: 1; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.meter__bar { position: relative; height: 10px; margin: .8rem 0 .7rem; border-radius: 5px; background: rgba(255, 255, 255, .12); }
.meter__bar i { position: absolute; inset: 0 auto 0 0; width: 19%; border-radius: 5px; background: var(--orange-600); transition: background-color .4s; }
.meter__bar i.is-high { background: #c9d4e2; }
.meter__bar s { position: absolute; left: 20%; top: -6px; bottom: -6px; width: 2px; border-radius: 1px; background: #fff; }
.meter__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem .75rem; font-family: var(--font-ui); font-size: .8125rem; color: #b9c7da; }
.meter__chip {
  display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .65rem; border-radius: var(--radius);
  background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  font-weight: 500; color: #fff; transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.meter__chip .icon { width: 1rem; height: 1rem; color: var(--orange-400); }
.meter__chip.is-hidden { opacity: 0; transform: translateY(4px); }

/* Serwis: four lit units in a hundred */
.units__say { display: flex; align-items: flex-start; gap: .8rem; }
.units__fig { flex: none; font-weight: 300; font-size: clamp(3rem, 2.4rem + 1.4vw, 3.75rem); line-height: .85; letter-spacing: -.04em; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.units__say span { padding-top: .2rem; color: var(--muted); font-size: .9375rem; line-height: 1.5; max-width: 30ch; }
.units { margin-top: auto; padding-top: 1.25rem; display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 4px; }
.units i { aspect-ratio: 1; border-radius: 50%; background: var(--navy-100); transition: background-color .3s; }
.units i.on { background: var(--orange-600); }
.units i.pop { animation: unit-pop .7s var(--ease); }
@keyframes unit-pop { 40% { transform: scale(1.45); } }

/* Tonery: components from three countries meet in one plant, then your printer.
   One grid carries the chips, the threads and the plant, so the threads meet the dot exactly. */
.chain {
  margin-top: auto; padding-top: 1.25rem;
  display: grid; grid-template-columns: max-content 22px minmax(0, 1fr); grid-template-rows: auto repeat(3, minmax(32px, auto));
  align-items: center;
}
.chain__k { grid-column: 1 / -1; grid-row: 1; margin: 0 0 .4rem; font-family: var(--font-ui); font-weight: 500; font-size: .6875rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-2); }
.chain__from { display: contents; list-style: none; }
.chain__from li { grid-column: 1; justify-self: start; padding: .3rem .5rem; white-space: nowrap; border: 1px solid var(--line-strong); border-radius: var(--radius); font-family: var(--font-ui); font-weight: 500; font-size: .6875rem; line-height: 1.2; color: var(--navy-900); background: var(--paper); }
.chain__from li:nth-child(1) { grid-row: 2; }
.chain__from li:nth-child(2) { grid-row: 3; }
.chain__from li:nth-child(3) { grid-row: 4; }
.chain__in { grid-column: 2; grid-row: 2 / 5; align-self: stretch; width: 100%; height: 100%; overflow: visible; }
.chain__in path { fill: none; vector-effect: non-scaling-stroke; }
.chain__track path { stroke: var(--orange-100); stroke-width: 2; }
.chain__draw path { stroke: var(--orange); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.chain__node { grid-column: 3; grid-row: 3; margin: 0; display: flex; align-items: center; gap: .55rem; font-size: 1rem; font-weight: 500; line-height: 1.15; color: var(--navy-900); }
.chain__node > span:last-child { display: grid; }
.chain__node small { font-family: var(--font-ui); font-size: .75rem; font-weight: 400; color: var(--muted); }
.chain__dot { flex: none; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px var(--orange-50); }
.chain__end { position: relative; grid-column: 3; grid-row: 4; margin: 0; display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-ui); font-weight: 500; font-size: .75rem; line-height: 1.2; color: var(--navy-900); white-space: nowrap; }
.chain__end .icon { flex: none; width: 1.05rem; height: 1.05rem; margin-left: -8px; color: var(--orange-ink, #e05f1a); }
.chain__end::before { content: ""; position: absolute; left: -1px; bottom: calc(100% + 2px); width: 2px; height: 11px; border-radius: 1px; background: var(--orange); }

/* Wynajem: three sizes, the one that fits the volume is drawn in ink */
.fit3 { display: block; width: 100%; max-width: 22rem; height: auto; margin: auto auto 0; padding-top: 1.25rem; overflow: visible; }
.fit3__base { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.fit3__dev rect, .fit3__dev path { fill: var(--paper); stroke: var(--line-strong); stroke-width: 1.5; }
.fit3__dev--on rect, .fit3__dev--on path { stroke: var(--navy-900); stroke-width: 1.75; }
.fit3__mark { fill: var(--orange); }
.fit3 text { font-family: var(--font-ui); font-weight: 500; text-anchor: middle; }
.fit3__k { font-size: 12px; fill: var(--navy-900); }
.fit3__t { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; fill: var(--muted-2); }
.fit3__t--on { fill: var(--navy-900); }

/* Audyt: the only way out of the board; the DTS photograph fills the tile and the copy
   sits on a navy fade at its foot (on its left where the tile runs wide) */
.board__tile--aud {
  isolation: isolate; overflow: hidden; justify-content: flex-end; min-height: 22rem;
  background: var(--navy-900); box-shadow: 0 24px 48px -30px rgba(22, 42, 67, .6);
}
.board__photo { position: absolute; inset: 0; z-index: -1; margin: 0; background: var(--navy-50); }
.board__photo:empty { background: url("../../assets/img/siatka-granat.svg") center / cover no-repeat, var(--navy-ground); }
.board__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22, 42, 67, .05) 12%, rgba(22, 42, 67, .62) 46%, rgba(22, 42, 67, .96) 100%);
}
.board__photo picture { display: block; height: 100%; }
.board__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; transition: transform 1.2s var(--ease); }
.board__tile--aud:hover .board__photo img { transform: scale(1.04); }
.board__tile--aud h3 { color: #fff; }
.board__tile--aud .board__ico { background: var(--orange); color: #fff; }
.board__tile--aud > p { color: #dfe7f0; }
.board__actions { padding-top: 1.1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.board__tile--aud .link-more { color: #fff; }
.board__tile--aud .link-more:hover { color: #fff; text-decoration-color: var(--orange); }

/* Motion: everything above is the resting (final) state; JS arms the start state */
.board--armed .flow__draw path, .board--armed .chain__draw path { stroke-dashoffset: 1; }
.board--armed .flow__from li::after { background: var(--orange-100); box-shadow: 0 0 0 4px transparent; }
.board--armed.is-on .flow__draw path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s var(--ease); }
.board--armed.is-on .flow__draw path:nth-child(2) { transition-delay: .08s; }
.board--armed.is-on .flow__draw path:nth-child(3) { transition-delay: .16s; }
.board--armed.is-on .flow__draw path:nth-child(4) { transition-delay: .24s; }
.board--armed.is-on .flow__draw path:nth-child(5) { transition-delay: .32s; }
.board--armed.is-on .flow__draw path:nth-child(6) { transition-delay: .4s; }
.board--armed.is-on .flow__draw path:nth-child(7) { transition-delay: .48s; }
.board--armed.is-on .flow__draw path:nth-child(8) { transition-delay: .56s; }
.board--armed.is-on .flow__from li::after { background: var(--orange); box-shadow: 0 0 0 4px var(--orange-50); }
.board--armed.is-on .chain__draw path { stroke-dashoffset: 0; transition: stroke-dashoffset 1s var(--ease) .5s; }
.board--armed .units i.on { background: var(--navy-100); }
.board--armed.is-on .units i.on { background: var(--orange-600); }

/* --- trzy drogi po audycie (strona-b.css) --- */
.choose { margin-top: clamp(3.5rem, 6vw, 5rem); padding-top: clamp(2.5rem, 4vw, 3.5rem); border-top: 1px solid var(--line-strong); }
.choose__head {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1rem clamp(2rem, 6vw, 6rem); align-items: start; margin-bottom: clamp(1.75rem, 3vw, 2.25rem);
}
.choose__head h3 { margin: 0; max-width: 15ch; font-size: clamp(1.875rem, 1.3rem + 1.8vw, 2.5rem); line-height: 1.1; letter-spacing: -.03em; }
.choose__head p { margin: 0; color: var(--muted); font-size: 1.0625rem; max-width: 56ch; }
.choose__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.75rem, 1.6vw, 1.25rem); }
.choose__card {
  display: flex; flex-direction: column; gap: .55rem;
  padding: clamp(1.4rem, 2.4vw, 1.9rem); border-radius: var(--radius-lg); background: #fff;
  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);
}
.choose__card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-float); }
.choose__fleet { display: flex; gap: 10px; margin: 0 0 1.1rem; padding: 0; list-style: none; }
.choose__dev {
  position: relative; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--navy-50); color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy-100);
}
.choose__dev > .icon { width: 1.4rem; height: 1.4rem; }
.choose__dev--new { background: var(--orange); color: #fff; box-shadow: 0 8px 16px -10px rgba(236, 110, 40, .9); }
.choose__dev i {
  position: absolute; right: -5px; top: -5px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy-900); color: #fff; box-shadow: 0 0 0 2px #fff;
}
.choose__dev--new i { background: #fff; color: var(--orange-ink); box-shadow: 0 0 0 2px var(--orange), 0 0 0 4px #fff; }
.choose__dev i .icon { width: 12px; height: 12px; stroke-width: 3; }
.choose__card h4 { margin: 0; font-size: 1.1875rem; font-weight: 600; letter-spacing: -.012em; color: var(--navy-900); }
.choose__card p { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.choose__key { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1.25rem 0 0; font-family: var(--font-ui); font-size: .8125rem; color: var(--muted); }
.choose__key span { display: inline-flex; align-items: center; gap: .5rem; }
.choose__key i { width: 14px; height: 14px; border-radius: 5px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--navy); }
.choose__key i.is-new { background: var(--orange); box-shadow: none; }

/* tablets: Outsourcing and Audyt take the full width (the audit copy on a fade from the left),
   the four instruments go two by two */
@media (max-width: 1100px) {
  .board__tile--out, .board__tile--aud { grid-column: 1 / -1; grid-row: auto; }
  .board__tile--mon, .board__tile--svc, .board__tile--ton, .board__tile--wyn { grid-column: span 6; min-height: 0; }
  .board__tile--out { min-height: 0; }
  .flow { grid-template-columns: minmax(0, 1.2fr) minmax(36px, .4fr) minmax(0, .9fr); }
  .board__tile--out .flow { max-width: 36rem; }
  .board__tile--aud { min-height: 20rem; }
  .board__tile--aud > :not(.board__photo) { max-width: 26rem; }
  .board__photo::after { background: linear-gradient(90deg, rgba(22, 42, 67, .95) 0%, rgba(22, 42, 67, .76) 44%, rgba(22, 42, 67, .1) 100%); }
  .board__photo img { object-position: 70% 50%; }
  .units { max-width: 26rem; }
}
@media (max-width: 900px) {
  .offer__head, .choose__head { grid-template-columns: 1fr; }
  .choose__list { grid-template-columns: minmax(0, 1fr); }
}
/* phones: one column; Outsourcing stacks its text above the drawing, Audyt fades from the bottom */
@media (max-width: 700px) {
  .board__tile--mon, .board__tile--svc, .board__tile--ton, .board__tile--wyn { grid-column: 1 / -1; }
  .board__tile--out { display: flex; }
  .flow { margin-top: 1.25rem; grid-template-columns: minmax(0, 1.3fr) 36px minmax(0, .9fr); }
  .flow__from li { font-size: .875rem; gap: .5rem; padding-right: .7rem; }
  .flow__from .icon { width: 28px; height: 28px; padding: 7px; }
  .flow__hub { width: 64px; height: 64px; font-size: 1.125rem; }
  .flow__doc { padding: .4rem .6rem; font-size: .75rem; }
  .board__tile--out > .board__cap { align-self: stretch; }
  .board__tile--aud { min-height: 440px; }
  .board__tile--aud > :not(.board__photo) { max-width: none; }
  .board__photo::after { background: linear-gradient(180deg, rgba(22, 42, 67, 0) 8%, rgba(22, 42, 67, .82) 48%, rgba(22, 42, 67, .97) 100%); }
  .board__photo img { object-position: 50% 30%; }
  .units { gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .board *, .board *::after { transition: none !important; animation: none !important; }
  .board__tile--aud:hover .board__photo img { transform: none; }
  .choose__card { transition: none; }
}
