/* ───────────────────────────────────────────────────────────────
 * K-Promo — PATCH 2.0
 * ───────────────────────────────────────────────────────────────
 * Hero: приведение к эталону styles.css / sections1.jsx из handoff.
 *
 * Источник истины — inline-стили на h1 в эталоне (перебивают
 * CSS-класс). Реальные значения, которые применяются в браузере:
 *   h1.kp-hero-title { font-size:56px; font-weight:700;
 *                      line-height:1.4; letter-spacing:-0.035em }
 *
 * Этот патч переопределяет patch-1.4/1.5/1.6 для Hero и
 * восстанавливает работающий адаптив 1100/768 (его сломали
 * !important-правила в patch-1.5/1.6 без медиа-запросов).
 *
 * Подключается ПОСЛЕ patch-1.9.css.
 * ─────────────────────────────────────────────────────────────── */


/* ═══════════════════════════════════════════════════════════════
 * 1 — Контейнер Hero
 * ═══════════════════════════════════════════════════════════════ */

body.kp-body .kp-hero {
  padding: 64px 0 80px !important;
  background: #FFFFFF !important;
  position: relative;
  overflow: visible !important;
}

body.kp-body .kp-hero-grid {
  display: grid !important;
  grid-template-columns: 1.1fr 1fr !important;
  gap: 64px !important;
  align-items: center !important;
  min-height: 520px !important;
}


/* ═══════════════════════════════════════════════════════════════
 * 2 — Kicker ("Корпоративные подарки · СПб · с 2024")
 * ═══════════════════════════════════════════════════════════════ */

body.kp-body .kp-hero-kicker {
  display: inline-flex !important;
  gap: 10px !important;
  align-items: center !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing:normal!important;
  text-transform: uppercase !important;
  color: #3D3D3D !important;
  margin-bottom: 24px !important;
}

body.kp-body .kp-hero-kicker-dot {
  width: 8px !important;
  height: 8px !important;
  background: var(--yellow, #FECE15) !important;
  border-radius: 50% !important;
  box-shadow: 0 0 0 4px #FFF4B8 !important;
}


/* ═══════════════════════════════════════════════════════════════
 * 3 — H1 (главное расхождение)
 *
 *   Было (patch-1.5/1.6):  64px / weight 900 / line-height 0.98
 *   Эталон (inline):       56px / weight 700 / line-height 1.4
 * ═══════════════════════════════════════════════════════════════ */

body.kp-body .kp-hero-title {
  font-size: 56px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  letter-spacing:normal!important;
  text-transform: uppercase !important;
  margin: 0 0 28px !important;
  color: #0A0A0A !important;
}


/* ═══════════════════════════════════════════════════════════════
 * 4 — Подзаголовок
 * ═══════════════════════════════════════════════════════════════ */

body.kp-body .kp-hero-sub {
  font-size: 18px !important;
  line-height: 1.55 !important;
  color: #3D3D3D !important;
  max-width: 520px !important;
  margin: 0 0 36px !important;
  font-weight: 500 !important;
}


/* ═══════════════════════════════════════════════════════════════
 * 5 — Кнопочный блок
 * ═══════════════════════════════════════════════════════════════ */

body.kp-body .kp-hero-ctas {
  display: flex !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
  margin-bottom: 40px !important;
}


/* ═══════════════════════════════════════════════════════════════
 * 6 — Блок доверия (Безнал / ЭДО / Отгрузка)
 * ═══════════════════════════════════════════════════════════════ */

body.kp-body .kp-hero-trust {
  display: flex !important;
  gap: 28px !important;
  flex-wrap: wrap !important;
  margin: 0 !important;
}

body.kp-body .kp-hero-trust-item {
  display: inline-flex !important;
  gap: 8px !important;
  align-items: center !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing:normal!important;
  text-transform: uppercase !important;
  color: #3D3D3D !important;
}

body.kp-body .kp-hero-trust-item svg {
  color: var(--yellow, #FECE15) !important;
  stroke: #0A0A0A !important;
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════════════
 * 7 — Правая колонка + blob
 * ═══════════════════════════════════════════════════════════════ */

body.kp-body .kp-hero-right {
  position: relative !important;
  height: 520px !important;
  isolation: isolate !important;
  overflow: visible !important;
}

body.kp-body .kp-hero-blob {
  position: absolute !important;
  inset: 0 !important;
  background: var(--yellow, #FECE15) !important;
  border-radius: 50% 16% 50% 16% / 50% 50% 50% 50% !important;
  transform: rotate(-8deg) translateX(20px) !important;
}


/* ═══════════════════════════════════════════════════════════════
 * 8 — Картинка товара / слайды
 *
 * Сохраняем поведение слайдера: неактивный — rotate(-4deg) scale(.96)
 * opacity 0, активный — rotate(2deg) scale(1) opacity 1.
 * ═══════════════════════════════════════════════════════════════ */

body.kp-body .kp-hero-product,
body.kp-body .kp-hero-product-slide {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 62% !important;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,0.25)) !important;
}

body.kp-body .kp-hero-product-slide {
  opacity: 0;
  transition: opacity .5s ease, transform .6s ease;
  transform: translate(-50%,-50%) rotate(-4deg) scale(.96) !important;
}

body.kp-body .kp-hero-product-slide.is-active {
  opacity: 1;
  transform: translate(-50%,-50%) rotate(2deg) scale(1) !important;
}


/* ═══════════════════════════════════════════════════════════════
 * 9 — Плашка "18 000 SKU в каталоге"
 * ═══════════════════════════════════════════════════════════════ */

body.kp-body .kp-hero-tag {
  position: absolute !important;
  background: #fff !important;
  border-radius: 12px !important;
  padding: 14px 18px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.07) !important;
}

body.kp-body .kp-hero-tag-1 {
  left: -20px !important;
  top: 60px !important;
  right: auto !important;
  bottom: auto !important;
}

body.kp-body .kp-hero-tag-num {
  font-size: 28px !important;
  font-weight: 600 !important;
  letter-spacing:normal!important;
  line-height: 1 !important;
  font-feature-settings: "tnum" !important;
}

body.kp-body .kp-hero-tag-lbl {
  font-size: 11px !important;
  color: #8A8A8A !important;
  letter-spacing:normal!important;
  text-transform: uppercase !important;
  margin-top: 6px !important;
}


/* ═══════════════════════════════════════════════════════════════
 * 10 — Плашка "МЕТОД | УФ-печать"
 * ═══════════════════════════════════════════════════════════════ */

body.kp-body .kp-hero-tag-2 {
  right: -20px !important;
  bottom: 60px !important;
  left: auto !important;
  top: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

body.kp-body .kp-hero-tag-meta {
  font-size: 10px !important;
  color: #8A8A8A !important;
  letter-spacing:normal!important;
  text-transform: uppercase !important;
  border-right: 1px solid #E5E5E5 !important;
  padding-right: 10px !important;
}

body.kp-body .kp-hero-tag-name {
  font-size: 14px !important;
  font-weight: 600 !important;
}


/* ═══════════════════════════════════════════════════════════════
 * 11 — Точки слайдера
 *
 * patch-1.5/1.6 уже описали точки. Дублирую здесь, чтобы Hero
 * был в одном файле и эталоне (значения те же — расхождений нет).
 * ═══════════════════════════════════════════════════════════════ */

body.kp-body .kp-hero-dots {
  position: absolute !important;
  bottom: -20px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  gap: 8px !important;
}

body.kp-body .kp-hero-dots .dot,
body.kp-body .kp-hero-dots .kp-dot,
body.kp-body .kp-hero-dots > button {
  width: 8px !important;
  height: 8px !important;
  background: #0A0A0A !important;
  opacity: 0.18 !important;
  border-radius: 50% !important;
  border: 0 !important;
  padding: 0 !important;
  cursor: pointer !important;
}

body.kp-body .kp-hero-dots .dot.is-active,
body.kp-body .kp-hero-dots .kp-dot.is-active,
body.kp-body .kp-hero-dots > button.is-active {
  opacity: 1 !important;
  width: 24px !important;
  border-radius: 4px !important;
}


/* ═══════════════════════════════════════════════════════════════
 * 12 — Адаптив (чинит сломанные брейкпоинты из main.css)
 *
 * В main.css @media(max-width:1100) и (max-width:760) ужимают h1
 * до 56/40, но patch-1.5/1.6 форсили 64px !important без медиа →
 * адаптив не работал ни на одном экране.
 *
 * Брейкпоинт ≤768 (а не 760 из main.css) — по ТЗ.
 * ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
  body.kp-body .kp-hero-title {
    font-size: 56px !important;
  }
}

@media (max-width: 768px) {
  body.kp-body .kp-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  body.kp-body .kp-hero-right {
    height: 360px !important;
  }
  body.kp-body .kp-hero-title {
    font-size: 40px !important;
  }
  body.kp-body .kp-hero-ctas .kp-btn {
    flex: 1;
    justify-content: center;
  }
}
