.product-link[data-product="market-launch"] {
 --film-tone: #d8cce9;
 --title-size: 5.6cqw;
 --subject-angle: -6deg;
}

.product-link[data-product="market-launch"] strong {
 min-height: 3.4em;
 font-size: clamp(12px, 1.02vw, 19px);
}

.product-link[data-product="market-launch"]:not(.is-open) img {
 top: 39%;
 height: 66%;
}

.stack .product.market-launch {
 --surface: #ded3ef;
 --light: #f8f1ff;
 --shade: #b7a2d4;
}

.stack .product.market-launch h2 {
 max-width: 58%;
 font-size: clamp(17px, 4.8cqw, 22px);
 line-height: 1.08;
}

.stack .product.market-launch p {
 max-width: 56%;
 font-size: clamp(13px, 3.8cqw, 17px);
}

.stack .product.market-launch .art {
 top: 5px;
 right: 4px;
 width: 43%;
 height: 132px;
 clip-path: none;
 background: url("assets/market-launch/store.webp") center / contain no-repeat;
}

.market-launch-page {
 color: #111932;
}

.market-showcase {
 display: grid;
 grid-template-columns: minmax(0, 1fr) minmax(0, 1.17fr);
 grid-template-areas: "steps visual" "consult download";
 gap: 16px;
}

.market-stages {
 grid-area: steps;
 list-style: none;
 display: grid;
 gap: 5px;
 margin: 0;
 padding: 0;
}

.market-stages button {
 display: grid;
 grid-template-columns: 29px 1fr 18px;
 align-items: center;
 gap: 11px;
 width: 100%;
 min-height: 46px;
 padding: 6px 11px;
 border: 1px solid #dce5ef;
 border-radius: 11px;
 background: #fff;
 color: #1a2a44;
 font: inherit;
 font-size: 15px;
 font-weight: 810;
 line-height: 1.2;
 text-align: left;
 cursor: pointer;
}

.market-stages button[aria-pressed="true"] {
 border-color: #aa95c7;
 background-color: #ede6f6;
}

.market-stages button:hover {
 border-color: #aa95c7;
}

.market-stages button > svg {
 width: 17px;
 height: 17px;
 color: #614d80;
}

.market-step-art {
 display: none;
}

.market-step-number {
 display: grid;
 place-items: center;
 width: 27px;
 height: 27px;
 border-radius: 50%;
 background: #f0edf6;
 color: #524568;
 font-size: 13px;
 font-weight: 880;
}

button[aria-pressed="true"] .market-step-number {
 background: #69558b;
 color: white;
}

.market-visual {
 grid-area: visual;
 position: relative;
 display: grid;
 grid-template-rows: 1fr auto;
 border-radius: 16px;
 overflow: hidden;
 isolation: isolate;
 background: #f0edf7;
}

.market-art {
 --stage-color: #dce8f8;
 position: relative;
 min-height: clamp(190px, 30dvh, 290px);
 overflow: hidden;
 isolation: isolate;
}

.market-patch {
 position: absolute;
 inset: -28% 11% 4% -6%;
 border-radius: 39% 46% 37% 34%;
 background: var(--stage-color);
 transform: rotate(-11deg);
 transition: background-color 750ms ease;
}

.market-art img {
 position: absolute;
 inset: 5% 22% 4%;
 width: 56%;
 height: 91%;
 object-fit: contain;
 filter: drop-shadow(0 12px 12px #222c4d25);
}

.market-art img[hidden] {
 display: none;
}

.market-autoplay {
 position: absolute;
 top: 10px;
 right: 10px;
 display: grid;
 place-items: center;
 width: 44px;
 height: 44px;
 padding: 0;
 border: 1px solid #ccc5da;
 border-radius: 50%;
 background: #fff;
 color: #45345d;
 cursor: pointer;
}

.market-visual .market-stage-copy {
 align-content: center;
 min-height: 56px;
 margin: 0;
 padding: 10px 16px 13px;
 color: #393350;
 font-size: 15px;
 font-weight: 700;
 line-height: 1.3;
}

.market-action {
 display: flex;
 align-items: center;
 gap: 13px;
 min-width: 0;
 min-height: 107px;
 padding: 16px 21px;
 border-radius: 16px;
 color: #111932;
 text-decoration: none;
}

.market-action strong {
 font-size: clamp(20px, 2vw, 29px);
 font-weight: 940;
 line-height: 1.12;
 letter-spacing: -.025em;
}

.market-consult {
 grid-area: consult;
 background: #e8dff4;
}

.market-download {
 grid-area: download;
 background: #f7d375;
}

.market-telegram-icon {
 flex: none;
 width: 34px;
 height: 34px;
}

.market-action-icon {
 display: grid;
 place-items: center;
 margin-inline-start: auto;
 flex: none;
 width: 39px;
 height: 39px;
 border-radius: 50%;
 background: #ffffff78;
}

.market-action-icon svg {
 width: 22px;
 height: 22px;
}

.market-action:hover .market-action-icon {
 background: #fff;
}

.market-launch-page :is(button, a):focus-visible {
 outline: 2px solid #524568;
 outline-offset: 2px;
}

@media (max-width: 700px) {
 .market-launch-page h1 {
  margin: 0 0 7px;
  font-size: clamp(27px, 7vw, 34px);
  line-height: 1.06;
  font-weight: 930;
  letter-spacing: -.034em;
 }

 .market-launch-page .market-lead {
  margin: 0 0 13px;
  color: #435574;
  font-size: 14px;
  line-height: 1.35;
 }

 .market-showcase {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "visual" "download" "steps" "consult";
  gap: 11px;
  padding-bottom: 5px;
 }

 .market-art {
  min-height: 153px;
 }

 .market-visual .market-stage-copy {
  min-height: 53px;
  padding: 7px 13px 10px;
  font-size: 13px;
 }

 .market-action {
  min-height: 57px;
  padding: 9px 12px;
  gap: 9px;
  border-radius: 13px;
 }

 .market-action strong {
  font-size: clamp(16px, 4.5vw, 19px);
 }

 .market-telegram-icon {
  width: 27px;
  height: 27px;
 }

 .market-action-icon {
  width: 34px;
  height: 34px;
 }

 .market-action-icon svg {
  width: 18px;
  height: 18px;
 }

 .market-stages {
  position: relative;
  display: block;
  height: 181px;
  overflow: clip;
  overflow-clip-margin: 9px;
  touch-action: pan-x;
  user-select: none;
  isolation: isolate;
 }

 .market-stages::before {
  content: "";
  position: absolute;
  inset: auto 0 1px;
  height: 82px;
  border-radius: 18px;
  background: #e5eaf2;
  z-index: -1;
 }

 .market-stages li {
  position: absolute;
  inset: 0 0 auto;
  transform: translateY(calc(var(--market-slot-y, 184px) + var(--market-drag-y, 0px)));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 380ms cubic-bezier(.24,.73,.23,1), opacity 230ms ease, visibility 0s 230ms;
 }

 .market-stages.is-dragging li {
  transition: opacity 160ms ease, visibility 0s 160ms;
 }

 .market-stages li[data-slot="-2"] { --market-slot-y: -56px; }

 .market-stages li:is([data-slot="-1"], [data-slot="0"], [data-slot="1"]) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
 }

 .market-stages li[data-slot="-1"] { --market-slot-y: 5px; z-index: 1; }
 .market-stages li[data-slot="1"] { --market-slot-y: 111px; z-index: 2; }
 .market-stages li[data-slot="0"] { --market-slot-y: 45px; z-index: 3; }

 .market-stages li:nth-child(1) { --stage-paper: #edf6ff; --stage-middle: #d8e9f8; --stage-tint: #a7c9e6; }
 .market-stages li:nth-child(2) { --stage-paper: #f5edff; --stage-middle: #e6d6f8; --stage-tint: #c9afe8; }
 .market-stages li:nth-child(3) { --stage-paper: #fff3df; --stage-middle: #f8e0ba; --stage-tint: #ecc18e; }
 .market-stages li:nth-child(4) { --stage-paper: #e7f8fc; --stage-middle: #d0e9f2; --stage-tint: #9dcbdc; }
 .market-stages li:nth-child(5) { --stage-paper: #eef7e9; --stage-middle: #d9edd8; --stage-tint: #a7cdb4; }
 .market-stages li:nth-child(6) { --stage-paper: #f8ebf8; --stage-middle: #eed7ec; --stage-tint: #d8abd8; }

 .market-stages button {
  position: relative;
  display: flex;
  align-items: center;
  height: 67px;
  padding: 9px 13px;
  border: 0;
  border-radius: 13px;
  color: #1a2542;
  background-image: linear-gradient(113deg, var(--stage-paper) 3%, var(--stage-middle) 48%, var(--stage-tint) 100%);
  font-size: 14px;
  font-weight: 875;
  line-height: 1.13;
  overflow: hidden;
  transition: height 340ms cubic-bezier(.24,.73,.23,1), box-shadow 330ms ease;
 }

 .market-stages button[aria-pressed="true"] {
  height: 83px;
  padding-inline-start: 16px;
  font-size: clamp(17px, 4.8vw, 20px);
  font-weight: 930;
  box-shadow: 0 9px 20px -8px #3b294e62, 0 2px 5px -2px #3b294e26;
 }

 .market-stages button:focus-visible {
  outline-offset: -3px;
 }

 .market-step-number, .market-stages button > svg {
  display: none;
 }

 .market-step-label {
  position: relative;
  z-index: 1;
  max-width: 73%;
  text-wrap: pretty;
 }

 .market-stages li[data-slot="-1"] .market-step-label { transform: translateY(-10px); }
 .market-stages li[data-slot="1"] .market-step-label { transform: translateY(8px); }

 .market-step-art {
  position: absolute;
  display: block;
  right: 7px;
  top: 4px;
  width: 25%;
  height: 66px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 5px 4px #34295423);
  transition: transform 330ms cubic-bezier(.24,.73,.23,1);
 }

 .market-stages li[data-slot="-1"] .market-step-art { transform: translate(4px,-7px) rotate(-4deg); }
 .market-stages li[data-slot="1"] .market-step-art { transform: translate(0,9px) rotate(6deg); }
 .market-stages li[data-slot="0"] .market-step-art { transform: translate(-1px,3px) scale(1.12) rotate(-6deg); }
}

@media (min-width: 701px) and (max-height: 690px) {
 #detail:has(.market-launch-page) .page-heading {
  margin-block-end: 11px;
 }

 .market-stages {
  gap: 4px;
 }

 .market-stages button {
  min-height: 40px;
 }

 .market-art {
  min-height: 160px;
 }

 .market-action {
  min-height: 88px;
 }
}

@media (prefers-reduced-motion: reduce) {
 .market-autoplay { display: none; }
 .market-patch, .market-stages :is(li, button, .market-step-art) { transition: none; }
}
