/* Support-led concept: scoped refinements layered over the approved Apple-inspired theme. */

.theme-apple .hero-alt__title--product {
  font-size: clamp(43px, 4.25vw, 54px);
  line-height: 0.98;
}

.theme-apple .hero-alt__title--product span {
  white-space: nowrap;
}

.theme-apple .hero-alt-stat strong {
  max-width: 19ch;
  font-size: 19px;
  line-height: 1.18;
}

.theme-apple .offer__card {
  min-height: 500px;
}

.theme-apple .offer__copy,
.theme-apple .offer__explanation {
  max-width: none;
  font-size: 15px;
  line-height: 1.56;
}

.theme-apple .offer__benefits {
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
}

.theme-apple .steps__header {
  position: relative;
}

.theme-apple .steps__intro {
  max-width: 980px;
}

.biomimetic-term {
  display: inline;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--apple-accent-dark);
  background: transparent;
  font: inherit;
  cursor: help;
  text-decoration: none;
  text-underline-offset: 0.18em;
}

.biomimetic-term:hover,
.biomimetic-term[aria-expanded="true"] {
  color: var(--apple-accent);
}

.biomimetic-term:focus-visible {
  border-radius: 4px;
  outline: 3px solid color-mix(in srgb, var(--apple-accent) 28%, transparent);
  outline-offset: 4px;
}

.biomimetic-tooltip {
  position: absolute;
  z-index: 20;
  top: calc(100% + 14px);
  left: 0;
  width: min(520px, 100%);
  padding: 18px 20px;
  border: 1px solid var(--apple-border);
  border-radius: 18px;
  color: var(--apple-text);
  background: var(--apple-surface);
  box-shadow: 0 18px 48px rgba(63, 63, 63, 0.14);
  font-size: 15px;
  line-height: 1.48;
}

.biomimetic-tooltip[hidden] {
  display: none;
}

.theme-apple .step-card__content {
  min-height: 430px;
}

.theme-apple .step-card__description {
  font-size: 15px;
  line-height: 1.55;
}

.steps__consultation {
  display: flex;
  width: min(100%, 320px);
  min-height: 58px;
  align-items: center;
  justify-content: center;
  margin: 38px auto 0;
  padding: 16px 24px;
  border-radius: 999px;
  color: var(--apple-accent-foreground);
  background: var(--apple-accent);
  font-size: 15px;
  font-weight: 650;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.steps__consultation:hover {
  opacity: 0.84;
}

.steps__consultation:focus-visible {
  outline: 3px solid var(--apple-accent);
  outline-offset: 4px;
}

/* Risks of self-selection */
.theme-apple .marketplace-risks {
  position: relative;
  height: calc(100vh + 1900px);
  min-height: 2500px;
  color: var(--apple-accent-foreground);
  background: var(--apple-accent-dark);
}

.marketplace-risks__inner {
  position: relative;
  width: var(--apple-width);
  height: 100%;
  margin-inline: auto;
  padding-block: 96px;
}

.marketplace-risks__header {
  position: sticky;
  z-index: 4;
  top: 44px;
  max-width: 870px;
}

.marketplace-risks__eyebrow {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 18px;
}

.marketplace-risks__title {
  max-width: 820px;
  margin: 22px 0 0;
  color: #fff;
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -2.6px;
  line-height: 0.98;
  text-wrap: balance;
}

.marketplace-risks__intro {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 19px;
  line-height: 1.48;
}

.marketplace-risks__stage {
  position: sticky;
  z-index: 3;
  top: 355px;
  height: 500px;
  margin-top: 56px;
  overflow: hidden;
}

.marketplace-risks__rail {
  position: relative;
  height: 100%;
}

.marketplace-risks__line {
  position: absolute;
  z-index: 0;
  top: 94px;
  left: 0;
  width: 1640px;
  height: 240px;
  overflow: visible;
  pointer-events: none;
}

.marketplace-risks__line path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.32);
  stroke-linecap: round;
  stroke-width: 3;
}

.marketplace-risks__cards {
  position: relative;
  z-index: 1;
  display: flex;
  width: max-content;
  gap: 22px;
  will-change: transform;
}

.marketplace-card {
  box-sizing: border-box;
  width: min(72vw, 720px);
  height: 430px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  color: var(--apple-text);
  background: var(--apple-surface-warm);
  box-shadow: 0 28px 70px rgba(48, 3, 14, 0.2);
}

.marketplace-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--apple-accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.25;
}

.marketplace-card__meta span:first-child {
  font-size: 20px;
  letter-spacing: -0.03em;
}

.marketplace-card__placeholder {
  display: grid;
  height: 320px;
  margin-top: 26px;
  place-items: center;
  padding: 28px;
  border: 1px dashed color-mix(in srgb, var(--apple-text) 24%, transparent);
  border-radius: 20px;
  color: var(--apple-muted);
  background: #efeee9;
  font-size: 16px;
  line-height: 1.45;
  text-align: center;
}

.marketplace-card__image,
.marketplace-card__placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.marketplace-risks__counter {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 4;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.theme-apple .expert__layout {
  min-height: 700px;
}

.theme-apple .expert__portrait-wrap {
  min-height: 700px;
}

.theme-apple .expert__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.expert__description--secondary {
  margin-top: 24px;
  color: var(--apple-muted) !important;
}

.theme-apple .problems__title {
  font-size: 48px;
}

.theme-apple .problems__tiles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

.results__note {
  margin: 18px 0 0 auto;
  color: var(--apple-muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: right;
}

.theme-apple .actives__layout {
  grid-template-columns: 380px 1fr;
}

.theme-apple .actives__title {
  font-size: 39px;
  letter-spacing: -1.5px;
  line-height: 1.02;
}

.theme-apple .support__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, 162px);
}

.theme-apple .support-card--photo::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.12));
  content: "";
}

.theme-apple .support-card--photo {
  isolation: isolate;
}

.theme-apple .reviews {
  background: var(--apple-bg);
}

.theme-apple .pricing {
  background: var(--apple-surface);
}

.theme-apple .consultation__actions {
  grid-template-columns: 1fr;
}

.theme-apple .consultation__button--primary {
  width: 100%;
}

@media (max-width: 1180px) {
  .marketplace-risks__inner {
    width: calc(100% - 48px);
  }

  .theme-apple .hero-alt__title--product {
    font-size: clamp(41px, 4.45vw, 51px);
  }
}

@media (max-width: 900px) {
  .theme-apple .hero-alt__title--product span {
    white-space: normal;
  }

  .theme-apple .offer__card,
  .theme-apple .step-card__content {
    min-height: 0;
  }

  .theme-apple .step-card__description {
    font-size: 16px;
  }

  .theme-apple .marketplace-risks {
    height: auto;
    min-height: 0;
    padding-block: 72px;
  }

  .marketplace-risks__inner {
    width: calc(100% - 48px);
    height: auto;
    padding: 0;
  }

  .marketplace-risks__header,
  .marketplace-risks__stage {
    position: static;
  }

  .marketplace-risks__title {
    font-size: 48px;
  }

  .marketplace-risks__stage {
    height: auto;
    margin-top: 42px;
    overflow: visible;
  }

  .marketplace-risks__rail {
    height: auto;
  }

  .marketplace-risks__line {
    display: none;
  }

  .marketplace-risks__cards {
    display: flex;
    gap: 14px;
    width: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

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

  .marketplace-card {
    width: min(82vw, 620px);
    min-width: min(82vw, 620px);
    height: 390px;
    flex: 0 0 min(82vw, 620px);
    scroll-snap-align: start;
  }

  .marketplace-card__placeholder {
    height: 282px;
  }

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

  .theme-apple .expert__layout {
    min-height: 0;
  }

  .theme-apple .expert__portrait-wrap {
    min-height: 620px;
  }

  .theme-apple .actives__layout {
    grid-template-columns: 1fr;
  }

  .theme-apple .actives__title {
    font-size: 44px;
  }
}

@media (max-width: 600px) {
  .theme-apple .hero-alt__title--product {
    font-size: clamp(38px, 11.4vw, 48px);
  }

  .theme-apple .hero-alt__title--product span {
    white-space: normal;
  }

  .theme-apple .hero-alt__subtitle {
    font-size: 17px;
    line-height: 1.45;
  }

  .theme-apple .hero-alt-stat strong {
    font-size: 16px;
  }

  .theme-apple .offer__card {
    padding: 26px;
  }

  .theme-apple .expert__portrait-wrap {
    min-height: 460px;
  }

  .theme-apple .offer__heading--small {
    font-size: 24px;
  }

  .theme-apple .offer__button--details,
  .theme-apple .offer__button--purchase {
    width: 100%;
    margin-top: 28px;
  }

  .biomimetic-tooltip {
    position: fixed;
    top: auto;
    right: 14px;
    bottom: 18px;
    left: 14px;
    width: auto;
  }

  .steps__consultation {
    width: 100%;
    margin-top: 28px;
  }

  .theme-apple .marketplace-risks {
    padding-block: 52px;
  }

  .marketplace-risks__inner {
    width: calc(100% - 28px);
  }

  .marketplace-risks__title {
    font-size: 40px;
    letter-spacing: -1.6px;
  }

  .marketplace-risks__intro {
    font-size: 17px;
    line-height: 1.5;
  }

  .marketplace-card {
    width: 86vw;
    min-width: 86vw;
    height: 360px;
    flex-basis: 86vw;
    padding: 22px;
    border-radius: 24px;
  }

  .marketplace-card__meta {
    align-items: flex-start;
    font-size: 10px;
  }

  .marketplace-card__placeholder {
    height: 266px;
    margin-top: 20px;
    padding: 20px;
  }

  .theme-apple .expert__content {
    padding: 30px;
  }

  .theme-apple .problems__title {
    font-size: 40px;
  }

  .problems-carousel__slide--single {
    grid-template-rows: 1fr;
  }

  .theme-apple .actives__title {
    font-size: 36px;
    letter-spacing: -1.25px;
  }

  .theme-apple .support__grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .theme-apple .support__grid > * {
    order: initial !important;
  }

  .theme-apple .support-card {
    min-height: 154px;
  }

  .results__note {
    margin-top: 12px;
    padding-inline: 14px;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-apple .marketplace-risks {
    height: auto;
    min-height: 0;
    padding-block: 96px;
  }

  .marketplace-risks__inner {
    height: auto;
    padding: 0;
  }

  .marketplace-risks__header,
  .marketplace-risks__stage {
    position: static;
  }

  .marketplace-risks__stage {
    height: auto;
    margin-top: 44px;
    overflow: visible;
  }

  .marketplace-risks__cards {
    display: grid;
    grid-template-columns: 1fr;
    width: auto;
    transform: none !important;
  }

  .marketplace-card {
    width: 100%;
  }

  .marketplace-risks__line {
    display: none;
  }
}
