/* Homepage visual layer. Existing routes, forms and brand palette stay intact. */
.has-cinematic-hero { --motion-ease: cubic-bezier(.16,1,.3,1); }
.has-cinematic-hero .header-inner { height: 76px; animation: none; }
.has-cinematic-hero .site-header { background: #08090a; border-bottom: 1px solid #ffffff14; }
.has-cinematic-hero .hero--cinematic {
  height: auto; min-height: min(780px,calc(100svh - 76px));
  background: #08090a; display: flex; align-items: center;
}
.has-cinematic-hero .hero-cinema-photo {
  top: -33%; bottom: -23%; right: -3%; left: auto; height: auto;
  width: 68%; aspect-ratio: auto; transform: none;
}
.has-cinematic-hero .hero-cinema-photo img {
  object-fit: cover; object-position: 50% 57%;
  mask-image: linear-gradient(90deg,transparent,#000 23%,#000 94%,transparent);
  -webkit-mask-image: linear-gradient(90deg,transparent,#000 23%,#000 94%,transparent);
  animation: none;
}
.has-cinematic-hero .hero-cinema-shade {
  background: linear-gradient(90deg,#08090a 0%,#08090ae8 25%,#08090a80 49%,transparent 72%),linear-gradient(0deg,#08090a,transparent 24%,transparent 85%,#08090a90);
}
.has-cinematic-hero .hero--cinematic .hero-content {
  height: auto; padding: 82px 32px 100px; animation: none;
}
.has-cinematic-hero .hero-kicker { font-size: 11px; letter-spacing: .17em; }
.has-cinematic-hero .hero--cinematic h1 {
  max-width: 100%; font-size: clamp(42px,5.25vw,80px); line-height: 1.12;
  letter-spacing: -.075em; margin: 30px 0 28px; font-weight: 600;
}
.has-cinematic-hero .hero-title-line { display: block; color: #f5f5f2; }
.has-cinematic-hero .hero--cinematic h1 .hero-title-accent { color: #b8bab9; }
.has-cinematic-hero .hero--cinematic .hero-content p {
  max-width: 410px; font-size: 16px; line-height: 1.75; color: #b8bcbd; margin-bottom: 32px;
}
.has-cinematic-hero .hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
.has-cinematic-hero .hero-actions .button { padding: 12px 12px 12px 26px; min-height: 64px; gap: 34px; }
.has-cinematic-hero .hero-actions .icon-arrow {
  width: 40px; height: 40px; flex-basis: 40px; padding: 10px;
  border: 1px solid #ffffff55; border-radius: 50%;
}
.has-cinematic-hero .hero-buyout-link { font-size: 13px; min-height: 48px; border: 0; }
.has-cinematic-hero :is(.button,.header-cta) {
  position: relative; isolation: isolate; overflow: hidden;
  transition: transform .45s var(--motion-ease),background .3s,box-shadow .3s;
}
.has-cinematic-hero .button-red { background: #c93824; box-shadow: none; }
.has-cinematic-hero .hero--cinematic .button-red { background: #c93824; box-shadow: none; }
.has-cinematic-hero :is(.button,.header-cta)::before {
  content: ''; position: absolute; z-index: -1; inset: 0;
  background: #ffffff16; transform: translateY(102%);
  transition: transform .5s var(--motion-ease); border-radius: inherit;
}
.has-cinematic-hero .icon-arrow { transition: transform .4s var(--motion-ease); }
.has-cinematic-hero :is(.button,.header-cta):active { transform: scale(.97); }
.has-cinematic-hero :is(a,button,select):focus-visible { outline: 3px solid #e6472d; outline-offset: 5px; }
.has-cinematic-hero :is(#catalog,#about,#steps,#contacts) { scroll-margin-top: 96px; }
.has-cinematic-hero .main-nav a { position: relative; }
.has-cinematic-hero .main-nav a::after {
  content: ''; position: absolute; height: 1px; background: currentColor;
  left: 0; right: 0; bottom: -7px; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--motion-ease);
}
.has-cinematic-hero .section-top { display: block; }
.has-cinematic-hero .section-top > p { max-width: 550px; margin-top: 24px; }
.has-cinematic-hero .car-card { animation: none; transition: transform .5s var(--motion-ease),box-shadow .5s; }
.has-cinematic-hero .car-image img { transition: transform .8s var(--motion-ease); }
.has-cinematic-hero .reveal.is-visible { animation: none; }
@media (hover:hover) and (pointer:fine) {
  .has-cinematic-hero :is(.button,.header-cta):hover::before { transform: translateY(0); }
  .has-cinematic-hero :is(.button,.header-cta,.card-link):hover .icon-arrow { transform: translate(3px,-3px); }
  .has-cinematic-hero .main-nav a:hover::after { transform: scaleX(1); }
}
@media (prefers-reduced-motion:no-preference) {
  .has-cinematic-hero .hero-cinema-photo img { animation: premiumCarEnter 1.6s var(--motion-ease) both; }
  .has-cinematic-hero .hero-content > :is(.hero-kicker,p,.hero-actions),
  .has-cinematic-hero .hero-title-line { animation: premiumEnter .9s var(--motion-ease) both; }
  .has-cinematic-hero .hero-title-line { animation-delay: .08s; }
  .has-cinematic-hero .hero-title-accent { animation-delay: .17s; }
  .has-cinematic-hero .hero-content > p { animation-delay: .24s; }
  .has-cinematic-hero .hero-content > .hero-actions { animation-delay: .32s; }
  .has-cinematic-hero .reveal.is-visible { animation: premiumEnter .8s var(--motion-ease) both; }
  .has-cinematic-hero .car-card { animation: premiumEnter .65s var(--motion-ease) both; }
  .has-cinematic-hero .steps-grid > :nth-child(2) { animation-delay: .08s; }
  .has-cinematic-hero .steps-grid > :nth-child(3) { animation-delay: .16s; }
  .has-cinematic-hero .mobile-nav.is-open { animation: premiumEnter .35s var(--motion-ease) both; }
}
@keyframes premiumEnter { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes premiumCarEnter { from { opacity: .55; transform: scale(1.045); } to { opacity: 1; transform: scale(1); } }
@media (max-width:1100px) {
  .has-cinematic-hero .hero--cinematic .hero-content { padding-inline: 16px; }
  .has-cinematic-hero .hero-cinema-photo { width: 75%; right: -12%; }
}
@media (max-width:760px) {
  .has-cinematic-hero .header-inner { height: 68px; }
  .has-cinematic-hero .hero--cinematic { min-height: 760px; align-items: flex-start; }
  .has-cinematic-hero .hero--cinematic .hero-content { padding: 48px 10px 330px; }
  .has-cinematic-hero .hero--cinematic h1 { font-size: clamp(29px,7.4vw,54px); margin: 23px 0 20px; line-height: 1.17; }
  .has-cinematic-hero .hero--cinematic .hero-content p { max-width: 370px; font-size: 14px; margin-bottom: 25px; }
  .has-cinematic-hero .hero-cinema-photo { width: 100%; top: 110px; bottom: -200px; right: -10%; }
  .has-cinematic-hero .hero-cinema-photo img { object-position: 50% 60%; }
  .has-cinematic-hero .hero-cinema-shade { background: linear-gradient(180deg,#08090a 0%,#08090aef 28%,#08090a8c 49%,transparent 67%,#08090a 100%); }
  .has-cinematic-hero .hero-actions { gap: 8px; }
  .has-cinematic-hero .hero-actions .button { min-height: 58px; padding: 9px 9px 9px 22px; font-size: 13px; gap: 22px; }
  .has-cinematic-hero .hero-kicker { font-size: 10px; }
}
/* Native scroll timeline: image and copy move on separate depth planes.
   Animate the wrappers so the children's entrance animations stay independent.
   Unsupported browsers keep the complete static hero. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion:no-preference) {
    .has-cinematic-hero .hero--cinematic {
      view-timeline-name: --hero-exit;
      view-timeline-axis: block;
      --hero-parallax-distance: 180px;
      --hero-copy-distance: -65px;
    }
    .has-cinematic-hero .hero-cinema-photo {
      animation: heroDepth linear both;
      animation-timeline: --hero-exit;
      animation-range: exit 0% exit 100%;
    }
    .has-cinematic-hero .hero--cinematic .hero-content {
      animation: heroCopyExit linear both;
      animation-timeline: --hero-exit;
      animation-range: exit 0% exit 100%;
    }
    @media (max-width:760px) {
      .has-cinematic-hero .hero--cinematic {
        --hero-parallax-distance: 85px;
        --hero-copy-distance: -24px;
      }
    }
  }
}
@keyframes heroDepth {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(0,var(--hero-parallax-distance),0) scale(1.04); }
}
@keyframes heroCopyExit {
  0% { transform: translate3d(0,0,0); opacity: 1; }
  35% { opacity: 1; }
  100% { transform: translate3d(0,var(--hero-copy-distance),0); opacity: 0; }
}
@media (prefers-reduced-motion:reduce) {
  .has-cinematic-hero *, .has-cinematic-hero *::before, .has-cinematic-hero *::after { animation: none!important; transition: none!important; scroll-behavior: auto!important; }
}
