﻿/* DMUT Studio theme fixes: mobile, RTL, safe areas, video players */

html {
  overflow-x: clip;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--accent, #6c63ff) 55%, #a8b0c8)
    color-mix(in srgb, var(--bg-soft, #eef1f7) 80%, #fff);
}

body {
  overflow-x: clip;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

* {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--accent, #6c63ff) 55%, #a8b0c8)
    color-mix(in srgb, var(--bg-soft, #eef1f7) 80%, #fff);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: color-mix(in srgb, var(--bg-soft, #eef1f7) 82%, #fff);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent, #6c63ff) 72%, #9aa3c0),
    color-mix(in srgb, var(--accent, #6c63ff) 48%, #b4bbd4)
  );
  border: 2px solid color-mix(in srgb, var(--bg-soft, #eef1f7) 70%, #fff);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    var(--accent, #6c63ff),
    color-mix(in srgb, var(--accent, #6c63ff) 70%, #8b84ff)
  );
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

.site-header {
  top: max(16px, env(safe-area-inset-top));
}

.toast {
  bottom: max(20px, env(safe-area-inset-bottom));
}

.icon-button,
.lang-picker-toggle,
.btn,
.price-tab {
  min-height: 44px;
}

.icon-button,
.lang-picker-toggle {
  min-width: 44px;
}

/* Touch targets for header/nav only ? video controls stay compact */

/* === Unified vertical video players === */
.v-player,
.hero-video-card.v-player,
.profile-media.v-player,
.service-preview.v-player,
.work-video-media.v-player,
.page-hero-media .v-player {
  --vp-w: min(100%, 400px);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: var(--vp-w);
  margin-inline: auto;
  aspect-ratio: 9 / 16;
  height: auto;
  max-height: none;
  border-radius: var(--radius, 12px);
  background: linear-gradient(180deg, #f7f5ff 0%, #eef2ff 100%);
}

.v-player video,
.hero-video-card.v-player video,
.profile-media.v-player video,
.service-preview.v-player video,
.work-video-media.v-player video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: unset;
  object-fit: cover;
  object-position: center 20%;
  border-radius: inherit;
  box-shadow: none;
}

.hero-video-card.v-player {
  max-width: min(100%, 420px);
  border: 8px solid #fff;
  border-radius: 18px;
  background: #111827;
  box-shadow: 0 20px 48px rgba(18, 30, 61, 0.16);
}

/* ???? ??????? ??? ????? ?????? ? ?????????? ??????-????? */
.avatar-profile .profile-media.v-player {
  --avatar-stage-size: 252px;
  width: var(--avatar-stage-size);
  max-width: 100%;
  margin-inline: auto;
  justify-self: center;
  align-self: start;
  border-radius: var(--radius-shell);
  overflow: hidden;
}

.avatar-profile {
  grid-template-columns: minmax(200px, 252px) minmax(0, 1fr);
}

.page-hero-media .v-player {
  width: 100%;
  max-width: min(100%, 400px);
}

.work-video-media.v-player {
  width: 100%;
  max-width: 100%;
}

.page-hero-media {
  display: grid;
  gap: 14px;
  justify-items: stretch;
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-shell, 12px);
  background: var(--surface, rgba(255, 255, 255, 0.88));
  box-shadow: var(--extruded, 0 12px 30px rgba(56, 68, 102, 0.09));
}

.metric-strip--compact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 0;
}

.metric-strip--compact span {
  display: grid;
  gap: 2px;
  padding: 10px 8px;
  border-radius: var(--radius, 12px);
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.metric-strip--compact b {
  color: var(--text);
  font-size: 20px;
}

/* Hero device ? separate from v-player */
.avatar-device[data-video-player] {
  aspect-ratio: unset;
  max-height: none;
  background: var(--bg);
}

.avatar-device .device-screen video {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 13.2;
  max-height: none;
}

/* ?????????? ???????? ? hero-??????? ?? ??????? (?? + ???????) */
.avatar-device .play-button {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  font-size: 14px;
}

.avatar-device .device-caption {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 8px;
  z-index: 3;
  width: calc(100% - 16px);
  max-width: 100%;
  margin: 0;
  padding: 8px 10px;
  gap: 8px;
  grid-template-columns: 30px auto minmax(0, 1fr) auto;
  justify-items: center;
  align-items: center;
  font-size: 11px;
  border-radius: 10px;
  background: rgba(8, 14, 30, 0.78);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.86);
  transform: translateX(-50%);
}

.avatar-device .device-caption strong,
.avatar-device .device-caption em {
  color: #fff;
  font-weight: 500;
}

.avatar-device .device-caption em {
  color: rgba(255, 255, 255, 0.78);
}

.avatar-device .device-caption .video-control-button {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.avatar-device .device-caption .video-progress {
  justify-self: stretch;
  width: 100%;
  background: linear-gradient(90deg, #8b7dff, #56c7be) 0 / var(--progress, 0%) 100% no-repeat, rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.avatar-device .video-control-button {
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  font-size: 11px;
}

.avatar-device .video-progress {
  height: 5px;
}

.avatar-device .video-progress::-webkit-slider-runnable-track {
  height: 5px;
}

.avatar-device .video-progress::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  margin-top: -3px;
  border-width: 2px;
}

/* Controls inside compact players */
.v-player .video-controls,
.v-player .device-caption,
.hero-video-card .video-controls,
.profile-media .video-controls,
.service-preview.v-player .video-controls {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 8px;
  z-index: 3;
  width: calc(100% - 16px);
  max-width: 100%;
  margin: 0;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(8, 14, 30, 0.78);
  backdrop-filter: blur(8px);
  display: grid;
  grid-template-columns: 30px auto minmax(0, 1fr) auto;
  gap: 6px;
  justify-items: center;
  align-items: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.86);
  transform: translateX(-50%);
}

.v-player .video-controls:has(.video-control-button[data-video-toggle]),
.v-player .device-caption:has(.video-control-button[data-video-toggle]) {
  grid-template-columns: 30px 30px auto minmax(0, 1fr) auto;
}

.v-player .video-controls strong,
.v-player .device-caption strong,
.v-player .video-controls em,
.v-player .device-caption em,
.hero-video-card .video-controls strong,
.hero-video-card .video-controls em,
.profile-media .video-controls strong,
.profile-media .video-controls em,
.service-preview.v-player .video-controls strong,
.service-preview.v-player .video-controls em {
  color: #fff;
  font-weight: 500;
}

.v-player .video-controls em,
.v-player .device-caption em,
.hero-video-card .video-controls em,
.profile-media .video-controls em,
.service-preview.v-player .video-controls em {
  color: rgba(255, 255, 255, 0.78);
}

.v-player .video-controls .video-control-button,
.v-player .device-caption .video-control-button,
.hero-video-card .video-controls .video-control-button,
.profile-media .video-controls .video-control-button,
.service-preview.v-player .video-controls .video-control-button {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.v-player .video-controls .video-progress,
.v-player .device-caption .video-progress,
.hero-video-card .video-controls .video-progress,
.profile-media .video-controls .video-progress,
.service-preview.v-player .video-controls .video-progress {
  justify-self: stretch;
  width: 100%;
  background: linear-gradient(90deg, #8b7dff, #56c7be) 0 / var(--progress, 0%) 100% no-repeat, rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.v-player .video-control-button {
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  font-size: 11px;
}

.v-player .video-progress {
  height: 4px;
}

.v-player .video-progress::-webkit-slider-runnable-track {
  height: 4px;
}

.v-player .video-progress::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border-width: 2px;
}

.v-player .video-play-button,
.v-player .play-button,
.hero-video-card .video-play-button,
.profile-media .video-play-button,
.service-preview.v-player .video-play-button,
.profile-media .profile-play,
[data-video-player] .video-play-button,
[data-video-player] .play-button {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  z-index: 4;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  font-size: 13px;
  box-shadow: 0 8px 20px rgba(56, 68, 102, 0.18);
}

.service-card-grid .service-preview.v-player {
  justify-self: center;
  align-self: center;
  width: 100%;
  max-width: min(100%, 264px);
  margin-inline: auto;
  padding: 10px;
  border-radius: var(--radius-shell, 12px);
  background: var(--surface);
  box-shadow: var(--extruded);
}

.service-card-grid .service-preview.v-player video {
  border-radius: 16px;
}

/* Portrait players in example / directions sliders */
.work-video-media.v-player {
  width: 100%;
  max-width: min(100%, 248px);
  margin-inline: auto;
  /* keep height ~same as old 224@9/16 while player is a bit wider */
  aspect-ratio: 9 / 14.5;
}

@media (min-width: 761px) {
  .work-video-media.v-player {
    max-height: 400px;
  }
}

.services-hero-grid .hero-video-card.v-player {
  justify-self: end;
  width: 100%;
  max-width: min(100%, 420px);
}

/* === HERO 3D-???????: ?????? ?????? ?? ???? ????????? (???????, ????, ???????) === */
.hero-composition {
  --hero-phone-w: clamp(262px, 22vw, 300px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: calc(var(--hero-phone-w) * 1.5 + 44px);
  justify-self: center;
}

.hero-composition .depth-art {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(340px, 94%);
  transform: translate(-50%, -50%);
}

.hero-composition .avatar-device,
.hero-composition .avatar-device[data-video-player] {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  width: var(--hero-phone-w);
  max-width: 100%;
  margin: 0;
  animation: heroPhoneFloat 6s ease-in-out infinite;
}

.hero-composition .avatar-device.is-user-straight {
  animation: none;
  transform: perspective(940px) rotateY(0deg) rotateX(0deg) rotateZ(0deg);
}

@keyframes heroPhoneFloat {
  0%,
  100% {
    transform: perspective(940px) rotateY(-9deg) rotateX(4deg) rotateZ(-1deg) translateY(0);
  }
  50% {
    transform: perspective(940px) rotateY(-7deg) rotateX(3deg) rotateZ(-1deg) translateY(-10px);
  }
}

.page-hero-stage {
  display: grid;
  gap: 14px;
  justify-items: center;
  width: 100%;
}

.page-hero-stage .metric-strip--compact {
  width: 100%;
  max-width: 360px;
  padding: 0 4px;
}

@media (min-width: 1061px) {
  .hero-shell {
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.86fr);
    min-height: clamp(440px, 46vw, 560px);
    align-items: center;
  }

  .page-hero-grid,
  .services-hero-grid {
    align-items: center;
  }
}

@media (max-width: 760px) {
  .avatar-profile .profile-media.v-player {
    --avatar-stage-size: min(280px, 78vw);
    border-radius: var(--radius-shell);
    aspect-ratio: 3 / 4;
  }

  .avatar-profile {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero-shell {
    gap: 26px;
  }

  .page-hero-stage {
    gap: 12px;
  }

  .hero-composition {
    --hero-phone-w: min(278px, 77vw);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, auto));
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-height: 0;
    padding-bottom: 8px;
  }

  .hero-composition .depth-art {
    top: 10px;
    width: min(278px, 85%);
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
  }

  .hero-composition .avatar-device,
  .hero-composition .avatar-device[data-video-player] {
    grid-row: 1;
    grid-column: 1 / -1;
    justify-self: center;
    width: var(--hero-phone-w);
    max-width: var(--hero-phone-w);
    margin: 0 auto;
    z-index: 2;
  }

  .hero-composition .avatar-chip {
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    transform: none;
    grid-row: 2;
    justify-self: center;
    min-width: 0;
    min-height: 46px;
    padding: 6px 12px 6px 8px;
    grid-template-columns: 34px auto;
    gap: 8px;
    font-size: 11px;
    white-space: nowrap;
  }

  .hero-composition .avatar-chip i {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .hero-composition .chip-one,
  .hero-composition .chip-two {
    margin: 0;
  }

  .avatar-device .play-button {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    font-size: 14px;
  }

  .avatar-device .device-caption {
    left: 50%;
    right: auto;
    width: calc(100% - 12px);
    padding: 7px 8px;
    gap: 6px;
    grid-template-columns: 28px auto minmax(0, 1fr) auto;
    transform: translateX(-50%);
  }

  .avatar-device .video-control-button {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    font-size: 10px;
  }

  .avatar-device .video-progress {
    height: 4px;
  }

  .v-player:not(.profile-media),
  .hero-video-card.v-player,
  .page-hero-media .v-player {
    --vp-w: min(100%, min(340px, 92vw));
    max-width: var(--vp-w);
  }

  .service-preview.v-player {
    max-width: min(78vw, 300px);
    margin-inline: auto;
  }

  .work-video-media.v-player {
    max-width: min(62vw, 200px);
    margin-inline: auto;
    aspect-ratio: 3 / 4;
  }

  .avatar-profile .profile-media.v-player {
    --avatar-stage-size: min(280px, 78vw);
    width: var(--avatar-stage-size);
    max-width: var(--avatar-stage-size);
    border-radius: var(--radius-shell);
    aspect-ratio: 3 / 4;
  }

  .v-player .video-play-button,
  .v-player .play-button,
  .profile-media .video-play-button,
  .profile-media .profile-play,
  [data-video-player] .video-play-button,
  [data-video-player] .play-button {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    font-size: 12px;
  }

  .v-player .video-control-button {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    font-size: 10px;
  }

  .v-player .video-controls,
  .v-player .device-caption {
    left: 50%;
    right: auto;
    width: calc(100% - 12px);
    padding: 5px 6px;
    gap: 5px;
    grid-template-columns: 28px auto minmax(0, 1fr) auto;
    font-size: 9px;
    transform: translateX(-50%);
  }

  .v-player .video-controls:has(.video-control-button[data-video-toggle]),
  .v-player .device-caption:has(.video-control-button[data-video-toggle]) {
    grid-template-columns: 28px 28px auto minmax(0, 1fr) auto;
  }

  .hero-video-card.v-player {
    border-width: 6px;
    max-width: min(100%, 360px);
  }

  .avatar-showcase {
    gap: 14px;
  }

  .avatar-profile {
    text-align: start;
  }

  .avatar-profile .profile-copy {
    justify-items: start;
    text-align: start;
  }

  .avatar-profile .profile-copy ul {
    text-align: start;
    justify-self: stretch;
  }

  .avatar-profile .profile-copy .btn {
    justify-self: stretch;
    width: 100%;
  }

  .page-hero-media {
    padding: 12px;
  }

  .metric-strip--compact {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .services-hero-grid {
    gap: 20px;
  }

  .service-detail .services-hero-grid {
    gap: 18px;
  }

  .avatar-demo-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .avatar-demo-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    order: 2;
  }

  .avatar-demo-main {
    order: 1;
  }

  .avatar-demo-card {
    grid-template-columns: 88px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .avatar-demo-card img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 18px;
  }

  .pricing-rail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    overflow: visible;
  }

  .price-card {
    width: 100%;
    max-width: none;
  }

  .mini-pricing-grid,
  .service-card-grid,
  .page-card-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .calc-controls,
  .calc-options {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-marquee-track {
    animation-duration: 24s;
  }

  .nav-links,
  .header-socials,
  .header-cta {
    display: none;
  }
}

@media (max-width: 1060px) {
  .pricing-rail {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }

  .price-card {
    scroll-snap-align: start;
    flex: 0 0 min(100%, 320px);
  }
}

html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .site-header,
html[dir="rtl"] .mobile-menu-top,
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .business-path,
html[dir="rtl"] .avatar-demo-action,
html[dir="rtl"] .footer-bottom,
html[dir="rtl"] .breadcrumbs,
html[dir="rtl"] .device-caption,
html[dir="rtl"] .metric-strip,
html[dir="rtl"] .calc-result,
html[dir="rtl"] .contact-form,
html[dir="rtl"] .page-hero-grid {
  direction: rtl;
}

html[dir="rtl"] .logo,
html[dir="rtl"] .nav-links,
html[dir="rtl"] .header-socials,
html[dir="rtl"] .mobile-menu-links,
html[dir="rtl"] .footer-nav,
html[dir="rtl"] .result-list,
html[dir="rtl"] .problem-grid,
html[dir="rtl"] .business-use-grid {
  direction: rtl;
}

html[dir="rtl"] .avatar-option {
  text-align: right;
  direction: rtl;
}

html[dir="rtl"] .faq-content .section-head,
html[dir="rtl"] .niche-pick__body,
html[dir="rtl"] .niche-pick__tag,
html[dir="rtl"] .profile-copy,
html[dir="rtl"] .usage-card,
html[dir="rtl"] .plan-card,
html[dir="rtl"] .mini-pricing-card,
html[dir="rtl"] .contact-upgrade,
html[dir="rtl"] .avatar-showcase,
html[dir="rtl"] .cta-panel,
html[dir="rtl"] .footer-brand,
html[dir="rtl"] .footer-nav,
html[dir="rtl"] .dmut-calc,
html[dir="rtl"] .pricing-plans {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .niche-pick__tag,
html[dir="rtl"] .niche-pick__cta {
  align-self: flex-start;
}

html[dir="rtl"] .niche-pick__cta .fa-arrow-right,
html[dir="rtl"] .btn .fa-arrow-right,
html[dir="rtl"] .link-button .fa-arrow-right,
html[dir="rtl"] .section-cta .fa-arrow-right {
  transform: scaleX(-1);
}

html[dir="rtl"] .avatar-chip.chip-one {
  left: auto;
  right: clamp(-74px, -4vw, -34px);
}

html[dir="rtl"] .avatar-chip.chip-two {
  right: auto;
  left: clamp(-90px, -7vw, -42px);
}

html[dir="rtl"] .avatar-demo-action i,
html[dir="rtl"] .business-path i,
html[dir="rtl"] .footer-action i {
  transform: scaleX(-1);
}

html[dir="rtl"] .section-head,
html[dir="rtl"] .page-hero-copy,
html[dir="rtl"] .hero-copy,
html[dir="rtl"] .contact-panel,
html[dir="rtl"] .modal-dialog,
html[dir="rtl"] .page-card,
html[dir="rtl"] .info-card,
html[dir="rtl"] .step-card,
html[dir="rtl"] .faq-list details {
  text-align: right;
}

html[dir="rtl"] .contact-form label,
html[dir="rtl"] .calc-controls label {
  align-items: flex-end;
}

html[dir="rtl"] .lang-picker-menu {
  left: auto;
  right: 0;
}

html[dir="rtl"] .video-progress {
  direction: ltr;
}

html[dir="rtl"] .hero-marquee {
  direction: ltr; /* keep scroll math stable; Hebrew text stays RTL on chips */
}

html[dir="rtl"] .hero-marquee-track {
  animation-direction: normal;
  direction: ltr;
}

html[dir="rtl"] .hero-marquee-track span {
  direction: rtl;
}

html[dir="rtl"] .site-header {
  padding: 10px 14px 10px 12px;
}

html[dir="rtl"] .mobile-menu-panel {
  text-align: right;
}

html[dir="rtl"] .price-body ul,
html[dir="rtl"] .page-card ul,
html[dir="rtl"] .mini-pricing-card ul {
  padding-inline-start: 1.1rem;
  padding-inline-end: 0;
}

html[dir="rtl"] .breadcrumbs span {
  transform: scaleX(-1);
  display: inline-block;
}

/* Fonts from brief: Rubik = headings/UI, Heebo = body text */
body {
  font-family: "Heebo", system-ui, sans-serif;
}

h1,
h2,
h3,
h4,
.logo,
.section-kicker,
.eyebrow,
.btn,
.nav-links a,
.mobile-menu-links a,
.price-tab span,
.price-tab strong,
.price-label,
.price-badge,
.toast strong,
.faq-list summary,
.footer-nav h2,
.footer-action {
  font-family: "Rubik", "Heebo", system-ui, sans-serif;
}

html:not([dir="rtl"]) .hero-copy h1,
html:not([dir="rtl"]) .page-hero-copy h1 {
  font-weight: 500;
}

.hero-copy h1 {
  font-size: clamp(25px, 3.36vw, 45px);
}

@media (max-width: 760px) {
  .hero-copy h1 {
    font-size: clamp(18px, 4.76vw, 22px);
  }

  .hero .eyebrow {
    order: 0;
    justify-self: center;
    text-align: center;
    margin-inline: auto;
  }
}

h2,
h3,
h4,
.footer-nav h2,
.faq-list summary,
.info-card h3,
.step-card h3,
.business-use-card h3,
.page-card h3,
.contact-card h3,
.mini-pricing-card h3,
.avatar-demo-card h3,
.profile-copy h3,
.price-body h3 {
  font-weight: 500;
}

.btn,
.btn-primary,
.btn-secondary,
.btn-lg,
.footer-action,
.header-cta {
  font-weight: 500;
}

p,
li,
input,
textarea,
select,
label,
.hero-text,
.muted,
.role,
.lang,
.avatar-option span,
.price-body ul,
.contact-form,
.footer-brand p,
.footer-bottom {
  font-family: "Heebo", system-ui, sans-serif;
}

/* Process timeline ? theme cards, large gold numbers */
#how .flow-steps.process-timeline {
  gap: 18px;
}

#how .process-timeline::before {
  top: 3.75rem;
}

#how .process-timeline .step-card.process-step,
#avatars .avatar-option,
#avatars .avatar-profile.card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius-shell);
  backdrop-filter: blur(14px);
  box-shadow: var(--extruded);
  transition: transform 260ms ease-out, box-shadow 260ms ease-out, border-color 260ms ease-out;
}

#how .process-timeline .step-card.process-step:hover,
#avatars .avatar-option:hover,
#avatars .avatar-profile.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--extruded-hover);
}

#avatars .avatar-option.is-active {
  border-color: rgba(108, 99, 255, 0.45);
  box-shadow: var(--extruded-hover), 0 0 0 3px rgba(108, 99, 255, 0.12);
}

#avatars .avatar-option.create > i {
  background: var(--bg);
  box-shadow: var(--inset);
  color: var(--accent);
}

#how .process-timeline .step-card.process-step {
  padding: 28px 22px 26px;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

#how .process-timeline .step-card.process-step .process-step__num {
  display: block;
  width: auto;
  height: auto;
  margin: 0 0 16px;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-size: clamp(3.35rem, 5.4vw, 4.5rem);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.06em;
  background-image: linear-gradient(165deg, #fff4c7 0%, #f5d76e 20%, #d4af37 56%, #b8860b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#how .process-timeline .step-card.process-step h3 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(0.95rem, 1.35vw, 1.05rem);
  line-height: 1.32;
  font-weight: 500;
}

@media (max-width: 760px) {
  #how .process-timeline .step-card.process-step {
    min-height: 0;
    padding: 16px 12px 8px;
    overflow: hidden;
  }

  #how .process-timeline .step-card.process-step .process-step__num {
    font-size: clamp(2.2rem, 10vw, 2.85rem);
    margin-bottom: 8px;
  }

  #how .flow-steps.process-timeline,
  .page-avatars #how .flow-steps.process-timeline {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  #how .process-timeline::before,
  .page-avatars #how .process-timeline::before {
    display: none;
  }

  #how .process-step::before,
  #how .process-step::after {
    content: none !important;
    display: none !important;
  }

  #how .process-timeline .step-card.process-step h3 {
    max-width: none;
    font-size: 0.88rem;
  }

  .niche-pick__body {
    padding: 14px 14px 8px;
    gap: 6px;
  }

  .page-avatars .avatars-formats .usage-card {
    padding: 16px 16px 10px;
  }

  .usage-card,
  .info-card,
  .step-card,
  .format-card,
  .business-use-card,
  .mini-card,
  .page-card {
    padding-bottom: 10px;
  }
}

/* Featured pricing package badge */
.price-card {
  position: relative;
}

.price-card.is-featured {
  overflow: visible;
  contain: none;
  z-index: 3;
  border-color: rgba(124, 92, 255, 0.55);
  box-shadow: 0 18px 40px rgba(124, 92, 255, 0.22), var(--extruded);
}

@media (max-width: 760px) {
  .price-tab {
    min-height: 92px;
    padding-top: 26px;
    padding-bottom: 26px;
  }
}

.price-card .price-badge {
  position: absolute;
  top: -13px;
  inset-inline-end: 20px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c5cff, #b06bff);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(124, 92, 255, 0.35);
}

/* Force all headings to weight 500 (overrides main/blocks-ref) */
h1,
h2,
h3,
h4,
h5,
h6,
.hero-copy h1,
.page-hero-copy h1,
.section-head h2,
.contact-upgrade h2,
.contact-panel h2,
.cta-copy h2,
.section-row h2,
.footer-nav h2,
.faq-list summary,
.info-card h3,
.step-card h3,
.process-step h3,
#how .process-timeline .step-card.process-step h3,
.business-use-card h3,
.page-card h3,
.contact-card h3,
.service-card h3,
.niche-card h3,
.tariff-card h3,
.mini-pricing-card h3,
.price-body h3,
.profile-copy h3,
.work-card h3,
.work-video-card h3,
.avatar-demo-card h3,
.avatar-demo-copy h3,
.avatar-demo-list .avatar-demo-card h3,
.avatar-demo-card[data-casting-option].is-active h3,
.avatar-demo-card:not(.avatar-demo-main) h3,
.role,
.profile-copy .role,
.lang,
.profile-copy .lang,
.avatar-option span,
.avatar-option b,
.profile-copy li {
  font-weight: 500 !important;
}

/* Flat packages grid (mockup) */
.pricing-langnote {
  margin: -12px auto 28px;
  color: var(--muted);
  font-size: 14px;
  text-align: start;
}

.pkg-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  margin: 0 auto 18px;
}

/* Niche packages now show the same kind switcher as homepage */
.pkg-bar--niche {
  display: flex;
}

.pkg-seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--bg, #f4f5f8);
  box-shadow: var(--inset, inset 3px 3px 8px rgba(178, 184, 214, 0.35));
}

.pkg-seg__i,
.pkg-lens__i {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  font: 500 13px/1.2 inherit;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  transform: none;
  min-height: 0;
  min-width: 0;
}

.pkg-seg__i {
  padding: 6px 14px;
}

.pkg-seg__i.is-on,
.pkg-lens__i.is-on {
  background: #fff;
  color: var(--accent);
  box-shadow: var(--extruded-soft, 3px 3px 8px rgba(178, 184, 214, 0.35));
}

.pkg-seg__i:hover,
.pkg-lens__i:hover,
.pkg-seg__i:active,
.pkg-lens__i:active,
.pkg-seg__i:focus-visible,
.pkg-lens__i:focus-visible {
  transform: none;
}

.pkg-vat {
  margin: 12px auto 0;
  color: var(--muted, #6b7280);
  font-size: 12px;
  text-align: center;
}

.plan-sub {
  margin: 0 0 8px;
  color: var(--muted, #6b7280);
  font-size: 13px;
  font-weight: 500;
}

.pkg-lens {
  display: inline-flex;
  align-self: center;
  margin: 0 auto 14px;
  padding: 2px;
  border-radius: 999px;
  background: var(--bg, #f4f5f8);
  box-shadow: var(--inset, inset 2px 2px 6px rgba(178, 184, 214, 0.28));
}

.pkg-lens__i {
  padding: 4px 10px;
  font-size: 12px;
}

.pkg-lens__i[hidden] {
  display: none !important;
}

.pricing-plans--single {
  grid-template-columns: minmax(0, 400px);
  justify-content: center;
}

@media (max-width: 600px) {
  .pkg-seg {
    width: 100%;
    max-width: 360px;
  }

  .pkg-seg__i {
    flex: 1;
  }
}

.pricing-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.pricing-plans .plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: none;
  width: 100%;
  min-height: 0;
  padding: 30px;
  overflow: visible;
  transform: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pricing-plans .plan-card:hover,
.pricing-plans .plan-card.is-active,
.pricing-plans .plan-card.is-featured {
  flex: none;
  transform: translateY(-2px);
  box-shadow: var(--extruded-hover, var(--nsh, 6px 6px 16px rgba(178, 184, 214, 0.55)));
}

.pricing-plans .plan-card.is-featured {
  outline: 2px solid var(--accent);
  background: var(--card-2, #fff);
}

.pricing-plans .price-badge {
  position: absolute;
  top: -12px;
  inset-inline-end: 24px;
  z-index: 2;
}

.pricing-plans .plan-name {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
}

.pricing-plans .plan-price,
.pricing-plans .plan-sub {
  margin: 0 0 2px;
  color: var(--accent);
  font-family: "Rubik", "Heebo", system-ui, sans-serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.pricing-plans .plan-sub {
  margin-bottom: 8px;
  color: var(--muted, #6b7280);
  font-size: 13px;
}

.pricing-plans .plan-card ul {
  display: grid;
  gap: 12px;
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
}

.pricing-plans .plan-card li {
  position: relative;
  padding-inline-end: 24px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.pricing-plans .plan-card li::before {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  top: 6px;
  width: 14px;
  height: 9px;
  /* Physical borders (not logical) so the tick stays a correct ? in RTL/Hebrew too.
     border-inline-start flipped sides in RTL and turned the checkmark crooked. */
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
  background: none;
}

/* Keep the same tick shape even if a global RTL rule tries to mirror pseudo-icons. */
html[dir="rtl"] .pricing-plans .plan-card li::before {
  transform: rotate(-45deg);
}

.pricing-plans .plan-card .btn {
  margin-top: auto;
  width: 100%;
  text-align: center;
}

/* Flat package cards ? never use old accordion rail clip on mobile */
@media (max-width: 760px) {
  .pricing-plans .plan-card,
  .pricing-plans .plan-card.is-active,
  .pricing-plans .plan-card:hover,
  .pricing-plans .plan-card.is-featured {
    display: flex;
    max-height: none !important;
    height: auto;
    overflow: visible;
    padding: 24px 20px;
    contain: none;
  }

  .pricing-plans .plan-card ul {
    margin-bottom: 18px;
  }
}

@media (max-width: 860px) {
  .pricing-plans {
    grid-template-columns: 1fr;
  }
}

/* Cap all text weight at 500 (keep FA icon glyphs at their required weight) */
b,
strong,
th,
dt,
label,
summary,
button:not([class*="fa-"]),
.btn,
.logo,
.eyebrow,
.section-kicker,
.nav-links a,
.mobile-menu-links a,
.price-badge,
.faq-list summary,
.footer-nav h2,
.footer-action,
.avatar-option span,
.avatar-option b,
.role,
.lang,
.plan-name,
.plan-price {
  font-weight: 500 !important;
}

.fa,
.fas,
.far,
.fab,
.fa-solid,
.fa-regular,
.fa-brands,
i[class*="fa-"] {
  font-weight: 900 !important;
}

/* Tighter section spacing on desktop */
@media (min-width: 761px) {
  .section {
    padding: clamp(44px, 5vw, 72px) 0;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 28px;
  }

  .section-head .section-kicker {
    margin-bottom: 0;
  }

  .section-head h2 {
    max-width: 100%;
    margin: 0;
    text-wrap: balance;
  }

  .section-head p:not(.section-kicker):not(.avatar-demo-hint) {
    max-width: 820px;
    margin: 0;
  }
}

/* Niche demo clip cards (estate set etc.) */
.niche-clip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.niche-clip-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--extruded, 6px 6px 16px rgba(178, 184, 214, 0.45), -4px -4px 12px rgba(255, 255, 255, 0.85));
  min-height: 100%;
}

.niche-clip-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.niche-clip-num {
  font-family: Rubik, Heebo, sans-serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  color: color-mix(in srgb, var(--accent) 55%, #b8bed6);
}

.niche-clip-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.niche-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 70%, #fff);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.niche-chip--platform {
  background: color-mix(in srgb, var(--accent) 14%, #fff);
  color: var(--accent);
}

.niche-clip-card > i,
.niche-clip-card > .fa-solid,
.niche-clip-card > .fa-regular {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  color: var(--accent);
  font-size: 16px;
  margin: 4px 0 2px;
}

.niche-clip-name {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
}

.niche-clip-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.niche-clip-tone {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.niche-clip-lead {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
}

.niche-clip-script {
  margin-top: auto;
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg) 78%, #fff);
  padding: 0;
  overflow: hidden;
}

.niche-clip-script summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

.niche-clip-script summary::-webkit-details-marker {
  display: none;
}

.niche-clip-script[open] summary {
  border-bottom: 1px solid rgba(178, 184, 214, 0.35);
}

.niche-clip-script ol {
  margin: 0;
  padding: 12px 14px 14px 32px;
  display: grid;
  gap: 8px;
}

.niche-clip-script li {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text);
}

.niche-note {
  margin-top: 22px;
  max-width: 920px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.niche-talking__note {
  margin-top: 22px;
  max-width: 920px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.niche-talking__note a {
  color: var(--text);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.niche-cta__note {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 1060px) {
  .niche-clip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .niche-clip-grid {
    grid-template-columns: 1fr;
  }
}

/* Work video examples ? slider, 4 visible */
.work-video-slider {
  position: relative;
  display: grid;
  gap: 14px;
}

.work-video-navs {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.work-video-nav {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: var(--accent);
  box-shadow: var(--extruded, 4px 4px 12px rgba(178, 184, 214, 0.45), -3px -3px 10px rgba(255, 255, 255, 0.9));
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.work-video-nav:hover:not(:disabled) {
  transform: translateY(-1px);
}

.work-video-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

html[dir="rtl"] .work-video-nav .fa-chevron-left,
html[dir="rtl"] .work-video-nav .fa-chevron-right {
  transform: scaleX(-1);
}

.work-video-slider .work-video-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.work-video-slider .work-video-rail::-webkit-scrollbar {
  display: none;
}

.work-video-slider .work-video-card {
  flex: 0 0 calc((100% - 48px) / 4);
  width: calc((100% - 48px) / 4);
  max-width: none;
  scroll-snap-align: start;
  min-width: 0;
}

@media (max-width: 1060px) {
  .work-video-slider .work-video-card {
    flex-basis: calc((100% - 16px) / 2);
    width: calc((100% - 16px) / 2);
  }
}

@media (max-width: 760px) {
  .work-video-slider .work-video-card {
    flex-basis: min(58vw, 200px);
    width: min(58vw, 200px);
  }

  .work-video-slider .work-video-media.v-player,
  .work-video-slider .work-video-media--photo,
  .work-video-slider .work-video-media--empty {
    aspect-ratio: 3 / 4;
    max-width: min(100%, 176px);
  }
}

/* === HE homepage fixes (sheet ?3. ??????? ? ????) === */

/* #11 ? process numbers 01?04: recolor gold ? brand accent */
#how .process-timeline .step-card.process-step .process-step__num {
  background-image: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  color: #6c60fc;
}

/* #12 ? badges above titles: glassmorphism pill, light tint (site-wide) */
.section-kicker,
.eyebrow,
.cta-label.section-kicker,
.detail-label.section-kicker,
.business-use-copy > span,
.business-use-card > span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(139, 132, 255, 0.18);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 4px 14px rgba(108, 99, 255, 0.08);
  color: #5b52c7;
  font-size: 12px;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.35;
  opacity: 1;
}

.section-head .section-kicker {
  margin: 0;
}

.section-head h2 {
  margin: 0;
}

.section-head p:not(.section-kicker) {
  margin-top: 0;
  margin-bottom: 0;
}

.eyebrow {
  gap: 10px;
  margin-bottom: 16px;
}

.page-hero-copy > .section-kicker,
.hero-copy > .section-kicker,
.detail-hero .section-kicker,
.cta-label.section-kicker,
.result-panel .section-kicker {
  margin-bottom: 10px;
}

@media (max-width: 760px) {
  .section-head {
    gap: 10px;
    margin-bottom: 18px;
  }

  .section-head .section-kicker,
  .section-head h2,
  .section-head p {
    margin-top: 0;
    margin-bottom: 0;
  }

  .eyebrow {
    margin-bottom: 14px;
  }
}

/* #13 ? Hebrew has no italics: never synthesize a slant */
em,
i:not([class*="fa-"]):not([class*="fa "]),
cite,
blockquote,
.device-caption em,
.v-player .video-controls em,
.role,
.muted {
  font-style: normal;
}

/* Niche directions with photo slots (?3) */
.usage-grid--people {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
}

.usage-card--person,
.usage-grid--people .usage-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  min-height: 0;
}

.usage-card__photo {
  aspect-ratio: 3 / 4;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #efeafc;
}

.usage-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.usage-card__photo--empty {
  background:
    linear-gradient(180deg, #f7f5ff 0%, #ebe6fb 100%);
}

.usage-grid--people .usage-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.usage-grid--people .usage-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.timeline-card--detailed p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.included-layout--full {
  grid-template-columns: 1fr;
}

@media (max-width: 1100px) {
  .usage-grid--people {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .usage-grid--people {
    grid-template-columns: 1fr;
  }
}

/* Sheet 5 ? Hebrew type: Rubik headings, Heebo body */
html[dir="rtl"] {
  --font-heading: "Rubik", "Heebo", "Arial Hebrew", sans-serif;
  --font-body: "Heebo", "Arial Hebrew", Arial, sans-serif;
}

html[dir="rtl"] body {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0;
}

html[dir="rtl"] h1,
html[dir="rtl"] .hero-copy h1,
html[dir="rtl"] .page-hero-copy h1,
html[dir="rtl"] .detail-hero h1 {
  font-family: var(--font-heading);
  font-weight: 800 !important;
  font-size: 52px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

html[dir="rtl"] h2,
html[dir="rtl"] .section-head h2,
html[dir="rtl"] .cta-panel h2 {
  font-family: var(--font-heading);
  font-weight: 700 !important;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

html[dir="rtl"] h3,
html[dir="rtl"] .business-use-card h3,
html[dir="rtl"] .usage-card h3,
html[dir="rtl"] .mini-card h3,
html[dir="rtl"] .work-video-card h3,
html[dir="rtl"] .plan-name,
html[dir="rtl"] .faq-list summary {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: 0;
}

html[dir="rtl"] #how .process-timeline .step-card.process-step .process-step__num,
html[dir="rtl"] .process-step__num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 48px;
  line-height: 1;
  letter-spacing: 0;
}

html[dir="rtl"] .btn {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
}

html[dir="rtl"] p,
html[dir="rtl"] .hero-text {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0;
}

html[dir="rtl"] li,
html[dir="rtl"] .usage-card p,
html[dir="rtl"] .included-list span,
html[dir="rtl"] .plan-card li {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
}

html[dir="rtl"] .section-kicker,
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .cta-label.section-kicker,
html[dir="rtl"] .detail-label.section-kicker {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

@media (max-width: 760px) {
  html[dir="rtl"] body {
    font-size: 17px;
  }

  html[dir="rtl"] h1,
  html[dir="rtl"] .hero-copy h1,
  html[dir="rtl"] .page-hero-copy h1,
  html[dir="rtl"] .detail-hero h1 {
    font-size: 34px;
  }

  html[dir="rtl"] h2,
  html[dir="rtl"] .section-head h2,
  html[dir="rtl"] .cta-panel h2 {
    font-size: 26px;
  }

  html[dir="rtl"] h3,
  html[dir="rtl"] .business-use-card h3,
  html[dir="rtl"] .usage-card h3,
  html[dir="rtl"] .mini-card h3,
  html[dir="rtl"] .work-video-card h3,
  html[dir="rtl"] .plan-name,
  html[dir="rtl"] .faq-list summary {
    font-size: 18px;
  }

  html[dir="rtl"] #how .process-timeline .step-card.process-step .process-step__num,
  html[dir="rtl"] .process-step__num {
    font-size: 36px;
  }

  html[dir="rtl"] p,
  html[dir="rtl"] .hero-text {
    font-size: 17px;
  }

  .section-head p:not(.section-kicker),
  .business-use-card p,
  .result-panel p,
  .faq-list p,
  .contact-panel p,
  html[dir="rtl"] .section-head p:not(.section-kicker),
  html[dir="rtl"] .business-use-card p,
  html[dir="rtl"] .result-panel p,
  html[dir="rtl"] .faq-list p,
  html[dir="rtl"] .contact-panel p {
    font-size: 10px;
    line-height: 1.45;
  }
}

/* ==========================================================================
   Price calculator ? neumorphic, even rhythm, site type scale.
   ========================================================================== */
.dmut-calc {
  --calc-pad: clamp(20px, 3vw, 32px);
  --calc-gap: 16px;
  --calc-opt-pad: 16px 18px;
  --calc-fs: 15px;
  --calc-fs-sm: 13px;
  --calc-fs-title: 24px;
  --calc-ctrl: 20px;
  width: 100%;
  margin-inline: auto;
  padding: var(--calc-pad);
  background: var(--surface-strong);
  border-radius: var(--radius-shell);
  box-shadow: var(--extruded);
  display: grid;
  gap: 20px;
  text-align: start;
  font-size: var(--calc-fs);
  line-height: 1.4;
}

.dmut-calc__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

@media (min-width: 900px) {
  .dmut-calc__grid {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
  }
}

.dmut-calc__main {
  display: grid;
  gap: 16px;
  min-width: 0;
  align-content: start;
}

.dmut-calc__head {
  display: grid;
  gap: 10px;
}

.dmut-calc__title {
  margin: 0;
  font-family: "Rubik", "Heebo", sans-serif;
  font-size: var(--calc-fs-title);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.dmut-calc__progress {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dmut-calc__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--muted) 28%, transparent);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.dmut-calc__dot.is-done {
  background: color-mix(in srgb, var(--accent) 55%, transparent);
}

.dmut-calc__dot.is-current {
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}

.dmut-calc__count {
  margin-inline-start: auto;
  font-family: "Rubik", "Heebo", sans-serif;
  font-weight: 600;
  font-size: var(--calc-fs-sm);
  color: var(--muted);
}

.dmut-calc__viewport {
  position: relative;
  min-height: 260px;
}

@media (max-width: 640px) {
  .dmut-calc__viewport {
    min-height: 0;
  }
}

.dmut-calc__step {
  margin: 0;
  padding: 0;
  border: 0;
  display: none;
  gap: 14px;
}

.dmut-calc__step.is-active {
  display: grid;
}

@keyframes dmutCalcIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes dmutCalcInBack {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

.dmut-calc__step.is-enter-next { animation: dmutCalcIn 0.28s ease; }
.dmut-calc__step.is-enter-back { animation: dmutCalcInBack 0.28s ease; }

.dmut-calc__step.is-active .dmut-calc__options > *,
.dmut-calc__step.is-active > .dmut-calc__group {
  animation: dmutCalcIn 0.3s ease backwards;
}

.dmut-calc__step.is-active .dmut-calc__options > *:nth-child(1) { animation-delay: 0.02s; }
.dmut-calc__step.is-active .dmut-calc__options > *:nth-child(2) { animation-delay: 0.05s; }
.dmut-calc__step.is-active .dmut-calc__options > *:nth-child(3) { animation-delay: 0.08s; }
.dmut-calc__step.is-active .dmut-calc__options > *:nth-child(4) { animation-delay: 0.11s; }
.dmut-calc__step.is-active .dmut-calc__options > *:nth-child(5) { animation-delay: 0.14s; }
.dmut-calc__step.is-active .dmut-calc__options > *:nth-child(6) { animation-delay: 0.17s; }
.dmut-calc__step.is-active .dmut-calc__options > *:nth-child(7) { animation-delay: 0.2s; }
.dmut-calc__step.is-active .dmut-calc__options > *:nth-child(8) { animation-delay: 0.23s; }
.dmut-calc__step.is-active .dmut-calc__options > *:nth-child(9) { animation-delay: 0.26s; }

@media (prefers-reduced-motion: reduce) {
  .dmut-calc__step,
  .dmut-calc__step.is-active .dmut-calc__options > *,
  .dmut-calc__step.is-active > .dmut-calc__group {
    animation: none !important;
  }
}

.dmut-calc__step-title {
  padding: 0;
  margin: 0 0 12px;
  font-family: "Rubik", "Heebo", sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  color: var(--accent);
}

.dmut-calc__group-label {
  margin: 14px 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #687482);
}

.dmut-calc__group-label:first-child {
  margin-top: 0;
}

.dmut-calc__options {
  display: grid;
  gap: 10px;
}

.dmut-calc__opt {
  position: relative;
  display: grid;
  grid-template-columns: var(--calc-ctrl) minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
  min-height: 60px;
  padding: var(--calc-opt-pad);
  border-radius: var(--radius-control);
  background: var(--bg-soft);
  box-shadow: var(--extruded-soft);
  cursor: pointer;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.dmut-calc__opt:hover {
  box-shadow: var(--extruded);
}

.dmut-calc__opt input[type="radio"],
.dmut-calc__opt input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: var(--calc-ctrl);
  height: var(--calc-ctrl);
  min-width: var(--calc-ctrl);
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bg-soft);
  box-shadow: var(--inset);
  display: grid;
  place-content: center;
  cursor: pointer;
}

.dmut-calc__opt input[type="checkbox"] {
  border-radius: 6px;
}

.dmut-calc__opt input[type="radio"]::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  transform: scale(0);
  transition: transform 0.16s ease;
}

.dmut-calc__opt input[type="checkbox"]::after {
  content: "";
  width: 5px;
  height: 9px;
  margin-top: -1px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.16s ease;
}

.dmut-calc__opt input:checked {
  background: var(--accent);
  box-shadow: 0 2px 6px color-mix(in srgb, var(--accent) 28%, transparent);
}

.dmut-calc__opt input[type="radio"]:checked::after {
  transform: scale(1);
}

.dmut-calc__opt input[type="checkbox"]:checked::after {
  transform: rotate(45deg) scale(1);
}

.dmut-calc__opt input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.dmut-calc__opt:has(input:checked) {
  background: color-mix(in srgb, var(--accent) 9%, var(--bg-soft));
  box-shadow: var(--inset);
}

.dmut-calc__opt-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.dmut-calc__opt-label {
  min-width: 0;
  font-size: var(--calc-fs);
  font-weight: 600;
  line-height: 1.4;
}

.dmut-calc__opt-price {
  justify-self: end;
  white-space: nowrap;
  font-family: "Rubik", "Heebo", sans-serif;
  font-size: var(--calc-fs);
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.dmut-calc__opt--qty {
  grid-template-columns: minmax(0, 1fr) auto;
  cursor: default;
}

.dmut-calc__opt--qty:hover {
  box-shadow: var(--extruded-soft);
}

.dmut-calc__opt--qty:has(.dmut-calc__qty:not([value="0"])) {
  background: color-mix(in srgb, var(--accent) 9%, var(--bg-soft));
  box-shadow: var(--inset);
}

.dmut-calc__stepper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.dmut-calc__step-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface-strong);
  box-shadow: var(--extruded-soft);
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.dmut-calc__step-btn:hover {
  box-shadow: var(--extruded);
}

.dmut-calc__step-btn:active {
  box-shadow: var(--inset);
}

.dmut-calc__qty {
  width: 44px;
  height: 36px;
  min-height: 0 !important;
  padding: 0 !important;
  text-align: center;
  border: 0;
  border-radius: 10px;
  background: var(--bg-soft);
  box-shadow: var(--inset);
  color: var(--text);
  font-family: "Rubik", "Heebo", sans-serif;
  font-size: var(--calc-fs);
  font-weight: 700;
  -moz-appearance: textfield;
}

.dmut-calc__qty::-webkit-outer-spin-button,
.dmut-calc__qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.dmut-calc__opt-note {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-weight: 500;
  font-size: var(--calc-fs-sm);
  line-height: 1.35;
  color: var(--muted);
}

.dmut-calc__lang-note {
  margin: 4px 2px 0;
  color: var(--muted);
  font-size: var(--calc-fs-sm);
  line-height: 1.4;
}

.dmut-calc__group {
  border-radius: var(--radius-control);
  background: var(--bg-soft);
  box-shadow: var(--extruded-soft);
  padding: 4px 8px 8px;
}

.dmut-calc__group[hidden],
.dmut-calc__opt[hidden] {
  display: none !important;
}

.dmut-calc__group + .dmut-calc__group {
  margin-top: 10px;
}

.dmut-calc__group-title {
  list-style: none;
  cursor: pointer;
  padding: 14px 10px;
  font-family: "Rubik", "Heebo", sans-serif;
  font-weight: 700;
  font-size: var(--calc-fs);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dmut-calc__group-title::-webkit-details-marker {
  display: none;
}

.dmut-calc__group-title::after {
  content: "+";
  font-size: 20px;
  line-height: 1;
  color: var(--accent);
}

.dmut-calc__group[open] > .dmut-calc__group-title::after {
  content: "?";
}

.dmut-calc__group .dmut-calc__options {
  padding: 0 8px 10px;
}

.dmut-calc__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.dmut-calc__nav {
  display: flex;
  gap: 10px;
}

.dmut-calc__btn {
  border: 0;
  cursor: pointer;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: "Rubik", "Heebo", sans-serif;
  font-weight: 700;
  font-size: var(--calc-fs);
  line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.dmut-calc__btn[hidden] {
  display: none;
}

.dmut-calc__btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 36%, transparent);
}

.dmut-calc__btn--primary:hover {
  transform: translateY(-1px);
}

.dmut-calc__btn--ghost {
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: var(--extruded-soft);
}

.dmut-calc__btn:active {
  transform: none;
}

.dmut-calc__summary {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px;
  background: var(--bg-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--inset);
}

@media (min-width: 900px) {
  .dmut-calc__summary {
    position: sticky;
    top: 96px;
  }
}

.dmut-calc__summary-title {
  font-family: "Rubik", "Heebo", sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 2px;
}

.dmut-calc__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--calc-fs);
}

.dmut-calc__row[hidden] {
  display: none !important;
}

.dmut-calc__row b {
  font-family: "Rubik", "Heebo", sans-serif;
  font-variant-numeric: tabular-nums;
}

.dmut-calc__row--muted {
  color: var(--muted);
  font-size: var(--calc-fs-sm);
}

.dmut-calc__row--total {
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--muted) 22%, transparent);
  font-size: 16px;
  font-weight: 700;
}

.dmut-calc__row--total b {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}

.dmut-calc__row--monthly {
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--muted) 22%, transparent);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  gap: 8px;
}

.dmut-calc__row--monthly b {
  font-size: 17px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.15;
  white-space: nowrap;
}

/* Subscription-only: monthly is the main line ? no top rule. */
.dmut-calc__summary:not(:has([data-calc-once]:not([hidden]))) .dmut-calc__row--monthly {
  padding-top: 0;
  border-top: 0;
}

.dmut-calc__cta {
  width: 100%;
  margin-top: 6px;
  min-height: 48px;
  justify-content: center;
}

@media (max-width: 640px) {
  .dmut-calc {
    --calc-opt-pad: 14px 14px;
    padding: 18px;
    border-radius: 24px;
  }

  .dmut-calc__opt {
    min-height: 56px;
  }

  .dmut-calc__opt-body {
    grid-template-columns: 1fr;
    gap: 4px;
    align-items: start;
  }

  .dmut-calc__opt-price {
    justify-self: start;
    font-size: var(--calc-fs-sm);
  }

  .dmut-calc__opt--qty {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dmut-calc__stepper {
    justify-self: start;
  }

  .dmut-calc__footer,
  .dmut-calc__nav {
    width: 100%;
  }

  .dmut-calc__btn {
    flex: 1 1 auto;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dmut-calc__btn,
  .dmut-calc__dot,
  .dmut-calc__opt {
    transition: none !important;
  }
}

/* ==========================================================================
   Visual fixes batch (??????? + ????).
   ========================================================================== */

/* --- 3. Homepage hero: chips + desktop padding. */
@media (min-width: 761px) {
  body.home .hero.section {
    padding-top: 0;
    padding-bottom: 0;
  }

  body.home .hero-composition .chip-one {
    top: 42%;
  }
}

body.home .hero-composition .chip-two {
  top: calc(32px + min(360px, 78%) * 1.25);
  bottom: auto;
  left: clamp(-200px, -11vw, -110px);
}

html[dir="rtl"] body.home .hero-composition .chip-two {
  left: auto;
  right: clamp(-120px, -7vw, -60px);
}

@media (max-width: 760px) {
  body.home .hero-composition .chip-two {
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
  }

  body.home .hero-composition .chip-one {
    top: auto;
  }
}

/* --- 2. "???????, ????? ???????? ??????" ? auto-scrolling marquee. --- */
.mini-marquee {
  position: relative;
  overflow: hidden;
  margin-inline: auto;
  max-width: var(--max, 1240px);
  padding-block: 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.mini-marquee__track {
  display: flex;
  gap: 18px;
  width: max-content;
  will-change: transform;
  animation: dmutMarquee 46s linear infinite;
}

.mini-marquee:hover .mini-marquee__track,
.mini-marquee:focus-within .mini-marquee__track {
  animation-play-state: paused;
}

.mini-marquee .mini-card {
  flex: 0 0 auto;
  width: clamp(240px, 26vw, 320px);
  margin: 0;
}

@keyframes dmutMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

html[dir="rtl"] .mini-marquee__track {
  animation-name: dmutMarqueeRtl;
}

@keyframes dmutMarqueeRtl {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); }
}

@media (prefers-reduced-motion: reduce) {
  .mini-marquee__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* --- 1. Directions slider: non-video fallbacks inside a work-video-card.
       Placeholders keep the same portrait shape as the video cards. --- */
.work-video-media--photo,
.work-video-media--empty {
  aspect-ratio: 3 / 4;
  width: 100%;
  overflow: hidden;
  border-radius: calc(var(--radius, 12px) - 2px);
}

.work-video-media--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-video-media--empty {
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-soft));
}

.work-video-card:not(:has(.work-video-media)) h3 {
  margin-top: 4px;
}

/* --- 4. Homepage hero: bot launch button lives INSIDE the phone
       (.avatar-device), rendered right after the screen ? one whole block. --- */
.avatar-device .hero-bot-launch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: calc(100% - 24px);
  margin: 12px 12px 14px;
  animation: dmutHeroBotPulse 2.6s ease-in-out infinite;
}

.bot-icon-3d {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background:
    linear-gradient(160deg, #ffffff 0%, #d9d5ff 38%, #8b84ff 72%, #5a52e0 100%);
  color: #2c268c;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 -2px 4px rgba(60, 50, 160, 0.28) inset,
    0 3px 0 #4a42c8,
    0 6px 14px rgba(60, 50, 160, 0.35);
  transform: perspective(90px) rotateX(18deg) translateY(-1px);
  transform-style: preserve-3d;
}

.bot-icon-3d svg {
  display: block;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.45));
  transform: translateZ(6px);
}

.hero-bot-launch:hover .bot-icon-3d,
.dmut-bot__toggle:hover .bot-icon-3d {
  transform: perspective(90px) rotateX(12deg) translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 -2px 4px rgba(60, 50, 160, 0.22) inset,
    0 4px 0 #4a42c8,
    0 8px 18px rgba(60, 50, 160, 0.4);
}

.dmut-bot__toggle .bot-icon-3d {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

/* The device is absolute; it grows taller with the button inside, so reserve
   room to keep it off the next section. */
body.home .hero-composition {
  min-height: 780px;
}

@media (max-width: 980px) {
  body.home .hero-composition {
    min-height: 560px;
  }
}

@keyframes dmutHeroBotPulse {
  0%, 100% { box-shadow: 0 12px 26px color-mix(in srgb, var(--accent) 26%, transparent); }
  50%      { box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 42%, transparent); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bot-launch { animation: none; }
}

/* --- 5. Product pages: examples gallery (Sites / Bots) --- */
.product-examples .examples-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.example-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-shell, 24px);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: var(--extruded);
  transition: transform 260ms ease-out, box-shadow 260ms ease-out;
}

.example-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--extruded-hover);
}

.example-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-soft, #eef1f7));
}

.example-card__media > img,
.example-card__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.example-card__shot {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.example-card__loupe,
.project-slide__loupe {
  position: absolute;
  inset-inline-end: 10px;
  bottom: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent, #6853ff);
  pointer-events: none;
}

.example-card__media .video-frame {
  width: 100%;
  height: 100%;
}

.example-card__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 34px;
  color: color-mix(in srgb, var(--accent) 42%, transparent);
}

.example-card__tag {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: color-mix(in srgb, var(--accent) 88%, #000 4%);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 30%, transparent);
}

.example-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 20px 22px 22px;
}

.example-card__body h3 {
  margin: 0;
  font-size: 18px;
}

.example-card__body p {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.example-card__link {
  align-self: flex-start;
  margin-top: 6px;
  gap: 8px;
}

.example-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.example-card__project {
  gap: 8px;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 22, 36, 0.52);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.project-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.project-modal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(860px, 100%);
  max-height: min(86vh, 820px);
  overflow: hidden;
  padding: 0;
  border-radius: var(--radius-shell, 24px);
}

.project-modal__close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 2;
}

.project-modal__dialog > h2 {
  flex: 0 0 auto;
  margin: 0;
  padding: 22px 52px 12px 24px;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
}

html[dir="rtl"] .project-modal__dialog > h2 {
  padding: 22px 24px 12px 52px;
}

.project-modal__slides {
  display: grid;
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 4px 24px 28px;
  overscroll-behavior: contain;
}

.project-slide {
  display: grid;
  direction: ltr;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg-soft, #eef1f7) 72%, #fff);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--extruded-soft, 3px 3px 8px rgba(178, 184, 214, 0.22));
}

.project-slide:nth-child(even) {
  grid-template-columns: 1fr 1fr;
}

.project-slide:nth-child(even) .project-slide__media {
  order: 2;
}

.project-slide:nth-child(even) .project-slide__copy {
  order: 1;
}

.project-slide__media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 16 / 10;
  max-height: 220px;
  background: #fff;
  border: 1px solid rgba(178, 184, 214, 0.28);
  cursor: zoom-in;
}

.project-slide__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.project-slide__loupe {
  position: absolute;
  inset-inline-end: 10px;
  bottom: 10px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent, #6853ff);
  pointer-events: none;
  box-shadow: 0 6px 16px rgba(56, 68, 102, 0.16);
}

.project-slide__loupe i {
  font-size: 14px;
}

.project-zoom {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(12, 16, 28, 0.82);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.project-zoom.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.project-zoom__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 56px 24px 24px;
  box-sizing: border-box;
}

.project-zoom img {
  display: block;
  max-width: min(92vw, 1100px);
  max-height: min(82vh, 100%);
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
  background: #fff;
}

.project-zoom__close {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  z-index: 2;
}

.project-slide__copy {
  min-width: 0;
  direction: ltr;
  text-align: start;
}

html[dir="rtl"] .project-slide__copy {
  direction: rtl;
  text-align: right;
}

.project-slide h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.3;
}

.project-slide p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .project-modal {
    padding: 12px;
  }

  .project-modal__dialog > h2,
  html[dir="rtl"] .project-modal__dialog > h2 {
    padding: 18px 48px 10px 16px;
  }

  html[dir="rtl"] .project-modal__dialog > h2 {
    padding: 18px 16px 10px 48px;
  }

  .project-modal__slides {
    padding: 0 16px 20px;
    gap: 12px;
  }

  .project-slide,
  .project-slide:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
    margin: 0;
  }

  .project-slide:nth-child(even) .project-slide__media,
  .project-slide:nth-child(even) .project-slide__copy {
    order: initial;
  }

  .project-slide__media {
    max-height: 200px;
    width: 100%;
  }

  .project-zoom__stage {
    padding: 52px 12px 12px;
  }
}

@media (max-width: 640px) {
  .project-modal__dialog {
    max-height: 92vh;
  }
}

[dir="rtl"] .example-card__tag {
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 30%, transparent);
}

@media (max-width: 980px) {
  .product-examples .examples-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .product-examples .examples-grid {
    grid-template-columns: 1fr;
  }
}

/* --- 6. Product hero: note becomes a tilted image (like the phone player). --- */
.hero-note-media {
  margin: 0;
  align-self: center;
  perspective: 1000px;
}

.hero-note-media__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-shell, 24px);
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-soft, #eef1f7));
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 34px 70px rgba(102, 116, 138, 0.26), 0 0 0 7px rgba(108, 99, 255, 0.06);
  transform: perspective(920px) rotateY(-11deg) rotateX(5deg) rotateZ(-1deg);
  transition: transform 420ms ease-out, box-shadow 420ms ease-out;
}

.hero-note-media:hover .hero-note-media__frame,
.hero-note-media:focus-within .hero-note-media__frame {
  transform: perspective(920px) rotateY(0deg) rotateX(0deg) rotateZ(0deg) translateY(-2px) scale(1.01);
}

.hero-note-media__frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-note-media__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 46px;
  color: color-mix(in srgb, var(--accent) 40%, transparent);
}

html[dir="rtl"] .hero-note-media__frame {
  transform: perspective(920px) rotateY(11deg) rotateX(5deg) rotateZ(1deg);
}

html[dir="rtl"] .hero-note-media:hover .hero-note-media__frame,
html[dir="rtl"] .hero-note-media:focus-within .hero-note-media__frame {
  transform: perspective(920px) rotateY(0deg) rotateX(0deg) rotateZ(0deg) translateY(-2px) scale(1.01);
}

@media (max-width: 900px) {
  .hero-note-media__frame {
    transform: none;
    aspect-ratio: 16 / 10;
  }
}

/* --- 7. Product "types" block auto-scrolls as a card marquee. --- */
.mini-marquee--cards .info-card {
  flex: 0 0 auto;
  width: clamp(260px, 27vw, 340px);
  margin: 0;
}

/* --- 8. "??? ?? ????????": big cards (like the info blocks above). --- */
.steps-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.step-big {
  position: relative;
}

.step-big__num {
  position: absolute;
  top: 22px;
  inset-inline-end: 26px;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 800;
  line-height: 1;
  color: color-mix(in srgb, var(--accent) 20%, transparent);
  pointer-events: none;
}

@media (max-width: 720px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.hero-marquee-track .ticker-copy {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.footer-bottom {
  flex-wrap: wrap;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
}

.footer-legal a {
  color: inherit;
  text-decoration: none;
  opacity: 0.82;
}

.footer-legal a:hover {
  opacity: 1;
  text-decoration: underline;
}

.form-consent {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #687482;
  max-width: 100%;
  white-space: nowrap;
}

.form-consent a {
  display: inline;
  color: inherit;
  text-decoration: underline;
}

@media (max-width: 760px) {
  .form-consent {
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 11px;
    line-height: 1.4;
  }
}

.legal-page {
  max-width: 760px;
}

.legal-page p {
  margin: 0 0 1em;
}

.dmut-calc__request {
  display: inline-flex;
  align-items: center;
  margin: 10px 2px 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent, #4b3fd1);
  font: 600 14px/1.4 inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.dmut-calc__request:hover {
  color: var(--text);
}

.video-prices__group {
  margin-bottom: 36px;
}

.video-prices__group-title {
  margin: 0 0 16px;
  font-size: 1.15rem;
  font-weight: 700 !important;
}

.video-prices__grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.video-prices__per {
  font-size: 0.7em;
  font-weight: 500;
  color: var(--muted);
}

.video-prices__terms {
  max-width: 760px;
}

.video-prices__terms ul {
  margin: 0;
  padding-inline-start: 1.2em;
  display: grid;
  gap: 8px;
  color: var(--muted);
  line-height: 1.45;
}

/* ==========================================================================
   /ai-avatars/ ? niche pick cards + formats + process.
   ========================================================================== */
.niche-pick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.niche-pick {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--surface, rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius-shell, 18px);
  box-shadow: var(--extruded, var(--soft-shadow));
  transition: transform 260ms ease-out, box-shadow 260ms ease-out, border-color 260ms ease-out;
}

.niche-pick:hover {
  transform: translateY(-4px);
  border-color: rgba(108, 99, 255, 0.35);
  box-shadow: var(--extruded-hover, var(--soft-shadow));
}

.niche-pick__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #eceaf8;
}

.niche-pick__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 360ms ease-out;
}

.niche-pick:hover .niche-pick__media img {
  transform: scale(1.04);
}

.niche-pick__play {
  position: absolute;
  inset-inline-end: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(104, 83, 255, 0.94);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 10px 24px rgba(56, 68, 102, 0.22);
}

.niche-pick__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 18px 18px 16px;
}

.niche-pick__tag {
  display: inline-flex;
  align-self: flex-start;
  max-width: 100%;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(108, 99, 255, 0.1);
  color: var(--accent, #6c63ff);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.niche-pick__body h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.25;
}

.niche-pick__name {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent, #6c63ff);
}

.niche-pick__text {
  margin: 0 0 4px;
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.niche-pick__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: auto;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--accent, #6c63ff);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 8px 18px rgba(108, 99, 255, 0.28);
  transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.niche-pick:hover .niche-pick__cta {
  background: #5a52e8;
  box-shadow: 0 10px 22px rgba(108, 99, 255, 0.36);
}

.niche-pick__cta i,
.niche-pick__cta svg {
  transition: transform 200ms ease;
}

html[dir="ltr"] .niche-pick:hover .niche-pick__cta i,
html[dir="ltr"] .niche-pick:hover .niche-pick__cta svg {
  transform: translateX(3px);
}

html[dir="rtl"] .niche-pick:hover .niche-pick__cta i,
html[dir="rtl"] .niche-pick:hover .niche-pick__cta svg {
  transform: translateX(-3px);
}

.page-avatars .avatars-formats .usage-card {
  padding: 22px 20px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius-shell, 18px);
  background: var(--surface, rgba(255, 255, 255, 0.92));
  box-shadow: var(--extruded, var(--soft-shadow));
  transition: transform 240ms ease-out, box-shadow 240ms ease-out;
}

.page-avatars .avatars-formats .usage-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--extruded-hover, var(--soft-shadow));
}

.page-avatars .avatars-formats .usage-card i {
  font-size: 22px;
  margin-bottom: 12px;
}

.page-avatars .avatars-formats .usage-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.page-avatars .avatars-formats .usage-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 500;
}

/* 4 steps on avatars page (same as homepage). */
.page-avatars #how .flow-steps.process-timeline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.page-avatars #how .process-timeline .step-card.process-step {
  min-height: 148px;
  padding: 22px 10px 18px;
}

.page-avatars #how .process-timeline .step-card.process-step .process-step__num {
  font-size: clamp(2.4rem, 3.6vw, 3.4rem);
  margin-bottom: 12px;
}

.page-avatars #how .process-timeline .step-card.process-step h3 {
  max-width: none;
  font-size: clamp(0.82rem, 1.05vw, 0.95rem);
  line-height: 1.28;
}

@media (max-width: 1100px) {
  .niche-pick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .page-avatars #how .flow-steps.process-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-avatars #how .process-timeline::before {
    display: none;
  }
}

@media (max-width: 760px) {
  .page-avatars #how .flow-steps.process-timeline {
    grid-template-columns: 1fr 1fr;
  }

  .page-avatars #how .process-timeline .step-card.process-step {
    padding: 16px 10px 8px;
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .niche-pick-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-inline: auto;
  }

  .niche-pick__media {
    aspect-ratio: 4 / 5;
  }
}

/* Mobile #avatars: 2?2 niche grid, no horizontal carousel. */
@media (max-width: 760px) {
  #avatars .avatar-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    overflow: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
  }

  #avatars .avatar-option {
    flex: none;
    width: auto;
    min-height: 0;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 10px;
    padding: 10px;
    align-items: center;
  }

  #avatars .avatar-option img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  #avatars .avatar-option > i {
    display: none;
  }

  #avatars .avatar-option span {
    font-size: 11px;
    line-height: 1.3;
  }

  #avatars .avatar-option b {
    font-size: 13px;
    margin-bottom: 2px;
  }

  #avatars .avatar-option.is-active {
    border-color: var(--accent, #6c63ff);
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.16);
  }
}


/* Niche pages: same soft-surface cards as homepage (not flat white) */
.niche-page .section {
  padding: clamp(40px, 5vw, 72px) 0;
}

.niche-page .hero.detail-hero {
  padding-bottom: clamp(28px, 4vw, 48px);
}

.niche-page .benefit-strip article,
.niche-page .mini-card,
.niche-page .work-video-card,
.niche-page .tariff-card,
.niche-page .niche-clip-card {
  border-radius: var(--radius-card, 24px);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(14px);
  box-shadow: var(--extruded);
}

.niche-page .tariff-card.is-popular {
  border-color: color-mix(in srgb, var(--accent) 55%, #fff);
  box-shadow: var(--extruded), 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}

.niche-page .tariff-card em {
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  border-radius: 12px;
}

.niche-page .work-video-nav {
  background: var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.46);
  box-shadow: var(--extruded-soft);
}

/* Cinema examples — soft elevated band + auto aurora background */
.niche-page .niche-cinema {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(48px, 6vw, 88px) 0;
  background: color-mix(in srgb, var(--surface-strong) 35%, transparent);
  border-block: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 22px 50px rgba(102, 116, 138, 0.1);
}

.niche-page .niche-cinema > *:not(.niche-cinema__aurora) {
  position: relative;
  z-index: 1;
}

.niche-page .niche-cinema__aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.niche-page .niche-cinema__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(36px);
  will-change: transform, opacity;
}

.niche-page .niche-cinema__blob--a {
  width: min(72vw, 680px);
  height: min(72vw, 680px);
  top: -22%;
  left: -12%;
  background: radial-gradient(circle, rgba(247, 201, 111, 0.95) 0%, rgba(247, 201, 111, 0.35) 42%, transparent 72%);
  animation: nicheCinemaBlobA 8s ease-in-out infinite;
}

.niche-page .niche-cinema__blob--b {
  width: min(76vw, 720px);
  height: min(76vw, 720px);
  top: -4%;
  right: -18%;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.88) 0%, rgba(139, 132, 255, 0.4) 40%, transparent 72%);
  animation: nicheCinemaBlobB 10s ease-in-out infinite;
}

.niche-page .niche-cinema__blob--c {
  width: min(80vw, 760px);
  height: min(80vw, 760px);
  bottom: -28%;
  left: 12%;
  background: radial-gradient(circle, rgba(56, 178, 172, 0.9) 0%, rgba(56, 178, 172, 0.38) 42%, transparent 72%);
  animation: nicheCinemaBlobC 9s ease-in-out infinite;
}

@keyframes nicheCinemaBlobA {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.75;
  }
  33% {
    transform: translate(42%, 28%) scale(1.35);
    opacity: 1;
  }
  66% {
    transform: translate(18%, 58%) scale(0.85);
    opacity: 0.7;
  }
}

@keyframes nicheCinemaBlobB {
  0%,
  100% {
    transform: translate(0, 0) scale(1.05);
    opacity: 0.7;
  }
  40% {
    transform: translate(-48%, 36%) scale(1.4);
    opacity: 1;
  }
  70% {
    transform: translate(-18%, 62%) scale(0.88);
    opacity: 0.75;
  }
}

@keyframes nicheCinemaBlobC {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.75;
  }
  35% {
    transform: translate(38%, -42%) scale(1.38);
    opacity: 1;
  }
  65% {
    transform: translate(-32%, -18%) scale(1.12);
    opacity: 0.8;
  }
}

@media (prefers-reduced-motion: reduce) {
  .niche-page .niche-cinema__blob {
    animation: none !important;
    opacity: 0.55;
  }
}

.niche-page .niche-cinema .section-kicker {
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 32%, #fff);
  color: color-mix(in srgb, var(--accent) 58%, var(--text));
}

.niche-page .niche-cinema__head {
  margin-bottom: 4px;
}

.niche-page .niche-cinema__head h2 {
  /* keep site h2 scale — no giant hero title */
  max-width: 22ch;
}

.niche-page .niche-cinema__stage {
  padding: 14px;
  border-radius: var(--radius-card, 24px);
  background: var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    var(--extruded),
    0 0 0 2px color-mix(in srgb, var(--accent) 10%, transparent);
}

/* Cinema cards — same site scale as other sliders, only accent finish */
.niche-page .work-video-slider--cinema .work-video-card--cinema {
  flex: 0 0 calc((100% - 48px) / 4);
  width: calc((100% - 48px) / 4);
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-card, 24px);
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, #fff);
  box-shadow: var(--extruded), 0 0 0 2px color-mix(in srgb, var(--accent) 8%, transparent);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.niche-page .work-video-slider--cinema .work-video-card--cinema:hover {
  transform: translateY(-2px);
  box-shadow: var(--extruded-hover), 0 0 0 2px color-mix(in srgb, var(--accent) 12%, transparent);
}

.niche-page .work-video-slider--cinema .work-video-card--cinema .work-video-media,
.niche-page .work-video-slider--cinema .work-video-card--cinema .work-video-media.v-player,
.niche-page .work-video-slider--cinema .work-video-card--cinema .work-video-media--photo,
.niche-page .work-video-slider--cinema .work-video-card--cinema .work-video-media--empty {
  width: 100%;
  max-width: min(100%, 248px);
  margin-inline: auto;
  aspect-ratio: 9 / 14.5;
  border-radius: calc(var(--radius-card, 24px) - 6px);
}

@media (min-width: 761px) {
  .niche-page .work-video-slider--cinema .work-video-card--cinema .work-video-media.v-player {
    max-height: 400px;
  }
}

.niche-page .work-video-slider--cinema .work-video-card__meta {
  display: grid;
  gap: 4px;
  padding: 0 2px;
}

.niche-page .work-video-slider--cinema .work-video-card--cinema h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
}

.niche-page .work-video-slider--cinema .work-video-card--cinema p {
  font-size: 13px;
  line-height: 1.4;
}

.niche-page .work-video-slider--cinema .work-video-nav {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  box-shadow: var(--extruded-soft);
}

@media (max-width: 1060px) {
  .niche-page .work-video-slider--cinema .work-video-card--cinema {
    flex-basis: calc((100% - 16px) / 2);
    width: calc((100% - 16px) / 2);
  }
}

@media (max-width: 760px) {
  .niche-page .niche-cinema__stage {
    padding: 10px;
  }

  .niche-page .work-video-slider--cinema .work-video-card--cinema {
    flex-basis: min(58vw, 200px);
    width: min(58vw, 200px);
    padding: 10px;
    gap: 8px;
  }

  .niche-page .work-video-slider--cinema .work-video-card--cinema .work-video-media.v-player,
  .niche-page .work-video-slider--cinema .work-video-card--cinema .work-video-media--photo,
  .niche-page .work-video-slider--cinema .work-video-card--cinema .work-video-media--empty {
    aspect-ratio: 3 / 4;
    max-width: min(100%, 176px);
    max-height: none;
  }

  .niche-page .work-video-slider--cinema .work-video-card--cinema h3 {
    font-size: 14px;
  }

  .niche-page .work-video-slider--talking .work-video-card--talking {
    flex-basis: min(58vw, 200px);
    width: min(58vw, 200px);
  }
}

/* Talking — same compact scale, quieter finish */
.niche-page .niche-talking .section-head h2 {
  font-size: clamp(26px, 2.8vw, 38px);
}

.niche-page .work-video-slider--talking .work-video-card--talking h3 {
  font-size: 15px;
}

.niche-page .niche-cinema__calc {
  margin-top: clamp(20px, 3vw, 32px);
}

.niche-page .niche-cinema__calc .dmut-calc {
  border: 1px solid color-mix(in srgb, var(--accent) 22%, #fff);
  box-shadow: var(--extruded-hover), 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent);
}

.niche-page .niche-talking__calc {
  margin-top: clamp(20px, 3vw, 32px);
}

/* Includes — center image + chips around */
.niche-orbit {
  --orbit-size: min(760px, 96vw);
  --orbit-r: 42%;
  position: relative;
  width: var(--orbit-size);
  height: var(--orbit-size);
  margin: 8px auto 0;
}

.niche-orbit__core {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 1;
  width: 52%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 28%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--extruded);
}

.niche-orbit__core:has(.includes-phone) {
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
  aspect-ratio: auto;
  width: auto;
  max-width: min(46%, 220px);
  padding: 0;
}

.niche-orbit__core .includes-phone--stub {
  width: 200px !important;
}

.niche-orbit__core img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.niche-orbit__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 16px;
  text-align: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.55), transparent 55%),
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 18%, #fff), color-mix(in srgb, var(--teal, #38b2ac) 14%, #edf1f6));
}

.niche-orbit__placeholder span {
  font-family: "Rubik", "Heebo", sans-serif;
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  opacity: 0.72;
}

.niche-orbit__chips {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  inset: 0;
}

.niche-orbit__chip {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  margin: 0;
  --angle: calc((var(--i) * 360deg) / var(--n));
  transform:
    translate(-50%, -50%)
    rotate(var(--angle))
    translateY(calc(var(--orbit-size) * -0.44))
    rotate(calc(var(--angle) * -1));
}

.niche-orbit__chip span {
  display: inline-flex;
  max-width: 13.5rem;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--extruded-soft);
  backdrop-filter: blur(12px);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  text-align: center;
}

.niche-includes-note {
  max-width: 640px;
  margin: 28px auto 0;
  padding: 0 8px;
  text-align: center;
}

.niche-includes-note strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.niche-includes-note p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}

.niche-orbit__marquee {
  display: none;
}

.niche-orbit__chip-pill {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  max-width: 16rem;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--extruded-soft);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .niche-orbit {
    --orbit-size: auto;
    width: 100%;
    height: auto;
    display: grid;
    gap: 18px;
    justify-items: center;
    padding: 4px 0 0;
    box-sizing: border-box;
  }

  .niche-orbit__core {
    position: relative;
    inset: auto;
    translate: none;
    width: auto;
    max-width: min(230px, 62vw);
    border-radius: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .niche-orbit__core .includes-phone,
  .niche-orbit__core .includes-phone--stub {
    width: min(180px, 48vw) !important;
  }

  .niche-orbit__placeholder span {
    font-size: 1rem;
  }

  .niche-orbit__chips {
    display: none !important;
  }

  .niche-orbit__marquee {
    display: block;
    width: 100%;
    margin: 0;
  }

  .niche-includes-note {
    margin-top: 22px;
  }
}

/* FAQ illustration — hide on mobile */
@media (max-width: 760px) {
  .faq-art {
    display: none !important;
  }
}

/* Homepage «Что включено» — vertical stub player, cards keep natural height */
.result-section .result-panel {
  align-items: start;
}

.result-panel__head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  min-width: 0;
}

.result-panel__head > h2 {
  width: 100%;
  margin: 0;
  text-align: start;
}

.result-panel__player {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin: 0;
}

/* Vertical phone stub (no video yet) */
.includes-phone.includes-phone--stub,
.avatar-device.includes-phone {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 1;
  width: 200px !important;
  max-width: 100%;
  margin: 0 auto;
  padding: 10px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--bg);
  box-shadow: var(--extruded-hover);
  animation: none !important;
  transform: none !important;
}

.includes-phone__screen,
.includes-phone .device-screen {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.55), transparent 52%),
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 22%, #e8ecf4), color-mix(in srgb, var(--teal, #38b2ac) 16%, #dfe5ef));
  box-shadow: var(--inset);
}

.includes-phone__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: auto;
  border-radius: 50%;
  color: var(--accent);
  background: var(--surface-strong, rgba(238, 243, 250, 0.96));
  box-shadow: var(--extruded-soft);
  font-size: 14px;
}

.includes-phone__play i,
.includes-phone__play svg {
  margin-inline-start: 2px;
}

.result-panel__player .includes-phone,
.result-panel__player .includes-phone--stub {
  width: min(100%, 320px) !important;
  margin: 0;
  margin-inline: 0;
}

.result-panel__player .includes-phone__screen {
  aspect-ratio: 16 / 9;
}

html[dir="rtl"] .result-panel__head > h2 {
  text-align: end;
}

@media (max-width: 900px) {
  .result-panel {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .result-panel__head {
    align-items: stretch;
  }

  .result-panel__head > h2 {
    text-align: center;
  }

  .result-panel__player {
    justify-content: center;
    margin-inline: auto;
  }

  .result-panel__player .includes-phone,
  .result-panel__player .includes-phone--stub {
    width: min(100%, 300px) !important;
    margin-inline: auto;
  }

  html[dir="rtl"] .result-panel__head > h2 {
    text-align: center;
  }
}

/* Formats «Четыре направления» — mobile: first full-width, rest 2 per row */
@media (max-width: 760px) {
  #formats .business-use-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  #formats .business-use-main {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 14px;
  }

  #formats .business-use-card:not(.business-use-main) {
    min-height: 0;
    padding: 14px 12px 12px;
    gap: 10px;
  }

  #formats .business-use-card:not(.business-use-main) > i {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    font-size: 18px;
  }

  #formats .business-use-card:not(.business-use-main) h3 {
    font-size: 1rem;
    line-height: 1.25;
  }

  #formats .business-use-card:not(.business-use-main) p {
    font-size: 0.82rem;
    line-height: 1.4;
  }
}

/* Niche process = same #how block as homepage; 5 steps fit the row */
.niche-page #how .flow-steps.process-timeline {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.niche-page #how .process-timeline .step-card.process-step {
  padding: 16px 10px 14px;
  min-height: 0;
}

.niche-page #how .process-timeline .step-card.process-step .process-step__num {
  margin-bottom: 8px;
  font-size: clamp(2.2rem, 3.2vw, 3rem);
}

.niche-page #how .process-timeline .step-card.process-step h3 {
  max-width: none;
  white-space: nowrap;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 8px;
}

.niche-page #how .process-timeline .step-card.process-step p {
  font-size: 0.72rem;
  line-height: 1.4;
}

@media (max-width: 1060px) {
  .niche-page #how .flow-steps.process-timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .niche-page #how .process-timeline .step-card.process-step h3 {
    white-space: normal;
    font-size: 1rem;
  }
}

@media (max-width: 760px) {
  .niche-page #how .flow-steps.process-timeline {
    grid-template-columns: 1fr;
  }

  .niche-page #how .process-timeline .step-card.process-step {
    padding: 16px 14px;
  }

  .niche-page #how .process-timeline .step-card.process-step h3 {
    white-space: normal;
    font-size: 1rem;
  }
}

/* Contacts page: equal cards + form like homepage CTA. */
.contacts-page .contact-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contacts-page .contact-card > .btn {
  margin-top: auto;
  align-self: flex-start;
}

.contacts-page .hero-note-card {
  align-content: start;
}

@media (max-width: 1060px) {
  .contacts-page .contact-panel.contact-upgrade {
    grid-template-columns: 1fr;
  }
}

/* ===== HE pack v3.8: flat calc + packages swipe + niche mobile ===== */
.dmut-calc--flat .dmut-calc__billing {
  display: inline-flex;
  gap: 6px;
  margin-top: 12px;
  padding: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink, #1a1a1a) 6%, transparent);
}
.dmut-calc__bill {
  border: 0;
  background: transparent;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
}
.dmut-calc__bill.is-on {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  font-weight: 600;
}
.dmut-calc--flat .dmut-calc__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .9fr);
  gap: 20px;
  align-items: start;
}
.dmut-calc--flat .dmut-calc__summary {
  position: sticky;
  top: 88px;
}
.dmut-calc__pkg-tip {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, #1f9d55 12%, #fff);
  color: #145c32;
  font-size: .92rem;
}
.dmut-calc__pkg-tip a { font-weight: 700; margin-inline-start: .35em; }
.dmut-calc__badge {
  display: inline-block;
  margin-inline-start: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent, #6c63ff) 14%, #fff);
  font-size: .72rem;
  font-weight: 700;
}
.dmut-calc__badge--save {
  background: color-mix(in srgb, #1f9d55 16%, #fff);
  color: #145c32;
}
.dmut-calc__agent-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--ink,#111) 10%, transparent);
  text-decoration: none;
  color: inherit;
}
.dmut-calc__agent-ico { font-size: 1.25rem; line-height: 1; }
.dmut-calc__trust { margin: 8px 0 0; font-size: .82rem; opacity: .75; }
.dmut-calc__choice { font-size: .9rem; margin: 0 0 10px; opacity: .85; }
.dmut-calc__hint {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid currentColor; opacity: .55;
  background: transparent; cursor: help; font-size: 12px; margin-inline-start: 6px;
}
.modal-label { display: block; font-size: .85rem; font-weight: 600; margin: 10px 0 4px; }
.modal-channel { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; }
.modal-channel__opt {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 10px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ink,#111) 12%, transparent);
  cursor: pointer; font-size: .9rem;
}
.modal-choice {
  margin: 0 0 12px; padding: 10px 12px; border-radius: 12px;
  background: color-mix(in srgb, var(--accent,#6c63ff) 10%, #fff); font-size: .9rem;
}
.modal [data-modal-form] input,
.modal [data-modal-form] textarea { font-size: 16px; }
.mini-marquee.is-paused .mini-marquee__track { animation-play-state: paused; }
html.dmut-a11y-reduce-motion .mini-marquee__track { animation: none !important; }
/* Keep 3-col grid on desktop: cards live inside __track after swipe markup. */
.pricing-plans.pricing-plans--swipe {
  display: block;
}
.pricing-plans--swipe .pricing-plans__track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.pricing-plans--swipe .pricing-plans__dots { display: none; }
@media (max-width: 860px) {
  .pricing-plans--swipe .pricing-plans__track {
    grid-template-columns: 1fr;
  }
}
.niche-calc__tabs { margin-bottom: 18px; }
.niche-hero__title, .niche-hero .hero-text { text-wrap: balance; }
.includes-agent-note {
  display: flex; gap: 8px; align-items: flex-start;
  margin-top: 12px; padding: 10px 12px; border-radius: 12px;
  background: color-mix(in srgb, var(--accent,#6c63ff) 10%, #fff); font-size: .9rem;
}
.faq-ask-agent {
  display: inline-block; margin-top: 10px; border: 0; background: none;
  color: var(--accent, #6c63ff); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline;
}
.niche-faq.faq-section { min-height: 100%; }
.niche-cta .cta-panel { margin-bottom: 24px; }
.process-timeline--niche .process-step {
  background: color-mix(in srgb, var(--surface, #fff) 92%, var(--ink, #111));
  opacity: 1;
}
@media (max-width: 900px) {
  .dmut-calc--flat .dmut-calc__grid { grid-template-columns: 1fr; }
  .dmut-calc--flat .dmut-calc__summary {
    position: sticky; bottom: 0; top: auto; z-index: 20;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(142px, auto);
    align-items: center; gap: 8px 12px;
    margin: 0 -12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #fff; box-shadow: 0 -8px 24px rgba(0,0,0,.08);
    border-radius: 18px 18px 0 0;
  }
  .dmut-calc--flat .dmut-calc__summary-title,
  .dmut-calc--flat .dmut-calc__choice,
  .dmut-calc--flat .dmut-calc__row:not(.dmut-calc__row--total),
  .dmut-calc--flat .dmut-calc__out-per,
  .dmut-calc--flat .dmut-calc__trust,
  .dmut-calc--flat .dmut-calc__agent-card {
    display: none !important;
  }
  .dmut-calc--flat .dmut-calc__row--total {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .dmut-calc--flat .dmut-calc__row--total span {
    font-size: .78rem;
    line-height: 1.2;
  }
  .dmut-calc--flat .dmut-calc__row--total b {
    font-size: 1.22rem;
    line-height: 1.05;
  }
  .dmut-calc--flat .dmut-calc__cta {
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding-inline: 12px;
  }
  .pricing-plans--swipe { overflow: hidden; }
  .pricing-plans--swipe .pricing-plans__track {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 8px; -webkit-overflow-scrolling: touch;
  }
  .pricing-plans--swipe .price-card,
  .pricing-plans--swipe [data-pkg-card] {
    flex: 0 0 min(86vw, 340px); scroll-snap-align: center;
  }
  .pricing-plans--swipe .pricing-plans__dots {
    display: flex; justify-content: center; gap: 8px; margin-top: 10px;
  }
  .pricing-plans__dot {
    width: 8px; height: 8px; border-radius: 50%; border: 0;
    background: color-mix(in srgb, var(--ink,#111) 22%, transparent); cursor: pointer;
  }
  .pricing-plans__dot.is-on { background: var(--accent, #6c63ff); }
  .niche-hero .hero-grid {
    display: flex; flex-direction: column;
  }
  body.home .hero-text,
  .niche-hero .hero-text { order: 2; }
  body.home .hero-actions,
  .niche-hero .hero-actions { order: 3; }
  body.home .hero-composition,
  .niche-hero .hero-composition,
  .niche-hero [class*="device"],
  .niche-hero .services-hero-grid > :last-child { order: 4; }
  .niche-hero .hero-composition,
  .niche-hero .device-frame { transform: none !important; }
  .process-timeline--niche {
    grid-template-columns: 1fr !important;
    position: relative;
  }
  .process-timeline--niche::before {
    content: ""; position: absolute; inset-inline-start: 18px; top: 8px; bottom: 8px;
    width: 2px; background: color-mix(in srgb, var(--accent,#6c63ff) 45%, transparent);
  }
}

.niche-page .video-play-button,
.niche-hero .video-play-button {
  transform: translate(-50%, calc(-50% + 18%)) scale(.82);
}
html[dir="rtl"] .niche-page .video-play-button,
html[dir="rtl"] .niche-hero .video-play-button {
  transform: translate(50%, calc(-50% + 18%)) scale(.82);
}
.pricing-home-extra {
  margin: -6px auto 14px;
  max-width: var(--max, 1240px);
  font-size: 1rem;
  line-height: 1.45;
  opacity: .88;
}

.footer-nav--v38 h2 {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.72;
  margin-bottom: 10px;
}
@media (max-width: 760px) {
  .footer-nav--v38 {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 18px 16px;
  }
  .footer-nav--v38 > div:last-child {
    grid-column: 1 / -1;
  }
}
