/* Self-contained homepage category layout. These rules intentionally duplicate
   the accepted MIRROR geometry so deployment does not require replacing the
   shared homepage-redesign.css file. */
html :is(#homepage-categories, .category-artwork-scope) {
  background: #ecd2ba;
}

html :is(#homepage-categories, .category-artwork-scope) .home-categories__container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 50px 0 64px;
}

html :is(#homepage-categories, .category-artwork-scope) .home-section-title {
  margin: 0 0 40px;
  color: #433228;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 56px;
  letter-spacing: 0;
  text-transform: uppercase;
}

html :is(#homepage-categories, .category-artwork-scope) .home-categories__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  overflow-x: clip;
  overflow-y: visible;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card--homepage {
  position: relative;
  display: block;
  grid-column: span 3;
  order: 2;
  height: 165px;
  border-radius: 20px;
  color: #433228;
  text-decoration: none;
  transform: translateZ(0);
  isolation: isolate;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__picture {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: #e3c4a8;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  transition: transform 300ms cubic-bezier(.2, .7, .2, 1);
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__text-zone {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: block;
  pointer-events: none;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__title,
html :is(#homepage-categories, .category-artwork-scope) .home-category-card--homepage-wide .home-category-card__title {
  position: absolute;
  z-index: 5;
  top: 24px;
  right: 24px;
  left: 24px;
  max-width: min(48%, 180px);
  color: #433228;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
  letter-spacing: 0;
  text-transform: none;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card--homepage-wide {
  grid-column: span 6;
  order: 1;
  height: auto;
  aspect-ratio: 590 / 300;
  overflow: visible;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__arrow {
  position: absolute;
  z-index: 6;
  display: block;
  bottom: 25px;
  left: 25px;
  width: 40px;
  height: 40px;
  pointer-events: none;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__arrow img {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(-1);
  transition: transform 300ms cubic-bezier(.2, .7, .2, 1);
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card--homepage:focus-visible {
  outline: 3px solid #ba1b1e;
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--homepage:not(.home-category-card--homepage-wide):hover .home-category-card__image {
    transform: scale(1.02) translateY(-2px);
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--homepage:hover .home-category-card__arrow img {
    transform: scaleX(-1);
  }
}

@media screen and (min-width: 640px) and (max-width: 1239px) {
  html :is(#homepage-categories, .category-artwork-scope) .home-categories__container {
    width: calc(100% - 48px);
    padding-top: 48px;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-section-title {
    margin-bottom: 32px;
    font-size: clamp(32px, 3.2vw, 36px);
    line-height: 1.2;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card__title,
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--homepage-wide .home-category-card__title {
    top: clamp(14px, 1.9vw, 24px);
    right: clamp(14px, 1.9vw, 24px);
    left: clamp(14px, 1.9vw, 24px);
    max-width: min(48%, 168px);
    font-size: clamp(13px, 1.45vw, 18px);
    line-height: 1.22;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card__arrow {
    bottom: clamp(14px, 1.9vw, 24px);
    left: clamp(14px, 1.9vw, 24px);
    width: clamp(32px, 3.2vw, 40px);
    height: clamp(32px, 3.2vw, 40px);
  }
}

@media screen and (min-width: 640px) and (max-width: 767px) {
  html :is(#homepage-categories, .category-artwork-scope) .home-categories__container {
    width: calc(100% - 40px);
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--homepage {
    grid-column: span 6;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--homepage-wide {
    grid-column: span 12;
  }
}

@media screen and (max-width: 639px) {
  html :is(#homepage-categories, .category-artwork-scope) .home-categories__container {
    width: calc(100% - 32px);
    padding: 40px 0 46px;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-section-title {
    margin-bottom: 20px;
    font-size: 30px;
    line-height: 1.05;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-categories__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    overflow: visible;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--homepage,
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--homepage-wide {
    grid-column: auto;
    order: 0;
    height: 116px;
    aspect-ratio: auto;
    overflow: hidden;
    border-radius: 14px;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card__title,
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--homepage-wide .home-category-card__title {
    top: 13px;
    right: 10px;
    left: 13px;
    max-width: 50%;
    font-size: 11px;
    line-height: 1.22;
  }
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card--homepage {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__background {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  border-radius: inherit;
  background: var(--category-bg, #e3c4a8);
  pointer-events: none;
}

/* Each page keeps its own grid/card geometry. This scope only supplies the
   shared bundled visual layers. */
html .category-artwork-scope .home-category-card--homepage-layered,
html .category-artwork-scope .im-section-card.home-category-card--homepage-layered {
  isolation: isolate;
  background: transparent;
}

html .category-artwork-scope .im-section-card__title,
html .category-artwork-scope .home-category-card__title {
  z-index: 5;
}

@media screen and (max-width: 639px) {
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card__arrow {
    display: none !important;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--sets .home-category-card__title,
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--sets .im-section-card__title {
    right: auto;
    max-width: 40%;
  }
}

/* Цвет задаётся visual preset категории и не зависит от SORT/позиции в DOM. */
html :is(#homepage-categories, .category-artwork-scope) .home-category-card--sets { --category-bg: #f5c064; }
html :is(#homepage-categories, .category-artwork-scope) .home-category-card--second-courses { --category-bg: #f3aa77; }
html :is(#homepage-categories, .category-artwork-scope) .home-category-card--rpb { --category-bg: #f9e294; }
html :is(#homepage-categories, .category-artwork-scope) .home-category-card--titanium { --category-bg: #d2b18e; }
html :is(#homepage-categories, .category-artwork-scope) .home-category-card--retort { --category-bg: #a5ccdb; }
html :is(#homepage-categories, .category-artwork-scope) .home-category-card--rice { --category-bg: #a4d3b3; }
html :is(#homepage-categories, .category-artwork-scope) .home-category-card--first-courses { --category-bg: #bcc66d; }
html :is(#homepage-categories, .category-artwork-scope) .home-category-card--stewed { --category-bg: #f89899; }
html :is(#homepage-categories, .category-artwork-scope) .home-category-card--dried { --category-bg: #f7f1e3; }
html :is(#homepage-categories, .category-artwork-scope) .home-category-card--cookies { --category-bg: #d4b3ec; }

/* «Наборы»: независимые layers. Stage имеет запас сверху, но жёстко
   заканчивается по нижней границе карточки. */
html :is(#homepage-categories, .category-artwork-scope) .home-category-card--sets {
  overflow: visible;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card--sets .home-category-card__background {
  overflow: hidden;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__sets-stage {
  position: absolute;
  z-index: 2;
  top: -18%;
  right: 0;
  bottom: 0;
  left: 25%;
  display: block;
  overflow: visible;
  border-radius: 0;
  clip-path: inset(-50px 0 0 0 round 0 0 20px 0);
  pointer-events: none;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__sets-item {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
  pointer-events: none;
  transform: translateY(-20px) scale(.94);
  transform-origin: 100% 100%;
  transition: transform 340ms cubic-bezier(.22, .61, .36, 1);
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__sets-item--heater-back {
  z-index: 1;
  top: 3%;
  right: 31%;
  width: 64%;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__sets-item--heater-front {
  z-index: 2;
  top: 32%;
  right: 32%;
  width: 63%;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__sets-item--box {
  z-index: 3;
  top: auto;
  right: 0;
  bottom: -1px;
  width: calc(78% - 20px);
  transform: scale(.94);
}

/* «Разогреватель пищи»: компактная независимая композиция, уменьшенная на
   10px и поднятая на 10px относительно внутренней области карточки. */
html :is(#homepage-categories, .category-artwork-scope) .home-category-card__rpb-stage {
  position: absolute;
  z-index: 2;
  top: -10px;
  right: 0;
  bottom: 0;
  width: calc(72% - 10px);
  overflow: hidden;
  border-radius: 0 20px 20px 0;
  pointer-events: none;
}

@media (min-width: 1200px) {
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card__rpb-stage {
    top: 30px;
    right: -10px;
  }
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__rpb-item {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
  transform-origin: 50% 70%;
  transition: transform 320ms cubic-bezier(.22, .61, .36, 1);
  pointer-events: none;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__rpb-item--1 {
  z-index: 3;
  top: 4%;
  right: -3%;
  width: 70%;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__rpb-item--2 {
  z-index: 2;
  top: 13%;
  right: 25%;
  width: 58%;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__rpb-item--3 {
  z-index: 1;
  top: 24%;
  right: 48%;
  width: 52%;
}

@media (hover: hover) and (pointer: fine) {
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--sets:hover .home-category-card__sets-item--box {
    transform: scale(.965);
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--sets:hover .home-category-card__sets-item--heater-back {
    transform: translate(-5px, -28px) rotate(-2.5deg) scale(.955);
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--sets:hover .home-category-card__sets-item--heater-front {
    transform: translate(-8px, -26px) rotate(-3.5deg) scale(.955);
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--rpb:hover .home-category-card__rpb-item--1 {
    transform: translate(-2px, -4px) rotate(-3deg) scale(1.01);
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--rpb:hover .home-category-card__rpb-item--2 {
    transform: translate(-3px, -5px) rotate(-4deg) scale(1.01);
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--rpb:hover .home-category-card__rpb-item--3 {
    transform: translate(-2px, -3px) rotate(-2deg) scale(1.01);
  }
}

/* «Титановая посуда»: кружки клипуются по shape, ложка остаётся отдельным
   слоем и может контролируемо выходить за нижнюю/правую границу карточки. */
html :is(#homepage-categories, .category-artwork-scope) .home-category-card--titanium {
  overflow: visible;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card--titanium .home-category-card__title {
  max-width: 42%;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__titan-stage,
html :is(#homepage-categories, .category-artwork-scope) .home-category-card__titan-crop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__titan-stage {
  z-index: 2;
  overflow: visible;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__titan-crop {
  overflow: hidden;
  border-radius: 20px;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__titan-item {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
  pointer-events: none;
  user-select: none;
  transition: transform 380ms cubic-bezier(.22, .61, .36, 1);
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__titan-item--back {
  z-index: 1;
  top: 11.5%;
  left: 47.5%;
  width: 31.5%;
  transform: translate(0, 0) rotate(0deg) scale(1);
  transform-origin: 52% 65%;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__titan-item--front {
  z-index: 2;
  top: 17.5%;
  left: 45.5%;
  width: 53%;
  transform: translate(0, 0) rotate(0deg) scale(1);
  transform-origin: 55% 68%;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__titan-item--spoon {
  z-index: 3;
  top: 31%;
  left: 63%;
  width: 40%;
  transform: translate(0, 0) rotate(0deg) scale(1);
  transform-origin: 48% 58%;
}

@media (hover: hover) and (pointer: fine) {
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--titanium:hover .home-category-card__titan-item--back {
    transform: translate(-3px, -4px) rotate(-1.2deg) scale(1.02);
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--titanium:hover .home-category-card__titan-item--front {
    transform: translate(3px, -3px) rotate(1deg) scale(1.018);
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--titanium:hover .home-category-card__titan-item--spoon {
    transform: translate(2px, -3px) rotate(2deg) scale(1.015);
  }
}

@media (prefers-reduced-motion: reduce) {
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--titanium .home-category-card__titan-item {
    transition: none;
  }
}

/* «Реторт-пакеты»: два внутренних пакета клипуются по shape, основной РП1
   вынесен наружу, чтобы его нижняя часть не обрезалась границей карточки. */
html :is(#homepage-categories, .category-artwork-scope) .home-category-card--retort {
  overflow: visible;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card--retort .home-category-card__title {
  max-width: 42%;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__retort-stage,
html :is(#homepage-categories, .category-artwork-scope) .home-category-card__retort-crop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__retort-stage {
  z-index: 2;
  overflow: visible;
  clip-path: inset(-40px -20px 0 -20px);
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__retort-crop {
  overflow: hidden;
  border-radius: 20px;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__retort-item {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
  pointer-events: none;
  user-select: none;
  transition: transform 390ms cubic-bezier(.22, .61, .36, 1);
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__retort-item--small {
  z-index: 1;
  top: 39%;
  left: 21%;
  width: 41%;
  transform: translate(0, 0) rotate(0deg) scale(1);
  transform-origin: 55% 62%;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__retort-item--camo {
  z-index: 2;
  top: 12.5%;
  left: 43.5%;
  width: 39%;
  transform: translate(0, 0) rotate(0deg) scale(1);
  transform-origin: 52% 62%;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__retort-item--main {
  z-index: 3;
  top: 8%;
  left: 53%;
  width: 54%;
  transform: translate(0, 0) rotate(0deg) scale(1);
  transform-origin: 54% 58%;
}

@media (min-width: 1200px) {
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card__retort-item--small {
    top: 38%;
    left: 24%;
    width: 43%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card__retort-item--camo {
    top: 9.5%;
    left: 41.5%;
    width: 41%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card__retort-item--main {
    top: 5%;
    left: 54%;
    width: 58%;
  }
}

@media (hover: hover) and (pointer: fine) {
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--retort:hover .home-category-card__retort-item--small {
    transform: translate(-3px, -2px) rotate(-1deg) scale(1.018);
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--retort:hover .home-category-card__retort-item--camo {
    transform: translate(-2px, -4px) rotate(-1.5deg) scale(1.02);
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--retort:hover .home-category-card__retort-item--main {
    transform: translate(3px, -3px) rotate(1.2deg) scale(1.015);
  }
}

@media (prefers-reduced-motion: reduce) {
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--retort .home-category-card__retort-item {
    transition: none;
  }
}

/* «Органический рис»: небольшая коробка клипуется по shape, крупная упаковка
   живёт отдельным слоем и может контролируемо выходить справа и снизу. */
html :is(#homepage-categories, .category-artwork-scope) .home-category-card--rice {
  overflow: visible;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card--rice .home-category-card__title {
  max-width: 42%;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__rice-stage,
html :is(#homepage-categories, .category-artwork-scope) .home-category-card__rice-crop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__rice-stage {
  z-index: 2;
  overflow: visible;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__rice-crop {
  overflow: hidden;
  border-radius: 20px;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__rice-item {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
  pointer-events: none;
  user-select: none;
  transition: transform 390ms cubic-bezier(.22, .61, .36, 1);
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__rice-item--small {
  z-index: 1;
  top: 23%;
  left: 33.5%;
  width: 36%;
  transform: translate(0, 0) rotate(0deg) scale(1);
  transform-origin: 52% 64%;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__rice-item--main {
  z-index: 2;
  top: -7.5%;
  left: 51%;
  width: 61%;
  transform: translate(0, 0) rotate(0deg) scale(1);
  transform-origin: 53% 58%;
}

@media (hover: hover) and (pointer: fine) {
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--rice:hover .home-category-card__rice-item--small {
    transform: translate(-3px, -3px) rotate(-1.2deg) scale(1.02);
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--rice:hover .home-category-card__rice-item--main {
    transform: translate(3px, -4px) rotate(1.2deg) scale(1.018);
  }
}

@media screen and (max-width: 639px) {
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--rice .home-category-card__rice-item--main {
    top: -4%;
    left: 49%;
    width: 63%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--rice .home-category-card__rice-item {
    transition: none;
  }
}

/* «Тушеное мясо»: крупная тарелка намеренно подрезается shape справа и снизу,
   как в Category 10, не выходя в соседние карточки. */
html :is(#homepage-categories, .category-artwork-scope) .home-category-card--stewed .home-category-card__title {
  max-width: 40%;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__stewed-stage,
html :is(#homepage-categories, .category-artwork-scope) .home-category-card__stewed-crop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__stewed-stage {
  z-index: 2;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__stewed-crop {
  overflow: hidden;
  border-radius: 20px;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__stewed-item {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
  pointer-events: none;
  user-select: none;
  transition: transform 380ms cubic-bezier(.22, .61, .36, 1);
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__stewed-item--bowl {
  z-index: 1;
  top: 20.5%;
  left: 46.2%;
  width: 69.5%;
  transform: translate(0, 0) rotate(0deg) scale(1);
  transform-origin: 57% 56%;
}

@media (hover: hover) and (pointer: fine) {
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--stewed:hover .home-category-card__stewed-item--bowl {
    transform: translate(3px, -4px) rotate(1deg) scale(1.02);
  }
}

@media screen and (max-width: 639px) {
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--stewed .home-category-card__title {
    max-width: 38%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--stewed .home-category-card__stewed-item--bowl {
    top: 15%;
    left: 42%;
    width: 68%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--stewed .home-category-card__stewed-item {
    transition: none;
  }
}

/* «Первые блюда»: крупная тарелка намеренно подрезается shape справа и снизу,
   как в Category 3, не выходя в соседние карточки. */
html :is(#homepage-categories, .category-artwork-scope) .home-category-card--first-courses .home-category-card__title {
  max-width: 40%;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__first-stage,
html :is(#homepage-categories, .category-artwork-scope) .home-category-card__first-crop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__first-stage {
  z-index: 2;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__first-crop {
  overflow: hidden;
  border-radius: 20px;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__first-item {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
  pointer-events: none;
  user-select: none;
  transition: transform 380ms cubic-bezier(.22, .61, .36, 1);
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__first-item--bowl {
  z-index: 1;
  top: 20.5%;
  left: 46.2%;
  width: 69.5%;
  transform: translate(0, 0) rotate(0deg) scale(1);
  transform-origin: 57% 56%;
}

@media (hover: hover) and (pointer: fine) {
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--first-courses:hover .home-category-card__first-item--bowl {
    transform: translate(3px, -4px) rotate(1deg) scale(1.02);
  }
}

@media screen and (max-width: 639px) {
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--first-courses .home-category-card__title {
    max-width: 38%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--first-courses .home-category-card__first-item--bowl {
    top: 15%;
    left: 42%;
    width: 68%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--first-courses .home-category-card__first-item {
    transition: none;
  }
}

/* «Вяленое мясо»: три самостоятельные упаковки собраны плотным веером.
   Фон остаётся внутри shape, а artwork контролируемо выступает справа. */
html :is(#homepage-categories, .category-artwork-scope) .home-category-card--dried {
  overflow: visible;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card--dried .home-category-card__background {
  overflow: hidden;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card--dried .home-category-card__title {
  max-width: 34%;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__dried-stage,
html :is(#homepage-categories, .category-artwork-scope) .home-category-card__dried-crop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__dried-stage {
  z-index: 2;
  right: -7%;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__dried-crop {
  overflow: hidden;
  border-radius: 20px 0 0 20px;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__dried-item {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
  pointer-events: none;
  user-select: none;
  transform: translate(0, 0) rotate(0deg) scale(1);
  transform-origin: 50% 62%;
  transition: transform 380ms cubic-bezier(.22, .61, .36, 1);
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__dried-item--red {
  z-index: 1;
  top: 6%;
  left: 17%;
  width: 53%;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__dried-item--orange {
  z-index: 2;
  top: 7%;
  left: 36%;
  width: 53%;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__dried-item--salami {
  z-index: 3;
  top: 8%;
  left: 55%;
  width: 53%;
}

@media (hover: hover) and (pointer: fine) {
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--dried:hover .home-category-card__dried-item--red {
    transform: translate(-4px, -4px) rotate(-1deg) scale(1.015);
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--dried:hover .home-category-card__dried-item--orange {
    transform: translate(0, -6px) rotate(.4deg) scale(1.02);
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--dried:hover .home-category-card__dried-item--salami {
    transform: translate(-2px, -4px) rotate(1deg) scale(1.01);
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--dried:hover {
    transform: none;
  }
}

@media screen and (max-width: 639px) {
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--dried .home-category-card__title {
    max-width: 35%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--dried .home-category-card__dried-stage {
    right: -5%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--dried .home-category-card__dried-crop {
    border-radius: 14px 0 0 14px;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--dried .home-category-card__dried-item--red {
    top: -4%;
    left: 24%;
    width: 52%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--dried .home-category-card__dried-item--orange {
    top: -4%;
    left: 45%;
    width: 52%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--dried .home-category-card__dried-item--salami {
    top: -4%;
    left: 66%;
    width: 52%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--dried .home-category-card__dried-item {
    transition: none;
  }
}

/* «Полезное печенье»: упаковки и верхний декор клипуются shape карточки,
   а отдельная нижняя печенька контролируемо выступает в межрядный gap. */
html :is(#homepage-categories, .category-artwork-scope) .home-category-card--cookies {
  overflow: visible;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card--cookies .home-category-card__background {
  overflow: hidden;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card--cookies .home-category-card__title {
  max-width: 38%;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__cookies-stage,
html :is(#homepage-categories, .category-artwork-scope) .home-category-card__cookies-crop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__cookies-stage {
  z-index: 2;
  overflow: visible;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__cookies-crop {
  overflow: hidden;
  border-radius: 20px;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__cookies-item {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
  pointer-events: none;
  user-select: none;
  transform: translate(0, 0) rotate(0deg) scale(1);
  transition: transform 380ms cubic-bezier(.22, .61, .36, 1);
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__cookies-item--packs {
  z-index: 1;
  top: 19%;
  left: -10%;
  width: 125%;
  transform-origin: 78% 70%;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__cookies-item--small {
  z-index: 2;
  top: 70%;
  left: 29%;
  width: 11.2%;
  transform-origin: center;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__cookies-item--bottom {
  z-index: 3;
  top: 87%;
  left: 42.2%;
  width: 11.5%;
  transform-origin: center;
}

@media (hover: hover) and (pointer: fine) {
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--cookies:hover .home-category-card__cookies-item--packs {
    transform: translate(2px, -2px) rotate(.3deg) scale(1.01);
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--cookies:hover .home-category-card__cookies-item--small {
    transform: translate(-4px, -3px) rotate(-1deg) scale(1.025);
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--cookies:hover .home-category-card__cookies-item--bottom {
    transform: translate(4px, -4px) rotate(1deg) scale(1.02);
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--cookies:hover {
    transform: none;
  }
}

@media screen and (max-width: 639px) {
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--cookies .home-category-card__title {
    max-width: 37%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--cookies .home-category-card__cookies-crop {
    border-radius: 14px;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--cookies .home-category-card__cookies-item--packs {
    top: 0;
    left: -12%;
    width: 132%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--cookies .home-category-card__cookies-item--small {
    top: 64%;
    left: 38%;
    width: 11%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--cookies .home-category-card__cookies-item--bottom {
    top: 84%;
    left: 44%;
    width: 13%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--cookies .home-category-card__cookies-item {
    transition: none;
  }
}

/* «Каши и вторые блюда»: две верхние тарелки живут вне crop, две нижние
   обрезаются только по скруглённой границе карточки. */
html :is(#homepage-categories, .category-artwork-scope) .home-category-card--second-courses {
  overflow: visible;
}

html :is(#homepage-categories, .category-artwork-scope) .home-categories__grid:has(> .home-category-card--second-courses) {
  overflow: visible;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__second-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  transform-origin: 100% 100%;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__second-top,
html :is(#homepage-categories, .category-artwork-scope) .home-category-card__second-crop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__second-top {
  z-index: 2;
  overflow: visible;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__second-crop {
  z-index: 3;
  overflow: hidden;
  border-radius: 20px;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__second-item {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
  transform: none;
  transform-origin: 50% 50%;
  transition: transform 420ms cubic-bezier(.2, .8, .2, 1);
  pointer-events: none;
  user-select: none;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__second-item--top-left {
  z-index: 2;
  top: 2%;
  left: 39%;
  width: 31%;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__second-item--top-right {
  z-index: 3;
  top: -18%;
  left: 69%;
  width: 29%;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__second-item--bottom-left {
  z-index: 2;
  top: 64%;
  left: 35%;
  width: 30%;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__second-item--bottom-right {
  z-index: 3;
  top: 42%;
  left: 65%;
  width: 32%;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__second-item--tomato {
  z-index: 1;
  top: 54%;
  left: 39%;
  width: 4.2%;
  filter: drop-shadow(0 4px 4px rgba(67, 50, 40, .22));
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__second-item--herb {
  z-index: 1;
  top: 12%;
  left: 87%;
  width: 30%;
  transform: rotate(-12deg);
  transform-origin: 20% 55%;
}

@media (hover: hover) and (pointer: fine) {
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--second-courses:hover .home-category-card__second-item--top-left {
    transform: translate(-4px, -4px) rotate(-2deg) scale(1.02);
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--second-courses:hover .home-category-card__second-item--top-right {
    transform: translate(4px, -3px) rotate(2deg) scale(1.02);
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--second-courses:hover .home-category-card__second-item--bottom-left {
    transform: translate(-3px, -4px) rotate(-1deg) scale(1.015);
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--second-courses:hover .home-category-card__second-item--bottom-right {
    transform: translate(3px, -3px) rotate(1deg) scale(1.015);
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--second-courses:hover .home-category-card__second-item--tomato {
    transform: translate(-3px, -4px) rotate(-3deg) scale(1.04);
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--second-courses:hover .home-category-card__second-item--herb {
    transform: translate(3px, -4px) rotate(-8deg) scale(1.035);
  }
}

@media screen and (max-width: 639px) {
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card__second-top,
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card__second-crop {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--second-courses .home-category-card__second-item,
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--second-courses .home-category-card__arrow img {
    transition: none;
  }
}

/* Responsive artwork: only the first two wide cards. */
@media (min-width: 960px) and (max-width: 1199px) {
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--sets .home-category-card__sets-stage {
    top: -12%;
    left: 30%;
    overflow: visible;
    clip-path: inset(-40px 0 0 0 round 0 0 20px 0);
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--sets .home-category-card__sets-item--box {
    top: auto;
    bottom: -1px;
    transform: scale(.94);
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--second-courses .home-category-card__second-stage {
    transform: scale(.96);
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--second-courses .home-category-card__second-item--top-left {
    left: 45%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--second-courses .home-category-card__second-item--herb,
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--second-courses .home-category-card__second-item--tomato {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 959px) {
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--sets .home-category-card__sets-stage {
    top: -10%;
    left: 33%;
    overflow: visible;
    clip-path: inset(-40px 0 0 0 round 0 0 20px 0);
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--sets .home-category-card__sets-item--box {
    top: auto;
    bottom: -1px;
    transform: scale(.94);
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--sets .home-category-card__sets-item--heater-front {
    display: none;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--second-courses .home-category-card__second-stage {
    transform: none;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--second-courses .home-category-card__second-item--top-left {
    top: 7%;
    left: 57%;
    width: 44%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--second-courses .home-category-card__second-item--top-right,
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--second-courses .home-category-card__second-item--bottom-left,
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--second-courses .home-category-card__second-item--bottom-right,
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--second-courses .home-category-card__second-item--herb,
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--second-courses .home-category-card__second-item--tomato {
    display: none;
  }
}

@media (min-width: 640px) and (max-width: 767px) {
  html :is(#homepage-categories, .category-artwork-scope).home-categories--artwork .home-category-card--sets,
  html :is(#homepage-categories, .category-artwork-scope).home-categories--artwork .home-category-card--second-courses {
    grid-column: 1 / -1;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--sets .home-category-card__sets-stage {
    top: -8%;
    left: 34%;
    overflow: visible;
    clip-path: inset(-40px 0 0 0 round 0 0 20px 0);
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--sets .home-category-card__sets-item--box {
    top: auto;
    bottom: -1px;
    transform: scale(.94);
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--sets .home-category-card__sets-item--heater-front {
    display: none;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--second-courses .home-category-card__second-stage {
    transform: none;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--second-courses .home-category-card__second-item--top-right,
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--second-courses .home-category-card__second-item--bottom-left,
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--second-courses .home-category-card__second-item--herb,
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--second-courses .home-category-card__second-item--tomato {
    display: none;
  }
}

@media (min-width: 640px) and (max-width: 1199px) and (hover: hover) and (pointer: fine) {
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--sets:hover .home-category-card__sets-item--box {
    transform: scale(.965);
  }
}

@media screen and (max-width: 639px) {
  html :is(#homepage-categories, .category-artwork-scope).home-categories--artwork .home-category-card--sets,
  html :is(#homepage-categories, .category-artwork-scope).home-categories--artwork .home-category-card--second-courses {
    grid-column: auto;
    aspect-ratio: auto;
    overflow: visible;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--sets .home-category-card__sets-stage {
    top: 0;
    right: 0;
    bottom: 0;
    left: 42%;
    overflow: visible;
    border-radius: 0;
    clip-path: inset(-38px 0 0 0 round 0 0 14px 0);
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--sets .home-category-card__sets-item {
    transition: none;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--sets .home-category-card__sets-item--heater-back {
    display: block;
    top: -12%;
    right: 24%;
    width: 76%;
    transform: none;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--sets .home-category-card__sets-item--heater-front {
    display: none;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--sets .home-category-card__sets-item--box {
    display: block;
    top: auto;
    right: -5%;
    bottom: -1px;
    width: 92%;
    transform: none;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--second-courses .home-category-card__second-stage {
    display: block;
    inset: 0;
    transform: none;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--second-courses .home-category-card__second-top {
    display: none;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--second-courses .home-category-card__second-crop {
    display: block;
    border-radius: 14px;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--second-courses .home-category-card__second-item {
    display: none;
    transition: none;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--second-courses .home-category-card__second-item--bottom-right {
    display: block;
    top: 8%;
    left: 58%;
    width: 46%;
    transform: none;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--second-courses .home-category-card__title {
    max-width: 46%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--sets:hover .home-category-card__sets-item--heater-back,
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--sets:hover .home-category-card__sets-item--box,
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--second-courses:hover .home-category-card__second-item--bottom-right {
    transform: none;
  }
}

@media screen and (max-width: 440px) {
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card__titan-item--spoon {
    top: 33%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--sets .home-category-card__sets-stage {
    clip-path: inset(-50px 0 0 -40px round 0 0 14px 0);
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--sets .home-category-card__sets-item--heater-back {
    top: -21%;
    right: 25%;
    width: 100%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--sets .home-category-card__sets-item--box {
    width: 100%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--second-courses .home-category-card__second-item--bottom-right {
    top: 27%;
    left: 49%;
    width: 60%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--second-courses .home-category-card__title {
    max-width: 52%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card__rpb-stage {
    top: 27px;
    right: -8px;
    width: calc(72% - 2px);
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card__retort-item--small {
    top: 39%;
    left: 20%;
    width: 49%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card__retort-item--camo {
    top: 12.5%;
    left: 40.5%;
    width: 43%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card__retort-item--main {
    top: 8%;
    left: 53%;
    width: 59%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--rice .home-category-card__rice-stage {
    clip-path: inset(-40px -20px 0 0 round 0 0 0 14px);
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--rice .home-category-card__rice-item--main {
    top: -3%;
    left: 45%;
    width: 63%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--dried .home-category-card__dried-stage {
    right: -10%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--dried .home-category-card__dried-item--red {
    top: 15%;
    left: 9%;
    width: 52%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--dried .home-category-card__dried-item--orange {
    top: 2%;
    left: 30%;
    width: 52%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--dried .home-category-card__dried-item--salami {
    top: -6%;
    left: 51%;
    width: 52%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--cookies .home-category-card__cookies-item--bottom {
    top: 86%;
    left: 47%;
    width: 15%;
  }

}

@media screen and (max-width: 393px) {
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--sets .home-category-card__sets-item--heater-back {
    top: -13%;
    right: 20%;
    width: 108%;
    transform: rotate(13deg);
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--sets .home-category-card__sets-item--box {
    top: -2px;
    left: 9px;
    width: 106%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card__rpb-item--1 {
    width: 75%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card__rpb-item--2 {
    width: 64%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card__rpb-item--3 {
    width: 59%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card__titan-item--back {
    top: 31.5%;
    left: 40.5%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card__titan-item--front {
    top: 37.5%;
    left: 41.5%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card__titan-item--spoon {
    top: 43%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card__retort-item--main {
    left: 49%;
    width: 62%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card__retort-item--small {
    top: 44%;
    left: 16%;
    width: 54%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card__retort-item--camo {
    left: 34.5%;
    width: 49%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--first-courses .home-category-card__first-item--bowl {
    top: 25%;
    left: 40%;
    width: 78%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--stewed .home-category-card__stewed-item--bowl {
    top: 24%;
    left: 44%;
    width: 78%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--cookies .home-category-card__cookies-item--packs {
    top: 19%;
    left: -18%;
    width: 142%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--cookies .home-category-card__cookies-item--small {
    top: 79%;
    left: 24%;
    width: 11%;
  }
}

@media screen and (min-width: 1100px) and (max-width: 1199px) {
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--sets .home-category-card__sets-item--heater-back {
    top: -13%;
    right: 20%;
    width: 108%;
    transform: rotate(13deg);
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--sets .home-category-card__sets-item--box {
    top: -2px;
    left: 9px;
    width: 106%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card__rpb-item--1 {
    width: 75%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card__rpb-item--2 {
    width: 64%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card__rpb-item--3 {
    width: 59%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card__titan-item--back {
    top: 31.5%;
    left: 40.5%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card__titan-item--front {
    top: 37.5%;
    left: 41.5%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card__titan-item--spoon {
    top: 43%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card__retort-item--main {
    left: 49%;
    width: 62%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card__retort-item--small {
    top: 44%;
    left: 16%;
    width: 54%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card__retort-item--camo {
    left: 34.5%;
    width: 49%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--first-courses .home-category-card__first-item--bowl {
    top: 25%;
    left: 40%;
    width: 78%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--stewed .home-category-card__stewed-item--bowl {
    top: 24%;
    left: 44%;
    width: 78%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--cookies .home-category-card__cookies-item--packs {
    top: 19%;
    left: -18%;
    width: 142%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--cookies .home-category-card__cookies-item--small {
    top: 79%;
    left: 24%;
    width: 11%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--second-courses .home-category-card__second-item--top-left {
    top: -6%;
    left: 36%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--second-courses .home-category-card__second-item--top-right {
    top: -26%;
    left: 69%;
    width: 32%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--second-courses .home-category-card__second-item--bottom-left {
    top: 66%;
    left: 26%;
    width: 34%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--second-courses .home-category-card__second-item--bottom-right {
    width: 34%;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card__rpb-stage {
    top: 26px;
  }
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__artwork,
html :is(#homepage-categories, .category-artwork-scope) .home-category-card__artwork-viewport,
html :is(#homepage-categories, .category-artwork-scope) .home-category-card__artwork-group,
html :is(#homepage-categories, .category-artwork-scope) .home-category-card__artwork-item {
  display: none !important;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card--homepage-layered .home-category-card__picture {
  display: none !important;
}

html :is(#homepage-categories, .category-artwork-scope) .home-category-card__text-zone,
html :is(#homepage-categories, .category-artwork-scope) .home-category-card--homepage-wide .home-category-card__text-zone {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: block;
  width: auto;
  pointer-events: none;
}

@media screen and (min-width: 640px) {
  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--homepage {
    height: auto;
    aspect-ratio: 285 / 165;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card__title {
    z-index: 5;
    top: 20px;
    right: 24px;
    left: 24px;
    max-width: 180px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card__arrow {
    bottom: 20px;
    left: 24px;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--homepage-wide {
    height: auto;
    aspect-ratio: 590 / 300;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--homepage-wide .home-category-card__title {
    max-width: min(42%, 180px);
  }
}

/* Семантический preset выше по specificity, чем legacy nth-child правила. */
html :is(#homepage-categories, .category-artwork-scope) .home-category-card--sets .home-category-card__background { background: #f5c064; }
html :is(#homepage-categories, .category-artwork-scope) .home-category-card--second-courses .home-category-card__background { background: #f3aa77; }
html :is(#homepage-categories, .category-artwork-scope) .home-category-card--rpb .home-category-card__background { background: #f9e294; }
html :is(#homepage-categories, .category-artwork-scope) .home-category-card--titanium .home-category-card__background { background: #d2b18e; }
html :is(#homepage-categories, .category-artwork-scope) .home-category-card--retort .home-category-card__background { background: #a5ccdb; }
html :is(#homepage-categories, .category-artwork-scope) .home-category-card--rice .home-category-card__background { background: #a4d3b3; }
html :is(#homepage-categories, .category-artwork-scope) .home-category-card--first-courses .home-category-card__background { background: #bcc66d; }
html :is(#homepage-categories, .category-artwork-scope) .home-category-card--stewed .home-category-card__background { background: #f89899; }
html :is(#homepage-categories, .category-artwork-scope) .home-category-card--dried .home-category-card__background { background: #f7f1e3; }
html :is(#homepage-categories, .category-artwork-scope) .home-category-card--cookies .home-category-card__background { background: #d4b3ec; }

@media screen and (min-width: 768px) {
  html :is(#homepage-categories, .category-artwork-scope) .home-categories__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--homepage {
    grid-column: span 3;
    order: 2;
  }

  html :is(#homepage-categories, .category-artwork-scope) .home-category-card--homepage-wide {
    grid-column: span 6;
    order: 1;
  }
}
