/* Desktop refinement pass: density, hierarchy and alignment. */

/* Shared carousel controls */
.marketplace-risks__arrow {
  position: absolute;
  z-index: 6;
  top: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(63, 63, 63, 0.14);
  border-radius: 50%;
  color: var(--apple-accent-dark);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(46, 4, 14, 0.14);
  cursor: pointer;
  transform: translateY(-50%);
}

.marketplace-risks__arrow--prev {
  left: 8px;
}

.marketplace-risks__arrow--next {
  right: 8px;
}

.marketplace-risks__arrow svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.marketplace-risks__arrow:disabled {
  opacity: 0.34;
  cursor: default;
}

.marketplace-risks__arrow:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.78);
  outline-offset: 3px;
}

@media (min-width: 901px) {
  /* Hero */
  .theme-apple .hero-alt__primary-action {
    width: fit-content;
    min-width: 330px;
    padding-inline: 28px;
  }

  /* Intro cards */
  .theme-apple .offer {
    padding-block: 72px;
  }

  .theme-apple .offer__grid {
    align-items: stretch;
  }

  .theme-apple .offer__card {
    display: flex;
    min-height: 0;
    height: 446px;
    flex-direction: column;
    padding: 34px 36px;
  }

  .theme-apple .offer__copy,
  .theme-apple .offer__explanation {
    margin-top: 24px;
    font-size: 14px;
    line-height: 1.5;
  }

  .theme-apple .offer__benefits {
    gap: 7px;
    margin-top: 20px;
    font-size: 12.5px;
    line-height: 1.36;
  }

  .theme-apple .offer__button {
    min-height: 52px;
    margin-top: auto;
  }

  /* Three steps */
  .theme-apple .steps__inner {
    padding-block: 76px;
  }

  .theme-apple .steps__cards {
    height: auto;
    align-items: stretch;
    margin-top: 42px;
  }

  .theme-apple .step-card {
    display: flex;
    height: auto;
    flex-direction: column;
  }

  .theme-apple .step-card__media {
    height: 238px;
    flex: 0 0 238px;
  }

  .theme-apple .step-card__content {
    height: auto;
    min-height: 0;
    flex: 1 1 auto;
    padding: 28px 28px 32px;
  }

  .theme-apple .step-card__title {
    font-size: 26px;
  }

  .theme-apple .step-card__description {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.5;
  }

  /* Marketplace reviews: normal-height horizontal carousel, no scroll scene. */
  .theme-apple .marketplace-risks {
    height: auto;
    min-height: 0;
    padding-block: 84px 78px;
    color: var(--apple-accent-foreground);
    background: var(--apple-accent);
  }

  .marketplace-risks__inner {
    width: var(--apple-width);
    height: auto;
    padding: 0;
  }

  .marketplace-risks__header {
    position: static;
    max-width: 780px;
  }

  .marketplace-risks__title {
    font-size: clamp(44px, 4vw, 56px);
  }

  .marketplace-risks__stage {
    position: relative;
    top: auto;
    height: auto;
    margin-top: 44px;
    padding-inline: 62px;
    overflow: visible;
  }

  .marketplace-risks__rail {
    height: auto;
    overflow: hidden;
  }

  .marketplace-risks__cards {
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    transform: none !important;
    will-change: auto;
  }

  .marketplace-risks__cards::-webkit-scrollbar {
    display: none;
  }

  .marketplace-card {
    position: relative;
    width: auto;
    height: auto;
    min-height: 0;
    flex: 0 0 clamp(260px, 26vw, 318px);
    aspect-ratio: 3 / 4;
    padding: 0;
    overflow: hidden;
    border-color: rgba(255, 255, 255, 0.34);
    border-radius: 26px;
    scroll-snap-align: start;
    box-shadow: 0 22px 52px rgba(52, 4, 15, 0.18);
  }

  .marketplace-card__meta {
    position: absolute;
    z-index: 3;
    inset: 20px 20px auto;
    color: var(--apple-accent-dark);
  }

  .marketplace-card__placeholder,
  .marketplace-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 76px 22px 24px;
    border: 0;
    border-radius: inherit;
    object-fit: cover;
  }

  .marketplace-card__placeholder {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    background: #efeee9;
    text-align: left;
  }

  .marketplace-risks__counter {
    position: static;
    margin: 18px 0 0;
    text-align: center;
  }

  /* Expert */
  .theme-apple .expert__layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    min-height: 650px;
    align-items: stretch;
  }

  .theme-apple .expert__portrait-wrap,
  .theme-apple .expert__content {
    min-height: 650px;
  }

  .theme-apple .expert__portrait-wrap {
    padding: 0;
    overflow: hidden;
  }

  .theme-apple .expert__portrait {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 48%;
  }

  .theme-apple .expert__content {
    padding: 58px 54px;
  }

  .theme-apple .expert__role,
  .theme-apple .expert__description,
  .theme-apple .expert__description--secondary {
    color: var(--apple-muted);
  }

  /* Requests */
  .theme-apple .problems__inner {
    grid-template-columns: minmax(310px, 360px) minmax(0, 1fr);
    gap: 52px;
    align-items: start;
  }

  .theme-apple .problems__header {
    min-width: 0;
  }

  .theme-apple .problems__title {
    max-width: 360px;
    margin-top: 22px;
    font-size: clamp(42px, 3.8vw, 54px);
    line-height: 0.98;
    letter-spacing: -0.045em;
    overflow-wrap: normal;
    text-wrap: balance;
    word-break: normal;
  }

  .theme-apple .problems-carousel {
    min-width: 0;
  }

  /* Actives */
  .theme-apple .actives__layout {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 46px;
    align-items: start;
  }

  .theme-apple .actives__summary {
    max-width: none;
  }

  .theme-apple .actives__title {
    max-width: 340px;
    font-size: clamp(40px, 3.6vw, 52px);
    line-height: 0.98;
  }

  .theme-apple .actives__description {
    max-width: 330px;
    font-size: 16px;
    line-height: 1.52;
  }

  .theme-apple .actives-carousel {
    min-width: 0;
    margin-top: 0;
  }

  .theme-apple .actives__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 14px;
  }

  .theme-apple .actives-carousel__slide {
    display: contents;
  }

  .theme-apple .active-card {
    min-height: 250px;
    justify-content: flex-start;
    padding: 26px;
  }

  .theme-apple .active-card--photo {
    justify-content: flex-end;
  }

  .theme-apple .active-card__content {
    gap: 10px;
  }

  .theme-apple .active-card__title {
    font-size: 21px;
    overflow-wrap: normal;
  }

  .theme-apple .active-card__description {
    font-size: 14px;
    line-height: 1.46;
  }

  /* Pricing */
  .theme-apple .pricing__grid {
    align-items: stretch;
  }

  .theme-apple .price-card__body {
    display: grid;
    grid-template-rows: auto minmax(64px, auto) minmax(92px, auto) auto auto;
    align-content: start;
  }

  .theme-apple .price-card__labels,
  .theme-apple .price-card > .price-card__body > .price-card__level {
    align-self: start;
  }

  .theme-apple .price-card__title {
    align-self: start;
    margin-top: 22px;
  }

  .theme-apple .price-card__subtitle {
    min-height: 0;
    margin-top: 12px;
  }

  .theme-apple .price-card__inclusions {
    margin-top: 22px;
  }

  .theme-apple .price-card__details {
    grid-template-rows: repeat(3, minmax(112px, auto));
  }

  .theme-apple .price-card__details > div {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .theme-apple .price-card__pricing {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    padding-top: 4px;
  }

  .theme-apple .price-card__price,
  .theme-apple .price-card__future {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
  }

  .theme-apple .price-card__future {
    align-items: flex-end;
    text-align: right;
  }

  .theme-apple .price-card__price strong {
    color: var(--apple-accent-dark);
  }

  .theme-apple .price-card--featured .price-card__price strong {
    color: #fff;
  }

  .theme-apple .price-card__future strong {
    text-decoration: none;
  }
}

@media (max-width: 900px) {
  .marketplace-risks__arrow {
    width: 40px;
    height: 40px;
  }

  .marketplace-risks__arrow--prev {
    left: 4px;
  }

  .marketplace-risks__arrow--next {
    right: 4px;
  }
}

/* Risks gallery: keep the image area open and use a compact bottom caption. */
.theme-apple .marketplace-risks__header,
.theme-apple .marketplace-risks__title {
  max-width: 920px;
}

.theme-apple .marketplace-card__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
}

.theme-apple .marketplace-card__placeholder {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  text-align: left;
}

.theme-apple .marketplace-card__condition {
  display: block;
  max-width: 24ch;
  color: var(--apple-accent-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.28;
  text-transform: none;
  text-wrap: pretty;
}

.theme-apple .marketplace-card__placeholder > .marketplace-card__condition {
  max-width: 24ch;
  color: var(--apple-accent-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.28;
}

@media (max-width: 600px) {
  .theme-apple .expert__portrait {
    top: -15%;
    bottom: auto;
    height: 115%;
    object-fit: cover;
    object-position: center top;
  }

  .theme-apple .marketplace-card__condition {
    max-width: 23ch;
    font-size: 13px;
  }
}

/* Final desktop geometry: content-led cards instead of inherited fixed scenes. */
@media (min-width: 901px) {
  /* The three opening cards share one compact content-driven height. */
  .theme-apple .offer__grid {
    align-items: stretch;
  }

  .theme-apple .offer__card {
    height: auto !important;
    min-height: 390px !important;
    padding: 32px 34px !important;
  }

  .theme-apple .offer__heading--small {
    font-size: clamp(26px, 2.1vw, 32px);
    line-height: 1.04;
  }

  .theme-apple .offer__copy,
  .theme-apple .offer__explanation {
    margin-top: 22px;
    font-size: 14px;
    line-height: 1.5;
  }

  .theme-apple .offer__benefits {
    margin-top: 18px;
  }

  /* Three steps: preserve equal cards, but remove the old 430px text floor. */
  .theme-apple .steps__cards {
    align-items: stretch;
  }

  .theme-apple .step-card__media {
    height: 206px !important;
    flex-basis: 206px !important;
  }

  .theme-apple .step-card__content {
    min-height: 0 !important;
    padding: 26px 28px 30px !important;
  }

  .theme-apple .step-card__description {
    margin-top: 16px;
    font-size: 13.5px;
    line-height: 1.48;
  }

  /* Marketplace risks: a regular portrait carousel, not a scroll-driven scene. */
  .theme-apple .marketplace-risks {
    height: auto !important;
    min-height: 0 !important;
    padding: 82px 0 76px !important;
    color: var(--apple-accent-foreground) !important;
    background: var(--apple-accent) !important;
  }

  .theme-apple .marketplace-risks__inner {
    position: relative !important;
    width: var(--apple-width) !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
  }

  .theme-apple .marketplace-risks__header {
    position: static !important;
    top: auto !important;
  }

  .theme-apple .marketplace-risks__stage {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin-top: 40px !important;
    padding-inline: 54px !important;
    overflow: visible !important;
  }

  .theme-apple .marketplace-risks__rail {
    height: auto !important;
    overflow: hidden !important;
  }

  .theme-apple .marketplace-risks__cards {
    display: flex !important;
    width: 100% !important;
    gap: 18px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    transform: none !important;
    will-change: auto !important;
  }

  .theme-apple .marketplace-card {
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    flex: 0 0 clamp(255px, 24.5vw, 300px) !important;
    aspect-ratio: 3 / 4 !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.32) !important;
    border-radius: 24px !important;
  }

  .theme-apple .marketplace-card__meta {
    position: absolute !important;
    z-index: 3;
    inset: 18px 18px auto !important;
    color: var(--apple-accent-dark) !important;
  }

  .theme-apple .marketplace-card__placeholder,
  .theme-apple .marketplace-card__image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 64px 20px 22px !important;
    border: 0 !important;
    border-radius: inherit !important;
    object-fit: cover !important;
  }

  .theme-apple .marketplace-card__placeholder {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
    background: #f2f0ea !important;
    text-align: left !important;
  }

  .theme-apple .marketplace-risks__counter {
    position: static !important;
    margin: 16px 0 0 !important;
    text-align: center;
  }

  /* Expert: use the supplied portrait as the card itself, without a framed inset. */
  .theme-apple .expert__portrait-wrap {
    position: relative;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .theme-apple .expert__portrait {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 45% !important;
  }

  .theme-apple .expert__role,
  .theme-apple .expert__description,
  .theme-apple .expert__description--secondary {
    color: var(--apple-muted) !important;
  }

  /* Requests: give the heading a real text column and keep it clear of the grid. */
  .theme-apple .problems__inner {
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr) !important;
    gap: 54px !important;
  }

  .theme-apple .problems__title {
    max-width: 350px !important;
    font-size: clamp(42px, 3.5vw, 52px) !important;
    line-height: 1 !important;
    letter-spacing: -0.045em !important;
    text-wrap: balance;
  }

  /* Actives: keep the richer copy, but restore wide, readable tiles. */
  .theme-apple .actives__layout {
    display: grid !important;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr) !important;
    gap: 50px !important;
    align-items: start;
  }

  .theme-apple .actives__summary {
    position: sticky;
    top: 34px;
    max-width: 360px !important;
  }

  .theme-apple .actives__title {
    max-width: 350px !important;
    font-size: clamp(42px, 3.7vw, 54px) !important;
    line-height: 0.98 !important;
  }

  .theme-apple .actives__description {
    max-width: 340px !important;
    font-size: 16px !important;
    line-height: 1.52 !important;
  }

  .theme-apple .actives-carousel {
    margin-top: 0 !important;
  }

  .theme-apple .actives__grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: none !important;
    grid-auto-rows: auto !important;
    gap: 14px !important;
  }

  .theme-apple .actives-carousel__slide {
    display: contents !important;
  }

  .theme-apple .active-card {
    min-width: 0 !important;
    min-height: 272px !important;
    justify-content: flex-start !important;
    padding: 26px !important;
    border-radius: 24px !important;
  }

  .theme-apple .active-card--photo {
    justify-content: flex-start !important;
  }

  .theme-apple .active-card__content {
    align-content: start;
    gap: 10px !important;
  }

  .theme-apple .active-card__title {
    font-size: clamp(19px, 1.55vw, 22px) !important;
    line-height: 1.08 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .theme-apple .active-card__metaphor {
    font-size: 13px !important;
  }

  .theme-apple .active-card__description {
    font-size: 13.5px !important;
    line-height: 1.44 !important;
  }

  /* Pricing: identical information slots and an unambiguous price hierarchy. */
  .theme-apple .pricing__grid {
    align-items: stretch !important;
  }

  .theme-apple .price-card__body {
    display: grid !important;
    grid-template-rows: 32px 90px 106px auto auto !important;
    align-content: start !important;
  }

  .theme-apple .price-card__labels {
    align-self: start;
  }

  .theme-apple .price-card__title {
    align-self: start;
    margin-top: 18px !important;
  }

  .theme-apple .price-card__subtitle {
    min-height: 0 !important;
    margin-top: 12px !important;
  }

  .theme-apple .price-card__inclusions {
    margin-top: 22px !important;
  }

  .theme-apple .price-card__details {
    grid-template-rows: repeat(3, minmax(116px, auto)) !important;
  }

  .theme-apple .price-card__details > div {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .theme-apple .price-card__pricing {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 18px 20px !important;
    border: 1px solid var(--apple-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.44);
  }

  .theme-apple .price-card--featured .price-card__pricing {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
  }

  .theme-apple .price-card__price,
  .theme-apple .price-card__future {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline !important;
    gap: 14px !important;
    text-align: left !important;
  }

  .theme-apple .price-card__future {
    padding-top: 10px;
    border-top: 1px solid var(--apple-border);
  }

  .theme-apple .price-card--featured .price-card__future {
    border-top-color: rgba(255, 255, 255, 0.2);
  }

  .theme-apple .price-card__future strong {
    font-size: 17px !important;
    text-decoration: none !important;
  }

  .theme-apple .price-card__pricing.price-card__pricing--raised {
    box-sizing: border-box;
    min-height: 114px;
    align-content: center;
  }

  .theme-apple .price-card__pricing--raised .price-card__price {
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 20px !important;
    width: 100%;
  }
}

/* Shared content rhythm for cards that exist in both desktop and mobile layouts. */
.theme-apple .step-card__description + .step-card__description {
  margin-top: 12px !important;
}

.theme-apple .active-card,
.theme-apple .active-card--photo {
  justify-content: flex-start !important;
}

.theme-apple .active-card--photo::after {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.76) 0%,
    rgba(0, 0, 0, 0.58) 52%,
    rgba(0, 0, 0, 0.48) 100%
  ) !important;
}

.theme-apple .active-card--photo .active-card__image {
  object-position: center !important;
}

.theme-apple .active-card--photo .active-card__content {
  align-self: stretch;
  margin-top: 0 !important;
}

/* Keep the main consultation CTA in sentence case in the header and hero only. */
.theme-apple .hero-alt__menu-cta,
.theme-apple .hero-alt__cta,
.theme-apple .hero-alt__primary-action {
  text-transform: none !important;
}

/* Formula card: keep the heading balanced and the CTA clear of body copy. */
.theme-apple .offer__heading--formula {
  width: 100%;
  max-width: 100% !important;
  font-size: clamp(24px, 1.85vw, 27px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em;
  text-wrap: initial !important;
}

.theme-apple .offer__heading--formula > span {
  display: block;
  white-space: nowrap;
}

.theme-apple .offer__card--summary .offer__button--details {
  margin-top: 34px !important;
}

@media (min-width: 901px) {
  .theme-apple .offer__heading--formula > span {
    max-width: 100%;
  }

  .theme-apple .offer__card--summary .offer__button--details {
    margin-top: 24px !important;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .theme-apple .offer__card--summary {
    padding-inline: 24px !important;
  }

  .theme-apple .offer__heading--formula {
    font-size: 20px !important;
  }
}

@media (max-width: 900px) {
  .theme-apple .offer__card--summary {
    height: auto !important;
    min-height: 0 !important;
  }

  .theme-apple .offer__heading--formula {
    font-size: clamp(27px, 5.2vw, 40px) !important;
  }

  .theme-apple .offer__card--summary .offer__button--details {
    margin-top: 38px !important;
  }
}

@media (max-width: 420px) {
  .theme-apple .offer__heading--formula {
    font-size: clamp(24px, 6.5vw, 27px) !important;
  }
}

/* One typographic scale for all three opening-card headings. */
@media (min-width: 901px) {
  .theme-apple .offer__heading--small,
  .theme-apple .offer__heading--formula {
    font-size: clamp(24px, 1.85vw, 27px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em;
  }
}

@media (max-width: 900px) {
  .theme-apple .offer__heading--small,
  .theme-apple .offer__heading--formula {
    font-size: 24px !important;
    line-height: 1.1 !important;
    letter-spacing: -0.03em;
  }
}

/* Intentional two-line composition: never leave "на практике" orphaned. */
.theme-apple .offer__heading--intro > span {
  display: block;
}

.theme-apple .offer__heading--intro > span:last-child {
  white-space: nowrap;
}

@media (min-width: 901px) and (max-width: 1100px) {
  .theme-apple .offer__card {
    padding-inline: 24px !important;
  }

  .theme-apple .offer__heading--small,
  .theme-apple .offer__heading--formula {
    font-size: clamp(20px, 2.1vw, 24px) !important;
  }
}

@media (max-width: 360px) {
  .theme-apple .offer__card {
    padding-inline: 22px !important;
  }

  .theme-apple .offer__heading--small,
  .theme-apple .offer__heading--formula {
    font-size: 21px !important;
  }
}

/* Continuous reactions gallery: open-ended track instead of card-by-card paging. */
.theme-apple .marketplace-risks__stage {
  width: calc(100vw - max(24px, (100vw - 1120px) / 2)) !important;
  margin-left: 0 !important;
  padding-inline: 0 !important;
  overflow: visible !important;
}

.theme-apple .marketplace-risks__rail {
  width: 100% !important;
  overflow: visible !important;
}

.theme-apple .marketplace-risks__cards {
  display: flex !important;
  width: 100% !important;
  box-sizing: border-box;
  gap: 18px !important;
  padding: 0 clamp(24px, 4vw, 56px) 0 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: none !important;
  scroll-padding-inline: 0 !important;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
}

.theme-apple .marketplace-card {
  scroll-snap-align: none !important;
  scroll-snap-stop: normal !important;
}

.theme-apple .marketplace-risks__arrow--prev {
  left: -22px !important;
}

.theme-apple .marketplace-risks__arrow--next {
  right: 18px !important;
}

.theme-apple .marketplace-risks__counter {
  display: none !important;
}

@media (max-width: 1200px) {
  .theme-apple .marketplace-risks__arrow--prev {
    left: -8px !important;
  }
}

@media (max-width: 900px) {
  .theme-apple .marketplace-risks__stage {
    width: calc(100vw - 24px) !important;
  }

  .theme-apple .marketplace-risks__cards {
    padding-right: 24px !important;
  }

  .theme-apple .marketplace-card {
    flex: 0 0 min(82vw, 360px) !important;
    width: auto !important;
    min-width: 0 !important;
  }

  .theme-apple .marketplace-risks__arrow--prev {
    left: -10px !important;
  }

  .theme-apple .marketplace-risks__arrow--next {
    right: 10px !important;
  }
}

@media (max-width: 600px) {
  .theme-apple .marketplace-risks__stage {
    width: calc(100vw - 14px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-apple .marketplace-risks__cards {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto !important;
    scroll-behavior: auto;
  }
}

/* Keep the prepared 4:3 step photography fully visible at every breakpoint. */
.theme-apple .step-card__media {
  height: auto !important;
  flex-basis: auto !important;
  aspect-ratio: 4 / 3;
}

.theme-apple .step-card__media img {
  object-fit: contain;
}
