/* Informational pages — /misje, /gry-karciane, /produkty, /about-us,
 * /how-it-works, /faq. Built from the components of mockup B2 «Tor»;
 * only the blocks these pages need on top of components.css live here. */

/* ── page head with a photo (picture passed into page_head() as extra) ── */
.phead--pic { padding: 64px 0 52px; }
.phead--pic .phead__pic picture, .phead--pic .phead__pic img { display: block; width: 100%; height: 100%; }
.phead--pic .phead__pic img { object-fit: cover; object-position: 70% 50%; opacity: .5; }
.phead--pic::before { background: radial-gradient(120% 140% at 0% 100%, rgba(226, 35, 47, .3), transparent 55%), linear-gradient(90deg, var(--surface-night) 30%, rgba(12, 14, 20, .72) 60%, rgba(12, 14, 20, .35)); }
.phead__facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.phead__facts li { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px 0 10px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--surface-night-line); font-size: 14px; font-weight: 600; color: #fff; }
.phead__facts .icon { width: 16px; height: 16px; color: var(--color-pick); }
.phead__facts b { font: italic 700 19px/1 var(--font-display); }
.phead__facts a { display: inline-flex; align-items: center; min-height: 36px; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.phead__facts a:hover { color: var(--color-pick); }

/* ── intro: a big statement line next to supporting text ─────────────── */
.intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px 40px; align-items: start; }
.intro__big { font: italic 700 clamp(26px, 2.6vw, 36px)/1.08 var(--font-display); text-wrap: balance; }
.intro__big em { font-style: inherit; color: var(--color-brand-text); }
.intro__txt { display: grid; gap: 12px; color: var(--color-muted); font-size: 15.5px; }
.intro__txt a { color: var(--color-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ── cards with a footer link and a numbered corner ───────────────────── */
.card__no { position: absolute; right: 18px; top: 14px; font: italic 800 44px/.8 var(--font-display); color: transparent; -webkit-text-stroke: 1.5px var(--color-border); }
.ticks { display: grid; gap: 6px; font-size: 14px; color: var(--color-muted); }
.ticks li { display: flex; gap: 8px; align-items: flex-start; }
.ticks b { color: var(--color-text); }
.ticks .icon { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--color-brand-text); }

/* ── timeline (misje) ─────────────────────────────────────────────────── */
.tl { position: relative; display: grid; gap: 14px; counter-reset: tl; }
.tl::before { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 4px; border-radius: 2px; background: linear-gradient(var(--color-brand), var(--color-brand) 70%, var(--color-border)); }
.tl__item { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 18px; align-items: start; }
.tl__dot { position: relative; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: var(--color-text); color: var(--color-pick); box-shadow: 0 0 0 5px var(--surface-page); }
.tl__dot .icon { width: 24px; height: 24px; }
.tl__body { padding: 16px 20px 18px; border-radius: var(--radius-md); background: var(--surface-card); box-shadow: var(--shadow-1); }
.tl__body small { display: block; font: 700 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--color-brand-text); }
.tl__body h3 { margin-top: 6px; font: italic 700 23px/1.05 var(--font-display); }
.tl__body p { margin-top: 6px; color: var(--color-muted); font-size: 14.5px; }
.tl__body a { color: var(--color-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ── two-column layout: section heading on the left, content right ───── */
.duo { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 24px 48px; align-items: start; }
.duo > .sec-h { flex-direction: column; align-items: flex-start; margin-bottom: 0; }
.duo .cta-row { margin-top: 6px; }

/* ── card games: one block per game ───────────────────────────────────── */
.game { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 24px 36px; align-items: start; padding: 28px; border-radius: var(--radius-lg); background: var(--surface-card); box-shadow: var(--shadow-1); position: relative; overflow: hidden; }
.game + .game { margin-top: 18px; }
.game__suit { position: absolute; right: -18px; bottom: -26px; color: var(--color-bg); pointer-events: none; }
.game__suit .icon { width: 180px; height: 180px; stroke-width: 1.2; }
.game__main, .game__side { position: relative; }
.game__h { display: flex; align-items: center; gap: 14px; }
.game__h .card__ic { flex: none; }
.game h2 { font: italic 800 var(--fs-h2)/1 var(--font-display); text-transform: uppercase; }
.game__lead { margin-top: 12px; color: var(--color-muted); font-size: 15.5px; }
.game h3 { margin-top: 20px; font: 700 16px/1.3 var(--font-body); }
.game h3 + p, .game h3 + ul { margin-top: 6px; }
.game__main p { color: var(--color-muted); }
.game__main ul { display: grid; gap: 6px; padding-left: 20px; list-style: disc; color: var(--color-muted); }
.game__main li::marker { color: var(--color-brand-text); }
.game__main b { color: var(--color-text); }
.facts { display: grid; gap: 0; border-radius: var(--radius-md); background: var(--color-text); color: #fff; padding: 6px 18px; }
.facts div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--surface-night-line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--color-on-night-muted); padding-top: 3px; }
.facts dd { font-weight: 600; font-size: 14.5px; }
.facts dd b { font: italic 700 22px/1 var(--font-display); color: var(--color-pick); }
.game__tip { margin-top: 14px; }
.game-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

/* ── produkty: live numbers strip ─────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-radius: var(--radius-lg); background: var(--surface-card); box-shadow: var(--shadow-1); overflow: hidden; }
.stats > div { padding: 18px 22px; border-left: 1px solid var(--color-border); }
.stats > div:first-child { border-left: 0; }
.stats b { display: block; font: italic 800 clamp(40px, 4vw, 56px)/.9 var(--font-display); color: var(--color-text); font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 6px; font-size: 14px; color: var(--color-muted); }

/* ── flow: three pictogram steps in a row (produkty filters) ──────────── */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: flow; }
.flow li { position: relative; padding: 24px 22px 22px; border-radius: var(--radius-md); background: var(--surface-night); color: var(--color-on-night); overflow: hidden; isolation: isolate; }
.flow li::after { counter-increment: flow; content: counter(flow); position: absolute; right: 14px; bottom: -14px; z-index: -1; font: italic 800 120px/.8 var(--font-display); color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .14); }
.flow__ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--color-brand); color: #fff; }
.flow__ic .icon { width: 24px; height: 24px; }
.flow h3 { margin-top: 16px; font: italic 700 24px/1.05 var(--font-display); }
.flow p { margin-top: 6px; font-size: 14.5px; color: var(--color-on-night-muted); max-width: 40ch; }
.flow code { font: 600 13px/1 ui-monospace, Consolas, monospace; padding: 2px 6px; border-radius: 5px; background: rgba(255, 255, 255, .1); color: var(--color-pick); }

/* ── yes / no availability lists ──────────────────────────────────────── */
.yn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.yn__col { padding: 22px; border-radius: var(--radius-md); background: var(--surface-card); box-shadow: var(--shadow-1); }
.yn__col--no { background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--color-border); }
.yn h3 { display: flex; align-items: center; gap: 10px; font: italic 700 22px/1.05 var(--font-display); }
.yn h3 .icon { width: 22px; height: 22px; color: var(--color-success); }
.yn__col--no h3 .icon { color: var(--color-brand-text); }
.yn ul { display: grid; gap: 10px; margin-top: 14px; }
.yn li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 14.5px; color: var(--color-muted); }
.yn li .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--color-success); }
.yn__col--no li .icon { color: var(--color-brand-text); }
.yn li b { color: var(--color-text); }

/* ── help strip: two link tiles side by side ──────────────────────────── */
.help { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.help a, .help button { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 14px 18px 14px 14px; border-radius: var(--radius-md); background: var(--surface-card); box-shadow: var(--shadow-1); text-align: left; transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base); }
.help a:hover, .help button:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.help__ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--color-brand-tint); color: var(--color-brand-text); }
.help b { display: block; font-size: 15.5px; }
.help span span { display: block; font-size: 13.5px; color: var(--color-muted); }
.help .icon--go { margin-left: auto; flex: none; color: var(--color-brand-text); }

/* ── how-it-works: step with detail list and a side "tip" ─────────────── */
.steps--wide .step { grid-template-columns: 96px minmax(0, 1fr) minmax(0, 300px); gap: 22px; padding: 24px 24px 24px 16px; }
.steps--wide .step__no { font-size: 92px; }
.step ul { display: grid; gap: 6px; margin-top: 10px; padding-left: 20px; list-style: disc; color: var(--color-muted); font-size: 14.5px; }
.step li::marker { color: var(--color-brand-text); }
.step li a, .step li .link { color: var(--color-text); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.step code { font: 600 13px/1 ui-monospace, Consolas, monospace; padding: 2px 6px; border-radius: 5px; background: var(--surface-sunken); color: var(--color-text); }
.step__tip { align-self: stretch; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-sunken); font-size: 13.5px; color: var(--color-muted); }
.step__tip b { display: flex; align-items: center; gap: 8px; color: var(--color-text); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.step__tip b .icon { width: 16px; height: 16px; color: var(--color-brand-text); }
.step__tip .btn { display: flex; width: fit-content; max-width: 100%; margin-top: 10px; }

/* ── values (about-us): big outlined initials ─────────────────────────── */
.vals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.val { position: relative; padding: 26px 22px 22px; border-radius: var(--radius-md); background: var(--surface-card); box-shadow: var(--shadow-1); overflow: hidden; }
.val::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--color-brand); }
.val__ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--color-brand-tint); color: var(--color-brand-text); }
.val h3 { margin-top: 14px; font: italic 700 24px/1.05 var(--font-display); }
.val p { margin-top: 8px; font-size: 14.5px; color: var(--color-muted); }

/* ── company block (only when requisites are filled) ──────────────────── */
.req { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px 24px; padding: 20px 22px; border-radius: var(--radius-md); background: var(--surface-card); box-shadow: var(--shadow-1); }
.req dt { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--color-muted); }
.req dd { margin-top: 4px; font-weight: 600; overflow-wrap: anywhere; }

/* ── FAQ: group nav + grouped accordions ──────────────────────────────── */
.faq { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 24px 40px; align-items: start; }
.faq__nav { position: sticky; top: 24px; padding: 18px; border-radius: var(--radius-md); background: var(--surface-card); box-shadow: var(--shadow-1); }
.faq__nav p { font: 700 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 10px; }
.faq__nav ul { display: grid; gap: 4px; }
.faq__nav a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border-radius: var(--radius-sm); font-weight: 700; transition: background-color var(--dur-base), color var(--dur-base); }
.faq__nav a:hover { background: var(--surface-sunken); color: var(--color-brand-text); }
.faq__nav a .icon { width: 18px; height: 18px; color: var(--color-brand-text); }
.faq__nav a small { margin-left: auto; flex: none; font: italic 700 18px/1 var(--font-display); color: var(--color-muted); }
.faq__nav a span { min-width: 0; overflow-wrap: anywhere; }
.faq__grp + .faq__grp { margin-top: 36px; }
.faq__grp { scroll-margin-top: 24px; }
.faq__grp-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.faq__grp-h h2 { font: italic 800 var(--fs-h2)/1 var(--font-display); text-transform: uppercase; }
.faq__grp-h .card__ic { width: 40px; height: 40px; border-radius: 11px; }
.faq .acc-tools { margin-bottom: 14px; }

/* ── closing call to action — dark band with speed stripes ───────────── */
.cband { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; align-items: center; padding: 36px 40px; border-radius: var(--radius-lg); background: var(--surface-night); color: var(--color-on-night); }
.cband::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(90% 160% at 0% 100%, rgba(226, 35, 47, .32), transparent 60%); }
.cband .speed span:nth-child(1) { left: 66%; width: 60px; }
.cband .speed span:nth-child(2) { left: calc(66% + 80px); width: 16px; }
.cband .speed span:nth-child(3) { left: calc(66% + 108px); width: 6px; }
.cband .speed span:nth-child(4) { left: calc(66% + 126px); }
.cband h2 { font: italic 800 clamp(28px, 3vw, 42px)/.95 var(--font-display); text-transform: uppercase; text-wrap: balance; }
.cband p { margin-top: 10px; max-width: 58ch; color: var(--color-on-night-muted); }
.cband__act { display: flex; flex-wrap: wrap; gap: 10px; position: relative; }

/* ── misc ─────────────────────────────────────────────────────────────── */
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.section--tight { padding-top: 28px; }
.content-photo { min-height: 100%; }
.content-photo img { aspect-ratio: 4 / 3; }
.split__txt { display: grid; gap: 12px; }
.split__txt h2 { font: italic 800 var(--fs-h2)/1 var(--font-display); text-transform: uppercase; }
.split__txt p { color: var(--color-muted); }
.split__txt p a { color: var(--color-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ── responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1099px) {
  .steps--wide .step { grid-template-columns: 76px minmax(0, 1fr); }
  .steps--wide .step__no { font-size: 72px; }
  .steps--wide .step__tip { grid-column: 2; }
  .duo, .faq { grid-template-columns: minmax(0, 1fr); }
  .faq__nav { position: static; }
  .faq__nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .faq__nav a { background: var(--surface-sunken); }
  .faq__nav a small { margin-left: 4px; }
}
@media (max-width: 900px) {
  .intro, .game, .yn, .vals, .flow { grid-template-columns: minmax(0, 1fr); }
  .cband { grid-template-columns: minmax(0, 1fr); padding: 30px 24px; }
  .game__side { max-width: 520px; }
}
@media (max-width: 767px) {
  .phead--pic { padding: 40px 0 34px; }
  .phead .speed { -webkit-mask-image: linear-gradient(180deg, #000 0, #000 30%, transparent 62%); mask-image: linear-gradient(180deg, #000 0, #000 30%, transparent 62%); }
  .phead--pic .phead__pic img { object-position: 60% 50%; opacity: .4; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stats > div { border-left: 0; border-top: 1px solid var(--color-border); display: flex; align-items: baseline; gap: 14px; padding: 14px 18px; }
  .stats > div:first-child { border-top: 0; }
  .stats b { font-size: 40px; min-width: 64px; }
  .stats span { margin-top: 0; }
  .game { padding: 22px 18px; }
  .game__suit .icon { width: 130px; height: 130px; }
  .facts { padding: 4px 14px; }
  .facts div { grid-template-columns: 92px minmax(0, 1fr); }
  .tl::before { left: 21px; }
  .tl__item { grid-template-columns: 46px minmax(0, 1fr); gap: 12px; }
  .tl__dot { width: 46px; height: 46px; border-radius: 13px; }
  .tl__dot .icon { width: 20px; height: 20px; }
  .tl__body { padding: 14px 16px 16px; }
  .steps--wide .step { grid-template-columns: 52px minmax(0, 1fr); padding: 16px; gap: 12px; }
  .steps--wide .step__no { font-size: 54px; }
  .steps--wide .step__tip { grid-column: 1 / -1; }
  .cband { padding: 28px 18px; }
  .cband .speed span:nth-child(1) { left: auto; right: -10px; width: 44px; opacity: .6; }
  .cband .speed span:nth-child(2) { left: auto; right: 50px; width: 12px; opacity: .5; }
  .cband .speed span:nth-child(3) { left: auto; right: 74px; opacity: .5; }
  .cband .speed span:nth-child(4) { left: auto; right: 90px; }
  .cband__act .btn, .cta-row .btn { flex: 1 1 100%; }
  .card__no { font-size: 36px; }
}

/* inline code inside wrapping text: no vertical padding, so lines never overlap */
.flow code, .step code { line-height: inherit; padding: 0 5px; }
