

.vp-section {
  --vp-ui: var(--blue, #1f8ecc);
  --vp-accent: var(--violet, #c2205f);
}

.vp-section .vp-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(32px, 4.5vw, 72px);
}

.vp-mock {
  position: relative;

  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  padding: 12px 12px 4px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 0, 0, .05);
}

.vp-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  overflow: hidden;
}
.vp-bar__sep {
  width: 1px;
  height: 16px;
  margin: 0 4px;
  background: var(--line, #e5e2db);
}
.vp-chip {
  padding: 5px 11px 6px;
  border: 1px solid var(--line, #e5e2db);
  border-radius: 999px;
  font-size: 11.5px;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--ink-mute, #7a7a7a);
}
.vp-chip.is-on {
  border-color: var(--vp-ui);
  color: var(--vp-ui);
  background: color-mix(in oklab, var(--vp-ui) 8%, #fff);
}

.vp-stage {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 4px;
  background: #f4f1ec;
  isolation: isolate;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.vp-stage__bgwrap { display: block; }
.vp-stage__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;

  object-fit: fill;
}

.vp-guide {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--gy, 34%);
  z-index: 4;
  height: 0;
  border-top: 1px dashed var(--vp-ui);
  opacity: 0;
  transition: opacity .28s;
  pointer-events: none;
}
.vp-guide__lab {
  position: absolute;
  left: 10px;
  top: 0;
  transform: translateY(-50%);
  padding: 3px 8px 4px;
  border-radius: 2px;
  background: var(--vp-ui);
  color: #fff;
  font-size: 10.5px;
  font-style: normal;
  line-height: 1.2;
  white-space: nowrap;
}
.vp-stage.is-guide .vp-guide { opacity: 1; }

.vp-vguide {
  position: absolute;
  top: 6%;
  bottom: 18%;
  left: var(--vx, 50%);
  z-index: 4;
  width: 0;
  border-left: 1px dashed var(--vp-accent);
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.vp-stage.is-snap .vp-vguide { opacity: 1; }

.vp-span {
  position: absolute;
  left: var(--sx, 30%);
  top: var(--sy, 62%);
  z-index: 5;
  width: var(--sw, 40%);
  height: 0;
  border-top: 1px solid var(--ink, #2d2d2d);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.vp-span::before,
.vp-span::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 1px;
  height: 11px;
  background: var(--ink, #2d2d2d);
}
.vp-span::before { left: 0; }
.vp-span::after { right: 0; }
.vp-span > i {
  position: absolute;
  left: 50%;
  top: -9px;
  transform: translate(-50%, -100%);
  padding: 3px 8px 4px;
  border-radius: 2px;
  background: rgba(31, 33, 38, .86);
  color: #fff;
  font-size: 10.5px;
  font-style: normal;
  white-space: nowrap;
}
.vp-stage.is-span .vp-span { opacity: 1; }

.vp-art {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  width: var(--w);
  height: var(--h);
  transform: translate3d(calc(var(--x) - 50%), calc(var(--y) - 50%), 0);
  transition: transform var(--adur, 0ms) cubic-bezier(.32, .06, .28, 1), opacity .4s;
}
.vp-art__in {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  filter: drop-shadow(0 7px 15px rgba(0, 0, 0, .3));
}
.vp-art__frame {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: var(--fr, 2.5%);
  background: var(--grad, #a5743c);
  transition: background .35s, padding .35s;
}
.vp-art__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
}
.vp-art__glass {
  position: absolute;
  inset: 0;
  opacity: .28;
  pointer-events: none;
  background: linear-gradient(118deg,
    rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, 0) 34%,
    rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, .5) 82%,
    rgba(255, 255, 255, 0) 100%);
}
.vp-art__tag {
  position: absolute;
  left: 50%;
  bottom: -21px;
  transform: translateX(-50%);
  padding: 2px 7px 3px;
  border-radius: 2px;
  background: rgba(31, 33, 38, .84);
  color: #fff;
  font-size: 10.5px;
  line-height: 1.3;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.vp-art.is-tag .vp-art__tag { opacity: 1; }

@keyframes vp-fly {
  from { transform: translate(var(--fx, 0), var(--fy, 0)) scale(.3); opacity: .15; }
  to   { transform: none; opacity: 1; }
}
.vp-art__in.is-fly { animation: vp-fly .58s cubic-bezier(.2, .72, .26, 1) both; }

.vp-demo.is-js .vp-art { opacity: 0; visibility: hidden; }
.vp-demo.is-js .vp-art.is-on { opacity: 1; visibility: visible; }
.vp-demo.is-js .vp-stage.is-out .vp-art { opacity: 0; }

.vp-cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 12;
  width: 24px;
  height: 24px;
  transform: translate3d(var(--cx, 50%), var(--cy, 95%), 0);
  transition: transform var(--cdur, 0ms) cubic-bezier(.36, .04, .28, 1);
  pointer-events: none;
  will-change: transform;
}
.vp-cursor__i {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: 4px 3px;
  transition: transform .12s;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45));
}
.vp-cursor__i svg { display: block; width: 100%; height: 100%; }
.vp-cursor.is-press .vp-cursor__i { transform: scale(.8); }
.vp-cursor::after {
  content: "";
  position: absolute;
  left: -12px;
  top: -12px;
  width: 48px;
  height: 48px;
  border: 2px solid var(--vp-ui);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.22);
}
.vp-cursor.is-press::after { animation: vp-ripple .48s ease-out; }
@keyframes vp-ripple {
  from { opacity: .85; transform: scale(.22); }
  to   { opacity: 0; transform: scale(1); }
}

.vp-tray {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.vp-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line, #e5e2db);
  border-radius: 3px;
  background: #fff;
  overflow: hidden;
  transition: border-color .18s, transform .12s;
}
.vp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vp-thumb__cm {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1px 0 2px;
  background: rgba(31, 33, 38, .72);
  color: #fff;
  font-size: 9px;
  line-height: 1.3;
  text-align: center;
  letter-spacing: .01em;
}
.vp-thumb.is-used { border-color: var(--vp-ui); box-shadow: inset 0 0 0 1px var(--vp-ui); }
.vp-thumb.is-hit { transform: scale(.92); }

.vp-swatches {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.vp-sw {
  display: block;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(0, 0, 0, .16);
  border-radius: 50%;
  transition: transform .12s;
}
.vp-sw.is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--vp-ui); }
.vp-sw.is-hit { transform: scale(.86); }

.vp-hint {
  margin: 10px 0 8px;
  min-height: 17px;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--ink-mute, #7a7a7a);
}

.vp-art.is-sel .vp-art__in { outline: 2px solid var(--vp-ui); outline-offset: 3px; }

.vp-text { max-width: 470px; }

.vp-title {
  margin: 0 0 20px;
  font-family: var(--f-head, "Roboto Slab"), serif;
  font-weight: 700;
  font-size: clamp(26px, 2.9vw, 34px);
  line-height: 1.2;
  color: var(--ink, #2d2d2d);
}
.vp-title__hl {
  position: relative;
  white-space: nowrap;
}
.vp-title__hl::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: -.3em;
  height: .55em;
  background: url(../images/catalog-line.svg) center bottom / 100% 100% no-repeat;
}

.vp-lead {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft, #4a4a4a);
}

.vp-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--vp-accent);
  color: #fff;
  font-family: var(--f-head, "Roboto Slab"), serif;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background-color .2s, transform .15s, box-shadow .25s;
}
.vp-cta > span { color: #fff; }
.vp-cta:hover {
  color: #fff;
  background: color-mix(in oklab, var(--vp-accent) 86%, #000);
  box-shadow: 0 14px 26px -14px color-mix(in oklab, var(--vp-accent) 70%, transparent);
}
.vp-cta:active { transform: scale(.98); }

.vp-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--ink-mute, #7a7a7a);
}

@media (max-width: 1000px) {
  .vp-section .vp-grid { grid-template-columns: 1fr; gap: 30px; }
  .vp-demo { order: 1; }
  .vp-text { order: 2; max-width: none; }
}

@media (max-width: 560px) {
  .vp-mock { padding: 10px 10px 2px; }
  .vp-bar { gap: 5px; }
  .vp-chip { padding: 4px 9px 5px; font-size: 10.5px; }
  .vp-thumb { width: 40px; height: 40px; }
  .vp-sw { width: 21px; height: 21px; }
  .vp-art__tag, .vp-guide__lab, .vp-span > i { font-size: 9.5px; }
  .vp-art__tag { bottom: -17px; }

  .vp-cursor { width: 18px; height: 18px; }
  .vp-cursor::after { left: -9px; top: -9px; width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .vp-art,
  .vp-art__frame,
  .vp-guide,
  .vp-vguide,
  .vp-span,
  .vp-cursor,
  .vp-cursor__i { transition: none !important; }
  .vp-art__in.is-fly { animation: none !important; }
  .vp-cursor.is-press::after { animation: none !important; }
}
