.ax-ed-quote {
  padding: var(--ax-sec-pad-s) 0 var(--ax-sec-pad-m);
  --ax-icon-1: var(--ax-steel);
  --ax-icon-2: var(--ax-navy);
}
/* Linia domykająca ma już swój odstęp u góry, a belka pod sekcją własny u dołu -
   pełny --ax-sec-pad-m zostawiał między nimi pusty pas na całą szerokość. */
.ax-ed-quote--tight-bottom { padding-bottom: clamp(18px, 2.2vw, 34px); }
.ax-ed-quote__inner { max-width: var(--ax-maxw); margin: 0 auto; padding: 0 var(--ax-gutter); }
.ax-ed-quote__shell {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 44px);
  align-items: start;
}
.ax-ed-quote__shell--features { margin-top: clamp(50px, 7vw, 110px); }
/* Inline flow + vertical-rl — match manifest / reference (no flex: it desyncs line/mark/num). */
.ax-ed-quote__rail {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ax-steel);
  writing-mode: vertical-rl;
  white-space: nowrap;
  padding-top: 6px;
}
.ax-ed-quote__rail-line {
  display: inline-block;
  width: 1px;
  height: 34px;
  background: rgba(134, 160, 198, 0.55);
  margin-bottom: 14px;
}
.ax-ed-quote__rail-mark,
.ax-ed-quote__feature-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  vertical-align: -1px;
}
.ax-ed-quote__rail-mark .ax-mark-x,
.ax-ed-quote__feature-mark .ax-mark-x { fill: var(--ax-steel); display: block; }
.ax-ed-quote__rail--empty { visibility: hidden; }
.ax-ed-quote__row { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 32px); align-items: start; }
.ax-ed-quote__heading { grid-column: 1 / span 8; grid-row: 1; margin: 0 0 clamp(30px, 4vw, 60px); font-weight: 400; font-size: clamp(25px, 3vw, 48px); line-height: 1.24; letter-spacing: -.02em; text-wrap: pretty; }
.ax-ed-quote__copy { grid-column: 1 / span 5; grid-row: 2; display: flex; flex-direction: column; gap: 22px; }
.ax-ed-quote__lead { margin: 0; color: rgba(53,59,102,.72); text-wrap: pretty; }
.ax-ed-quote__pull { margin: 0; font-weight: 400; font-size: clamp(25px, 3vw, 48px); line-height: 1.24; letter-spacing: -.024em; color: var(--ax-navy); border-left: 1px solid var(--ax-steel); padding-left: 24px; }
.ax-ed-quote__media { grid-column: 7 / span 6; grid-row: 2; position: relative; margin-right: calc(-1 * var(--ax-gutter)); }
.ax-ed-quote__media img {
  position: relative;
  display: block;
  width: 100%;
  height: auto; /* beat WP width/height attrs stretching the frame */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: var(--ax-sand-deep);
}
/* Reference UL4 L479: photo badge blur(30px) saturate(180%) — different from O-nas 22/160. */
.ax-ed-quote__badge {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  transform: translate(-22%, 32%);
  border-radius: 10px;
  background: rgba(244, 241, 235, 0.62);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.58);
  padding: 16px 20px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ax-navy);
  line-height: 1.8;
}
/* Przycisk pod cytatem — ten sam pill co w split-feature, żeby wejście na
   ofertę wyglądało tak samo w każdej sekcji. */
.ax-ed-quote__cta {
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(6px, 0.8vw, 12px);
  border-radius: 10px;
  background: var(--ax-navy);
  color: var(--ax-paper);
  padding: 18px 26px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 380ms ease, color 380ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .ax-ed-quote__cta:hover { background: var(--ax-steel); color: var(--ax-ink); }
}
/* Metryka — włosowe linie jak w stats-axo, liczby w jednej linii bazowej. */
.ax-ed-quote__figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 0 clamp(18px, 2.4vw, 40px);
  margin: clamp(44px, 5vw, 84px) 0 0;
}
.ax-ed-quote__figure {
  border-top: 1px solid rgba(53, 59, 102, 0.16);
  padding: clamp(18px, 2vw, 26px) 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ax-ed-quote__figure-value {
  margin: 0;
  font-weight: 300;
  font-size: clamp(34px, 3.4vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ax-navy);
  font-variant-numeric: tabular-nums;
}
.ax-ed-quote__figure-label {
  margin: 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ax-steel);
  line-height: 1.5;
  text-wrap: balance;
}
.ax-ed-quote__features { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.ax-ed-quote__feature { border-radius: 14px; background: rgba(255,255,255,.5); border: 1px solid rgba(53,59,102,.12); padding: clamp(22px, 2.4vw, 36px); display: flex; flex-direction: column; gap: 12px; }
.ax-ed-quote__icon { display: block; margin: 0 0 10px; margin-left: -6px; }
/* Piktogramy z biblioteki wchodzą bez width/height, więc bez tej reguły rosną
   do szerokości karty. Skala jak w info-cards - jeden rozmiar na całej stronie. */
.ax-ed-quote__icon:not([width]) { width: clamp(80px, 7vw, 104px); height: auto; }
.ax-ed-quote__feature-eyebrow { font-size: 9.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ax-steel); }
.ax-ed-quote__feature-title { margin: 0; font-weight: 400; font-size: clamp(19px, 1.75vw, 26px); line-height: 1.16; letter-spacing: -.02em; }
.ax-ed-quote__feature-lead { margin: 0; color: rgba(53,59,102,.66); font-size: 14.5px; line-height: 1.6; text-wrap: pretty; }
.ax-ed-quote__closing { margin: clamp(44px, 6vw, 90px) 0 0; font-weight: 400; font-size: clamp(25px, 3vw, 48px); line-height: 1.24; letter-spacing: -.02em; color: var(--ax-navy); text-align: right; }
@media (max-width: 900px) {
  .ax-ed-quote__shell {
    grid-template-columns: 1fr;
    gap: 0; /* rail owns the eyebrow→heading gap */
  }
  .ax-ed-quote__shell--features {
    margin-top: 28px;
  }
  /* Tighter top so icons sit closer to the card edge (SVG viewBox already has air). */
  .ax-ed-quote__feature {
    padding: 12px 18px 18px;
  }
  .ax-ed-quote__icon {
    margin-bottom: 2px;
  }
  /* Match units / section-label mark standard: diamond + uppercase text. */
  .ax-ed-quote__rail {
    writing-mode: horizontal-tb;
    padding-top: 0;
    margin-bottom: 12px;
    display: block;
  }
  .ax-ed-quote__row {
    gap: 16px;
  }
  .ax-ed-quote__heading {
    margin-bottom: 4px; /* row gap carries most of the air into copy */
  }
  /* After .ax-ed-quote__rail — spacer column is desktop-only. */
  .ax-ed-quote__rail--empty {
    display: none;
  }
  .ax-ed-quote__rail-line { display: none; }
  .ax-ed-quote__rail-mark {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    vertical-align: -1px;
    margin-right: 9px;
  }
  .ax-ed-quote__rail-mark .ax-mark-x {
    width: 9px;
    height: 7.2px;
    fill: currentColor;
  }
  .ax-ed-quote__heading, .ax-ed-quote__copy, .ax-ed-quote__media { grid-column: 1 / -1; grid-row: auto; }
  .ax-ed-quote__media {
    margin-right: 0;
    margin-top: 8px;
  }
  /* Phone: shorter crop + hard cap (WP height attrs used to force ~750px). */
  .ax-ed-quote__media img {
    aspect-ratio: 5 / 4;
    height: auto;
    max-height: min(42svh, 360px);
  }
  /* Desktop hang (translate -22%) clips off-screen when media is flush to gutter. */
  .ax-ed-quote__badge {
    left: 12px;
    right: auto;
    bottom: 12px;
    transform: none;
    max-width: calc(100% - 24px);
    padding: 12px 14px;
    font-size: 9.5px;
    letter-spacing: 0.16em;
  }

  .ax-ed-quote__cta {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    box-sizing: border-box;
    margin-top: 6px;
  }

  .ax-ed-quote__figures {
    margin-top: 28px;
    gap: 0 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ax-ed-quote__figure {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  /* Dwie kolumny na telefonie - luźny trakt rozrywał „sektorów budownictwa”. */
  .ax-ed-quote__figure-label {
    font-size: 9.5px;
    letter-spacing: 0.13em;
  }

  .ax-ed-quote__closing {
    margin-top: 24px;
    font-size: clamp(22px, 6.2vw, 28px);
    text-align: left;
  }

  .ax-ed-quote--tight-bottom {
    padding-bottom: 8px;
  }

  .ax-ed-quote__icon:not([width]) {
    width: 56px;
  }
}
