.ru-home-frame {
  --ru-cream: #fff7e8;
  --ru-brown: #2f1a14;
  --ru-berry: #c8325b;
  --ru-aqua: #bfe8eb;
  --ru-pink: #f6ced9;
  --ru-yellow: #ffd768;
  --ru-white: #fffdf8;
  --ru-page: 1380px;
  width: 100%;
  max-width: 100%;
  overflow: clip;
  color: var(--ru-brown);
  background: var(--ru-cream);
}

.ru-home-frame *,
.ru-home-frame *::before,
.ru-home-frame *::after {
  box-sizing: border-box;
}

.ru-home-frame img,
.ru-home-frame picture,
.ru-home-frame svg {
  display: block;
  max-width: 100%;
}

.ru-home-frame img {
  height: auto;
}

.ru-home-page {
  width: min(var(--ru-page), calc(100% - 48px));
  margin-inline: auto;
}

.ru-home-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.ru-home-display-title,
.ru-home-story__heading {
  margin: 0;
  color: var(--ru-brown);
  font-family: "Cooper Black", "Bookman Old Style", Georgia, serif;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.ru-home-display-title {
  font-size: clamp(32px, 4vw, 62px);
}

.ru-home-hero {
  position: relative;
  background: #d9c2aa;
}

.ru-home-hero picture,
.ru-home-hero img {
  width: 100%;
}

.ru-home-hero > picture img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ru-home-hero__hotspot {
  position: absolute;
  z-index: 2;
  inset: 0;
}

.ru-home-hero__content {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.ru-home-hero__heading {
  position: absolute;
  z-index: 1;
  top: 47%;
  left: 50%;
  width: 96%;
  margin: 0;
  color: #fff;
  font-family: "Cooper Black", "Bookman Old Style", Georgia, serif;
  font-size: clamp(82px, 10.5vw, 180px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.82;
  text-align: center;
  text-wrap: balance;
  transform: translate(-50%, -50%);
}

.ru-home-hero__product {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: min(25vw, 400px);
  transform: translate(-50%, -50%);
}

.ru-home-hero__product img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
}

.ru-home-hero__badge {
  position: absolute;
  z-index: 3;
  top: 15%;
  left: 57%;
  display: grid;
  width: clamp(72px, 7vw, 112px);
  aspect-ratio: 1;
  border-radius: 50%;
  place-items: center;
  color: #fff;
  background: var(--ru-berry);
  font-family: "Cooper Black", "Bookman Old Style", Georgia, serif;
  font-size: clamp(17px, 1.8vw, 27px);
  font-weight: 900;
  line-height: 0.9;
  text-align: center;
  transform: rotate(-9deg);
}

.ru-home-hero__button {
  position: absolute;
  z-index: 4;
  bottom: 5%;
  left: 2.5%;
  display: grid;
  width: clamp(74px, 7vw, 108px);
  aspect-ratio: 1;
  border-radius: 50%;
  place-items: center;
  color: #fff;
  background: var(--ru-berry);
  font-size: clamp(11px, 1vw, 15px);
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  pointer-events: auto;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.ru-home-hero__button:hover {
  color: var(--ru-brown);
  background: var(--ru-yellow);
  transform: rotate(-4deg);
}

.ru-home-hero__hotspot:focus-visible {
  outline: 4px solid #fff;
  outline-offset: -8px;
}

.ru-home-categories {
  padding: 54px 0 64px;
  background: var(--ru-cream);
}

.ru-home-categories__grid {
  display: grid;
  margin-top: 28px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ru-home-category-card {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  border-radius: 22px;
  background: var(--ru-brown);
  text-decoration: none;
}

.ru-home-category-card--2 {
  background: var(--ru-aqua);
}

.ru-home-category-card--3 {
  background: var(--ru-pink);
}

.ru-home-category-card--4 {
  background: var(--ru-berry);
}

.ru-home-category-card::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgb(47 26 20 / 38%) 0%, transparent 46%);
  content: "";
  pointer-events: none;
}

.ru-home-category-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
}

.ru-home-category-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ru-home-category-card:hover .ru-home-category-card__media img {
  transform: scale(1.035);
}

.ru-home-category-card__title {
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 24px;
  max-width: calc(100% - 48px);
  color: #ffffff;
  font-family: "Cooper Black", "Bookman Old Style", Georgia, serif;
  font-size: clamp(25px, 3vw, 46px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.96;
  text-wrap: balance;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.12);
}

.ru-home-products {
  padding: 54px 0 70px;
  border-top: 1px solid rgb(47 26 20 / 10%);
  background: #fff3f6;
}

.ru-home-products__header {
  display: flex;
  margin-bottom: 28px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.ru-home-products__intro {
  max-width: 700px;
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.45;
}

.ru-home-products__view-all {
  flex: 0 0 auto;
  color: var(--ru-brown);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.ru-home-products__view-all:hover {
  color: var(--ru-berry);
}

.ru-home-products__grid {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}

.ru-home-product {
  min-width: 0;
}

.ru-home-product__link {
  display: grid;
  height: 100%;
  color: inherit;
  text-decoration: none;
  grid-template-rows: auto 1fr;
  transition: transform 180ms ease;
}

.ru-home-product__link:hover {
  transform: translateY(-3px);
}

.ru-home-product__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid rgb(47 26 20 / 8%);
  border-radius: 18px;
  background: var(--ru-white);
}

.ru-home-product__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ru-home-product__link:hover .ru-home-product__media img {
  transform: scale(1.04);
}

.ru-home-product__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--ru-berry);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.ru-home-product__content {
  display: grid;
  padding-top: 12px;
  align-content: start;
}

.ru-home-product__title {
  min-height: 42px;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
}

.ru-home-product__pack {
  display: block;
  margin-top: 3px;
  color: rgb(47 26 20 / 68%);
  font-size: 13px;
  line-height: 1.35;
}

.ru-home-product__price {
  display: flex;
  min-height: 24px;
  margin-top: 7px;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 10px;
  font-size: 15px;
}

.ru-home-product__price s {
  opacity: 0.62;
  font-size: 12px;
}

.ru-home-product__fallback-copy {
  margin-top: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ru-home-usp {
  padding: 22px 0 20px;
  color: #fff;
  background: var(--ru-berry);
}

.ru-home-usp__inner {
  display: flex;
  width: min(1440px, calc(100% - 32px));
  margin-inline: auto;
  align-items: center;
  justify-content: center;
  gap: clamp(15px, 3.5vw, 56px);
  font-family: "Cooper Black", "Bookman Old Style", Georgia, serif;
  font-size: clamp(20px, 3vw, 45px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.ru-home-story {
  display: grid;
  min-height: 650px;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
}

.ru-home-story__media {
  min-width: 0;
  background: var(--ru-aqua);
}

.ru-home-story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ru-home-story__content {
  display: flex;
  padding: clamp(55px, 7vw, 120px);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  background: var(--ru-aqua);
}

.ru-home-story__eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ru-home-story__heading {
  max-width: 650px;
  font-size: clamp(44px, 5.2vw, 82px);
}

.ru-home-story__copy {
  max-width: 620px;
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.58;
}

.ru-home-story__copy p {
  margin: 0;
}

.ru-home-story__button {
  display: inline-flex;
  min-height: 48px;
  margin-top: 28px;
  padding: 11px 26px;
  border: 2px solid var(--ru-berry);
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--ru-berry);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease;
}

.ru-home-story__button:hover {
  color: var(--ru-brown);
  border-color: var(--ru-brown);
  background: var(--ru-yellow);
}

@media (max-width: 749px) {
  .ru-home-page {
    width: calc(100% - 24px);
  }

  .ru-home-display-title {
    font-size: 32px;
  }

  .ru-home-hero > picture img {
    aspect-ratio: 9 / 16;
  }

  .ru-home-hero__heading {
    top: 45%;
    width: 120%;
    font-size: clamp(55px, 19vw, 82px);
    line-height: 0.84;
  }

  .ru-home-hero__product {
    top: 48%;
    width: min(49vw, 230px);
  }

  .ru-home-hero__product img {
    max-height: 69vh;
  }

  .ru-home-hero__badge {
    top: 15%;
    left: 62%;
    width: 68px;
    font-size: 16px;
  }

  .ru-home-hero__button {
    bottom: 5%;
    left: 4%;
    width: 70px;
    font-size: 10px;
  }

  .ru-home-categories {
    padding: 34px 0 38px;
  }

  .ru-home-categories__grid {
    margin-top: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .ru-home-category-card__title {
    top: 13px;
    left: 13px;
    max-width: calc(100% - 26px);
    font-size: 25px;
  }

  .ru-home-category-card {
    border-radius: 14px;
  }

  .ru-home-products {
    padding: 36px 0 44px;
  }

  .ru-home-products__header {
    margin-bottom: 20px;
    align-items: flex-end;
  }

  .ru-home-products__intro {
    margin-top: 8px;
    font-size: 13px;
  }

  .ru-home-products__view-all {
    font-size: 11px;
  }

  .ru-home-products__grid {
    display: flex;
    width: 100%;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .ru-home-products__grid::-webkit-scrollbar {
    display: none;
  }

  .ru-home-product {
    flex: 0 0 calc(50% - 4px);
    scroll-snap-align: start;
  }

  .ru-home-product__title {
    min-height: 38px;
    font-size: 12px;
  }

  .ru-home-product__price {
    font-size: 13px;
  }

  .ru-home-product__fallback-copy {
    font-size: 10px;
  }

  .ru-home-usp {
    padding: 15px 0 14px;
  }

  .ru-home-usp__inner {
    width: calc(100% - 20px);
    gap: 8px;
    font-size: 12px;
  }

  .ru-home-story {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .ru-home-story__media {
    aspect-ratio: 1 / 0.78;
  }

  .ru-home-story__content {
    padding: 44px 22px 50px;
    align-items: center;
    text-align: center;
  }

  .ru-home-story__heading {
    font-size: 46px;
  }

  .ru-home-story__copy {
    margin-top: 17px;
    font-size: 14px;
  }

  .ru-home-story__button {
    margin-top: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ru-home-hero__button,
  .ru-home-category-card__media img,
  .ru-home-product__link,
  .ru-home-product__media img,
  .ru-home-story__button {
    transition: none;
  }
}
