/* Strudle Explainer Flow Widget — odwzorowanie HTML 1:1 */
.strudel-explainer-flow {
  --sef-max-width: 1040px;
  --sef-gap: 18px;
  --sef-card-min-height: 0px;
  --sef-image-height: 495px;

  width: min(var(--sef-max-width), calc(100% - 48px));
  max-width: var(--sef-max-width);
  margin: 16px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sef-gap);
  align-items: stretch;
}

.strudel-explainer-flow,
.strudel-explainer-flow * {
  box-sizing: border-box;
}

/* Ułożenie jak w paczce HTML: zdjęcia w pierwszym rzędzie, opisy pod nimi */
.strudel-explainer-flow > :nth-child(1) { grid-column: 1; grid-row: 1; }
.strudel-explainer-flow > :nth-child(2) { grid-column: 1; grid-row: 2; }
.strudel-explainer-flow > :nth-child(3) { grid-column: 2; grid-row: 1; }
.strudel-explainer-flow > :nth-child(4) { grid-column: 2; grid-row: 2; }
.strudel-explainer-flow > :nth-child(5) { grid-column: 3; grid-row: 1; }
.strudel-explainer-flow > :nth-child(6) { grid-column: 3; grid-row: 2; }

.strudel-explainer-photo {
  position: relative;
  width: 100%;
  height: var(--sef-image-height);
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(17, 28, 53, .10);
  box-shadow: 0 12px 30px rgba(17, 28, 53, .075);
}

.strudel-explainer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  max-width: none;
}

.strudel-explainer-card {
  height: 100%;
  min-height: var(--sef-card-min-height);
  background: #ffffff;
  border: 1px solid rgba(17, 28, 53, .10);
  border-radius: 12px;
  padding: 25px 24px 24px;
  box-shadow: 0 10px 28px rgba(17, 28, 53, .055);
  text-align: center;
  color: #5d6473;
}

.strudel-explainer-number {
  width: 34px;
  height: 34px;
  margin: 0 auto 15px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(198, 154, 85, .72);
  color: #C69A55;
  font-family: "Lato", Arial, sans-serif;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .08em;
}

.strudel-explainer-card h3 {
  margin: 0;
  color: #101E39;
  font-family: "Lato", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.32;
  font-weight: 800;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.strudel-explainer-text,
.strudel-explainer-text p,
.strudel-explainer-card p {
  color: #5d6473;
  font-family: "Lato", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.68;
  font-weight: 400;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.strudel-explainer-text p,
.strudel-explainer-card p {
  margin: 12px 0 0;
}

.strudel-explainer-text p:first-child,
.strudel-explainer-card p:first-child {
  margin-top: 12px;
}

@media (max-width: 1180px) {
  .strudel-explainer-flow {
    --sef-max-width: 920px;
    --sef-image-height: 440px;
    width: min(var(--sef-max-width), calc(100% - 40px));
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sef-gap);
  }
}

@media (max-width: 767px) {
  .strudel-explainer-flow {
    --sef-max-width: 320px;
    --sef-gap: 14px;
    --sef-image-height: 420px;
    width: min(var(--sef-max-width), calc(100% - 32px));
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .strudel-explainer-flow > * {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .strudel-explainer-photo {
    height: var(--sef-image-height);
    border-radius: 18px;
  }

  .strudel-explainer-card {
    min-height: auto;
  }
}
