.guarantees {
  --guarantees-width: 72.5rem;
  --guarantees-ink: 58 43 67;
  --guarantees-accent: 125 105 217;
  --guarantees-card: #f9f5ff;
  --guarantees-border: rgb(178 152 251 / 37%);
  --guarantees-title: #1b1b1b;
  --guarantees-badge: #b49fef;
  --guarantees-gap: .8125rem;
  --guarantees-card-radius: 1.25rem;
  position: relative;
  container: guarantees-section / inline-size;
  isolation: isolate;
  padding-block: clamp(2rem, 3.07143vw, 2.6875rem) clamp(2.5rem, 5.14286vw, 4.5rem);
  background: var(--color-page);
}
.guarantees__background { position: absolute; z-index: -1; inset: 0; overflow: clip; pointer-events: none; }
.guarantees__glow { position: absolute; max-width: none; height: auto; }
/* The source render already includes its 16% opacity and blur. */
.guarantees__glow--center { top: 2.5rem; left: calc(50% - 14.375rem); width: 33rem; }
.guarantees__layout { container: guarantees-layout / inline-size; width: min(calc(100% - 2 * var(--compact-page-gutter)), var(--guarantees-width)); margin-inline: auto; }
.guarantees__header { min-width: 0; margin-bottom: 1.5rem; }
.guarantees__eyebrow { display: table; min-width: 5.875rem; max-width: 100%; min-height: 1.875rem; padding: .4375rem .875rem .4375rem 1rem; border-radius: var(--radius-pill); background: rgb(204 197 254 / 19%); color: rgb(var(--guarantees-ink) / 40%); font-size: .875rem; font-weight: 500; line-height: 1.11; }
.guarantees__header h2 { max-width: 24.375rem; margin-top: 1rem; color: rgb(var(--guarantees-ink) / 82%); font-size: clamp(1.625rem, 1.5rem + .4286vw, 1.875rem); font-weight: 600; line-height: 1.11; }
.guarantees__accent { color: rgb(var(--guarantees-accent) / 82%); }
.guarantees__title-mark { display: inline-block; margin-left: 1rem; vertical-align: -.15em; }
.guarantees__title-check { width: 1.75rem; height: 1.75rem; }
.guarantees__description { max-width: 29.8125rem; margin-top: 1rem; color: rgb(var(--guarantees-ink) / 40%); font-size: clamp(.8125rem, .75rem + .14286vw, .875rem); font-weight: 500; line-height: 1.25; }
.guarantees__list { display: grid; gap: var(--guarantees-gap); padding: 0; list-style: none; }
.guarantees__item { container: guarantee-card / inline-size; min-width: 0; }
.guarantees__card { height: 100%; min-width: 0; padding: .4375rem .75rem 1.375rem 1.0625rem; border: 1px solid var(--guarantees-border); border-radius: var(--guarantees-card-radius); background: var(--guarantees-card); }
.guarantees__media { position: relative; height: 7.25rem; margin-inline: -1.0625rem -.75rem; }
.guarantees__art { position: absolute; top: var(--guarantee-art-top, 0rem); left: calc(50% + var(--guarantee-art-offset, 0rem)); width: var(--guarantee-art-width); max-width: 100%; height: auto; transform: translateX(-50%); }
.guarantees__item--contract { --guarantee-art-width: 6.25rem; }
.guarantees__item--celebrations { --guarantee-art-width: 7.0625rem; }
.guarantees__item--team { --guarantee-art-width: 6.5rem; --guarantee-art-top: .375rem; --guarantee-art-offset: -.5rem; }
.guarantees__item--payment { --guarantee-art-width: 8.3125rem; --guarantee-art-offset: -.78125rem; }
.guarantees__item--punctuality { --guarantee-art-width: 13.5625rem; --guarantee-art-top: .3125rem; --guarantee-art-offset: -.03125rem; }
.guarantees__art-decoration { position: absolute; top: 5.4375rem; left: calc(50% + 1.4375rem); width: 2.125rem; height: 1.6875rem; }
.guarantees__body { min-width: 0; }
.guarantees__badge { position: relative; display: flex; align-items: center; width: 4.25rem; height: 1.6875rem; padding-left: .703125rem; border-radius: var(--radius-pill); background: var(--guarantees-badge); color: rgb(255 255 255 / 60%); font-size: .875rem; font-weight: 500; line-height: 1.2; }
.guarantees__check { position: absolute; top: -.1875rem; left: 2.375rem; width: 2.0625rem; max-width: none; height: 2.0625rem; }
.guarantees__body h3 { max-width: 13.8125rem; margin: 1.5rem 0 0; color: var(--guarantees-title); font-size: clamp(1rem, .875rem + .28572vw, 1.125rem); font-weight: 500; line-height: 1.2; }
.guarantees__copy { max-width: 15.5625rem; margin-top: .6875rem; color: rgb(var(--guarantees-ink) / 51%); font-size: clamp(.8125rem, .75rem + .14286vw, .875rem); font-weight: 500; line-height: 1.25; }
.guarantees__item--celebrations .guarantees__copy, .guarantees__item--payment .guarantees__copy { max-width: 12.5625rem; }
.guarantees__item--punctuality .guarantees__copy { max-width: 14.5625rem; }
.guarantees__card--featured { display: grid; grid-template-columns: minmax(0, 1fr) min(25%, 6.25rem); align-items: center; gap: 1rem; padding: 1.5rem 1.375rem; }
.guarantees__card--featured .guarantees__media { grid-area: 1 / 2; height: auto; aspect-ratio: 1; margin: 0; }
.guarantees__card--featured .guarantees__art { width: 100%; }
.guarantees__card--featured .guarantees__body { grid-area: 1 / 1; }
.guarantees__card--featured h3 { max-width: none; margin-top: 1.3125rem; line-height: 1.2; }
.guarantees__card--featured .guarantees__copy { max-width: 22rem; margin-top: .9375rem; }

/* A narrow list becomes a compact row per guarantee. When enlarged text
   cannot fit beside the art, the base vertical composition remains available. */
@container guarantees-layout (width < 28em) {
  .guarantees__header { position: relative; }
  .guarantees__title-mark { position: absolute; inset-block-start: 0; inset-inline-end: 0; margin: 0; }
}
@container guarantees-layout (18em <= width < 28em) {
  .guarantees__card:not(.guarantees__card--featured) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr); align-items: center; gap: .875rem; padding: 1rem; }
  .guarantees__card:not(.guarantees__card--featured) .guarantees__media { height: auto; aspect-ratio: 1; margin: 0; }
  .guarantees__card:not(.guarantees__card--featured) .guarantees__art { top: 50%; left: 50%; width: 100%; transform: translate(-50%, -50%); }
  .guarantees__art-decoration { top: 65%; left: 66%; width: 16%; height: auto; }
  .guarantees__card:not(.guarantees__card--featured) .guarantees__body h3 { margin-top: .875rem; }
  .guarantees__copy { max-width: none; }
}
@container guarantees-layout (width >= 28em) {
  .guarantees__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guarantees__item--featured { grid-column: 1 / -1; }
}
/* Cap artwork growth between the two- and four-column arrangements. */
@container guarantee-card (width >= 24em) {
  .guarantees__card:not(.guarantees__card--featured) { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); align-items: center; gap: 1rem; padding: 1.25rem; }
  .guarantees__card:not(.guarantees__card--featured) .guarantees__media { height: 7.25rem; margin: 0; }
  .guarantees__card:not(.guarantees__card--featured) .guarantees__art { top: 50%; left: 50%; max-width: 100%; transform: translate(-50%, -50%); }
  .guarantees__art-decoration { top: 65%; left: 66%; width: 16%; height: auto; }
  .guarantees__card:not(.guarantees__card--featured) .guarantees__body h3 { margin-top: 1rem; }
}
@container guarantees-layout (width >= 64em) {
  .guarantees__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@container guarantee-card (width < 18em) {
  .guarantees__card--featured { display: block; padding: 1rem; }
  .guarantees__card--featured .guarantees__media { width: min(100%, 6.25rem); height: auto; margin: 0 auto 1rem; }
  .guarantees__body h3, .guarantees__copy { overflow-wrap: anywhere; }
}
@container guarantees-layout (width < 18em) {
  .guarantees__header { overflow-wrap: anywhere; }
}
/* On phones the first guarantee follows the same image-left row as the
   following cards. Tablet and desktop retain the featured composition. */
@media (width < 48rem) {
  .guarantees__card--featured { grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr); gap: .875rem; padding: 1rem; }
  .guarantees__card--featured .guarantees__media { grid-area: 1 / 1; width: 100%; max-width: 6.25rem; justify-self: center; }
  .guarantees__card--featured .guarantees__art { top: 50%; left: 50%; transform: translate(-50%, -50%); }
  .guarantees__card--featured .guarantees__body { grid-area: 1 / 2; }
  .guarantees__card--featured h3 { margin-top: .875rem; }
  .guarantees__card--featured .guarantees__copy { margin-top: .6875rem; }
}
@media (width >= 75rem) {
 .guarantees__layout { width: min(calc(100% - 2 * var(--desktop-page-gutter)), var(--guarantees-width)); }
 @container guarantees-section (width >= 75em) {
  .guarantees__layout { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--guarantees-gap); row-gap: .9375rem; }
  .guarantees__header { grid-area: 1 / 1 / 2 / 3; margin: 0; padding-bottom: 1.25rem; }
  /* The list remains one semantic element and shares the section's two rows. */
  .guarantees__list { grid-area: 1 / 1 / 3 / -1; grid-template-columns: subgrid; grid-template-rows: subgrid; row-gap: inherit; }
  .guarantees__item { grid-row: 2; }
  .guarantees__item--featured { grid-area: 1 / 3 / 2 / -1; align-self: end; }
  .guarantees__card { min-height: 18rem; }
  .guarantees__card--featured { min-height: 10.25rem; grid-template-columns: minmax(0, 22rem) 6.25rem; column-gap: 2.4375rem; padding: 1.5rem 3.6875rem 1.4375rem 1.375rem; }
  .guarantees__card--featured .guarantees__media { top: .125rem; width: 6.25rem; height: 6.25rem; }
  .guarantees__card--featured h3 { line-height: .99; }
  .guarantees__card--featured .guarantees__copy { margin-top: .8125rem; }
 }
}

/* Hover: the card lifts onto a lilac outline, a faint sheen crosses it, the
   number pill fills with the accent, its tick pops and the illustration
   floats up. Pointer only; movement only for readers who allow motion. */
@media (hover: hover) and (pointer: fine) {
  .guarantees__card {
    background:
      linear-gradient(110deg, transparent 35%, rgb(178 152 251 / 16%) 50%, transparent 65%) 160% 0 / 260% 100% no-repeat,
      var(--guarantees-card);
    transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
    /* Artwork backdrops rely on DARKEN over the card surface; clip so a raised
       illustration never shows its backdrop beyond the card's rounded edge. */
    overflow: clip;
  }
  .guarantees__badge { transition: background-color .3s var(--ease-out), color .3s var(--ease-out); }
  .guarantees__card:hover { border-color: rgb(var(--guarantees-accent) / 45%); box-shadow: 0 1rem 2.5rem rgb(var(--guarantees-accent) / 16%); }
  .guarantees__card:hover .guarantees__badge { background: rgb(var(--guarantees-accent)); color: #fff; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .guarantees__card { transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out), translate .35s var(--ease-out), background-position 0s; }
  .guarantees__card:hover { translate: 0 -.375rem; background-position: -60% 0, 0 0; transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out), translate .35s var(--ease-out), background-position .9s var(--ease-out); }
  .guarantees__art, .guarantees__art-decoration, .guarantees__check { transition: translate .5s cubic-bezier(.34, 1.56, .64, 1), scale .5s cubic-bezier(.34, 1.56, .64, 1), rotate .5s cubic-bezier(.34, 1.56, .64, 1); }
  .guarantees__card:hover .guarantees__art { translate: 0 -.3125rem; scale: 1.05; }
  .guarantees__card:hover .guarantees__art-decoration { translate: .375rem -.75rem; rotate: 12deg; }
  .guarantees__card:hover .guarantees__check { scale: 1.18; rotate: -10deg; }
}
