/* Блок Hero — стилі секції. Спільні примітиви (.btn, .hero-cta) — у глобальному style.css. */
.hero {
  padding-top: clamp(44px, 7vh, 92px);
  padding-bottom: 0;
  text-align: center;
  display: grid;
  gap: clamp(24px, 5vw, 52px);
  align-items: center
}

/* Hero ширший за інші секції (решта .wrap = 1200px) */
.hero.wrap {
  max-width: 1440px
}

/* Панель відео — середня колонка в тріо (текст | відео | чат); лише десктоп ≥1200 */
.hero-vid-panel {
  display: none;
  justify-content: center;
  align-items: center;
  width: 100%
}

.hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
  display: none;
}

.hero-vid {
  display: flex;
  justify-content: center;
  width: 100%;
  overflow: hidden
}

/* SVG-фільтр вирізає білий фон відео в прозорість. object-fit:cover + рамка
   дівчини (aspect 396/1166 із кадру 720×1280) обрізають порожні боки, тож
   елемент щільно охоплює дівчину. object-position 49% — центр дівчини по X. */
.hero-vid video {
  width: auto;
  max-width: 100%;
  max-height: clamp(340px, 80vh, 760px);
  object-fit: cover;
  object-position: 49% 50%;
  display: block;
  filter: url(#mar-key);
  aspect-ratio: 396 / 1166;
  clip-path: inset(1px 0)
}

/* Зображення-фігура (вирізана Марічка з прозорим фоном) — замість відео.
   Без chroma-key; розмір за висотою, природні пропорції. */
.hero-fig {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: clamp(340px, 80vh, 760px)
}

@media (max-width:600px) {
  .hero-vid video {
    max-height: clamp(260px, 48vh, 380px)
  }
}

/* Чат-демо (на відміну від важкого відео) показуємо і на мобільному теж. */
.hero-media:has(.hero-chat) {
  display: block
}

/* ---- Hero: чат-демо (альтернатива відео) — переюзує глобальні .msg ---- */
.hero-chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  text-align: left
}

.hero-chat .msg.in {
  max-width: 90%
}

.hero-chat .msg.out {
  max-width: 94%
}

/* Декоративна стрілка від чату до CRM-карток (SVG або завантажене зображення) */
.hero-chat-arrow {
  display: flex;
  justify-content: flex-end;
  margin: -6px 26px -10px 0;
  pointer-events: none
}

.hero-chat-arrow svg {
  width: clamp(40px, 13%, 52px);
  height: auto;
  display: block
}

/* Завантажена стрілка зазвичай висока/вузька — керуємо ВИСОТОЮ, ширина авто */
.hero-chat-arrow img {
  height: 60px;
  width: auto;
  display: block
}

/* CRM-картки підтвердження (зелена галочка + заголовок + час) */
.hero-events {
  list-style: none;
  margin: 4px 0 0;
  padding: 6px;
  display: grid;
  gap: 2px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 16px 44px rgba(var(--ink-rgb), .09)
}

.hero-event {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px
}

.hero-event+.hero-event {
  border-top: 1px solid var(--line)
}

.hero-event-ic {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #22C55E;
  color: #fff;
  display: grid;
  place-items: center
}

.hero-event-ic svg {
  width: 16px;
  height: 16px
}

.hero-event-tx {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25
}

.hero-event-tx b {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink)
}

.hero-event-tx small {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted)
}

.hero-event time {
  margin-left: auto;
  flex: none;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted)
}

/* Підпис зображенням (рукописний напис) — має пріоритет над текстовою пігулкою */
.hero-chat-cap-img {
  align-self: center;
  margin-top: 8px;
  width: min(240px, 68%);
  height: auto;
  display: block
}

/* Підпис-пігулка під чатом («Готовий клієнт для продажу») */
.hero-chat-cap {
  align-self: center;
  margin-top: 4px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--lime-soft);
  color: #6D28D9;
  font-size: 13.5px;
  font-weight: 800;
  border: 1px solid rgba(var(--lime-rgb), .4)
}

@media(min-width:920px) {
  .hero {
    grid-template-columns: 1.15fr .85fr;
    min-height: calc(100svh - 88px)
  }

  .hero-copy {
    text-align: left
  }

  .hero-copy .h1 {
    margin: 0;
    max-width: 15ch
  }

  .hero-copy .sub {
    margin: 22px 0 0;
    max-width: 48ch
  }

  .hero-copy .hero-cta {
    justify-content: flex-start
  }
  .hero-media {
    display: block
  }
}

/* Тріо на широких екранах: текст | відео | чат (3 колонки). Нижче 1200 —
   відео ховається, лишається текст | чат (2 колонки з правила ≥920). */
@media (min-width:1200px) {
  .hero--trio {
    /* текст розтягується; відео та чат — по контенту (щоб були впритул до дівчини) */
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: clamp(6px, 0.7vw, 12px)
  }

  .hero--trio .hero-vid-panel {
    display: flex
  }

  .hero--trio .hero-vid video,
  .hero--trio .hero-fig {
    max-height: clamp(420px, 64vh, 600px)
  }

  /* Трохи відступу від країв контейнера в тріо */
  .hero--trio .hero-copy {
    padding-left: 20px
  }

  .hero--trio .hero-media {
    padding-right: 20px
  }
}

.kick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .02em;
  background: var(--mint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 26px
}

.kick i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .28);
  display: inline-block
}

.h1 {
  font-size: clamp(40px, 5.6vw, 72px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.025em;
  margin: 0 auto;
  max-width: 17ch
}

.h1 .chip {
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  width: .92em;
  height: .92em;
  border-radius: .3em .3em .3em .08em;
  background: var(--lime);
  margin: 0 .06em;
  transform: translateY(-.06em)
}

.h1 .chip img {
  width: 82%;
  height: 82%;
  object-fit: cover;
  border-radius: .22em
}

.hero .sub {
  font-size: clamp(16.5px, 1.6vw, 19px);
  color: var(--muted);
  max-width: 56ch;
  margin: 22px auto 0;
  font-weight: 500
}

.hero-note {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 600;
  margin: 18px 0 0
}