/* ==========================================================
   HERO / Главный баннер (главная страница)
   ========================================================== */

.mkf-hero { margin: 20px 0 24px; }

/* Контейнер баннера */
.mkf-hero-track{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  isolation: isolate;

  background:
    radial-gradient(circle at 0 0, rgba(37, 99, 235, 0.18), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(14, 165, 233, 0.16), transparent 55%),
    #0f172a;

  color: #f9fafb;
  box-shadow: var(--mkf-shadow);
  padding: 24px 32px;

  /* высота баннера (настрой под себя) */
  min-height: clamp(220px, 24vw, 360px);
}

/* --------------------------
   Слайды
   -------------------------- */

.mkf-hero-slide{
  display: none;
  position: relative;

  /* 2 колонки: слева текст, справа место под “визуал”
     (если хочешь, чтобы текст был только слева — оставь как есть) */
  display: none;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.mkf-hero-slide.is-active{ display: grid; }

/* --------------------------
   Фоновая картинка (на весь track)
   -------------------------- */

.mkf-hero-bg{
  position: absolute;
  inset: 0;
  z-index: 0;
}

.mkf-hero-bg img{
  width: 100%;
  height: 100%;
  display: block;

  /* если хочешь “фон как у маркетплейсов” — cover */
  object-fit: cover;
  object-fit: contain;

  /* если хочешь “не резать вообще” — contain */
  /* object-fit: contain; */

  /* обычно красиво справа */
  object-position: right center;
}

/* лёгкое затемнение под текст */
.mkf-hero-bg::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.70) 0%,
    rgba(15, 23, 42, 0.35) 35%,
    rgba(15, 23, 42, 0.00) 70%,
    rgba(15, 23, 42, 0.00) 100%
  );
}

/* --------------------------
   Текст
   -------------------------- */

.mkf-hero-text{
  position: relative;
  z-index: 1;
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mkf-hero-badge{
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.mkf-hero-title{ font-size: 24px; line-height: 1.25; margin: 0; }

.mkf-hero-subtitle{
  margin: 0;
  font-size: 14px;
  color: #e5e7eb;
  max-width: 720px;
}

/* Hero outline CTA */
.mkf-hero-cta{
  width: fit-content;
  display: inline-flex;
  align-self: flex-start;
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.9);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
}

.mkf-hero-cta:hover{
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.mkf-hero-cta:active{
  background: rgba(255,255,255,0.18);
}


/* --------------------------
   Декор (если нет картинки)
   -------------------------- */

.mkf-hero-decoration{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.mkf-hero-circle{
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.mkf-hero-circle--one{
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25), transparent 70%);
}

.mkf-hero-circle--two{
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18), transparent 70%);
}

/* --------------------------
   Точки
   -------------------------- */

.mkf-hero-dots{
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.mkf-hero-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(148, 163, 184, 0.6);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.mkf-hero-dot.is-active{
  width: 18px;
  background: #38bdf8;
}

/* --------------------------
   Адаптив
   -------------------------- */

@media (max-width: 900px){
  .mkf-hero-track{ padding: 18px 18px 36px; }
  .mkf-hero-slide{ grid-template-columns: 1fr; }
  .mkf-hero-decoration{ display: none; }
  .mkf-hero-dots{ bottom: 14px; right: 14px; }

  /* на мобилке обычно лучше центр */
  .mkf-hero-bg img{ object-position: center; }
}

a.btn.btn-outline.mkf-hero-cta{
  border-color: rgba(255,255,255,0.9);
  color: #fff;
  background: transparent;
  box-shadow: none;
}
a.btn.btn-outline.mkf-hero-cta:hover{
  background: rgba(255,255,255,0.12);
}
