/* Propozycje scen do katalogów Dealyo.
   Referencje: home-scenes.css, audyt Dealyo i oryginalne assets/diagram-*.webp.
   Dokumenty źródłowe w iframe oraz pliki do pobrania pozostają niezależne.
   HTML zawiera pełny rezultat; catalog-scenes.js tylko wskazuje kolejne etapy. */
.csg-scene {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  color: #262626;
  background: #fafafa;
  font: 400 16px/24px var(--dealyo-font, "General Sans", sans-serif);
  isolation: isolate;
}
.csg-scene *, .csg-scene *::before, .csg-scene *::after { box-sizing: border-box; }
.csg-scene :is(p, strong, b, em, span, small) { letter-spacing: 0; }
.csg-scene :is(p, dl, dd) { margin: 0; }
.csg-scene :is(strong, b) { font-weight: 500; }
.csg-scene em { font-style: normal; color: #fe4a23; }
.csg-scene svg { display: block; flex: 0 0 24px; width: 24px; height: 24px; }
.csg-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 566px;
  padding: 30px 28px;
  background: linear-gradient(90deg, transparent calc(50% - .5px), #e7e7e7 calc(50% - .5px), #e7e7e7 calc(50% + .5px), transparent calc(50% + .5px));
}
.csg-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle, #bdbdbd 1px, transparent 1.1px) 0 0 / 8px 8px;
  mask-image: linear-gradient(transparent, #000 45%, transparent);
  opacity: .2;
}
.csg-stage > * { width: 100%; max-width: 440px; min-width: 0; }
.csg-label { display: block; color: #666; font: 400 14px/21px SFMono-Regular, Consolas, monospace; }
.csg-display { display: block; margin-top: 10px; font-size: 32px; line-height: 35px; letter-spacing: -.04em !important; }
.csg-scene .csg-copy { color: #666; font-size: 16px; line-height: 24px; margin-top: 12px; }
.csg-paper { background: #fff; border: 1px solid #e7e7e7; box-shadow: 0 16px 28px -24px #26262640; }
.csg-paper-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 12px 20px; border-bottom: 1px solid #e7e7e7; color: #666; font-size: 14px; line-height: 21px; }
.csg-paper-bar img { display: block; width: 104px; height: auto; flex: none; }
.csg-paper-bar > span:last-child { text-align: right; }
.csg-block { position: relative; padding: 22px 24px; }
.csg-block + .csg-block { border-top: 1px solid #e7e7e7; }
.csg-note { display: block; padding: 12px 20px; border-top: 1px solid #e7e7e7; color: #666; font-size: 14px; line-height: 21px; }
.csg-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 48px; padding: 12px 14px; background: #fe4a23; color: #fff; font-size: 16px; line-height: 24px; }
.csg-cta svg { color: #fff; }
.csg-route { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 0; color: #fe4a23; font-size: 14px; line-height: 21px; }
.csg-route > span { color: #666; background: #fafafa; }
.csg-route svg { width: 24px; height: 24px; }
.csg-sources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #fff; border: 1px solid #e7e7e7; }
.csg-sources > div { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 12px; min-width: 0; padding: 15px 13px; }
.csg-sources > div + div { border-left: 1px solid #e7e7e7; }
.csg-sources strong { font-size: 18px; line-height: 24px; letter-spacing: -.02em !important; }
.csg-sources .csg-label { font-size: 14px; }
.csg-section-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 12px 24px; border-bottom: 1px solid #e7e7e7; font-size: 14px; line-height: 21px; color: #666; }
.csg-section-nav > span:first-child { color: #fe4a23; }
.csg-section-nav > span { display: flex; align-items: center; gap: 6px; }
.csg-section-nav svg { width: 18px; height: 18px; flex-basis: 18px; }
.csg-art { display: block; width: 100%; height: auto; object-fit: contain; }
.csg-assembly .csg-art { margin: 12px 0 6px; max-height: 128px; }
.csg-assembly-result { display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 8px 14px; }
.csg-assembly-result .csg-label { grid-column: 1 / -1; }
.csg-assembly-result > strong { font-size: 22px; line-height: 27px; letter-spacing: -.025em !important; }
.csg-assembly-result > svg { color: #fe4a23; align-self: center; }
.csg-offer .csg-art { margin: 12px auto 0; max-height: 116px; }
.csg-click { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.csg-click .csg-cta { flex: 1; }
.csg-click .csg-pointer { flex-basis: 30px; width: 30px; height: 30px; color: #262626; }
.csg-form-preview { display: grid; gap: 12px; }
.csg-form-heading { display: flex; gap: 12px; align-items: center; }
.csg-form-heading > svg { color: #fe4a23; }
.csg-form-heading strong { display: block; font-size: 22px; line-height: 27px; letter-spacing: -.025em !important; }
.csg-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid #e7e7e7; background: #fafafa; font-size: 14px; line-height: 22px; }
.csg-field > span { color: #666; }
.csg-type-source { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; padding: 18px 24px; background: #fff; border: 1px solid #e7e7e7; }
.csg-type-source > strong { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 60px; line-height: 64px; letter-spacing: -.055em !important; font-weight: 500; }
.csg-type-source > span:nth-child(2) { font-size: 19px; line-height: 26px; }
.csg-type-row { display: grid; grid-template-columns: 45px minmax(0, 1fr); gap: 14px; }
.csg-type-row + .csg-type-row { margin-top: 22px; }
.csg-weight { color: #666; font: 400 14px/21px SFMono-Regular, Consolas, monospace; padding-top: 4px; }
.csg-type-row .csg-display { margin-top: 0; }
.csg-type-row .csg-copy { margin-top: 0; }
.csg-type-result { padding-top: 18px; }
.csg-type-result .csg-cta { margin-top: 12px; }
.csg-brand-sources > div { min-height: 100px; justify-content: space-between; }
.csg-brand-sources img { display: block; max-width: 100%; height: auto; }
.csg-brand-sources .csg-source-logo { width: 90px; margin-block: auto; }
.csg-brand-sources .csg-source-mark { width: 38px; height: auto; }
.csg-color-chip { display: block; width: 34px; height: 34px; background: #fe4a23; }
.csg-brand .csg-route { padding-block: 16px; }
.csg-brand-layout { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 28px 24px 20px; }
.csg-brand-layout > div { min-width: 0; }
.csg-brand-layout .csg-display { font-size: 31px; line-height: 35px; }
.csg-brand-layout > img { display: block; flex: 0 0 auto; width: 70px; height: auto; }
.csg-brand .csg-brand-bottom { padding: 0 24px 24px; }
.csg-brand-bottom > .csg-label { margin-bottom: 16px; }
.csg-report .csg-block { padding-block: 18px; }
.csg-page-excerpt { margin-top: 12px; border: 1px solid #e7e7e7; background: #fafafa; }
.csg-page-excerpt > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; font-size: 14px; line-height: 21px; }
.csg-page-excerpt > div + div { border-top: 1px solid #e7e7e7; }
.csg-page-excerpt > div:last-child { color: #666; }
.csg-page-excerpt strong { display: flex; align-items: center; gap: 8px; }
.csg-report-finding { background: #fff2ed; }
.csg-report-finding .csg-display { font-size: 25px; line-height: 29px; }
.csg-report .csg-action-list { margin-top: 12px; }
.csg-action-list > div { display: flex; align-items: center; gap: 12px; padding: 11px 0; font-size: 16px; line-height: 24px; }
.csg-action-list > div + div { border-top: 1px solid #e7e7e7; }
.csg-action-list b { color: #666; font: 400 14px/21px SFMono-Regular, Consolas, monospace; }
.csg-action-list > div:first-child b { color: #fe4a23; }
.csg-action-list svg { margin-left: auto; color: #fe4a23; }
.csg-landing-brief { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 5px 16px; padding: 13px 18px; background: #fff; border: 1px solid #e7e7e7; }
.csg-landing-brief > strong { font-size: 17px; line-height: 24px; }
.csg-landing .csg-block { padding-block: 18px; }
.csg-landing .csg-art { margin-top: 8px; max-height: 180px; }
.csg-landing .csg-cta { margin-top: 12px; }
.csg-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #e7e7e7; background: #fff; }
.csg-steps > span { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 10px; min-width: 0; color: #262626; font-size: 14px; line-height: 21px; }
.csg-steps > span + span { border-left: 1px solid #e7e7e7; }
.csg-steps b { color: #fe4a23; font: 400 14px/21px SFMono-Regular, Consolas, monospace; }
.csg-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; min-height: 64px; padding: 14px 22px; border-top: 1px solid #e7e7e7; background: #fff; color: #666; font-size: 14px; line-height: 22px; }
.csg-foot button { min-height: 44px; padding: 8px 0; border: 0; border-radius: 0; background: none; color: #262626; font: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.csg-foot button[hidden] { display: none !important; }
.csg-foot button:focus-visible { outline: 2px solid #fe4a23; outline-offset: 4px; }
.csg-scene [data-csg-part] { transition: background-color .5s ease, box-shadow .5s ease; }
.csg-scene[data-csg-enhanced="true"][data-finished="false"][data-phase="0"] [data-csg-part="0"],
.csg-scene[data-csg-enhanced="true"][data-finished="false"][data-phase="1"] [data-csg-part="1"],
.csg-scene[data-csg-enhanced="true"][data-finished="false"][data-phase="2"] [data-csg-part="2"] { background-color: #fff2ed; }
.spm-card:has(> .csg-scene) .spm-card-head > span { font-size: 14px; line-height: 21px; }
@media (max-width: 1000px) and (min-width: 768px) {
  .spm-grid:has(> .spm-card > .csg-scene) { grid-template-columns: minmax(0, 1fr); }
  .spm-grid:has(> .spm-card > .csg-scene) > .spm-card + .spm-card { border-left: 1px solid #e7e7e7; border-top: 0; }
}
@media (max-width: 767px) {
  .csg-stage { min-height: 0; padding: 26px 20px; }
  .csg-steps > span { flex-direction: column; align-items: flex-start; gap: 4px; padding: 13px 12px; }
  .csg-foot { padding-inline: 20px; }
  .csg-foot button { font-size: 16px; line-height: 24px; }
  .csg-scene .csg-copy { font-size: 16px; line-height: 24px; }
  .csg-field { font-size: 16px; line-height: 24px; }
  .csg-scene .csg-art { max-height: none; }
}
@media (max-width: 480px) {
  .csg-stage { padding: 22px 14px; }
  .csg-block { padding: 20px 16px; }
  .csg-paper-bar { padding-inline: 16px; flex-wrap: wrap; gap: 8px 12px; }
  .csg-paper-bar img { width: 96px; }
  .csg-section-nav { gap: 5px 12px; padding-inline: 16px; }
  .csg-display { font-size: 28px; line-height: 31px; }
  .csg-sources > div { padding: 12px 8px; gap: 7px; }
  .csg-sources strong { font-size: 16px; line-height: 24px; }
  .csg-click { gap: 6px; }
  .csg-click .csg-pointer { width: 24px; height: 24px; flex-basis: 24px; }
  .csg-form-heading strong { font-size: 21px; line-height: 26px; }
  .csg-type-source { padding: 16px; gap: 5px 12px; }
  .csg-type-source > strong { font-size: 52px; line-height: 56px; }
  .csg-type-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .csg-type-row .csg-weight { padding-top: 0; }
  .csg-brand-layout { padding: 24px 16px 18px; gap: 12px; }
  .csg-brand-layout .csg-display { font-size: 27px; line-height: 31px; }
  .csg-brand-layout > img { width: 46px; }
  .csg-brand .csg-brand-bottom { padding: 0 16px 20px; }
  .csg-brand-sources .csg-source-logo { width: 74px; }
  .csg-note { padding-inline: 16px; }
  .csg-landing-brief { padding-inline: 14px; }
  .csg-landing .csg-art { aspect-ratio: 8 / 5; object-fit: cover; }
  .csg-report-finding .csg-display { font-size: 24px; line-height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .csg-scene *, .csg-scene *::before, .csg-scene *::after { animation: none !important; transition: none !important; }
}
/* A shared row grid aligns both illustrations, controls and captions on desktop. */
@media (min-width: 1001px) {
  .spm-grid:has(> .spm-card > .csg-scene) {
    grid-template-rows: auto 1fr auto;
  }
  .spm-grid > .spm-card:has(> .csg-scene) {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
  }
  .spm-card > .csg-scene { height: 100%; }
  .csg-stage { flex: 1; }
}
