.market-page {
  --market-gutter: clamp(16px, 4vw, 72px);
}

.market-cover,
.market-collection {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: center;
  gap: clamp(26px, 5vw, 78px);
  padding: clamp(42px, 6.5vw, 105px) var(--market-gutter);
  border-bottom: 1px solid var(--ink);
}

.market-cover {
  background: var(--lilac);
}

.market-intro,
.market-collection-copy {
  min-width: 0;
}

.market-kicker {
  font-size: 14px;
}

.market-cover h1 {
  margin-block: clamp(18px, 3.3vw, 49px) clamp(19px, 3vw, 43px);
  font-size: clamp(48px, 7.5vw, 117px);
  font-weight: 700;
  line-height: .93;
  letter-spacing: -.082em;
}

.market-cover h1 span {
  color: #9d3e30;
}

.market-description {
  max-width: 42ch;
  font-size: clamp(15px, 1.45vw, 20px);
  line-height: 1.55;
}

.market-shops {
  display: grid;
  gap: 0;
  min-width: 0;
}

.market-shops-heading {
  padding-bottom: 12px;
  font-size: 13px;
}

.market-product {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  background: var(--paper);
}

.market-shop {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 1.6vw, 24px);
  min-width: 0;
  min-height: 106px;
  padding: 17px;
  border: 1px solid var(--ink);
  background: var(--paper);
  transition: background-color .2s, color .2s;
}

.market-shop + .market-shop { border-top: 0; }
.market-shop:hover { background: #e2dbee; }
.market-shop:active { background: #d0c3e4; }

.market-shop-logo {
  display: grid;
  width: min(100%, 160px);
  height: 52px;
  padding: 10px;
  place-items: center;
}

.market-shop-wildberries {
  background: #762197;
}

.market-shop-ozon {
  background: #005bff;
}

.market-shop-logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 27px;
  object-fit: contain;
}

.market-product-label {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 9px 13px;
  font-size: 14px;
  line-height: 1.25;
}

.market-shop-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  font: 500 clamp(13px, 1.05vw, 16px)/1.35 Unbounded, sans-serif;
  letter-spacing: -.04em;
}

.market-shop-label span,
.market-product-label span {
  flex: none;
  font-size: 1.25em;
}

.market-shop:hover .market-shop-label,
.market-product:hover .market-product-label {
  color: #493e9f;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.market-collection {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--tomato);
}

.market-collection h2 {
  margin-block: clamp(19px, 3vw, 42px) clamp(21px, 3.6vw, 47px);
  font-size: clamp(32px, 4.6vw, 72px);
  letter-spacing: -.078em;
  line-height: 1;
  overflow-wrap: anywhere;
}

.market-collection h2 span {
  color: var(--yellow);
}

.market-collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(9px, 1.4vw, 20px);
}

.market-product-media {
  aspect-ratio: 1;
  background: #fff;
}

.market-product-cherry .market-product-media {
  padding-bottom: 2%;
}

.market-product-pink .market-product-media {
  padding-top: 2%;
}

.market-product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.market-product-label {
  border-top: 1px solid var(--ink);
  font-weight: 600;
}

@media (max-width: 760px) {
  .market-cover,
  .market-collection {
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
  }

  .market-cover h1 {
    font-size: clamp(37px, 10.4vw, 69px);
  }

  .market-shops {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 430px) {
  .market-cover {
    padding-block: 30px;
  }

  .market-product-label {
    padding-inline: 9px;
    font-size: 12px;
  }
  .market-shop { min-height: 88px; padding: 12px; }
  .market-shop-logo { height: 46px; padding: 9px; }
  .market-shop-logo img { max-height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .market-shop { transition: none; }
}
