/* ============================================================
   Lead Magnet Hub — Page-specific styles
   Подключается ПОСЛЕ /css/style.css (reset + fonts + ui)
   ============================================================ */

/* ── Hub tokens (не дублируют ui.css) ── */
:root {
  --h-dark: #080f2b;
  --h-purple: #6e66f0;
  --h-purple-light: #f8ecff;
  --h-purple-mid: #ede9fe;
  --h-grey: #f5f5f8;
  --h-border: rgba(8, 15, 43, .12);
  --h-text2: rgba(8, 15, 43, .6);
  --h-r-sm: 10px;
  --h-r-md: 18px;
  --h-r-lg: 28px;
  --h-sh-sm: 0 2px 12px rgba(110, 102, 240, .1);
  --h-sh-md: 0 8px 32px rgba(110, 102, 240, .14);
}

html { scroll-behavior: smooth }

/* ── Layout ── */
.h-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  z-index: 2;
}

.h-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--h-purple);
  margin-bottom: 14px
}

.h-h2 {
  font-family: var(--title-font);
  font-size: clamp(26px, 3.8vw, 46px);
  line-height: 1.1;
  color: var(--h-dark);
  margin-bottom: 18px
}

.h-h2 span { color: var(--h-purple) }

.h-sub {
  font-size: 17px;
  color: var(--h-text2);
  line-height: 1.65;
  max-width: 580px
}

.h-head { text-align: center; margin-bottom: 56px }
.h-head .h-sub { margin: 0 auto }

/* ── Buttons ── */
.h-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 100px;
  padding: 12px 24px;
  font-family: var(--base-font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  white-space: nowrap;
  line-height: 1
}

.h-btn:hover { transform: translateY(-1px) }

.h-btn-purple {
  background: var(--h-purple);
  color: #fff;
  border-color: var(--h-purple);
  box-shadow: 0 4px 14px rgba(110, 102, 240, .32)
}

.h-btn-purple:hover {
  box-shadow: 0 7px 22px rgba(110, 102, 240, .42)
}

.h-btn-outline {
  background: transparent;
  color: var(--h-dark);
  border-color: var(--h-border)
}

.h-btn-outline:hover {
  border-color: var(--h-purple);
  color: var(--h-purple)
}

.h-btn-outline-w {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .38)
}

.h-btn-outline-w:hover { border-color: #fff }

.h-btn-lg { padding: 15px 30px; font-size: 15px }

/* ── HERO ── */
.h-hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
}

.h-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  margin: 0 auto
}

.h-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(110, 102, 240, .2);
  border: 1px solid rgba(110, 102, 240, .38);
  color: var(--h-dark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 24px
}

.h-hero-badge span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--h-purple);
  box-shadow: 0 0 7px var(--h-purple)
}

.h-hero-h1 {
  font-family: var(--title-font);
  font-size: clamp(28px, 4.8vw, 60px);
  line-height: 1.07;
  color: var(--h-dark);
  margin-bottom: 22px
}

.h-hero-h1 span { color: #a89ef5 }

.h-hero-p {
  font-size: 18px;
  color: var(--h-dark);
  margin-bottom: 36px;
  line-height: 1.65;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto
}

.h-hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px
}

.h-hero-ctas .h-btn-outline-w {
  border-color: var(--h-purple);
  color: var(--h-purple);
}

/* ── Value strip ── */
.h-vstrip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap
}

.h-vtag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--h-text2);
  padding: 0 18px;
  position: relative
}

.h-vtag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, .15)
}

.h-vtag:first-child::before { display: none }

/* ── TAG PILLS ── */
.h-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap
}

.h-tag-audience { background: var(--h-grey); color: var(--h-text2) }
.h-tag-bofu { background: var(--h-purple-mid); color: #7c3aed }
.h-tag-mofu { background: #dbeafe; color: #1d4ed8 }
.h-tag-tofu { background: #d1fae5; color: #065f46 }

/* ── FILTER BAR ── */
.h-filter-bar {
  background: #fff;
  border: 1px solid var(--h-border);
  border-radius: var(--h-r-md);
  padding: 18px 22px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  position: sticky;
  top: 150px;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(8, 15, 43, .06)
}

.h-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap
}

.h-filter-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--h-text2);
  white-space: nowrap
}

.h-filter-chip {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--h-border);
  background: #fff;
  color: var(--h-dark);
  transition: all .15s;
  line-height: 1;
  font-family: var(--base-font);
}

.h-filter-chip:hover { border-color: var(--h-purple); color: var(--h-purple) }
.h-filter-chip.active { background: var(--h-purple); border-color: var(--h-purple); color: #fff }

.h-filter-sep {
  width: 1px;
  height: 24px;
  background: var(--h-border);
  flex-shrink: 0
}

.h-filter-count {
  font-size: 12px;
  color: var(--h-text2);
  white-space: nowrap;
  margin-left: auto
}

.h-filter-reset {
  font-size: 12px;
  font-weight: 600;
  color: var(--h-purple);
  cursor: pointer;
  white-space: nowrap;
  display: none
}

.h-filter-reset.visible { display: block }

/* ── RESOURCE CARDS GRID ── */
.h-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px
}

.h-card {
  background: #fff;
  border: 1.5px solid var(--h-border);
  border-radius: var(--h-r-md);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .18s, box-shadow .18s, transform .18s
}

.h-card:hover {
  border-color: var(--h-purple);
  transform: translateY(-3px);
  box-shadow: var(--h-sh-sm)
}

.h-card.hidden { display: none }

.h-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between
}

.h-card-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0
}

.h-card-tags { display: flex; gap: 5px; flex-wrap: wrap }

.h-card-h {
  font-size: 14px;
  font-weight: 600;
  color: var(--h-dark);
  line-height: 1.4
}

.h-card-p {
  font-size: 13px;
  color: var(--h-text2);
  line-height: 1.62;
  flex: 1
}

.h-card-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--h-purple);
  display: flex;
  align-items: center;
  gap: 5px;
  padding-top: 8px;
  border-top: 1px solid var(--h-border);
  transition: gap .15s;
  text-decoration: none
}

.h-card:hover .h-card-cta { gap: 9px }
.h-card-cta::after { content: '→' }

.h-no-results {
  grid-column: 1/-1;
  text-align: center;
  padding: 48px 0;
  color: var(--h-text2);
  font-size: 15px;
  display: none
}

.h-no-results.visible { display: block }

/* ── ICON BACKGROUNDS ── */
.ico-migration { background: #dbeafe }
.ico-evaluation { background: var(--h-purple-mid) }
.ico-workflow { background: #fef3c7 }
.ico-reporting { background: #d1fae5 }
.ico-automation { background: #fce7f3 }
.ico-hiring { background: #fff7ed }
.ico-retention { background: #e0f2fe }
.ico-compensation { background: var(--h-purple-mid) }
.ico-global { background: #fef3c7 }

/* ── RESPONSIVE ── */
@media(max-width:1024px) {
  .h-card-grid { grid-template-columns: repeat(2, 1fr) }
}

@media(max-width:768px) {
  .h-filter-bar { top: 0 }
}

@media(max-width:540px) {
  .h-card-grid { grid-template-columns: 1fr }
  .h-hero-ctas { flex-direction: column; align-items: center }
  .h-btn-lg { width: 100%; max-width: 320px }
}

[id] { scroll-margin-top: 84px }
