/* aabe-plt-hero — layout vars (Elementor Style tab) */
.aabe-plt-hero {
  --aah-lead-max-w: 46ch;
  --aah-slide-w: 320px;
  --aah-slide-min-h: 148px;
  --aah-slide-bg: rgba(11, 15, 16, 0.72);
  --aah-slide-blur: 0px;
  --aah-slide-border: var(--xbc-line, rgba(242, 215, 149, 0.26));
  --aah-slide-title-color: var(--xbc-gold-light, #f2d795);
  --aah-slide-text-color: var(--xbc-muted, rgba(248, 244, 233, 0.62));
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* WYSIWYG blocks — как Elementor Text Editor: Style типографика, inline color приоритетен */
.aabe-plt-hero .aia-hero .aia-title.elementor-text-editor,
.aabe-plt-hero .aia-hero .aia-lead.elementor-text-editor {
  width: 100%;
  box-sizing: border-box;
}

.aabe-plt-hero .aia-hero .aia-title.elementor-text-editor {
  margin-bottom: 18px;
  color: var(--xbc-ink, #f8f4e9);
  font-family: var(--xbc-display);
  font-size: clamp(42px, 5vw, 74px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.aabe-plt-hero .aia-hero .aia-lead.elementor-text-editor {
  max-width: var(--aah-lead-max-w);
  color: var(--xbc-muted);
  font-size: 13px;
  line-height: 1.75;
}

.aabe-plt-hero .aia-title.elementor-text-editor p,
.aabe-plt-hero .aia-lead.elementor-text-editor p {
  margin: 0;
}

.aabe-plt-hero .aia-title.elementor-text-editor p + p,
.aabe-plt-hero .aia-lead.elementor-text-editor p + p {
  margin-top: 0.2em;
}

/* Inline color из TinyMCE: часто <span style="color:…"><em>…</em></span> — em не должен перебивать span */
.aabe-plt-hero .aia-title.elementor-text-editor em,
.aabe-plt-hero .aia-title.elementor-text-editor strong,
.aabe-plt-hero .aia-title.elementor-text-editor b {
  font-style: normal;
}

.aabe-plt-hero .aia-title.elementor-text-editor em:not([style*="color"]) {
  color: var(--xbc-title-em, var(--xbc-gold-light, #f2d795));
}

.aabe-plt-hero .aia-title.elementor-text-editor span[style*="color"] em,
.aabe-plt-hero .aia-title.elementor-text-editor span[style*="color"] strong,
.aabe-plt-hero .aia-title.elementor-text-editor span[style*="color"] b,
.aabe-plt-hero .aia-title.elementor-text-editor span[style*="color"] mark {
  color: inherit;
}

.aabe-plt-hero .aia-lead.elementor-text-editor span[style*="color"] em,
.aabe-plt-hero .aia-lead.elementor-text-editor span[style*="color"] strong,
.aabe-plt-hero .aia-lead.elementor-text-editor span[style*="color"] b {
  color: inherit;
}

.aabe-plt-hero .aia-hero__slide {
  flex: 0 0 min(var(--aah-slide-w), calc(100vw - 48px));
  min-height: var(--aah-slide-min-h);
  background: var(--aah-slide-bg);
  border-color: var(--aah-slide-border);
  -webkit-backdrop-filter: blur(var(--aah-slide-blur));
  backdrop-filter: blur(var(--aah-slide-blur));
}

.aabe-plt-hero .aia-hero__slide strong {
  color: var(--aah-slide-title-color);
}

.aabe-plt-hero .aia-hero__slide p {
  color: var(--aah-slide-text-color);
}

.aabe-plt-hero .aia-hero__track.is-marquee {
  scroll-behavior: auto;
  scroll-snap-type: none;
}

@media (hover: hover) and (pointer: fine) {
  .aabe-plt-hero .aia-hero__track {
    cursor: grab;
    touch-action: none;
  }

  .aabe-plt-hero .aia-hero__track.is-dragging {
    cursor: grabbing;
    user-select: none;
  }

  .aabe-plt-hero .aia-hero__track.is-dragging .aia-hero__slide {
    pointer-events: none;
  }
}

@media (max-width: 640px) {
  .aabe-plt-hero .aia-hero .aia-title.elementor-text-editor {
    font-size: clamp(36px, 11vw, 48px);
  }
}
