:root {
  --market-accent: #c8ff2a;
  --market-accent-dark: #63b400;
  --market-accent-tint: color-mix(in srgb, #c8ff2a 22%, #fff);
  --market-ink: #0b0e14;
  --market-muted: #6d7380;
  --market-line: #e7e8e9;
  --market-soft: #f7f8f6;
  --market-shadow: var(--shadow-sm, 0 2px 8px rgba(14, 15, 17, 0.05));
}

.route-home-index {
  background: #fff;
  color: var(--market-ink);
}

.route-home-index::before,
.route-home-index::after {
  display: none;
}



.route-home-index .page-main-inner {
  width: min(1560px, calc(100% - 48px));
  max-width: none;
  margin-inline: auto;
}



.route-home-index .page-main {
  flex: 1;
}

.route-home-index .page-main-inner {
  padding: 14px 0 24px;
}

.nics-home {
  display: grid;
  gap: 12px;
}

.market-benefits > div > span:last-child,
.delivery-card__facts span {
  display: grid;
  gap: 3px;
}

.market-hero {
  position: relative;
  height: 284px;
  overflow: hidden;
  background:
    radial-gradient(circle at 67% 47%, rgba(178, 236, 68, 0.16), transparent 28%),
    linear-gradient(90deg, #fff 0 34%, rgba(255,255,255,0.2) 55%, #fff 100%);
}

.market-hero__art {
  position: absolute;
  top: -58px;
  left: 320px;
  width: 850px;
  height: 425px;
  object-fit: contain;
  object-position: center;
}

.market-hero__copy {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 2px;
  width: 410px;
}

.market-hero h1 {
  margin: 0 0 10px;
  color: #090c12;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(38px, 2.75vw, 48px);
  font-weight: 600;
  font-optical-sizing: auto;
  line-height: .96;
  letter-spacing: -.03em;
  white-space: nowrap;
}

.market-hero__copy p {
  max-width: 380px;
  margin: 0 0 18px;
  color: #656b76;
  font-size: 15px;
  line-height: 1.5;
}

.market-primary-button {
  height: 48px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  border-radius: 999px;
  background: var(--market-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .08) inset,
    0 1px 2px rgba(11, 14, 20, .18),
    0 4px 10px rgba(11, 14, 20, .14);
}

.delivery-card {
  position: absolute;
  z-index: 3;
  top: 32px;
  right: 0;
  width: 350px;
  height: 220px;
  padding: 27px 18px 16px;
  display: grid;
  grid-template-columns: 1fr 155px;
  grid-template-rows: 1fr 62px;
  border: 1px solid #e2e3e3;
  border-radius: 16px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 14px 40px rgba(15, 20, 22, .05);
}

.delivery-card__heading {
  display: flex;
  flex-direction: column;
}

.delivery-card__heading span,
.delivery-card__heading small {
  color: #777d87;
  font-size: 13px;
}

.delivery-card__heading strong {
  margin: 9px 0 4px;
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
}

.delivery-card > img {
  align-self: center;
  justify-self: end;
  width: 155px;
  height: 115px;
  object-fit: contain;
}

.delivery-card__facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.delivery-card__facts > div {
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #ebebeb;
  border-radius: 12px;
}

.delivery-card__facts i {
  font-size: 21px;
}

.delivery-card__facts strong {
  font-size: 12px;
}

.delivery-card__facts small {
  color: var(--market-muted);
  font-size: 11px;
}

.market-benefits {
  min-height: 76px;
  padding: 0 6px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 4px;
  border: 1px solid #eeefec;
  border-radius: var(--radius-lg, 20px);
  background: #fff;
  box-shadow: var(--market-shadow);
}

.market-benefits > div {
  min-height: 48px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.market-benefits i,
.market-benefits__age {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--market-accent-tint);
  color: #3f6300;
  font-size: 17px;
}

.market-benefits__age {
  font-size: 12px;
  font-weight: 800;
}

.market-benefits strong {
  font-size: 13px;
}

.market-benefits small {
  color: var(--market-muted);
  font-size: 12px;
}

.market-section {
  min-width: 0;
}

.market-section__head {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.market-section__head h2 {
  margin: 0;
  font-family: var(--font-display, Georgia, serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.market-section__head > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #11151b;
  font-size: 12px;
  font-weight: 700;
}

.market-categories__rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.market-category {
  position: relative;
  height: 96px;
  overflow: hidden;
  padding: 16px 34px 13px 90px;
  display: flex;
  align-items: center;
  border: 1px solid #eeefec;
  border-radius: var(--radius-md, 14px);
  background: #fff;
  color: var(--market-ink);
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(14, 15, 17, .04));
}

.market-category__media {
  position: absolute;
  left: -8px;
  bottom: -12px;
  width: 100px;
  height: 90px;
  display: block;
}

.market-category__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.market-category--double {
  padding-left: 108px;
}

.market-category--double .market-category__media {
  left: -3px;
  width: 116px;
}

.market-category--double .market-category__media img:first-child {
  width: 76px;
  left: -5px;
  z-index: 2;
}

.market-category--double .market-category__media img:last-child {
  width: 72px;
  left: 45px;
  opacity: .95;
}

.market-category > span {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.market-category strong {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-category--double strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: clip;
  white-space: normal;
}

.market-category small {
  overflow: hidden;
  color: #838892;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-category__arrow {
  position: absolute;
  right: 10px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--market-accent-tint);
  color: #3f6300;
  font-size: 12px;
}

.market-showcase {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(340px, 1fr);
  gap: 14px;
}

.market-products {
  min-width: 0;
}

.market-section__head--products {
  padding-right: 4px;
}

.market-section__head--products > a {
  width: 22px;
  height: 22px;
  justify-content: center;
  border: 1px solid #e4e5e5;
  border-radius: 50%;
}

.market-products__title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.market-products__title span {
  padding: 4px 10px;
  border-radius: 999px;
  background: #efffdc;
  color: #62ad05;
  font-size: 11px;
  font-weight: 700;
}

.market-products__grid {
  height: 202px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.market-product-card {
  position: relative;
  min-width: 0;
  padding: 10px 12px 11px;
  display: flex;
  flex-direction: column;
  border: 1px solid #eeefec;
  border-radius: var(--radius-md, 14px);
  background: #fff;
  color: var(--market-ink);
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(14, 15, 17, .04));
}

.market-product-card__badge {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--market-accent);
  color: #214100;
  font-size: 10px;
  font-weight: 800;
}

.market-product-card__media {
  height: 112px;
  display: grid;
  place-items: center;
  margin: -3px -4px 6px;
  border-radius: 10px;
  background: #f6f7f6;
  overflow: hidden;
}

.market-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.market-product-card__placeholder {
  display: grid;
  place-items: center;
  gap: 2px;
  color: #b6bcc4;
}

.market-product-card__placeholder .bi {
  font-size: 34px;
  line-height: 1;
}

.market-product-card__placeholder small {
  font-size: 11px;
  font-weight: 600;
  color: #9aa1ab;
}

.market-product-card__brand {
  margin-bottom: 3px;
  overflow: hidden;
  color: #737985;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-product-card > strong {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-product-card__price,
.market-product-card__catalog-link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.market-product-card__catalog-link {
  color: #5fae00;
  font-size: 11px;
}

.market-roulette {
  position: relative;
  height: 234px;
  overflow: hidden;
  display: block;
  border: 1px solid #151515;
  border-radius: 16px;
  background: #050505;
  color: #fff;
}

.market-roulette:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(11, 14, 20, .12);
}

.market-roulette__copy {
  position: absolute;
  z-index: 2;
  top: 24px;
  left: 22px;
  width: 205px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.market-roulette__copy strong {
  font-size: 21px;
}

.market-roulette__copy small {
  margin: 9px 0 28px;
  color: #d7dad7;
  font-size: 12px;
  line-height: 1.55;
}

.market-roulette__copy > span {
  height: 38px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--market-accent);
  color: #142000;
  font-size: 13px;
  font-weight: 800;
}

.market-roulette > img {
  position: absolute;
  right: -27px;
  bottom: -80px;
  width: 300px;
  height: 270px;
  object-fit: contain;
  clip-path: circle(43% at 50% 50%);
  mix-blend-mode: screen;
  filter: contrast(1.08) saturate(1.06) drop-shadow(15px 17px 15px rgba(148, 235, 0, .2));
  transform-origin: 50% 52%;
  transform: perspective(700px) rotateX(7deg) rotateY(-18deg) rotateZ(-8deg);
  transition: transform .45s cubic-bezier(.2, .75, .25, 1), filter .45s ease;
}

.market-roulette:hover > img {
  filter: contrast(1.1) saturate(1.1) drop-shadow(18px 20px 18px rgba(148, 235, 0, .27));
}

.market-category,
.market-product-card,
.market-primary-button {
  transition: border-color .18s ease, box-shadow .18s ease, color .18s ease;
}

.market-category:hover,
.market-product-card:hover {
  z-index: 2;
  border-color: #b9e875;
  box-shadow: 0 3px 12px rgba(14, 15, 17, .06);
}

.market-primary-button:hover {
  color: #fff;
  outline: 1px solid rgba(255, 255, 255, .34);
  outline-offset: -3px;
}

@media (max-width: 1180px) {
  .route-home-index .page-main-inner {
    width: min(100% - 32px, 1080px);
  }

  .market-hero__art {
    left: 230px;
  }

  .market-hero__copy {
    width: 350px;
  }

  .market-hero h1 {
    font-size: 42px;
  }

  .delivery-card {
    width: 320px;
  }

  .market-categories__rail {
    grid-template-columns: repeat(4, 1fr);
  }

  .market-category:nth-child(n+5) {
    display: none;
  }
}

@media (max-width: 900px) {
  .market-hero__art {
    left: 190px;
    opacity: .76;
  }

  .delivery-card {
    display: none;
  }

  .market-benefits {
    grid-template-columns: 1fr 1fr;
  }

  .market-benefits > div:nth-child(n+3) {
    display: none;
  }

  .market-showcase {
    grid-template-columns: 1fr;
  }

  .market-roulette {
    height: 190px;
  }

}

@media (max-width: 768px) {
  
  .route-home-index .page-main-inner {
    width: 100%;
    padding: 0 12px 24px;
  }

  .nics-home {
    gap: 11px;
  }

  .market-hero {
    height: 445px;
    margin-inline: -12px;
    background: radial-gradient(circle at 63% 47%, rgba(178,236,68,.22), transparent 35%);
  }

  .market-hero__copy {
    top: 24px;
    left: 18px;
    width: calc(100% - 36px);
  }

  .market-hero h1 {
    max-width: 330px;
    font-size: clamp(34px, 10vw, 48px);
    white-space: normal;
  }

  .market-hero__copy p {
    max-width: 310px;
    font-size: 11px;
  }

  .market-hero__art {
    top: 145px;
    left: -205px;
    width: 720px;
    max-width: none;
    height: 330px;
    opacity: 1;
  }

  .market-benefits {
    min-height: 70px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
  }

  .market-benefits > div {
    min-width: 0;
    padding-inline: 12px;
    overflow: hidden;
  }

  .market-benefits strong {
    font-size: 12px;
  }

  .market-benefits small {
    font-size: 10px;
    line-height: 1.3;
  }

  .market-categories__rail {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
  }

  .market-category,
  .market-category:nth-child(n+5) {
    min-width: 200px;
    display: flex;
    scroll-snap-align: start;
  }

  .market-products__grid {
    height: 200px;
    overflow-x: auto;
    grid-template-columns: repeat(5, 145px);
    scrollbar-width: none;
  }

  .market-product-card__media {
    height: 116px;
  }

  .market-showcase {
    gap: 12px;
  }

  .market-roulette {
    height: 184px;
  }

  .market-roulette__copy {
    left: 18px;
    width: 180px;
  }

  .market-roulette > img {
    right: -100px;
  }

}

html.tg-webapp-mobile .route-home-index .cart-link.tg-floating-cart .cart-link__img {
  width: 40px;
  height: 40px;
}

html.tg-webapp-mobile .route-home-index .cart-link.tg-floating-cart .cart-count {
  top: -5px;
  right: -5px;
}

@media (prefers-reduced-motion: reduce) {
  .market-category,
  .market-product-card,
  .market-primary-button {
    transition: none;
  }
}
