

.ima-plate {
  margin: clamp(26px, 3vw, 42px) 0 0;
}

.ima-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--ima-ar, 1.5);
  border: 1px solid var(--rp-rule-soft);
  background: var(--paper-light, #fafaf8);
}

.ima-frame img {
  position: absolute;
  top: var(--ima-sy, 0);
  left: var(--ima-sx, 0);
  width: var(--ima-sw, 100%);
  max-width: none;
  height: var(--ima-sh, 100%);
}

.rp-js .ima-frame {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 900ms var(--rp-ease);
  transition-delay: var(--ima-d, 260ms);
}

.rp-js .is-drawn .ima-frame {
  clip-path: inset(0 0 0 0);
}


.ima-plate--card {
  perspective: 1600px;
  perspective-origin: 50% 42%;
}

.ima-tilt {
  --ima-pose: rotateX(var(--ima-rx, 5deg)) rotateY(var(--ima-ry, 7deg))
    rotateZ(var(--ima-rz, -0.8deg));

  transform: var(--ima-pose);
  box-shadow:
    0 0 0 1px rgba(21, 21, 21, 0.07),
    0 2px 4px rgba(21, 21, 21, 0.14),
    0 12px 26px rgba(21, 21, 21, 0.13),
    0 34px 64px rgba(21, 21, 21, 0.1);
}

.rp-plate .ima-tilt {
  box-shadow:
    0 0 0 1px rgba(246, 248, 250, 0.11),
    0 3px 8px rgba(0, 0, 0, 0.5),
    0 20px 44px rgba(0, 0, 0, 0.52),
    0 50px 96px rgba(0, 0, 0, 0.42);
}

.rp-js .ima-tilt {
  transform: rotateX(calc(var(--ima-rx, 5deg) * 2.15))
    rotateY(calc(var(--ima-ry, 7deg) * 1.9)) rotateZ(var(--ima-rz, -0.8deg))
    translateY(18px) scale(0.972);
  transition: transform 1150ms var(--rp-ease);
  transition-delay: var(--ima-d, 260ms);
}

.rp-js .is-drawn .ima-tilt {
  transform: var(--ima-pose);
}

.ima-plate--card .ima-cap {
  margin-top: clamp(26px, 2.6vw, 40px);
}

.ima-plate--card .ima-frame {
  border: 0;
  background: none;
}

.rp-js .ima-plate--card .ima-frame,
.rp-js .is-drawn .ima-plate--card .ima-frame {
  clip-path: none;
  transition: none;
}

.ima-cap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 13px 0 0;
  color: rgba(21, 21, 21, 0.42);
  font-size: 0.58rem;
  font-weight: 780;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.ima-cap::before {
  flex: none;
  width: 10px;
  height: 2px;
  background: var(--signal);
  content: "";
  transform: translateY(-3px);
}


.rp-plate .ima-frame {
  border-color: rgba(246, 248, 250, 0.22);
  background: rgba(246, 248, 250, 0.04);
  transition: clip-path 900ms var(--rp-ease), border-color 560ms ease 130ms;
  transition-delay: var(--ima-d, 260ms), 130ms;
}

.rp-plate .ima-cap {
  color: rgba(246, 248, 250, 0.5);
  transition: color 560ms ease 130ms;
}

.rp-js .rp-plate:not(.is-drawn) .ima-frame {
  border-color: var(--rp-rule-soft);
}

.rp-js .rp-plate:not(.is-drawn) .ima-cap {
  color: rgba(21, 21, 21, 0.42);
}


.ima-device {
  max-width: min(220px, 100%);
  margin-top: clamp(20px, 2.2vw, 30px);
}

.ima-device .ima-cap {
  letter-spacing: 0.13em;
}

.ima-device .ima-frame {
  border: 0;
  background: none;
}


.ima-split {
  display: grid;
  align-items: start;
  gap: clamp(24px, 2.6vw, 44px);
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  margin-top: clamp(26px, 3vw, 42px);
}

.ima-split > .ima-plate {
  margin-top: 0;
}

.ima-split-copy > p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1180px) {
  .ima-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .ima-split > .ima-plate {
    max-width: 420px;
  }
}


.ima-ad .ima-fb {
  overflow: hidden;
  border: 1px solid rgba(21, 21, 21, 0.13);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(21, 21, 21, 0.07), 0 10px 26px rgba(21, 21, 21, 0.07);
  color: #050505;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  text-align: left;
}

.ima-fb-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 12px 0;
}

.ima-fb-avatar {
  position: relative;
  overflow: hidden;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.09);
  background: #fff;
}

.ima-fb-avatar img {
  position: absolute;
  top: -48.462%;
  left: -168.077%;
  width: 964.615%;
  max-width: none;
  height: 964.615%;
}

.ima-fb-id {
  min-width: 0;
  flex: 1 1 auto;
}

.ima-fb-page {
  margin: 0;
  color: #050505;
  font-size: 0.845rem;
  font-weight: 600;
  line-height: 1.28;
}

.ima-fb-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 1px 0 0;
  color: #65676b;
  font-size: 0.75rem;
  line-height: 1.3;
}

.ima-fb-globe {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: #65676b;
  stroke-width: 1.1;
}

.ima-fb-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: #65676b;
}

.ima-fb-tools svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.ima-fb-tools .ima-fb-close {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.rp-main .ima-fb-copy {
  max-width: none;
  margin: 0;
  padding: 10px 12px 11px;
  color: #050505;
  font-size: 0.875rem;
  line-height: 1.36;
}

.ima-fb-shot {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--ima-ar, 0.78);
  background: #fff;
}

.ima-fb-shot img {
  position: absolute;
  top: var(--ima-sy, 0);
  left: var(--ima-sx, 0);
  width: var(--ima-sw, 100%);
  max-width: none;
  height: var(--ima-sh, 100%);
}

.ima-fb-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-top: 1px solid #dadde1;
  background: #f0f2f5;
}

.ima-fb-link-text {
  min-width: 0;
  flex: 1 1 auto;
}

.rp-main .ima-fb-domain {
  max-width: none;
  margin: 0;
  overflow: hidden;
  color: #65676b;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.rp-main .ima-fb-headline {
  max-width: none;
  margin: 2px 0 0;
  color: #050505;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.26;
}

.rp-main .ima-fb-sub {
  max-width: none;
  margin: 1px 0 0;
  overflow: hidden;
  color: #65676b;
  font-size: 0.775rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ima-fb-cta {
  flex: none;
  padding: 8px 12px;
  border-radius: 6px;
  background: #e4e6eb;
  color: #050505;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.ima-fb-acts {
  display: flex;
  align-items: center;
  border-top: 1px solid #dadde1;
}

.ima-fb-act {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 0;
  padding: 8px 0 9px;
  color: #65676b;
  font-size: 0.8rem;
  font-weight: 600;
}

.ima-fb-act svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.rp-js .ima-ad .ima-fb {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 760ms var(--rp-ease),
    transform 760ms var(--rp-ease);
  transition-delay: var(--ima-d, 300ms);
}

.rp-js .is-drawn .ima-ad .ima-fb {
  opacity: 1;
  transform: none;
}


.ima-note {
  max-width: 62ch;
  margin: clamp(26px, 3vw, 40px) 0 0;
  padding: 4px 0 4px 20px;
  border-left: 1px solid var(--signal);
}

.ima-note-label {
  margin: 0 0 8px;
  color: var(--signal);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rp-main .ima-note p {
  max-width: none;
  margin: 0;
  color: rgba(21, 21, 21, 0.68);
  font-size: 0.86rem;
  line-height: 1.66;
}


@media (max-width: 900px) {
  .ima-device {
    max-width: min(200px, 100%);
    margin-top: clamp(18px, 4vw, 26px);
  }

  .ima-split {
    gap: clamp(20px, 5vw, 30px);
  }

  .ima-plate--card {
    perspective: 900px;
  }

  .ima-tilt {
    --ima-pose: rotateX(calc(var(--ima-rx, 5deg) * 0.5))
      rotateY(calc(var(--ima-ry, 7deg) * 0.5)) rotateZ(var(--ima-rz, -0.8deg));

    box-shadow:
      0 0 0 1px rgba(21, 21, 21, 0.07),
      0 2px 4px rgba(21, 21, 21, 0.13),
      0 14px 30px rgba(21, 21, 21, 0.11);
  }

  .rp-js .ima-tilt {
    transform: rotateX(calc(var(--ima-rx, 5deg) * 1.1))
      rotateY(calc(var(--ima-ry, 7deg) * 1.0)) rotateZ(var(--ima-rz, -0.8deg))
      translateY(14px) scale(0.98);
  }

}


@media (prefers-reduced-motion: reduce) {
  .rp-js .ima-frame,
  .rp-js .is-drawn .ima-frame {
    clip-path: none;
    transition: none;
  }

  .rp-js .ima-tilt {
    transform: var(--ima-pose);
    transition: none;
  }

  .rp-js .ima-ad .ima-fb,
  .rp-js .is-drawn .ima-ad .ima-fb {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
