.yandy-resume-best {
  --yandy-resume-best-columns: 4;
  --yandy-resume-best-mobile-columns: 2;
  --yandy-resume-best-gap: 22px;
  --yandy-resume-best-mobile-gap: 1px;
  --yandy-resume-best-previous-gap: 70px;
  --yandy-resume-best-previous-gap-mobile: 20px;
  --yandy-resume-best-next-gap: 100px;
  --yandy-resume-best-next-gap-mobile: 20px;
  --yandy-resume-best-bg: #fff;
  --yandy-resume-best-text: #171417;
  --yandy-resume-best-accent: #111;
  box-sizing: border-box;
  width: 100%;
  max-width: var(--yandy-resume-best-max-width, 1800px);
  margin: var(--yandy-resume-best-previous-gap) auto var(--yandy-resume-best-next-gap);
  padding: var(--yandy-resume-best-padding-top, 0px) 0 var(--yandy-resume-best-padding-bottom, 0px);
  color: var(--yandy-resume-best-text);
  background: var(--yandy-resume-best-bg);
  isolation: isolate;
}
.yandy-resume-best *,
.yandy-resume-best *::before,
.yandy-resume-best *::after { box-sizing: border-box; }
.yandy-resume-best__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 var(--yandy-resume-best-heading-gap, 25px);
}
.yandy-resume-best__heading h2 {
  margin: 0;
  color: var(--yandy-resume-best-text);
  font-family: Lato, sans-serif;
  font-size: var(--yandy-resume-best-heading-size, 25px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.yandy-resume-best__shop-link {
  color: var(--yandy-resume-best-accent);
  font-size: var(--yandy-resume-best-link-size, 14px);
  font-weight: 700;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.yandy-resume-best__stage {
  position: relative;
  min-width: 0;
}
.yandy-resume-best__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--yandy-resume-best-columns) - 1) * var(--yandy-resume-best-gap)) / var(--yandy-resume-best-columns));
  grid-template-rows: minmax(0, 1fr);
  gap: var(--yandy-resume-best-gap);
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.yandy-resume-best__track::-webkit-scrollbar { display: none; }
.yandy-resume-best .yandy-product-card {
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
}
.yandy-resume-best .yandy-product-card__visual { width: 100%; aspect-ratio: 1 / 1.8; }
.yandy-resume-best .yandy-product-card__visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.yandy-resume-best__arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--yandy-resume-best-arrow-border, #d9cfd5);
  border-radius: 50%;
  color: var(--yandy-resume-best-accent);
  background: var(--yandy-resume-best-arrow-bg, #fff);
  box-shadow: 0 2px 12px rgba(17, 17, 17, .12);
  cursor: pointer;
  transform: translateY(-50%);
}
.yandy-resume-best__arrow svg { flex: 0 0 24px; width: 24px; height: 24px; }
.yandy-resume-best__arrow:hover { background: var(--yandy-resume-best-arrow-hover-bg, #f6f3f5); }
.yandy-resume-best__arrow:focus-visible { outline: 2px solid var(--yandy-resume-best-accent); outline-offset: 3px; }
.yandy-resume-best__arrow[disabled] { opacity: .4; cursor: default; }
.yandy-resume-best__arrow--prev { left: 8px; }
.yandy-resume-best__arrow--next { right: 8px; }
.yandy-resume-best__empty { grid-column: 1 / -1; margin: 0; padding: 24px; }
@media (max-width: 767px) {
  .yandy-resume-best {
    margin-top: var(--yandy-resume-best-previous-gap-mobile);
    margin-bottom: var(--yandy-resume-best-next-gap-mobile);
    padding-top: var(--yandy-resume-best-padding-top-mobile, 0px);
    padding-bottom: var(--yandy-resume-best-padding-bottom-mobile, 0px);
  }
  .yandy-resume-best__heading { margin-bottom: var(--yandy-resume-best-heading-gap-mobile, 20px); }
  .yandy-resume-best__heading h2 { font-size: var(--yandy-resume-best-heading-size-mobile, 20px); }
  .yandy-resume-best__shop-link { font-size: var(--yandy-resume-best-link-size-mobile, 14px); }
  .yandy-resume-best__track {
    grid-auto-columns: calc((100% - (var(--yandy-resume-best-mobile-columns) - 1) * var(--yandy-resume-best-mobile-gap)) / var(--yandy-resume-best-mobile-columns));
    gap: var(--yandy-resume-best-mobile-gap);
    scroll-behavior: auto;
  }
  .yandy-resume-best__arrow:not(:focus-visible) {
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  .yandy-resume-best__arrow:focus-visible {
    width: 48px;
    height: 48px;
    clip: auto;
    clip-path: none;
  }
  .yandy-resume-best .yandy-product-card__visual { aspect-ratio: 1 / 1.8; }
}
@media (prefers-reduced-motion: reduce) {
  .yandy-resume-best__track { scroll-behavior: auto; }
}
/* No dead arrows without JavaScript; product links and native touch scrolling remain usable. */
.yandy-resume-best:not([data-yandy-resume-best-ready="1"]) .yandy-resume-best__arrow { visibility: hidden; }
.yandy-resume-best__shop-link:focus-visible { outline: 2px solid var(--yandy-resume-best-accent); outline-offset: 4px; }
