/* Unified product illustration depth system (landing) */
:root {
  --p3d-perspective: 1200px;
  --p3d-shadow: 0 18px 40px rgba(15, 18, 24, 0.12);
  --p3d-shadow-soft: 0 10px 24px rgba(15, 18, 24, 0.08);
  --p3d-lift: translate3d(0, -4px, 0);
  --p3d-transition: transform 220ms ease, filter 220ms ease, box-shadow 220ms ease;
}

.product-3d {
  position: relative;
  perspective: var(--p3d-perspective);
  transform-style: preserve-3d;
}

.product-3d__stage {
  position: relative;
  transform-style: preserve-3d;
  transition: var(--p3d-transition);
  will-change: transform, filter;
}

.product-3d__stage img,
.product-3d__stage > svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.product-3d--lift .product-3d__stage {
  box-shadow: var(--p3d-shadow);
}

@media (hover: hover) and (pointer: fine) {
  .product-3d--lift:hover .product-3d__stage {
    transform: var(--p3d-lift);
    filter: brightness(1.02);
    box-shadow: 0 22px 48px rgba(15, 18, 24, 0.16);
  }

  /* schedule: depth/highlight only — NEVER rotate */
  .mkt-scene-schedule:hover .mkt-scene-schedule__macro {
    transform: none;
    filter: brightness(1.03);
  }
}

.mkt-scene-schedule__macro {
  width: 100%;
  margin-left: 0;
  transform: none !important;
  transition: filter 220ms ease, box-shadow 220ms ease;
  box-shadow: var(--p3d-shadow-soft);
  border-radius: 18px;
}

.mkt-scene-booking__phone,
.mkt-scene-clients__card {
  transition: var(--p3d-transition);
  box-shadow: var(--p3d-shadow);
}

@media (hover: hover) and (pointer: fine) {
  .mkt-scene-booking:hover .mkt-scene-booking__phone,
  .mkt-scene-clients:hover .mkt-scene-clients__card {
    transform: var(--p3d-lift);
    filter: brightness(1.02);
  }
}

.final-cta-visual {
  perspective: var(--p3d-perspective);
}

.final-cta-visual img {
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35);
  transition: var(--p3d-transition);
}

@media (hover: hover) and (pointer: fine) {
  .final-cta-visual:hover img {
    transform: var(--p3d-lift);
    filter: brightness(1.04);
  }
}

/* AI demo story */
.ai-story {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
  max-width: 1040px;
  margin: 0 auto;
}

.ai-story__chat {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--mkt-line, #E8EAEF);
  border-radius: 22px;
  padding: 20px 18px 16px;
  box-shadow: var(--p3d-shadow);
  transform: translateZ(0);
  overflow: hidden;
}

.ai-story__chat::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #0077FF, #FF7912);
}

.ai-story__vkbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #EEF1F6;
}

.ai-story__vkdot {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4C9CFF, #0077FF);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 16px rgba(0, 119, 255, 0.25);
}

.ai-story__msg {
  max-width: 88%;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
  animation: aiStoryIn 280ms ease both;
}

.ai-story__msg--client {
  background: #F3F5F9;
  color: #121416;
  border-bottom-left-radius: 4px;
}

.ai-story__msg--ai {
  margin-left: auto;
  background: linear-gradient(180deg, #FFF8F1, #FFE8D4);
  color: #121416;
  border: 1px solid rgba(255, 121, 18, 0.22);
  border-bottom-right-radius: 4px;
}

.ai-story__msg:nth-child(3) { animation-delay: 80ms; }
.ai-story__msg:nth-child(4) { animation-delay: 140ms; }
.ai-story__msg:nth-child(5) { animation-delay: 200ms; }
.ai-story__msg:nth-child(6) { animation-delay: 260ms; }

.ai-story__rail {
  display: grid;
  gap: 12px;
  align-content: start;
}

.ai-story__step {
  background: #FFFFFF;
  border: 1px solid var(--mkt-line, #E8EAEF);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--p3d-shadow-soft);
  transform: translateZ(0);
  transition: var(--p3d-transition);
  animation: aiStoryIn 320ms ease both;
}

.ai-story__step:nth-child(1) { animation-delay: 60ms; }
.ai-story__step:nth-child(2) { animation-delay: 140ms; }
.ai-story__step:nth-child(3) { animation-delay: 220ms; }
.ai-story__step:nth-child(4) { animation-delay: 300ms; }

.ai-story__step strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  color: #121416;
}

.ai-story__step span {
  font-size: 13px;
  color: #5C6370;
  line-height: 1.35;
}

.ai-story__step--done {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(180deg, #F3FDF8, #FFFFFF);
}

@keyframes aiStoryIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 860px) {
  .ai-story {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-3d__stage,
  .mkt-scene-schedule__macro,
  .mkt-scene-booking__phone,
  .mkt-scene-clients__card,
  .final-cta-visual img,
  .ai-story__msg,
  .ai-story__step {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    filter: none !important;
  }
}
